2003-07-11 22:11:11 +02:00
|
|
|
# New ports collection Makefile for: osiris
|
|
|
|
# Date created: 10, February 2003
|
|
|
|
# Whom: Nicolas Jombart <ecu@ipv42.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= osiris
|
2005-09-03 06:19:09 +02:00
|
|
|
PORTVERSION= 4.1.9
|
2003-07-11 22:11:11 +02:00
|
|
|
CATEGORIES= security
|
2005-09-03 06:19:09 +02:00
|
|
|
MASTER_SITES= http://www.hostintegrity.com/osiris/data/ \
|
2005-03-12 09:26:59 +01:00
|
|
|
http://darkambient.net/
|
2003-07-11 22:11:11 +02:00
|
|
|
|
2004-04-20 22:36:39 +02:00
|
|
|
MAINTAINER= lx@redundancy.redundancy.org
|
|
|
|
COMMENT= The Shmoo client/server host integrity checker
|
2003-07-11 22:11:11 +02:00
|
|
|
|
2005-09-07 14:34:21 +02:00
|
|
|
OPTIONS= OSIRISMD "Enable to build the management daemon" off \
|
|
|
|
OSIRISD "Enable to build the osirisd scan agent" on \
|
|
|
|
PRINTDB "Build database print tool" off \
|
|
|
|
CLI "Enable to build the management CLI" off
|
2005-02-05 19:46:16 +01:00
|
|
|
|
2005-04-17 16:25:33 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2005-11-15 07:52:12 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2005-03-12 09:26:59 +01:00
|
|
|
USE_RC_SUBR= yes
|
2003-07-11 22:11:11 +02:00
|
|
|
|
2005-02-05 19:46:16 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-04-17 16:25:33 +02:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
|
|
|
|
.endif
|
|
|
|
|
2004-04-20 22:36:39 +02:00
|
|
|
.if defined(WITH_OSIRISMD)
|
|
|
|
PLIST_SUB+= OSIRISMD=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= OSIRISMD="@comment "
|
|
|
|
.endif
|
2005-02-05 19:46:16 +01:00
|
|
|
.if defined(WITHOUT_OSIRISD)
|
|
|
|
PLIST_SUB+= OSIRISD="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= OSIRISD=""
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_CLI)
|
|
|
|
PLIST_SUB+= CLI=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= CLI="@comment "
|
|
|
|
.endif
|
2005-09-03 06:19:09 +02:00
|
|
|
.if defined(WITH_PRINTDB)
|
|
|
|
PLIST_SUB+= PRINTDB=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= PRINTDB="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.if defined(WITH_PRINTDB)
|
|
|
|
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
|
2005-02-05 19:46:16 +01:00
|
|
|
.if defined(WITH_CLI)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin
|
|
|
|
.endif
|
2005-09-03 06:19:09 +02:00
|
|
|
.if defined(WITH_PRINTDB)
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/tools/printdb ${PREFIX}/bin
|
|
|
|
.endif
|
2005-02-05 19:46:16 +01:00
|
|
|
.if !defined(WITHOUT_OSIRISD)
|
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
|
2004-04-20 22:36:39 +02:00
|
|
|
.if defined(WITH_OSIRISMD)
|
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>
|