diff options
author | pav <pav@FreeBSD.org> | 2004-05-03 02:25:52 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-03 02:25:52 +0800 |
commit | 90c642aaeb41952ec6f2ee0f4d32fcc337d43580 (patch) | |
tree | e84cd85cf4cfc1f8014f879dca22485cf9b1f334 /security | |
parent | a4c5d2b5aa29395798c2dfd2aaf5185c069458a8 (diff) | |
download | freebsd-ports-gnome-90c642aaeb41952ec6f2ee0f4d32fcc337d43580.tar.gz freebsd-ports-gnome-90c642aaeb41952ec6f2ee0f4d32fcc337d43580.tar.zst freebsd-ports-gnome-90c642aaeb41952ec6f2ee0f4d32fcc337d43580.zip |
- Add sample rc script
PR: ports/66051
Submitted by: Udo Schweigert <udo.schweigert@siemens.com> (maintainer)
Diffstat (limited to 'security')
-rw-r--r-- | security/nessus-devel/Makefile | 8 | ||||
-rw-r--r-- | security/nessus-devel/files/nessusd.sh | 28 | ||||
-rw-r--r-- | security/nessus-devel/pkg-plist | 1 |
3 files changed, 36 insertions, 1 deletions
diff --git a/security/nessus-devel/Makefile b/security/nessus-devel/Makefile index 3eed2734ce6b..c6da2857a1a5 100644 --- a/security/nessus-devel/Makefile +++ b/security/nessus-devel/Makefile @@ -24,6 +24,7 @@ WRKSRC= ${WRKDIR}/nessus-core USE_LIBTOOL_VER=13 WANT_GNOME= yes +USE_REINPLACE= YES .include <bsd.port.pre.mk> @@ -37,7 +38,12 @@ CONFIGURE_ARGS+=--disable-gtk MAN1= nessus.1 nessus-mkrand.1 nessus-mkcert-client.1 MAN8= nessusd.8 nessus-adduser.8 nessus-mkcert.8 nessus-rmuser.8 +post-extract: + @${CP} ${FILESDIR}/nessusd.sh ${WRKSRC}/nessusd.sh + @${REINPLACE_CMD} -E -e 's|%%PREFIX%%|${PREFIX}|g' ${BUILD_WRKSRC}/nessusd.sh post-install: + ${INSTALL_SCRIPT} ${BUILD_WRKSRC}/nessusd.sh \ + ${LOCALBASE}/etc/rc.d/nessusd.sh.sample @${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/move_nessus .if ! exists(${PREFIX}/var/CA/serverkey.pem) .if ! defined(BATCH) @@ -45,6 +51,6 @@ post-install: .else ${PREFIX}/sbin/nessus-mkcert -q .endif -.endif +.endif .include <bsd.port.post.mk> diff --git a/security/nessus-devel/files/nessusd.sh b/security/nessus-devel/files/nessusd.sh new file mode 100644 index 000000000000..6fe58eadd1f0 --- /dev/null +++ b/security/nessus-devel/files/nessusd.sh @@ -0,0 +1,28 @@ +#! /bin/sh +# +# $FreeBSD$ +# + +umask 022 +arg=${1:-start} + +nessusd_bin=%%PREFIX%%/sbin/nessusd +nessus_arg="-D" +kill_arg=nessusd + +echo -n " nessusd" + +case $arg in +start) + test -x $nessusd_bin || exit 1 + $nessusd_bin $nessus_arg + ;; +stop) + killall $kill_arg > /dev/null 2>&1 + ;; +restart) + killall $kill_arg > /dev/null 2>&1 + test -x $nessusd_bin || exit 1 + $nessusd_bin $nessus_arg + ;; +esac diff --git a/security/nessus-devel/pkg-plist b/security/nessus-devel/pkg-plist index 9decbbf7d783..810874f76d06 100644 --- a/security/nessus-devel/pkg-plist +++ b/security/nessus-devel/pkg-plist @@ -1,3 +1,4 @@ +etc/rc.d/nessusd.sh.sample bin/nessus bin/nessus-mkcert-client bin/nessus-mkrand |