diff options
author | Sofian Brabez <sbz@FreeBSD.org> | 2012-07-03 22:15:17 +0000 |
---|---|---|
committer | Sofian Brabez <sbz@FreeBSD.org> | 2012-07-03 22:15:17 +0000 |
commit | 13e24c31a058af984e3b74f4d4f0b60ce4bdc14b (patch) | |
tree | 14871f039f11ad92be5a6e47c2f7aadb72eb9e7e /security/rkhunter | |
parent | ac202d12261cf3b21f33e7b8eab99e85268b4ab7 (diff) | |
download | ports-13e24c31a058af984e3b74f4d4f0b60ce4bdc14b.tar.gz ports-13e24c31a058af984e3b74f4d4f0b60ce4bdc14b.zip |
- Update to 1.4.0
- Make portlint happy
Notes
Notes:
svn path=/head/; revision=300458
Diffstat (limited to 'security/rkhunter')
-rw-r--r-- | security/rkhunter/Makefile | 3 | ||||
-rw-r--r-- | security/rkhunter/distinfo | 4 | ||||
-rw-r--r-- | security/rkhunter/files/patch-files__rkhunter.conf | 39 | ||||
-rw-r--r-- | security/rkhunter/files/patch-installer.sh | 55 | ||||
-rw-r--r-- | security/rkhunter/pkg-message | 4 | ||||
-rw-r--r-- | security/rkhunter/pkg-plist | 1 |
6 files changed, 44 insertions, 62 deletions
diff --git a/security/rkhunter/Makefile b/security/rkhunter/Makefile index bb7986696e6a..4176a5db0e1a 100644 --- a/security/rkhunter/Makefile +++ b/security/rkhunter/Makefile @@ -6,8 +6,7 @@ # PORTNAME= rkhunter -PORTVERSION= 1.3.8 -PORTREVISION= 1 +PORTVERSION= 1.4.0 CATEGORIES= security MASTER_SITES= SF diff --git a/security/rkhunter/distinfo b/security/rkhunter/distinfo index 959d46000d82..0c1f0a4a94e0 100644 --- a/security/rkhunter/distinfo +++ b/security/rkhunter/distinfo @@ -1,2 +1,2 @@ -SHA256 (rkhunter-1.3.8.tar.gz) = fb1fb8bac53bab476142b5556140c59d589bc0f45d3dc058f400f2edada77a33 -SIZE (rkhunter-1.3.8.tar.gz) = 241551 +SHA256 (rkhunter-1.4.0.tar.gz) = a891c0b900417f2980f0e9afcdb10d1fd5581703be2587a92c90c7631b8814dc +SIZE (rkhunter-1.4.0.tar.gz) = 244552 diff --git a/security/rkhunter/files/patch-files__rkhunter.conf b/security/rkhunter/files/patch-files__rkhunter.conf index 45143a7a3dee..ca730b24bd11 100644 --- a/security/rkhunter/files/patch-files__rkhunter.conf +++ b/security/rkhunter/files/patch-files__rkhunter.conf @@ -1,35 +1,6 @@ ---- ./files/rkhunter.conf.orig 2010-11-13 21:25:22.000000000 +0100 -+++ ./files/rkhunter.conf 2010-11-27 02:39:40.000000000 +0100 -@@ -93,7 +93,7 @@ - # important files will be written to this directory, so be - # sure that the directory permissions are tight. - # --#TMPDIR=/var/lib/rkhunter/tmp -+TMPDIR=/root - - # - # Specify the database directory to use. -@@ -213,7 +213,8 @@ - # file, then a value here of 'unset' can be used to avoid warning messages. - # This option has a default value of 'no'. - # --ALLOW_SSH_ROOT_USER=no -+#ALLOW_SSH_ROOT_USER=no -+ALLOW_SSH_ROOT_USER=unset - - # - # Set this option to '1' to allow the use of the SSH-1 protocol, but note -@@ -224,7 +225,8 @@ - # configuration file, then a value of '2' may be set here in order to - # suppress a warning message. This option has a default value of '0'. - # --ALLOW_SSH_PROT_V1=0 -+#ALLOW_SSH_PROT_V1=0 -+ALLOW_SSH_PROT_V1=2 - - # - # This setting tells rkhunter the directory containing the SSH configuration -@@ -466,6 +468,10 @@ +--- ./files/rkhunter.conf.orig 2011-12-17 22:36:02.000000000 +0100 ++++ ./files/rkhunter.conf 2012-07-03 23:57:15.000000000 +0200 +@@ -468,6 +468,10 @@ # #SCRIPTWHITELIST="/sbin/ifup /sbin/ifdown" #SCRIPTWHITELIST="/usr/bin/groups" @@ -40,7 +11,7 @@ # # Allow the specified commands to have the immutable attribute set. -@@ -475,6 +481,10 @@ +@@ -477,6 +481,10 @@ # characters. # #IMMUTWHITELIST="/sbin/ifup /sbin/ifdown" @@ -51,7 +22,7 @@ # # If this option is set to 1, then the immutable-bit test is -@@ -665,7 +675,7 @@ +@@ -668,7 +676,7 @@ # NOTE: For *BSD systems you will probably need to use this option # for the 'toor' account. # diff --git a/security/rkhunter/files/patch-installer.sh b/security/rkhunter/files/patch-installer.sh index 0181eeb07717..a39c8caf9384 100644 --- a/security/rkhunter/files/patch-installer.sh +++ b/security/rkhunter/files/patch-installer.sh @@ -1,6 +1,21 @@ ---- ./installer.sh.orig 2010-11-16 22:34:48.000000000 +0100 -+++ ./installer.sh 2010-11-27 02:40:03.000000000 +0100 -@@ -366,10 +366,10 @@ +--- ./installer.sh.orig 2012-04-27 00:10:12.000000000 +0200 ++++ ./installer.sh 2012-07-03 23:56:30.000000000 +0200 +@@ -392,7 +392,7 @@ + RKHINST_ETC_DIR="${SYSCONFIGDIR}" + RKHINST_BIN_DIR="${BINDIR}" + RKHINST_SCRIPT_DIR="${LIBDIR}/${APPNAME}/scripts" +- RKHINST_MAN_DIR="${SHAREDIR}/man/man8" ++ RKHINST_MAN_DIR="${PREFIX}/man/man8" + + if [ "${RKHINST_LAYOUT}" = "oldschool" ]; then + RKHINST_DB_DIR="${VARDIR}/${APPNAME}/db" +@@ -406,12 +406,12 @@ + elif [ "${RKHINST_LAYOUT}" = "TXZ" ]; then + RKHINST_DB_DIR="${VARDIR}/lib/${APPNAME}/db" + RKHINST_TMP_DIR="${VARDIR}/lib/${APPNAME}/tmp" +- RKHINST_DOC_DIR="${PREFIX}/doc/${APPNAME}-${APPVERSION}" ++ RKHINST_DOC_DIR="${PREFIX}/doc/${APPNAME}" + RKHINST_MAN_DIR="${PREFIX}/man/man8" else RKHINST_DB_DIR="${VARDIR}/lib/${APPNAME}/db" RKHINST_TMP_DIR="${VARDIR}/lib/${APPNAME}/tmp" @@ -8,31 +23,27 @@ + RKHINST_DOC_DIR="${SHAREDIR}/doc/${APPNAME}" fi -- RKHINST_MAN_DIR="${SHAREDIR}/man/man8" -+ RKHINST_MAN_DIR="${PREFIX}/man/man8" RKHINST_LANG_DIR="${RKHINST_DB_DIR}/i18n" - - RKHINST_ETC_FILE="${APPNAME}.conf" -@@ -765,22 +765,6 @@ - esac +@@ -1076,22 +1076,6 @@ + fi done - -- # Application documents -- for FILE in ${RKHINST_DOC_FILES}; do -- cp -f ./files/"${FILE}" "${RKHINST_DOC_DIR}" >/dev/null 2>&1 -- ERRCODE=$? +- # Application +- for FILE in ${RKHINST_BIN_FILES}; do +- if [ -f "${RKHINST_BIN_DIR}/${FILE}" ]; then +- rm -f "${RKHINST_BIN_DIR}/${FILE}" >/dev/null 2>&1 +- ERRCODE=$? - -- if [ $ERRCODE -eq 0 ]; then -- echo " Installing ${FILE}: OK" -- chmod "${RKHINST_MODE_RWR}" "${RKHINST_DOC_DIR}/${FILE}" -- else -- echo " Installing ${FILE}: FAILED: Code $ERRCODE" -- exit 1 +- if [ $ERRCODE -eq 0 ]; then +- echo " Removing ${RKHINST_BIN_DIR}/${FILE}: OK" +- else +- echo " Removing ${RKHINST_BIN_DIR}/${FILE}: FAILED: Code $ERRCODE" +- fi - fi - done - - - # Language support files - ERRCODE=0 - + # Configuration file + for FILE in ${RKHINST_ETC_FILE}; do + if [ -f "${RKHINST_ETC_DIR}/${FILE}" ]; then diff --git a/security/rkhunter/pkg-message b/security/rkhunter/pkg-message index ebeab31f133c..e07f93a8dbcc 100644 --- a/security/rkhunter/pkg-message +++ b/security/rkhunter/pkg-message @@ -2,13 +2,13 @@ ****************************************************************************** You should keep your rkhunter database up-to-date. -This can be done automatically by putting this line to /etc/periodic.conf: +This can be done automatically by putting this line to periodic.conf(5) files: daily_rkhunter_update_enable="YES" daily_rkhunter_update_flags="--update --nocolors" Also, you can run rkhunter as a part of the daily security check by -putting this line to /etc/periodic.conf: +putting this line to periodic.conf(5) files: daily_rkhunter_check_enable="YES" daily_rkhunter_check_flags="--checkall --nocolors --skip-keypress" diff --git a/security/rkhunter/pkg-plist b/security/rkhunter/pkg-plist index 1e81aec740d8..0dd48fa76acb 100644 --- a/security/rkhunter/pkg-plist +++ b/security/rkhunter/pkg-plist @@ -16,6 +16,7 @@ var/lib/rkhunter/db/mirrors.dat var/lib/rkhunter/db/programs_bad.dat var/lib/rkhunter/db/suspscan.dat @unexec rm -f %D/var/lib/rkhunter/db/rkhunter_prop_list.dat 2> /dev/null || true +@unexec rm -f %D/var/lib/rkhunter/db/rkhunter.dat* 2> /dev/null || true @unexec if cmp -s %D/etc/rkhunter.conf.sample %D/etc/rkhunter.conf; then rm -f %D/etc/rkhunter.conf; fi etc/rkhunter.conf.sample @exec if [ ! -f %D/etc/rkhunter.conf ] ; then cp -p %D/%F %B/rkhunter.conf; fi |