Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Aug 1999 20:33:43 -0400 (EDT)
From:      <oryx@chaos.ao.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13312: new port dhid
Message-ID:  <Pine.LNX.3.96.990821203235.10977A-100000@chaos.ao.net>

next in thread | raw e-mail | index | archive | help

>Number:         13312
>Category:       ports
>Synopsis:       new port dhid
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 21 17:40:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Oryx Gazella
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
>Environment:
>Description:
 X-send-pr-version: 3.2
 
 
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #	/usr/ports/net/dhid
 #	/usr/ports/net/dhid/Makefile
 #	/usr/ports/net/dhid/files
 #	/usr/ports/net/dhid/files/md5
 #	/usr/ports/net/dhid/patches
 #	/usr/ports/net/dhid/patches/patch-aa
 #	/usr/ports/net/dhid/patches/patch-ab
 #	/usr/ports/net/dhid/patches/patch-ac
 #	/usr/ports/net/dhid/pkg
 #	/usr/ports/net/dhid/pkg/COMMENT
 #	/usr/ports/net/dhid/pkg/DESCR
 #	/usr/ports/net/dhid/pkg/PLIST
 #
 echo c - /usr/ports/net/dhid
 mkdir -p /usr/ports/net/dhid > /dev/null 2>&1
 echo x - /usr/ports/net/dhid/Makefile
 sed 's/^X//' >/usr/ports/net/dhid/Makefile << 'END-of-/usr/ports/net/dhid/Makefile'
 X# New ports collection makefile for:	dhid
 X# Version required:	3.0
 X# Date created:		Sat Aug 21 06:13:59 EDT 1999
 X# Whom:			Oryx Gazella <oryx@ungulate.net>
 X#
 X# $Id$
 X#
 X
 XDISTNAME=		dhid-3.0
 XCATEGORIES=		net
 XMASTER_SITES=		ftp://ftp.dhis.org/pub/dhis/
 X
 XMAINTAINER=		oryx@ungulate.net
 X
 XMAN1=			dtool.1
 XMAN8=			dhid.8
 X
 Xpost-patch:
 X	@${ECHO} "===>   Patching dtool script "
 X	${SED} "s^__PREFIX__^${PREFIX}^g" < ${WRKSRC}/dtool >${WRKSRC}/dtool.new
 X	${CP} -f ${WRKSRC}/dtool.new ${WRKSRC}/dtool
 X
 Xdo-install:
 X		${INSTALL_PROGRAM} ${WRKSRC}/dhid ${PREFIX}/sbin
 X		${INSTALL_SCRIPT} ${WRKSRC}/dtool ${PREFIX}/bin
 X		${INSTALL_MAN} ${WRKSRC}/dhid.8 ${PREFIX}/man/man8
 X		${INSTALL_MAN} ${WRKSRC}/dtool.1 ${PREFIX}/man/man1
 X		${INSTALL} ${COPY} -o root -g wheel -m 600 ${WRKSRC}/dhid.conf ${PREFIX}/etc
 X
 Xpost-install:
 X	@if [ ! -f ${PREFIX}/etc/rc.d/dhid.sh ]; then \
 X		${ECHO} "===>   Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."; \
 X		${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/dhid.sh; \
 X		${ECHO} "[ -x ${PREFIX}/bin/dtool ] && ${PREFIX}/bin/dtool -s > /dev/null && echo -n ' dhid'" >> ${PREFIX}/etc/rc.d/dhid.sh; \
 X		chmod 751 ${PREFIX}/etc/rc.d/dhid.sh; \
 X	fi
 X
 X.include <bsd.port.mk>
 END-of-/usr/ports/net/dhid/Makefile
 echo c - /usr/ports/net/dhid/files
 mkdir -p /usr/ports/net/dhid/files > /dev/null 2>&1
 echo x - /usr/ports/net/dhid/files/md5
 sed 's/^X//' >/usr/ports/net/dhid/files/md5 << 'END-of-/usr/ports/net/dhid/files/md5'
 XMD5 (dhid-3.0.tar.gz) = bd55b2c076196afd41c147f062990e09
 END-of-/usr/ports/net/dhid/files/md5
 echo c - /usr/ports/net/dhid/patches
 mkdir -p /usr/ports/net/dhid/patches > /dev/null 2>&1
 echo x - /usr/ports/net/dhid/patches/patch-aa
 sed 's/^X//' >/usr/ports/net/dhid/patches/patch-aa << 'END-of-/usr/ports/net/dhid/patches/patch-aa'
 X--- dhid.h.orig	Tue Jun 22 20:01:43 1999
 X+++ dhid.h	Sat Aug 21 05:28:10 1999
 X@@ -63,8 +63,8 @@
 X 
 X #define	POLL_INTERVAL	60
 X 
 X-#define	DHID_CONF	"/etc/dhid.conf"
 X-#define	DHID_PID	"/etc/dhid.pid"
 X+#define	DHID_CONF	"/usr/local/etc/dhid.conf"
 X+#define	DHID_PID	"/var/run/dhid.pid"
 X 
 X #define	DEF_ISPORT	58800
 X #define	DEF_MXPORT	58801
 END-of-/usr/ports/net/dhid/patches/patch-aa
 echo x - /usr/ports/net/dhid/patches/patch-ab
 sed 's/^X//' >/usr/ports/net/dhid/patches/patch-ab << 'END-of-/usr/ports/net/dhid/patches/patch-ab'
 X--- Makefile.orig	Tue Jun 22 07:30:37 1999
 X+++ Makefile	Sat Aug 21 04:41:26 1999
 X@@ -25,15 +25,10 @@
 X #
 X #      DHIS(c)  Dynamic Host Information System Release 3.0
 X 
 X-CC=cc
 X-CFLAGS=
 X-LFLAGS=
 X-LIBS=
 X RM=rm -f
 X 
 X dhid:	conf.o endian.o network.o crypt.o main.o
 X 	$(CC) $(LFLAGS) -o dhid conf.o endian.o network.o crypt.o main.o $(LIBS)
 X-	strip dhid
 X 
 X main.o: dhid.h network.h conf.h main.c
 X 	$(CC) $(CFLAGS) -c main.c
 X@@ -52,3 +47,5 @@
 X 
 X clean:
 X 	$(RM) *.core core dhid *.o
 X+
 X+all:	dhid
 END-of-/usr/ports/net/dhid/patches/patch-ab
 echo x - /usr/ports/net/dhid/patches/patch-ac
 sed 's/^X//' >/usr/ports/net/dhid/patches/patch-ac << 'END-of-/usr/ports/net/dhid/patches/patch-ac'
 X--- dtool.orig	Fri Jun 25 08:20:58 1999
 X+++ dtool	Sat Aug 21 05:33:03 1999
 X@@ -28,8 +28,8 @@
 X 
 X USAGE="usage: dtool [-o] [-d] [-m] [-a host] [-w host] [-k] [-s] [-h]"
 X 
 X-PIDFILE=/etc/dhid.pid
 X-
 X+PIDFILE=/var/run/dhid.pid
 X+DHIDD=__PREFIX__/sbin/dhid
 X 
 X usage()
 X {
 X@@ -77,7 +77,7 @@
 X       ;;
 X       
 X     s)
 X-      if ( /usr/sbin/dhid ); then
 X+      if ( $DHIDD ); then
 X         echo "Starting dhid daemon."
 X       fi
 X       ;;
 END-of-/usr/ports/net/dhid/patches/patch-ac
 echo c - /usr/ports/net/dhid/pkg
 mkdir -p /usr/ports/net/dhid/pkg > /dev/null 2>&1
 echo x - /usr/ports/net/dhid/pkg/COMMENT
 sed 's/^X//' >/usr/ports/net/dhid/pkg/COMMENT << 'END-of-/usr/ports/net/dhid/pkg/COMMENT'
 Xdhis client for updating dynamic DNS entries in dhisd DNS tables.
 END-of-/usr/ports/net/dhid/pkg/COMMENT
 echo x - /usr/ports/net/dhid/pkg/DESCR
 sed 's/^X//' >/usr/ports/net/dhid/pkg/DESCR << 'END-of-/usr/ports/net/dhid/pkg/DESCR'
 XDHIS Daemon Client release 3.0
 X==============================
 X
 Xdhid is the DHIS client daemon. dhid is used to update the DNS tables on
 Xa DHIS provider.
 X
 XIf you haven't done so yet, you will need to register your host with a
 XDHIS provider. http://www.dhis.org/
 X
 Xdhid.conf should be configured according to the provider's assigned
 Xparameters.
 X
 X- Oryx
 Xoryx@ungulate.net
 END-of-/usr/ports/net/dhid/pkg/DESCR
 echo x - /usr/ports/net/dhid/pkg/PLIST
 sed 's/^X//' >/usr/ports/net/dhid/pkg/PLIST << 'END-of-/usr/ports/net/dhid/pkg/PLIST'
 Xsbin/dhid
 Xbin/dtool
 Xetc/dhid.conf
 Xetc/rc.d/dhid.sh
 END-of-/usr/ports/net/dhid/pkg/PLIST
 exit
 
 
 
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.990821203235.10977A-100000>