aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/adzapper/Makefile3
-rw-r--r--www/adzapper/files/rc.adzapper.sh6
-rw-r--r--www/adzapper/pkg-plist1
3 files changed, 10 insertions, 0 deletions
diff --git a/www/adzapper/Makefile b/www/adzapper/Makefile
index 6d553da83b0..9cd8635ef9c 100644
--- a/www/adzapper/Makefile
+++ b/www/adzapper/Makefile
@@ -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
diff --git a/www/adzapper/files/rc.adzapper.sh b/www/adzapper/files/rc.adzapper.sh
new file mode 100644
index 00000000000..dae560de524
--- /dev/null
+++ b/www/adzapper/files/rc.adzapper.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ -f __PRERFIX__/etc/adzapper.conf ]; then
+ __PREFIX__/sbin/adzapper &
+ test $? -eq 0 && echo -n ' adzapper'
+fi
diff --git a/www/adzapper/pkg-plist b/www/adzapper/pkg-plist
index 66d43da2a10..0daf5d3818c 100644
--- a/www/adzapper/pkg-plist
+++ b/www/adzapper/pkg-plist
@@ -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