mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
Add rcNG start/stop script.
Based on the patch provided with the PR, but the PREFIX is determined at run time in the committed version. PR: ports/56176 Submitted by: Kimura Fuyuki <fuyuki@nigredo.org>
This commit is contained in:
parent
163a2ffc79
commit
c4f11582de
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88605
@ -13,6 +13,7 @@ MASTER_SITES= http://gusnet.cx/proj/ez-ipupdate/dist/
|
||||
MAINTAINER= se@FreeBSD.org
|
||||
COMMENT= Update your host name on any dynamic DNS service
|
||||
|
||||
USE_RC_SUBR= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
post-install:
|
||||
@ -23,5 +24,6 @@ post-install:
|
||||
done
|
||||
${INSTALL_DATA} ${WRKSRC}/example.conf \
|
||||
${PREFIX}/etc/ez-ipupdate.conf.sample
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/ez-ipupdate.sh ${PREFIX}/etc/rc.d
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
34
dns/ez-ipupdate/files/ez-ipupdate.sh
Normal file
34
dns/ez-ipupdate/files/ez-ipupdate.sh
Normal file
@ -0,0 +1,34 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: ez-ipupdate
|
||||
# REQUIRE:
|
||||
# BEFORE:
|
||||
# KEYWORD: FreeBSD shutdown
|
||||
|
||||
# Add the following line to /etc/rc.conf to enable ez-ipupdate:
|
||||
#
|
||||
#ez_ipupdate_enable="YES"
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${0##*/}\$"); then
|
||||
echo "$0: Cannot determine the PREFIX" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
name="ez_ipupdate"
|
||||
rcvar=`set_rcvar`
|
||||
command="$PREFIX/bin/ez-ipupdate"
|
||||
pidfile="/var/run/ez-ipupdate.pid"
|
||||
required_files="$PREFIX/etc/ez-ipupdate.conf"
|
||||
sig_stop="QUIT"
|
||||
|
||||
ez_ipupdate_enable="NO"
|
||||
ez_ipupdate_flags="-c $PREFIX/etc/ez-ipupdate.conf -d -F $pidfile"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
@ -1,5 +1,6 @@
|
||||
bin/ez-ipupdate
|
||||
etc/ez-ipupdate.conf.sample
|
||||
etc/rc.d/ez-ipupdate.sh
|
||||
share/examples/ez-ipupdate/example-dhs.conf
|
||||
share/examples/ez-ipupdate/example-dyndns.conf
|
||||
share/examples/ez-ipupdate/example-dyns.conf
|
||||
|
Loading…
Reference in New Issue
Block a user