ports/129812: Create rc script for dns/inadyn

Joseph S. Atkinson jsatkinson at embarqmail.com
Sun Dec 21 09:10:02 UTC 2008


>Number:         129812
>Category:       ports
>Synopsis:       Create rc script for dns/inadyn
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 21 09:10:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Joseph S. Atkinson
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
>Environment:


System: FreeBSD 8.0-CURRENT #1: Sat Dec 20 03:22:41 EST 2008
    jsa at mephisto.wickedmachine.net:/usr/obj/usr/src/sys/MEPHISTO



>Description:


Inadyn must be started manually to be effective. It makes sense that something of this nature would be desirable at boot. Since I desired it, I created and tested this locally. I came to the conclusion that others might make use of it and worked out an install script proper. This should help people until we can get a still maintained inadyn client in ports.

The chances here:
- Remove obsolete EXTRACT_SUFX, port already had USE_ZIP
- Shuffle the WRKSRC directory a bit because the default location causes a conflict when we install the rc script (directory and file share names)
- install rc script!
- bump PORTREVISION


>How-To-Repeat:





>Fix:


--- inadyn_rc.diff begins here ---
--- Makefile.orig	2008-12-21 02:53:13.000000000 -0500
+++ Makefile	2008-12-21 03:14:34.000000000 -0500
@@ -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 at 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 @@
 
 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" \
--- inadyn_rc.diff ends here ---
--- inadyn.in begins here ---
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: inadyn
# REQUIRE: NETWORKING
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf to enable inadyn:
#
#inadyn_enable="YES"
#
# Reccomend using the inadyn.conf over inadyn_flags. However, inadyn_flags will
# take priotiy over 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!
#
inadyn_enable="${inadyn_enable=NO}"

. %%RC_SUBR%%

name="inadyn"
rcvar=`set_rcvar`

command="%%PREFIX%%/bin/${name}"

load_rc_config "$name"
run_rc_command "$1"
--- inadyn.in ends here ---



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list