Add an RC script.

This commit is contained in:
David E. O'Brien 2000-03-11 03:02:21 +00:00
parent 6939e577e2
commit 3b347418ef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=26738
3 changed files with 10 additions and 0 deletions

View file

@ -22,11 +22,14 @@ post-extract:
@${RM} -rf ${WRKSRC}/src/medusa/CVS
@${SED} -e 's,__PREFIX__,${PREFIX},g' ${FILESDIR}/adzapper.sh > \
${WRKSRC}/adzapper.sh
@${SED} -e 's,__PREFIX__,${PREFIX},g' ${FILESDIR}/adzapper.sh > \
${WRKSRC}/rc.adzapper.sh
do-install:
${MKDIR} ${PREFIX}/share/adzapper
${INSTALL_SCRIPT} ${WRKSRC}/adzapper.sh ${PREFIX}/sbin/adzapper
${INSTALL_SCRIPT} ${WRKSRC}/adzapper.py ${PREFIX}/share/adzapper/
${INSTALL_SCRIPT} ${WRKSRC}/rc.adzapper.sh ${PREFIX}/etc/rc.d/adzapper.sh
${CP} -Rp ${WRKSRC}/zaplets ${PREFIX}/share/adzapper
${CP} -Rp ${WRKSRC}/doc ${PREFIX}/share/adzapper
${CP} -Rp ${WRKSRC}/src ${PREFIX}/share/adzapper

View file

@ -0,0 +1,6 @@
#!/bin/sh
if [ -f __PRERFIX__/etc/adzapper.conf ]; then
__PREFIX__/sbin/adzapper &
test $? -eq 0 && echo -n ' adzapper'
fi

View file

@ -1,5 +1,6 @@
etc/adzapper.conf.sample
sbin/adzapper
etc/rc.d/adzapper.sh
share/adzapper/README
share/adzapper/adzapper.py
share/adzapper/doc/CHANGELOG