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

(-)osiris/Makefile (-9 / +17 lines)
Lines 6-14 Link Here
6
#
6
#
7
7
8
PORTNAME=	osiris
8
PORTNAME=	osiris
9
PORTVERSION=	4.1.2
9
PORTVERSION=	4.1.3
10
CATEGORIES=	security
10
CATEGORIES=	security
11
MASTER_SITES=	http://osiris.shmoo.com/data/
11
MASTER_SITES=	http://osiris.shmoo.com/data/ \
12
		http://darkambient.net/
12
13
13
MAINTAINER=	lx@redundancy.redundancy.org
14
MAINTAINER=	lx@redundancy.redundancy.org
14
COMMENT=	The Shmoo client/server host integrity checker
15
COMMENT=	The Shmoo client/server host integrity checker
Lines 18-25 Link Here
18
		CLI "Enable to build the management CLI" off
19
		CLI "Enable to build the management CLI" off
19
20
20
GNU_CONFIGURE=	yes
21
GNU_CONFIGURE=	yes
21
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
22
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL} \
23
			--enable-fancy-cli
22
USE_LIBTOOL_VER=	15
24
USE_LIBTOOL_VER=	15
25
USE_RC_SUBR=	yes
23
26
24
.include <bsd.port.pre.mk>
27
.include <bsd.port.pre.mk>
25
28
Lines 46-62 Link Here
46
	${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin
49
	${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin
47
.endif
50
.endif
48
.if !defined(WITHOUT_OSIRISD)
51
.if !defined(WITHOUT_OSIRISD)
49
	${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
52
	${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \
53
		-e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \
50
		${WRKSRC}/src/install/freebsd/osirisd.in > \
54
		${WRKSRC}/src/install/freebsd/osirisd.in > \
51
		${WRKSRC}/src/install/freebsd/osirisd.sh.sample
55
		${WRKSRC}/src/install/freebsd/osirisd.sh
52
	${INSTALL_PROGRAM} ${WRKSRC}/src/osirisd/osirisd ${PREFIX}/sbin
56
	${INSTALL_PROGRAM} ${WRKSRC}/src/osirisd/osirisd ${PREFIX}/sbin
53
	${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirisd.sh.sample \
57
	${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirisd.sh \
54
		${PREFIX}/etc/rc.d
58
		${PREFIX}/etc/rc.d
55
.endif
59
.endif
56
.if defined(WITH_OSIRISMD)
60
.if defined(WITH_OSIRISMD)
57
	${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
61
	${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \
62
		-e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \
58
		${WRKSRC}/src/install/freebsd/osirismd.in > \
63
		${WRKSRC}/src/install/freebsd/osirismd.in > \
59
		${WRKSRC}/src/install/freebsd/osirismd.sh.sample
64
		${WRKSRC}/src/install/freebsd/osirismd.sh
60
	@${MKDIR} ${PREFIX}/osiris/configs
65
	@${MKDIR} ${PREFIX}/osiris/configs
61
.for os in aix bsdos darwin freebsd irix linux netbsd openbsd sunos \
66
.for os in aix bsdos darwin freebsd irix linux netbsd openbsd sunos \
62
	unix-generic windows2000 windowsnt windowsserver2003 windowsxp \
67
	unix-generic windows2000 windowsnt windowsserver2003 windowsxp \
Lines 66-74 Link Here
66
.endfor
71
.endfor
67
	${INSTALL_PROGRAM} -m 4755 -o osiris -g osiris \
72
	${INSTALL_PROGRAM} -m 4755 -o osiris -g osiris \
68
		${WRKSRC}/src/osirismd/osirismd ${PREFIX}/sbin
73
		${WRKSRC}/src/osirismd/osirismd ${PREFIX}/sbin
69
	${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh.sample \
74
	${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh \
70
		${PREFIX}/etc/rc.d
75
		${PREFIX}/etc/rc.d
71
.endif
76
.endif
72
	${CHOWN} -R osiris:osiris ${PREFIX}/osiris
77
	${CHOWN} -R osiris:osiris ${PREFIX}/osiris
78
79
post-install:
80
	@${CAT} pkg-message
73
81
74
.include <bsd.port.post.mk>
82
.include <bsd.port.post.mk>
(-)osiris/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (osiris-4.1.2.tar.gz) = 697836f441bf8336ae6688ba1961605a
1
MD5 (osiris-4.1.3.tar.gz) = 1d3e250d1fcc3c654f5eda9d559c1f9a
2
SIZE (osiris-4.1.2.tar.gz) = 1883059
2
SIZE (osiris-4.1.3.tar.gz) = 1884877
(-)osiris/files/patch-osirisd-in (-16 lines)
Lines 1-16 Link Here
1
--- src/install/freebsd/osirisd.in.old	Wed Jul  7 15:40:50 2004
2
+++ src/install/freebsd/osirisd.in	Wed Jul  7 15:41:50 2004
3
@@ -1,11 +1,11 @@
4
 #!/bin/sh
5
 
6
-OSIRISD=@INSTALLDIR@/osirisd
7
+OSIRISD=%%PREFIX%%/sbin/osirisd
8
 
9
 case "$1" in
10
 	start)
11
 		if [ -x ${OSIRISD} ]; then
12
-			${OSIRISD} -r @OSIRISDIR@ && echo -n ' osirisd'
13
+			${OSIRISD} -r %%PREFIX%%/osiris && echo -n ' osirisd'
14
 		fi
15
 		;;
16
 	stop)
(-)osiris/files/patch-osirismd-in (-17 lines)
Lines 1-17 Link Here
1
--- src/install/freebsd/osirismd.in.old	Wed Jul  7 15:43:07 2004
2
+++ src/install/freebsd/osirismd.in	Wed Jul  7 15:43:48 2004
3
@@ -1,12 +1,12 @@
4
 #!/bin/sh
5
 
6
-OSIRISMD=@INSTALLDIR@/osirismd
7
+OSIRISMD=%%PREFIX%%/sbin/osirismd
8
 
9
 case "$1" in
10
 	start)
11
 		if [ -f ${SUDO} ]; then
12
 	    	    if [ -x ${OSIRISMD} ]; then
13
-			${OSIRISMD} -r @OSIRISDIR@ && echo -n ' osirismd'
14
+			${OSIRISMD} -r %%PREFIX%%/osiris && echo -n ' osirismd'
15
 		    fi
16
                 else
17
 		    echo ""
(-)osiris/files/patch-osirismd.in (+8 lines)
Line 0 Link Here
1
--- src/install/freebsd/osirismd.in.orig	Fri Mar 11 15:05:42 2005
2
+++ src/install/freebsd/osirismd.in	Fri Mar 11 15:06:03 2005
3
@@ -25,4 +25,5 @@
4
 rcvar=`set_rcvar`
5
 command=@INSTALLDIR@/osirismd
6
 
7
+load_rc_config $name
8
 run_rc_command "$1"
(-)osiris/pkg-message (+15 lines)
Line 0 Link Here
1
2
###############################################################
3
4
To start the osiris daemons at system boot, add:
5
6
osirisd_enable="YES"
7
8
and/or
9
10
osirismd_enable="YES"
11
12
to /etc/rc.conf.
13
14
###############################################################
15
(-)osiris/pkg-plist (-2 / +2 lines)
Lines 2-9 Link Here
2
%%CLI%%sbin/osiris
2
%%CLI%%sbin/osiris
3
%%OSIRISD%%sbin/osirisd
3
%%OSIRISD%%sbin/osirisd
4
%%OSIRISMD%%sbin/osirismd
4
%%OSIRISMD%%sbin/osirismd
5
%%OSIRISD%%etc/rc.d/osirisd.sh.sample
5
%%OSIRISD%%etc/rc.d/osirisd.sh
6
%%OSIRISMD%%etc/rc.d/osirismd.sh.sample
6
%%OSIRISMD%%etc/rc.d/osirismd.sh
7
@exec mkdir -p %D/osiris
7
@exec mkdir -p %D/osiris
8
@exec chown osiris:osiris %D/osiris
8
@exec chown osiris:osiris %D/osiris
9
%%OSIRISMD%%osiris/configs/default.aix
9
%%OSIRISMD%%osiris/configs/default.aix

Return to bug 78713