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

(-)rkhunter/Makefile (-23 / +12 lines)
Lines 1-12 Link Here
1
# New ports collection makefile for:	rkhunter
1
# New ports collection makefile for:	rkhunter
2
# Date created:		15 May 2004
2
# Date created:		25 Jul 2004
3
# Whom:			Radim Kolar
3
# Whom:			bugghy <bugghy@SAFe-mail.net>
4
#
4
#
5
# $FreeBSD: ports/security/rkhunter/Makefile,v 1.1 2004/05/15 14:00:59 krion Exp $
5
# $FreeBSD: ports/security/rkhunter/Makefile,v 1.1 2004/05/15 14:00:59 krion Exp $
6
#
6
#
7
7
8
PORTNAME=	rkhunter
8
PORTNAME=	rkhunter
9
PORTVERSION=	1.0.8
9
PORTVERSION=	1.1.3
10
CATEGORIES=	security
10
CATEGORIES=	security
11
MASTER_SITES=	http://downloads.rootkit.nl/
11
MASTER_SITES=	http://downloads.rootkit.nl/
12
12
Lines 20-49 Link Here
20
NO_BUILD=	yes
20
NO_BUILD=	yes
21
USE_REINPLACE=	yes
21
USE_REINPLACE=	yes
22
22
23
PLIST_DIRS=	rkhunter/scripts rkhunter/db rkhunter/docs rkhunter/tmp rkhunter
24
PLIST_FILES=	rkhunter/scripts/check_modules.pl \
25
		rkhunter/scripts/check_port.pl \
26
		rkhunter/scripts/filehashmd5.pl \
27
		rkhunter/scripts/filehashsha1.pl \
28
		bin/rkhunter \
29
		etc/rkhunter.conf \
30
		rkhunter/scripts/showfiles.pl \
31
		rkhunter/db/backdoorports.dat \
32
		rkhunter/db/mirrors.dat \
33
		rkhunter/db/os.dat \
34
		rkhunter/db/defaulthashes.dat \
35
		rkhunter/db/md5blacklist.dat \
36
		rkhunter/docs/CHANGELOG \
37
		rkhunter/docs/README \
38
		rkhunter/docs/WISHLIST
39
40
MAN8=		rkhunter.8
23
MAN8=		rkhunter.8
41
MANCOMPRESSED=	no
24
MANCOMPRESSED=	no
42
25
43
pre-install:
44
		${REINPLACE_CMD} -e "s,/usr/local,${PREFIX},g" ${WRKSRC}/installer.sh
45
do-install:
26
do-install:
46
		cd ${WRKSRC} && ./installer.sh
27
		cd ${WRKSRC} && ./installer.sh --installdir ${PREFIX}
47
		${INSTALL_MAN} ${WRKSRC}/files/development/rkhunter.8 ${MAN8PREFIX}/man/man8
28
		${INSTALL_MAN} ${WRKSRC}/files/development/rkhunter.8 ${MAN8PREFIX}/man/man8
29
.if !defined(NOPORTDOCS)
30
		${MKDIR} ${DOCSDIR}
31
		${INSTALL_DATA} ${WRKSRC}/files/CHANGELOG ${DOCSDIR}
32
		${INSTALL_DATA} ${WRKSRC}/files/README ${DOCSDIR}
33
		${INSTALL_DATA} ${WRKSRC}/files/WISHLIST ${DOCSDIR}
34
.endif
35
36
		@${SED} -e 's!PREFIX!${PREFIX}!g' ${.CURDIR}/pkg-message
48
37
49
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)rkhunter/PROBLEM (+8 lines)
Line 0 Link Here
1
1.         t18="See /usr/local/rkhunter/docs for more information. Run 'rkhunter'"
2
		it's hardcoded (fbsd uses /usr/local/share/doc/rkhunter)
3
4
2.
5
6
-verwrite:showfiles.pl:/scripts/showfiles.pl:Directory%%viewer
7
+overwrite:showfiles.pl:/scripts/showfiles.pl:Directory%%viewer
8
(-)rkhunter/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (rkhunter-1.0.8.tar.gz) = bc1006d36e5b2674985c9396b5c46c95
1
MD5 (rkhunter-1.1.3.tar.gz) = 62271204de0fa0d2bf1b8489b1458dc7
2
SIZE (rkhunter-1.0.8.tar.gz) = 77582
2
SIZE (rkhunter-1.1.3.tar.gz) = 98309
(-)rkhunter/files/patch-installer.sh (+86 lines)
Line 0 Link Here
1
--- installer.sh.orig	Sun Jul 25 16:20:28 2004
2
+++ installer.sh	Sun Jul 25 17:19:48 2004
3
@@ -69,6 +69,7 @@
4
           ;;
5
       *)
6
           echo "Wrong parameter"
7
+          exit
8
 	  ;;
9
   esac
10
   shift
11
@@ -111,21 +112,18 @@
12
 overwrite:check_port.pl:/scripts/check_port.pl:Portscanner
13
 overwrite:filehashmd5.pl:/scripts/filehashmd5.pl:MD5%%Digest%%generator
14
 overwrite:filehashsha1.pl:/scripts/filehashsha1.pl:SHA1%%Digest%%generator
15
-verwrite:showfiles.pl:/scripts/showfiles.pl:Directory%%viewer
16
+overwrite:showfiles.pl:/scripts/showfiles.pl:Directory%%viewer
17
 overwrite:backdoorports.dat:/db/backdoorports.dat:Database%%Backdoor%%ports
18
 overwrite:mirrors.dat:/db/mirrors.dat:Database%%Update%%mirrors
19
 overwrite:os.dat:/db/os.dat:Database%%Operating%%Systems
20
 overwrite:defaulthashes.dat:/db/defaulthashes.dat:Database%%Default%%file%%hashes
21
 overwrite:md5blacklist.dat:/db/md5blacklist.dat:Database%%MD5%%blacklisted%%files
22
-overwrite:CHANGELOG:/docs/CHANGELOG:Changelog
23
-overwrite:README:/docs/README:Readme%%and%%FAQ
24
-overwrite:WISHLIST:/docs/WISHLIST:Wishlist%%and%%TODO
25
 "
26
 
27
 # Prefix: INSTALLDIR
28
 INSTALLFILES2="
29
-overwrite:rkhunter.conf:/usr/local/etc/rkhunter.conf:RK%%Hunter%%configuration%%file
30
-overwrite:rkhunter:/usr/local/bin/rkhunter:RK%%Hunter%%binary
31
+overwrite:rkhunter.conf:/etc/rkhunter.conf.sample:RK%%Hunter%%configuration%%file
32
+overwrite:rkhunter:/bin/rkhunter:RK%%Hunter%%binary
33
 "
34
 
35
 # Create directories (only if they do not exist)
36
@@ -134,10 +132,7 @@
37
 ${INSTALLDIR}/etc
38
 ${INSTALLDIR}/bin
39
 ${INSTALLDIR}/lib/rkhunter/db
40
-${INSTALLDIR}/lib/rkhunter/docs
41
 ${INSTALLDIR}/lib/rkhunter/scripts
42
-${INSTALLDIR}/lib/rkhunter/tmp
43
-/usr/local/etc
44
 "
45
 
46
 CHECKDIR="/usr/local"
47
@@ -345,8 +340,6 @@
48
 
49
 
50
 # Clean active window
51
-clear
52
-
53
 echo "${INSTALLER_NAME} ${INSTALLER_VERSION} (${INSTALLER_COPYRIGHT})"
54
 echo $ECHOOPT "---------------"
55
 echo "Starting installation/update"
56
@@ -467,7 +460,7 @@
57
   if [ -f ${INSTALLPREFIX}${CURFILE} ]
58
     then
59
       #error redirection in .rkhunter it's just for a clear display if user run not as root
60
-      cp -f ${INSTALLPREFIX}${CURFILE} ${NEWFILE} 2> ~/.rkhunter.log
61
+      cp -f ${INSTALLPREFIX}${CURFILE} "${INSTALLDIR}/${NEWFILE}" 2> ~/.rkhunter.log
62
       if [ $? -eq 0 ]
63
         then
64
 	  echo $E "OK"
65
@@ -482,10 +475,10 @@
66
  
67
 done
68
 
69
-INSTALLDIRCHECK=`cat /usr/local/etc/rkhunter.conf | grep "INSTALLDIR="`
70
+INSTALLDIRCHECK=`cat $INSTALLDIR/etc/rkhunter.conf.sample | grep "INSTALLDIR="`
71
 if [ "${INSTALLDIRCHECK}" = "" ]
72
   then
73
-    echo "INSTALLDIR=${INSTALLDIR}" >> /usr/local/etc/rkhunter.conf
74
+    echo "INSTALLDIR=${INSTALLDIR}" >> $INSTALLDIR/etc/rkhunter.conf.sample
75
     echo "Configuration updated with installation path (${INSTALLDIR})"
76
   else
77
     echo "Configuration already updated."
78
@@ -495,7 +488,7 @@
79
 then
80
 	echo ""
81
 	echo $E "$t17"
82
-	echo "$t18 (/usr/local/bin/rkhunter)"
83
+	echo "$t18 (${INSTALLDIR}/bin/rkhunter)"
84
 else
85
 	echo ""
86
 	echo $E "$t19"
(-)rkhunter/files/patch-rkhunter.conf (+11 lines)
Line 0 Link Here
1
--- files/rkhunter.conf.orig	Sun Jul 25 17:08:25 2004
2
+++ files/rkhunter.conf		Sun Jul 25 17:08:48 2004
3
@@ -8,7 +8,7 @@
4
 
5
 # Use a custom temporary directory (you can override it with the
6
 # --tmpdir parameter)
7
-#TMPDIR=/tmp
8
+TMPDIR=/tmp
9
 
10
 # Use a custom database directory (you can override it with the
11
 # --dbdir parameter)
(-)rkhunter/pkg-descr (+4 lines)
Lines 12-14 Link Here
12
- Optional scan within plaintext and binary files
12
- Optional scan within plaintext and binary files
13
13
14
WWW: http://www.rootkit.nl/ 
14
WWW: http://www.rootkit.nl/ 
15
16
- bugghy
17
bugghy@SAFe-mail.net
18
(-)rkhunter/pkg-message (+7 lines)
Line 0 Link Here
1
2
#############################################################################
3
  Installed additional documentation in: PREFIX/share/doc/rkhunter
4
  Copy PREFIX/etc/rkhunter.conf.sample to PREFIX/etc/rkhunter.conf
5
#############################################################################
6
7
(-)rkhunter/pkg-plist (+19 lines)
Line 0 Link Here
1
etc/rkhunter.conf.sample
2
bin/rkhunter
3
lib/rkhunter/db/backdoorports.dat
4
lib/rkhunter/db/mirrors.dat
5
lib/rkhunter/db/os.dat
6
lib/rkhunter/db/defaulthashes.dat
7
lib/rkhunter/db/md5blacklist.dat
8
lib/rkhunter/scripts/check_modules.pl
9
lib/rkhunter/scripts/check_port.pl
10
lib/rkhunter/scripts/filehashmd5.pl
11
lib/rkhunter/scripts/filehashsha1.pl
12
lib/rkhunter/scripts/showfiles.pl
13
@dirrm lib/rkhunter/scripts
14
@dirrm lib/rkhunter/db
15
@dirrm lib/rkhunter
16
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
17
%%PORTDOCS%%%%DOCSDIR%%/README
18
%%PORTDOCS%%%%DOCSDIR%%/WISHLIST
19
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 69574