diff options
author | pawel <pawel@FreeBSD.org> | 2014-07-11 18:46:40 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-07-11 18:46:40 +0800 |
commit | eaec2ae946ccc570571a73681ad9348f31227595 (patch) | |
tree | c294690bf208fce302eae97e85bbc5fd6607843e /security/osiris | |
parent | bd60e6c026a5549f52907d7430e80ccb3e1630c4 (diff) | |
download | freebsd-ports-gnome-eaec2ae946ccc570571a73681ad9348f31227595.tar.gz freebsd-ports-gnome-eaec2ae946ccc570571a73681ad9348f31227595.tar.zst freebsd-ports-gnome-eaec2ae946ccc570571a73681ad9348f31227595.zip |
- Add staging support, allow it as regular user
- Use options subs
- Update options descriptions to current standards
Diffstat (limited to 'security/osiris')
-rw-r--r-- | security/osiris/Makefile | 65 | ||||
-rw-r--r-- | security/osiris/pkg-plist | 8 |
2 files changed, 28 insertions, 45 deletions
diff --git a/security/osiris/Makefile b/security/osiris/Makefile index 7b62c303320f..119c0770d3c9 100644 --- a/security/osiris/Makefile +++ b/security/osiris/Makefile @@ -7,90 +7,65 @@ CATEGORIES= security MASTER_SITES= http://osiris.shmoo.com/data/ \ http://redundancy.redundancy.org/mirror/ -MAINTAINER= ports@FreeBSD.org -COMMENT= The Shmoo client/server host integrity checker +MAINTAINER= ports@FreeBSD.org +COMMENT= Shmoo client/server host integrity checker + +GNU_CONFIGURE= yes +USE_RC_SUBR= yes 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 +OPTIONS_SUB= yes -GNU_CONFIGURE= yes -USE_RC_SUBR= yes +OSIRISMD_DESC= Management daemon +OSIRISD_DESC= Scan agent +PRINTDB_DESC= Database print tool +CLI_DESC= Management CLI -NO_STAGE= yes .include <bsd.port.pre.mk> .if exists(${LOCALBASE}/lib/libreadline.so.6) LIB_DEPENDS+= readline.6:${PORTSDIR}/devel/readline .endif -.if ${PORT_OPTIONS:MOSIRISMD} -PLIST_SUB+= OSIRISMD="" -.else -PLIST_SUB+= OSIRISMD="@comment " -.endif -.if ! ${PORT_OPTIONS:MOSIRISD} -PLIST_SUB+= OSIRISD="@comment " -.else -PLIST_SUB+= OSIRISD="" -.endif -.if ${PORT_OPTIONS:MCLI} -PLIST_SUB+= CLI="" -.else -PLIST_SUB+= CLI="@comment " -.endif -.if ${PORT_OPTIONS:MPRINTDB} -PLIST_SUB+= PRINTDB="" -.else -PLIST_SUB+= PRINTDB="@comment " -.endif - post-build: .if ${PORT_OPTIONS:MPRINTDB} cd ${WRKSRC}/src/tools && ${MAKE} .endif do-install: - ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL - @${MKDIR} ${PREFIX}/osiris + @${MKDIR} ${STAGEDIR}${PREFIX}/osiris .if ${PORT_OPTIONS:MCLI} - ${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${STAGEDIR}${PREFIX}/sbin .endif .if ${PORT_OPTIONS:MPRINTDB} - ${INSTALL_PROGRAM} ${WRKSRC}/src/tools/printdb ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/src/tools/printdb ${STAGEDIR}${PREFIX}/bin .endif .if ${PORT_OPTIONS:MOSIRISD} ${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \ -e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \ ${WRKSRC}/src/install/freebsd/osirisd.in > \ ${WRKSRC}/src/install/freebsd/osirisd.sh - ${INSTALL_PROGRAM} ${WRKSRC}/src/osirisd/osirisd ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/src/osirisd/osirisd ${STAGEDIR}${PREFIX}/sbin ${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirisd.sh \ - ${PREFIX}/etc/rc.d + ${STAGEDIR}${PREFIX}/etc/rc.d .endif .if ${PORT_OPTIONS:MOSIRISMD} ${SED} -e 's|@INSTALLDIR@|${PREFIX}/sbin|g' \ -e 's|@OSIRISDIR@|${PREFIX}/osiris|g' \ ${WRKSRC}/src/install/freebsd/osirismd.in > \ ${WRKSRC}/src/install/freebsd/osirismd.sh - @${MKDIR} ${PREFIX}/osiris/configs + @${MKDIR} ${STAGEDIR}${PREFIX}/osiris/configs .for os in aix bsdos darwin freebsd irix linux netbsd openbsd sunos \ unix-generic windows2000 windowsnt windowsserver2003 windowsxp \ wrt54g ${INSTALL_DATA} ${WRKSRC}/src/configs/default.${os} \ - ${PREFIX}/osiris/configs + ${STAGEDIR}${PREFIX}/osiris/configs .endfor - ${INSTALL_PROGRAM} -m 4755 -o osiris -g osiris \ - ${WRKSRC}/src/osirismd/osirismd ${PREFIX}/sbin + ${INSTALL_PROGRAM} -m 4755 ${WRKSRC}/src/osirismd/osirismd \ + ${STAGEDIR}${PREFIX}/sbin ${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh \ - ${PREFIX}/etc/rc.d + ${STAGEDIR}${PREFIX}/etc/rc.d .endif - ${CHOWN} -R osiris:osiris ${PREFIX}/osiris - -post-install: - @${CAT} ${PKGMESSAGE} .include <bsd.port.post.mk> diff --git a/security/osiris/pkg-plist b/security/osiris/pkg-plist index bf52936a1c59..0c2372d6fb2f 100644 --- a/security/osiris/pkg-plist +++ b/security/osiris/pkg-plist @@ -1,11 +1,17 @@ %%CLI%%sbin/osiris %%PRINTDB%%bin/printdb %%OSIRISD%%sbin/osirisd +%%OSIRISMD%%@owner osiris +%%OSIRISMD%%@group osiris %%OSIRISMD%%sbin/osirismd +%%OSIRISMD%%@owner +%%OSIRISMD%%@group %%OSIRISD%%etc/rc.d/osirisd.sh %%OSIRISMD%%etc/rc.d/osirismd.sh @exec mkdir -p %D/osiris @exec chown osiris:osiris %D/osiris +%%OSIRISMD%%@owner osiris +%%OSIRISMD%%@group osiris %%OSIRISMD%%osiris/configs/default.aix %%OSIRISMD%%osiris/configs/default.bsdos %%OSIRISMD%%osiris/configs/default.darwin @@ -21,5 +27,7 @@ %%OSIRISMD%%osiris/configs/default.windowsserver2003 %%OSIRISMD%%osiris/configs/default.windowsxp %%OSIRISMD%%osiris/configs/default.wrt54g +%%OSIRISMD%%@owner +%%OSIRISMD%%@group %%OSIRISMD%%@dirrm osiris/configs @dirrm osiris |