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

(-)osiris.new/Makefile (-20 / +33 lines)
Lines 6-60 Link Here
6
#
6
#
7
7
8
PORTNAME=	osiris
8
PORTNAME=	osiris
9
PORTVERSION=	4.0.8
9
PORTVERSION=	4.1.1
10
CATEGORIES=	security
10
CATEGORIES=	security
11
MASTER_SITES=	http://osiris.shmoo.com/data/
11
MASTER_SITES=	http://osiris.shmoo.com/data/
12
12
13
MAINTAINER=	lx@redundancy.redundancy.org
13
MAINTAINER=	lx@redundancy.redundancy.org
14
COMMENT=	The Shmoo client/server host integrity checker
14
COMMENT=	The Shmoo client/server host integrity checker
15
15
16
OPTIONS=	OSIRISMD "Enable to build the management daemon" off \
17
		OSIRISD "Enable to build the osirisd scan agent" on \
18
		CLI "Enable to build the management CLI" off
19
16
GNU_CONFIGURE=	yes
20
GNU_CONFIGURE=	yes
17
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
21
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
18
USE_LIBTOOL_VER=	15
22
USE_LIBTOOL_VER=	15
19
23
24
.include <bsd.port.pre.mk>
25
20
.if defined(WITH_OSIRISMD)
26
.if defined(WITH_OSIRISMD)
21
PLIST_SUB+=	OSIRISMD=""
27
PLIST_SUB+=	OSIRISMD=""
22
.else
28
.else
23
PLIST_SUB+=	OSIRISMD="@comment "
29
PLIST_SUB+=	OSIRISMD="@comment "
24
.endif
30
.endif
31
.if defined(WITH_OSIRISD)
32
PLIST_SUB+=	OSIRISD=""
33
.else
34
PLIST_SUB+=	OSIRISD="@comment "
35
.endif
36
.if defined(WITH_CLI)
37
PLIST_SUB+=	CLI=""
38
.else
39
PLIST_SUB+=	CLI="@comment "
40
.endif
25
41
26
pre-everything::
42
do-install:
27
	@${ECHO_MSG}
43
	${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
28
	@${ECHO_MSG} "Define WITH_OSIRISMD to enable build of the management daemon."
44
.if defined(WITH_CLI)
29
	@${ECHO_MSG}
45
	${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin
30
46
.endif
31
post-build:
47
.if defined(WITH_OSIRISD)
32
	${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
48
	${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
33
		${WRKSRC}/src/install/freebsd/osirisd.in > \
49
		${WRKSRC}/src/install/freebsd/osirisd.in > \
34
		${WRKSRC}/src/install/freebsd/osirisd.sh.sample
50
		${WRKSRC}/src/install/freebsd/osirisd.sh.sample
51
	${INSTALL_PROGRAM} ${WRKSRC}/src/osirisd/osirisd ${PREFIX}/sbin
52
	${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirisd.sh.sample \
53
		${PREFIX}/etc/rc.d
54
.endif
35
.if defined(WITH_OSIRISMD)
55
.if defined(WITH_OSIRISMD)
36
	${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
56
	${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \
37
		${WRKSRC}/src/install/freebsd/osirismd.in > \
57
		${WRKSRC}/src/install/freebsd/osirismd.in > \
38
		${WRKSRC}/src/install/freebsd/osirismd.sh.sample
58
		${WRKSRC}/src/install/freebsd/osirismd.sh.sample
39
.endif
40
41
do-install:
42
	${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
43
	@${MKDIR} ${PREFIX}/osiris/configs
59
	@${MKDIR} ${PREFIX}/osiris/configs
44
.for os in aix bsdos darwin freebsd irix linux openbsd sunos unix-generic \
60
.for os in aix bsdos darwin freebsd irix linux netbsd openbsd sunos \
45
	windows2000 windowsnt windowsserver2003 windowsxp
61
	unix-generic windows2000 windowsnt windowsserver2003 windowsxp \
62
	wrt54g
46
	${INSTALL_DATA} ${WRKSRC}/src/configs/default.${os} \
63
	${INSTALL_DATA} ${WRKSRC}/src/configs/default.${os} \
47
		${PREFIX}/osiris/configs
64
		${PREFIX}/osiris/configs
48
.endfor
65
.endfor
49
	${CHOWN} -R osiris:osiris ${PREFIX}/osiris
66
	${CHOWN} -R osiris:osiris ${PREFIX}/osiris
50
	${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin
67
	${INSTALL_PROGRAM} -m 4755 -o osiris -g osiris \
51
	${INSTALL_PROGRAM} ${WRKSRC}/src/osirisd/osirisd ${PREFIX}/sbin
68
		${WRKSRC}/src/osirismd/osirismd ${PREFIX}/sbin
52
	${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirisd.sh.sample \
53
		${PREFIX}/etc/rc.d
54
.if defined(WITH_OSIRISMD)
55
	${INSTALL_PROGRAM} ${WRKSRC}/src/osirismd/osirismd ${PREFIX}/sbin
56
	${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh.sample \
69
	${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh.sample \
57
		${PREFIX}/etc/rc.d
70
		${PREFIX}/etc/rc.d
58
.endif
71
.endif
59
72
60
.include <bsd.port.mk>
73
.include <bsd.port.post.mk>
(-)osiris.new/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (osiris-4.0.8.tar.gz) = 593eee1967a14e519e27de88f75c9cad
1
MD5 (osiris-4.1.1.tar.gz) = ae7b255492320c9e37d73c8122fc4be9
2
SIZE (osiris-4.0.8.tar.gz) = 1896413
2
SIZE (osiris-4.1.1.tar.gz) = 1882582
(-)osiris.new/pkg-install (-1 / +1 lines)
Lines 56-62 Link Here
56
	echo "You need a user \"${u}\"."
56
	echo "You need a user \"${u}\"."
57
	if which -s pw && yesno "Would you like me to create it" y
57
	if which -s pw && yesno "Would you like me to create it" y
58
	then
58
	then
59
	    pw useradd ${u} -g ${g} -h - -d /usr/local/etc/osiris -s /sbin/nologin -c "${gcos}" || exit
59
	    pw useradd ${u} -g ${g} -h - -d /nonexistent -s /sbin/nologin -c "${gcos}" || exit
60
	    echo "Done."
60
	    echo "Done."
61
	else
61
	else
62
	    echo "Please create it, and try again."
62
	    echo "Please create it, and try again."
(-)osiris.new/pkg-plist (-17 / +19 lines)
Lines 1-21 Link Here
1
@comment $FreeBSD: ports/security/osiris/pkg-plist,v 1.4 2004/11/27 06:01:29 edwin Exp $
1
@comment $FreeBSD: ports/security/osiris/pkg-plist,v 1.4 2004/11/27 06:01:29 edwin Exp $
2
sbin/osiris
2
%%CLI%%sbin/osiris
3
sbin/osirisd
3
%%OSIRISD%%sbin/osirisd
4
%%OSIRISMD%%sbin/osirismd
4
%%OSIRISMD%%sbin/osirismd
5
etc/rc.d/osirisd.sh.sample
5
%%OSIRISD%%etc/rc.d/osirisd.sh.sample
6
%%OSIRISMD%%etc/rc.d/osirismd.sh.sample
6
%%OSIRISMD%%etc/rc.d/osirismd.sh.sample
7
osiris/configs/default.aix
7
%%OSIRISMD%%osiris/configs/default.aix
8
osiris/configs/default.bsdos
8
%%OSIRISMD%%osiris/configs/default.bsdos
9
osiris/configs/default.darwin
9
%%OSIRISMD%%osiris/configs/default.darwin
10
osiris/configs/default.freebsd
10
%%OSIRISMD%%osiris/configs/default.freebsd
11
osiris/configs/default.irix
11
%%OSIRISMD%%osiris/configs/default.irix
12
osiris/configs/default.linux
12
%%OSIRISMD%%osiris/configs/default.linux
13
osiris/configs/default.openbsd
13
%%OSIRISMD%%osiris/configs/default.netbsd
14
osiris/configs/default.sunos
14
%%OSIRISMD%%osiris/configs/default.openbsd
15
osiris/configs/default.unix-generic
15
%%OSIRISMD%%osiris/configs/default.sunos
16
osiris/configs/default.windows2000
16
%%OSIRISMD%%osiris/configs/default.unix-generic
17
osiris/configs/default.windowsnt
17
%%OSIRISMD%%osiris/configs/default.windows2000
18
osiris/configs/default.windowsserver2003
18
%%OSIRISMD%%osiris/configs/default.windowsnt
19
osiris/configs/default.windowsxp
19
%%OSIRISMD%%osiris/configs/default.windowsserver2003
20
@dirrm osiris/configs
20
%%OSIRISMD%%osiris/configs/default.windowsxp
21
%%OSIRISMD%%osiris/configs/default.wrt54g
22
%%OSIRISMD%%@dirrm osiris/configs
21
@dirrm osiris
23
@dirrm osiris

Return to bug 77110