2003-07-11 22:11:11 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= osiris
|
2007-01-20 22:12:13 +01:00
|
|
|
PORTVERSION= 4.2.3
|
2009-05-12 13:28:17 +02:00
|
|
|
PORTREVISION= 1
|
2003-07-11 22:11:11 +02:00
|
|
|
CATEGORIES= security
|
2006-07-28 09:39:02 +02:00
|
|
|
MASTER_SITES= http://osiris.shmoo.com/data/ \
|
2006-07-26 09:51:52 +02:00
|
|
|
http://redundancy.redundancy.org/mirror/
|
2003-07-11 22:11:11 +02:00
|
|
|
|
2014-07-04 14:46:11 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-04-20 22:36:39 +02:00
|
|
|
COMMENT= The Shmoo client/server host integrity checker
|
2003-07-11 22:11:11 +02:00
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
OPTIONS_DEFINE= OSIRISMD OSIRISD PRINTDB CLI
|
|
|
|
OPTIONS_DEFAULT= OSIRISD
|
|
|
|
OSIRISMD_DESC= Enable to build the management daemon
|
|
|
|
OSIRISD_DESC= Enable to build the osirisd scan agent
|
|
|
|
PRINTDB_DESC= Build database print tool
|
|
|
|
CLI_DESC= Enable to build the management CLI
|
2005-02-05 19:46:16 +01:00
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2005-03-12 09:26:59 +01:00
|
|
|
USE_RC_SUBR= yes
|
2003-07-11 22:11:11 +02:00
|
|
|
|
2013-09-21 00:55:24 +02:00
|
|
|
NO_STAGE= yes
|
2005-02-05 19:46:16 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2009-05-12 13:28:17 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libreadline.so.6)
|
|
|
|
LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline
|
2005-04-17 16:25:33 +02:00
|
|
|
.endif
|
|
|
|
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MOSIRISMD}
|
2004-04-20 22:36:39 +02:00
|
|
|
PLIST_SUB+= OSIRISMD=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= OSIRISMD="@comment "
|
|
|
|
.endif
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ! ${PORT_OPTIONS:MOSIRISD}
|
2005-02-05 19:46:16 +01:00
|
|
|
PLIST_SUB+= OSIRISD="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= OSIRISD=""
|
|
|
|
.endif
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MCLI}
|
2005-02-05 19:46:16 +01:00
|
|
|
PLIST_SUB+= CLI=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= CLI="@comment "
|
|
|
|
.endif
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MPRINTDB}
|
2005-09-03 06:19:09 +02:00
|
|
|
PLIST_SUB+= PRINTDB=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PRINTDB="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MPRINTDB}
|
2005-09-03 06:19:09 +02:00
|
|
|
cd ${WRKSRC}/src/tools && ${MAKE}
|
|
|
|
.endif
|
2003-07-11 22:11:11 +02:00
|
|
|
|
2005-02-05 19:46:16 +01:00
|
|
|
do-install:
|
|
|
|
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
2005-02-08 16:41:07 +01:00
|
|
|
@${MKDIR} ${PREFIX}/osiris
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MCLI}
|
2005-02-05 19:46:16 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin
|
|
|
|
.endif
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MPRINTDB}
|
2005-09-03 06:19:09 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/tools/printdb ${PREFIX}/bin
|
|
|
|
.endif
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MOSIRISD}
|
2005-03-12 09:26:59 +01:00
|
|
|
${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \
|
|
|
|
-e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \
|
2004-04-20 22:36:39 +02:00
|
|
|
${WRKSRC}/src/install/freebsd/osirisd.in > \
|
2005-03-12 09:26:59 +01:00
|
|
|
${WRKSRC}/src/install/freebsd/osirisd.sh
|
2005-02-05 19:46:16 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/osirisd/osirisd ${PREFIX}/sbin
|
2005-03-12 09:26:59 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirisd.sh \
|
2005-02-05 19:46:16 +01:00
|
|
|
${PREFIX}/etc/rc.d
|
|
|
|
.endif
|
2013-04-28 23:02:39 +02:00
|
|
|
.if ${PORT_OPTIONS:MOSIRISMD}
|
2005-03-12 09:26:59 +01:00
|
|
|
${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \
|
|
|
|
-e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \
|
2004-04-20 22:36:39 +02:00
|
|
|
${WRKSRC}/src/install/freebsd/osirismd.in > \
|
2005-03-12 09:26:59 +01:00
|
|
|
${WRKSRC}/src/install/freebsd/osirismd.sh
|
2004-04-20 22:36:39 +02:00
|
|
|
@${MKDIR} ${PREFIX}/osiris/configs
|
2005-02-05 19:46:16 +01:00
|
|
|
.for os in aix bsdos darwin freebsd irix linux netbsd openbsd sunos \
|
|
|
|
unix-generic windows2000 windowsnt windowsserver2003 windowsxp \
|
|
|
|
wrt54g
|
2004-04-20 22:36:39 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/configs/default.${os} \
|
|
|
|
${PREFIX}/osiris/configs
|
2003-07-11 22:11:11 +02:00
|
|
|
.endfor
|
2005-02-05 19:46:16 +01:00
|
|
|
${INSTALL_PROGRAM} -m 4755 -o osiris -g osiris \
|
|
|
|
${WRKSRC}/src/osirismd/osirismd ${PREFIX}/sbin
|
2005-03-12 09:26:59 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh \
|
2004-04-20 22:36:39 +02:00
|
|
|
${PREFIX}/etc/rc.d
|
|
|
|
.endif
|
2005-02-08 16:41:07 +01:00
|
|
|
${CHOWN} -R osiris:osiris ${PREFIX}/osiris
|
2003-07-11 22:11:11 +02:00
|
|
|
|
2005-03-12 09:26:59 +01:00
|
|
|
post-install:
|
2005-03-14 19:03:58 +01:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2005-03-12 09:26:59 +01:00
|
|
|
|
2005-02-05 19:46:16 +01:00
|
|
|
.include <bsd.port.post.mk>
|