diff options
author | Rong-En Fan <rafan@FreeBSD.org> | 2008-12-21 10:24:54 +0000 |
---|---|---|
committer | Rong-En Fan <rafan@FreeBSD.org> | 2008-12-21 10:24:54 +0000 |
commit | afb60fdf540b9b0a33392230fd8e1a09af1c419b (patch) | |
tree | 40d743de9b897eea14b9f4de6bf4c307f73973dd /dns/inadyn | |
parent | 198d84a0864c43ad52601b9ea786c7ba6c0c03ef (diff) | |
download | ports-afb60fdf540b9b0a33392230fd8e1a09af1c419b.tar.gz ports-afb60fdf540b9b0a33392230fd8e1a09af1c419b.zip |
Notes
Diffstat (limited to 'dns/inadyn')
-rw-r--r-- | dns/inadyn/Makefile | 9 | ||||
-rw-r--r-- | dns/inadyn/files/inadyn.in | 34 |
2 files changed, 40 insertions, 3 deletions
diff --git a/dns/inadyn/Makefile b/dns/inadyn/Makefile index da28a9c78811..3bba71acd7ac 100644 --- a/dns/inadyn/Makefile +++ b/dns/inadyn/Makefile @@ -7,17 +7,17 @@ PORTNAME= inadyn PORTVERSION= 1.96.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= dns MASTER_SITES= http://inadyn.ina-tech.net/ \ http://www.mirrorservice.org/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ DISTNAME= ${PORTNAME}.v${PORTVERSION} -EXTRACT_SUFX= .zip MAINTAINER= samm@os2.kiev.ua COMMENT= INADYN - Simple DYNAMIC DNS client -WRKSRC= ${WRKDIR}/${PORTNAME} +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +USE_RC_SUBR= inadyn USE_ZIP= yes USE_DOS2UNIX= yes USE_GMAKE= yes @@ -32,6 +32,9 @@ PLIST_FILES= bin/inadyn NO_INSTALL_MANPAGES=yes +post-extract: + ${MV} ${WRKDIR}/${PORTNAME} ${WRKDIR}/${PORTNAME}-${PORTVERSION} + post-patch: @${REINPLACE_CMD} -e 's|gcc|$$\(CC\)|g' ${WRKSRC}/makefile ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" \ diff --git a/dns/inadyn/files/inadyn.in b/dns/inadyn/files/inadyn.in new file mode 100644 index 000000000000..2898b3a00703 --- /dev/null +++ b/dns/inadyn/files/inadyn.in @@ -0,0 +1,34 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: inadyn +# REQUIRE: NETWORKING +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# inadyn_enable="YES" +# +# Reccomend using the inadyn.conf over inadyn_flags. However, inadyn_flags will +# take priority the configuration file by upstream's design. Any command +# line arguement (and thus inadyn_flags) will cause inadyn.conf to be ignored +# completely. +# See inadyn(8) for inadyn_flags and inadyn.conf syntax. +# +# Don't forget to include --background in either method! +# + +. %%RC_SUBR%% + +name="inadyn" +rcvar=`set_rcvar` + +command=%%PREFIX%%/bin/${name} + +load_rc_config $name + +: ${inadyn_enable="NO"} + +run_rc_command "$1" |