aboutsummaryrefslogtreecommitdiff
path: root/security/rkhunter
diff options
context:
space:
mode:
authorSofian Brabez <sbz@FreeBSD.org>2011-04-20 12:53:50 +0000
committerSofian Brabez <sbz@FreeBSD.org>2011-04-20 12:53:50 +0000
commitb453467aa4d4778964026231b0e083c198871d01 (patch)
treeed9f4022ddaae576c3cc1d7d6eb700b0f2099b52 /security/rkhunter
parent83630e44e3799a53747ced22f66f33aa72f6d5aa (diff)
- Install sample configuration file
- Add LICENSE PR: ports/153024 Submitted by: Trond Endrestøl <Trond.Endrestol at ximalas.info> Approved by: jadawin@ (mentor)
Notes
Notes: svn path=/head/; revision=272952
Diffstat (limited to 'security/rkhunter')
-rw-r--r--security/rkhunter/Makefile8
-rw-r--r--security/rkhunter/pkg-plist3
2 files changed, 11 insertions, 0 deletions
diff --git a/security/rkhunter/Makefile b/security/rkhunter/Makefile
index 4e00da096843..af6c28905542 100644
--- a/security/rkhunter/Makefile
+++ b/security/rkhunter/Makefile
@@ -7,12 +7,16 @@
PORTNAME= rkhunter
PORTVERSION= 1.3.8
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= sbz@FreeBSD.org
COMMENT= Rootkit detection tool
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/files/LICENSE
+
OPTIONS= LSOF "Use LSOF" on \
NMAP "Use NMAP" off
@@ -54,6 +58,10 @@ do-install:
.endif
post-install:
+ ${INSTALL_DATA} ${WRKSRC}/files/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
+ @if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc; \
+ fi
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
diff --git a/security/rkhunter/pkg-plist b/security/rkhunter/pkg-plist
index dca4f2b4bbfa..1e81aec740d8 100644
--- a/security/rkhunter/pkg-plist
+++ b/security/rkhunter/pkg-plist
@@ -16,6 +16,9 @@ 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 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
var/lib/rkhunter/tmp/group
var/lib/rkhunter/tmp/passwd
@dirrmtry etc/periodic/security