Add an RC script.
This commit is contained in:
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
|
@ -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
|
||||
|
|
6
www/adzapper/files/rc.adzapper.sh
Normal file
6
www/adzapper/files/rc.adzapper.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ -f __PRERFIX__/etc/adzapper.conf ]; then
|
||||
__PREFIX__/sbin/adzapper &
|
||||
test $? -eq 0 && echo -n ' adzapper'
|
||||
fi
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue