View | Details | Raw Unified | Return to bug 102968
Collapse All | Expand All

(-)Makefile (-3 / +6 lines)
Lines 7-17 Link Here
7
7
8
PORTNAME=	rkhunter
8
PORTNAME=	rkhunter
9
PORTVERSION=	1.2.8
9
PORTVERSION=	1.2.8
10
PORTREVISION=	2
10
PORTREVISION=	3
11
CATEGORIES=	security
11
CATEGORIES=	security
12
MASTER_SITES=	http://downloads.rootkit.nl/
12
MASTER_SITES=	http://downloads.rootkit.nl/
13
13
14
MAINTAINER=	ports@FreeBSD.org
14
MAINTAINER=	gkovesdan@t-hosting.hu
15
COMMENT=	Rootkit detection tool
15
COMMENT=	Rootkit detection tool
16
16
17
OPTIONS=	LSOF "Use LSOF" on \
17
OPTIONS=	LSOF "Use LSOF" on \
Lines 23-28 Link Here
23
WRKSRC=		${WRKDIR}/${PORTNAME}
23
WRKSRC=		${WRKDIR}/${PORTNAME}
24
USE_PERL5=	yes
24
USE_PERL5=	yes
25
NO_BUILD=	yes
25
NO_BUILD=	yes
26
SUB_FILES=	415.rkhunter
26
27
27
MAN8=		rkhunter.8
28
MAN8=		rkhunter.8
28
MANCOMPRESSED=	no
29
MANCOMPRESSED=	no
Lines 42-53 Link Here
42
do-install:
43
do-install:
43
	cd ${WRKSRC} && ./installer.sh --installdir ${PREFIX}
44
	cd ${WRKSRC} && ./installer.sh --installdir ${PREFIX}
44
	${INSTALL_MAN} ${WRKSRC}/files/development/rkhunter.8 ${MAN8PREFIX}/man/man8
45
	${INSTALL_MAN} ${WRKSRC}/files/development/rkhunter.8 ${MAN8PREFIX}/man/man8
46
	@${MKDIR} ${PREFIX}/etc/periodic/security
47
	${INSTALL_DATA} ${WRKDIR}/415.rkhunter ${PREFIX}/etc/periodic/security
45
.if !defined(NOPORTDOCS)
48
.if !defined(NOPORTDOCS)
46
	@${MKDIR} ${DOCSDIR}
49
	@${MKDIR} ${DOCSDIR}
47
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/files/|} ${DOCSDIR}
50
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/files/|} ${DOCSDIR}
48
.endif
51
.endif
49
52
50
post-install:
53
post-install:
51
	    @${CAT} ${PKGMESSAGE}
54
	@${CAT} ${PKGMESSAGE}
52
55
53
.include <bsd.port.post.mk>
56
.include <bsd.port.post.mk>
(-)pkg-message (-5 / +11 lines)
Lines 1-8 Link Here
1
1
2
**********************************************
2
******************************************************************************
3
NOTICE:
4
3
5
     Keep your database up-to-date by running
4
You should keep your rkhunter database up-to-date.
6
     "rkhunter --update" frequently.
5
This can be done automatically by putting this line to /etc/periodic.conf:
7
6
8
**********************************************
7
daily_rkhunter_update_enable="YES"
8
9
Also, you can run rkhunter as a part of the daily security check by
10
putting this line to /etc/periodic.conf:
11
12
daily_rkhunter_check_enable="YES"
13
14
******************************************************************************
(-)pkg-plist (+1 lines)
Lines 1-6 Link Here
1
bin/rkhunter
1
bin/rkhunter
2
@unexec if cmp -s %D/etc/rkhunter.conf %D/etc/rkhunter.conf.sample; then rm -f %D/etc/rkhunter.conf; fi
2
@unexec if cmp -s %D/etc/rkhunter.conf %D/etc/rkhunter.conf.sample; then rm -f %D/etc/rkhunter.conf; fi
3
etc/rkhunter.conf.sample
3
etc/rkhunter.conf.sample
4
etc/periodic/security/155.rkhunter
4
lib/rkhunter/db/backdoorports.dat
5
lib/rkhunter/db/backdoorports.dat
5
lib/rkhunter/db/defaulthashes.dat
6
lib/rkhunter/db/defaulthashes.dat
6
lib/rkhunter/db/md5blacklist.dat
7
lib/rkhunter/db/md5blacklist.dat
(-)files/415.rkhunter.in (+33 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# This is a maintenance shell script for the rkhunter security tool.
6
# You can enable this script in /etc/periodic.conf file by putting these lines into it:
7
#	daily_rkhunter_update_enable="YES"
8
#	daily_rkhunter_check_enable="YES"
9
#
10
# Written by: Gabor Kovesdan <gabor@FreeBSD.org>
11
12
if [ -r /etc/defaults/periodic.conf ]; then
13
   . /etc/defaults/periodic.conf
14
   source_periodic_confs
15
fi
16
17
case "$daily_rkhunter_update_enable" in
18
  [Yy][Ee][Ss])
19
20
	echo ""
21
	echo "Updating the rkhunter database..."
22
	%%PREFIX%%/bin/rkhunter --update
23
	;;
24
esac
25
26
case "$daily_rkhunter_check_enable" in
27
  [Yy][Ee][Ss])
28
29
	echo ""
30
	echo "Running rkhunter..."
31
	%%PREFIX%%/bin/rkhunter --checkall --cronjob --skip-keypress
32
	;;
33
esac

Return to bug 102968