- There was a bug that caused osirisd not to start if built without osirismd

because of the lack of a ${PREFIX}/osiris directory. This is now created no
  matter what options are set.

PR:		ports/77221
Submitted by:	David Thiel <lx@redundancy.redundancy.org> (maintainer)
This commit is contained in:
Pav Lucistnik 2005-02-08 15:41:07 +00:00
parent d02b8823ae
commit 030fe20888
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128288
2 changed files with 6 additions and 2 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= osiris
PORTVERSION= 4.1.1
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://osiris.shmoo.com/data/
@ -41,6 +42,7 @@ PLIST_SUB+= CLI="@comment "
do-install:
${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
@${MKDIR} ${PREFIX}/osiris
.if defined(WITH_CLI)
${INSTALL_PROGRAM} ${WRKSRC}/src/cli/osiris ${PREFIX}/sbin
.endif
@ -63,11 +65,11 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/src/configs/default.${os} \
${PREFIX}/osiris/configs
.endfor
${CHOWN} -R osiris:osiris ${PREFIX}/osiris
${INSTALL_PROGRAM} -m 4755 -o osiris -g osiris \
${WRKSRC}/src/osirismd/osirismd ${PREFIX}/sbin
${INSTALL_SCRIPT} ${WRKSRC}/src/install/freebsd/osirismd.sh.sample \
${PREFIX}/etc/rc.d
.endif
${CHOWN} -R osiris:osiris ${PREFIX}/osiris
.include <bsd.port.post.mk>

View file

@ -4,6 +4,8 @@
%%OSIRISMD%%sbin/osirismd
%%OSIRISD%%etc/rc.d/osirisd.sh.sample
%%OSIRISMD%%etc/rc.d/osirismd.sh.sample
@exec mkdir -p %D/osiris
@exec chown osiris:osiris %D/osiris
%%OSIRISMD%%osiris/configs/default.aix
%%OSIRISMD%%osiris/configs/default.bsdos
%%OSIRISMD%%osiris/configs/default.darwin
@ -20,4 +22,4 @@
%%OSIRISMD%%osiris/configs/default.windowsxp
%%OSIRISMD%%osiris/configs/default.wrt54g
%%OSIRISMD%%@dirrm osiris/configs
%%OSIRISMD%%@dirrm osiris
@dirrm osiris