diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-04-29 00:49:20 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2006-04-29 00:49:20 +0000 |
commit | 13190150959337353a6b1a645f086301df3b4c14 (patch) | |
tree | 8ff36342a160d771d15c64649cdebec42800a305 /security/rkhunter/files | |
parent | bb1f0765fa223d902233a803b3a1158c0f2c8bb3 (diff) | |
download | ports-13190150959337353a6b1a645f086301df3b4c14.tar.gz ports-13190150959337353a6b1a645f086301df3b4c14.zip |
Notes
Diffstat (limited to 'security/rkhunter/files')
-rw-r--r-- | security/rkhunter/files/patch-installer.sh | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/security/rkhunter/files/patch-installer.sh b/security/rkhunter/files/patch-installer.sh index a3ca88786967..8fb478bb6f86 100644 --- a/security/rkhunter/files/patch-installer.sh +++ b/security/rkhunter/files/patch-installer.sh @@ -1,6 +1,6 @@ ---- installer.sh.orig Sat Mar 19 22:04:43 2005 -+++ installer.sh Wed May 18 17:42:29 2005 -@@ -119,15 +119,12 @@ +--- installer.sh.orig Mon Apr 25 13:24:56 2005 ++++ installer.sh Fri Apr 28 21:44:41 2006 +@@ -119,15 +119,13 @@ overwrite:programs_good.dat:/db/programs_good.dat:Database%%Program%%versions overwrite:defaulthashes.dat:/db/defaulthashes.dat:Database%%Default%%file%%hashes overwrite:md5blacklist.dat:/db/md5blacklist.dat:Database%%MD5%%blacklisted%%files @@ -14,11 +14,12 @@ -nooverwrite:rkhunter.conf:/usr/local/etc/rkhunter.conf:RK%%Hunter%%configuration%%file -overwrite:rkhunter:/usr/local/bin/rkhunter:RK%%Hunter%%binary +nooverwrite:rkhunter.conf:${INSTALLDIR}/etc/rkhunter.conf:RK%%Hunter%%configuration%%file ++overwrite:rkhunter.conf:${INSTALLDIR}/etc/rkhunter.conf.sample:RK%%Hunter%%sample%%configuration%%file +overwrite:rkhunter:${INSTALLDIR}/bin/rkhunter:RK%%Hunter%%binary " # Create directories (only if they do not exist) -@@ -136,9 +133,7 @@ +@@ -136,9 +134,7 @@ ${INSTALLDIR}/etc ${INSTALLDIR}/bin ${INSTALLDIR}/lib/rkhunter/db @@ -28,7 +29,7 @@ /usr/local/etc /usr/local/bin " -@@ -397,9 +392,6 @@ +@@ -397,9 +393,6 @@ ################################################################################# @@ -38,11 +39,14 @@ echo "${INSTALLER_NAME} ${INSTALLER_VERSION} (${INSTALLER_COPYRIGHT})" echo $ECHOOPT "---------------" echo "Starting installation/update" -@@ -532,11 +524,11 @@ +@@ -534,11 +527,14 @@ done # Installation dir to configuration file -INSTALLDIRCHECK=`cat /usr/local/etc/rkhunter.conf | grep "INSTALLDIR="` ++echo "" >> ${INSTALLDIR}/etc/rkhunter.conf.sample ++echo "INSTALLDIR=${INSTALLDIR}" >> ${INSTALLDIR}/etc/rkhunter.conf.sample ++ +INSTALLDIRCHECK=`cat ${INSTALLDIR}/etc/rkhunter.conf | grep "INSTALLDIR="` if [ "${INSTALLDIRCHECK}" = "" ] then @@ -53,7 +57,7 @@ echo "Configuration updated with installation path (${INSTALLDIR})" else echo "Configuration already updated." -@@ -546,7 +538,7 @@ +@@ -548,7 +544,7 @@ then echo "" echo $E "$t17" |