diff options
author | obrien <obrien@FreeBSD.org> | 2000-03-11 03:02:21 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-03-11 03:02:21 +0000 |
commit | 301cf9c79132d8cc78c6d37c763b0c81b816a01b (patch) | |
tree | 791c4577912713b6692011282697c64ad2b22094 /www/adzapper | |
parent | 1dabecf58f810292d7674349d5514743e8d1b692 (diff) | |
download | FreeBSD-ports-301cf9c79132d8cc78c6d37c763b0c81b816a01b.zip FreeBSD-ports-301cf9c79132d8cc78c6d37c763b0c81b816a01b.tar.gz |
Add an RC script.
Diffstat (limited to 'www/adzapper')
-rw-r--r-- | www/adzapper/Makefile | 3 | ||||
-rw-r--r-- | www/adzapper/files/rc.adzapper.sh | 6 | ||||
-rw-r--r-- | www/adzapper/pkg-plist | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/www/adzapper/Makefile b/www/adzapper/Makefile index 6d553da..9cd8635 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 0000000..dae560d --- /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 66d43da..0daf5d3 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 |