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> |