aboutsummaryrefslogtreecommitdiff
path: root/dns/ez-ipupdate
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2004-07-26 23:13:03 +0000
committerStefan Eßer <se@FreeBSD.org>2004-07-26 23:13:03 +0000
commit338269cf11ecbcd9868eaed1e5476ce6d93e0fcf (patch)
treeea23b1bac0d697445eddddb512faafea33453882 /dns/ez-ipupdate
parenteb23264e8c3e4041537ed9b0316e19018dcc2f94 (diff)
downloadports-338269cf11ecbcd9868eaed1e5476ce6d93e0fcf.tar.gz
ports-338269cf11ecbcd9868eaed1e5476ce6d93e0fcf.zip
Notes
Diffstat (limited to 'dns/ez-ipupdate')
-rw-r--r--dns/ez-ipupdate/Makefile13
-rw-r--r--dns/ez-ipupdate/files/ez-ipupdate.sh18
2 files changed, 16 insertions, 15 deletions
diff --git a/dns/ez-ipupdate/Makefile b/dns/ez-ipupdate/Makefile
index fec4e2e08d78..6ea2342e2167 100644
--- a/dns/ez-ipupdate/Makefile
+++ b/dns/ez-ipupdate/Makefile
@@ -16,14 +16,19 @@ COMMENT= Update your host name on any dynamic DNS service
USE_RC_SUBR= yes
GNU_CONFIGURE= yes
+post-build:
+ @${SED} -e 's,%%PREFIX%%,${PREFIX},g' \
+ -e 's,%%RC_SUBR%%,${RC_SUBR},g' \
+ ${FILESDIR}/${PORTNAME}.sh >${WRKDIR}/${PORTNAME}.sh
+
post-install:
- ${MKDIR} ${PREFIX}/share/examples/ez-ipupdate
+ ${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
for f in ${WRKSRC}/example-*.conf; \
do \
- ${INSTALL_DATA} $$f ${PREFIX}/share/examples/ez-ipupdate/; \
+ ${INSTALL_DATA} $$f ${PREFIX}/share/examples/${PORTNAME}/; \
done
${INSTALL_DATA} ${WRKSRC}/example.conf \
- ${PREFIX}/etc/ez-ipupdate.conf.sample
- ${INSTALL_SCRIPT} ${FILESDIR}/ez-ipupdate.sh ${PREFIX}/etc/rc.d
+ ${PREFIX}/etc/${PORTNAME}.conf.sample
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/etc/rc.d/
.include <bsd.port.mk>
diff --git a/dns/ez-ipupdate/files/ez-ipupdate.sh b/dns/ez-ipupdate/files/ez-ipupdate.sh
index 510cf414a874..f68734ff71c1 100644
--- a/dns/ez-ipupdate/files/ez-ipupdate.sh
+++ b/dns/ez-ipupdate/files/ez-ipupdate.sh
@@ -13,22 +13,18 @@
#ez_ipupdate_enable="YES"
#
-. /etc/rc.subr
+. %%RC_SUBR%%
-if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/${0##*/}\$"); then
- echo "$0: Cannot determine the PREFIX" >&2
- exit 1
-fi
-
-name="ez_ipupdate"
+name=ez_ipupdate
rcvar=`set_rcvar`
-command="$PREFIX/bin/ez-ipupdate"
-pidfile="/var/run/ez-ipupdate.pid"
-required_files="$PREFIX/etc/ez-ipupdate.conf"
+
+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"
+ez_ipupdate_flags="-c %%PREFIX%%/etc/ez-ipupdate.conf -d -F $pidfile"
load_rc_config $name
run_rc_command "$1"