From afb60fdf540b9b0a33392230fd8e1a09af1c419b Mon Sep 17 00:00:00 2001 From: Rong-En Fan Date: Sun, 21 Dec 2008 10:24:54 +0000 Subject: [PATCH] - Add rc script (rename WRKSRC to avoid name conflict) - Remove EXTRACT_SUFX as it uses USE_ZIP which automatically sets EXTRACT_SUFX - Bump PORTREVISION PR: ports/129812 Submitted by: Joseph S. Atkinson Approved by: Alex Samorukov (maintainer) --- dns/inadyn/Makefile | 9 ++++++--- dns/inadyn/files/inadyn.in | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 dns/inadyn/files/inadyn.in 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"