mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- unbreak
- added some FreeBSD defaults regarding SSH - made port more PREFIX aware - changed maintainer PR: 191842 Submitted by: Gerard J. Cerchio and Lukasz Wasikowski (maintainer)
This commit is contained in:
parent
ef94ab18fd
commit
74a89ed6f9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364732
@ -3,10 +3,11 @@
|
||||
|
||||
PORTNAME= rkhunter
|
||||
PORTVERSION= 1.4.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= SF
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= lukasz@wasikowski.net
|
||||
COMMENT= Rootkit detection tool
|
||||
|
||||
LICENSE= GPLv2
|
||||
@ -27,8 +28,10 @@ LSOF_RUN_DEPENDS= lsof:${PORTSDIR}/sysutils/lsof
|
||||
NMAP_RUN_DEPENDS= nmap:${PORTSDIR}/security/nmap
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|{SHAREDIR}/man/man8|{PREFIX}/man/man8|g' \
|
||||
@${REINPLACE_CMD} -i '' -e 's|{SHAREDIR}/man/man8|{PREFIX}/man/man8|g' \
|
||||
${WRKSRC}/installer.sh
|
||||
@${REINPLACE_CMD} -i '' -e 's|RKHPREFIX|${PREFIX}|g' \
|
||||
${WRKSRC}/files/${PORTNAME}.conf
|
||||
|
||||
do-install:
|
||||
cd ${WRKSRC} && ./installer.sh --layout custom ${STAGEDIR}${PREFIX} --install
|
||||
@ -40,7 +43,7 @@ do-install:
|
||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/files/|} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
post-install:
|
||||
${REINPLACE_CMD} -i '' -e 's,${STAGEDIR},,' \
|
||||
@${REINPLACE_CMD} -i '' -e 's|${STAGEDIR}||g' \
|
||||
${STAGEDIR}${PREFIX}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf
|
||||
${INSTALL_DATA} ${WRKSRC}/files/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
||||
${INSTALL_DATA} -m 640 ${WRKSRC}/files/programs_bad.dat ${STAGEDIR}${PREFIX}/var/lib/${PORTNAME}/db/programs_bad.dat.sample
|
||||
|
@ -1,17 +1,60 @@
|
||||
--- files/rkhunter.conf.orig 2014-06-06 09:59:35.000000000 -0400
|
||||
+++ files/rkhunter.conf 2014-06-06 10:01:32.000000000 -0400
|
||||
@@ -575,6 +575,10 @@
|
||||
--- files/rkhunter.conf.orig 2014-01-25 22:29:51.000000000 +0100
|
||||
+++ files/rkhunter.conf 2014-08-11 23:18:14.887973000 +0200
|
||||
@@ -154,7 +154,7 @@
|
||||
# subsequently commented out or removed, then the program will assume a
|
||||
# default directory beneath the installation directory.
|
||||
#
|
||||
-#TMPDIR=/var/lib/rkhunter/tmp
|
||||
+TMPDIR=RKHPREFIX/var/lib/rkhunter/tmp
|
||||
|
||||
#
|
||||
# This option specifies the database directory to use.
|
||||
@@ -163,7 +163,7 @@
|
||||
# subsequently commented out or removed, then the program will assume a
|
||||
# default directory beneath the installation directory.
|
||||
#
|
||||
-#DBDIR=/var/lib/rkhunter/db
|
||||
+DBDIR=RKHPREFIX/var/lib/rkhunter/db
|
||||
|
||||
#
|
||||
# This option specifies the script directory to use.
|
||||
@@ -171,7 +171,7 @@
|
||||
# The installer program will set the default directory. If this default is
|
||||
# subsequently commented out or removed, then the program will not run.
|
||||
#
|
||||
-#SCRIPTDIR=/usr/local/lib/rkhunter/scripts
|
||||
+SCRIPTDIR=RKHPREFIX/lib/rkhunter/scripts
|
||||
|
||||
#
|
||||
# This option can be used to modify the command directory list used by rkhunter
|
||||
@@ -303,7 +303,7 @@
|
||||
#
|
||||
# The default value is '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
|
||||
@@ -317,7 +317,7 @@
|
||||
#
|
||||
# The default value is '0'.
|
||||
#
|
||||
-#ALLOW_SSH_PROT_V1=0
|
||||
+ALLOW_SSH_PROT_V1=2
|
||||
|
||||
#
|
||||
# This setting tells rkhunter the directory containing the SSH configuration
|
||||
@@ -575,6 +575,8 @@
|
||||
# The default value is the null string.
|
||||
#
|
||||
#SCRIPTWHITELIST=/usr/bin/groups
|
||||
+SCRIPTWHITELIST=/usr/bin/whatis
|
||||
+SCRIPTWHITELIST=/usr/sbin/adduser
|
||||
+SCRIPTWHITELIST=/usr/local/bin/GET
|
||||
+SCRIPTWHITELIST=/usr/local/sbin/pkgdb
|
||||
|
||||
#
|
||||
# Allow the specified file to have the immutable attribute set.
|
||||
@@ -584,6 +588,10 @@
|
||||
@@ -584,6 +586,10 @@
|
||||
# The default value is the null string.
|
||||
#
|
||||
#IMMUTWHITELIST=/sbin/ifdown
|
||||
@ -22,7 +65,7 @@
|
||||
|
||||
#
|
||||
# If this option is set to '1', then the immutable-bit test is reversed. That
|
||||
@@ -787,6 +795,7 @@
|
||||
@@ -787,6 +793,7 @@
|
||||
# The default value is the null string.
|
||||
#
|
||||
#UID0_ACCOUNTS=toor rooty
|
||||
@ -30,3 +73,10 @@
|
||||
|
||||
#
|
||||
# This option allows the specified accounts to have no password. NIS/YP entries
|
||||
@@ -1222,3 +1229,6 @@
|
||||
#
|
||||
#EMPTY_LOGFILES=""
|
||||
#MISSING_LOGFILES=""
|
||||
+
|
||||
+INSTALLDIR=RKHPREFIX
|
||||
+USER_FILEPROP_FILES_DIRS=RKHPREFIX/etc/rkhunter.conf
|
||||
|
Loading…
Reference in New Issue
Block a user