mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
dns/nsnotifyd: Add basic rc script
Approved by: maintainer
This commit is contained in:
parent
c4df193039
commit
f6e0419b45
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=466599
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= nsnotifyd
|
||||
PORTVERSION= 1.6
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns
|
||||
MASTER_SITES= http://dotat.at/prog/nsnotifyd/
|
||||
|
||||
@ -15,6 +16,8 @@ GNU_CONFIGURE= yes
|
||||
USES= shebangfix
|
||||
SHEBANG_FILES= nsnotify-liststealth
|
||||
|
||||
USE_RC_SUBR= nsnotifyd
|
||||
|
||||
EXEFILES= nsnotify nsnotifyd
|
||||
BINFILES= nsnotify-liststealth nsnotify2git nsnotify2stealth nsnotify2update
|
||||
MAN1FILES= metazone nsnotify nsnotifyd
|
||||
|
37
dns/nsnotifyd/files/nsnotifyd.in
Normal file
37
dns/nsnotifyd/files/nsnotifyd.in
Normal file
@ -0,0 +1,37 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Author: Mark Felder <feld@FreeBSD.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: nsnotifyd
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
# Add the following lines to /etc/rc.conf to enable nsnotifyd:
|
||||
# nsnotifyd_enable="YES"
|
||||
# nsnotifyd_flags="<set as needed>"
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=nsnotifyd
|
||||
rcvar=nsnotifyd_enable
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
: ${nsnotifyd_enable:=NO}
|
||||
|
||||
command="/usr/local/bin/nsnotifyd"
|
||||
start_precmd=precmd
|
||||
|
||||
precmd()
|
||||
{
|
||||
if [ "${nsnotifyd_flags}x" = "x" ]; then
|
||||
echo "Please set your required service options via nsnotifyd_flags in /etc/rc.conf."
|
||||
echo "Check the contents of man nsnotifyd for more details."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
Loading…
Reference in New Issue
Block a user