Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Jan 2001 19:58:52 +0000 (GMT)
From:      George Reid <greid@dogma.freebsd-uk.eu.org>
To:        FreeBSD-gnats-submit@freebsd.org, oryx@ungulate.net
Subject:   ports/24326: [PATCH] Update net/dhid to version 4.0.2
Message-ID:  <Pine.BSF.4.21.0101141956580.37805-100000@sobek.openirc.co.uk>

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

>Number:         24326
>Category:       ports
>Synopsis:       [PATCH] Update net/dhid to version 4.0.2
>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:   Sun Jan 14 12:00:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     George Reid
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
FreeBSD UKUG
>Environment:
n/a
>Description:
This patch updates net/dhid to version 4.0.2. It fetches both the new
version and the old (3.x) distfile (only ~8Kb) in order to install the
manpage and sample .conf file. Perhaps these should go in files/ instead.
>How-To-Repeat:

>Fix:
Index: Makefile
===================================================================
RCS file: /usr/home/ncvs/ports/net/dhid/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile	2000/07/05 12:36:40	1.7
+++ Makefile	2001/01/14 19:56:27
@@ -6,12 +6,16 @@
 #
 
 PORTNAME=		dhid
-PORTVERSION=		3.1
+PORTVERSION=		4.0.2
 CATEGORIES=		net
 MASTER_SITES=		ftp://ftp.dhis.org/pub/dhis/
+DISTFILES=		${DISTNAME}${EXTRACT_SUFX} \
+			${PORTNAME}-3.1${EXTRACT_SUFX}
 
 MAINTAINER=		oryx@ungulate.net
 
+OLDWRKSRC=		${WRKDIR}/${PORTNAME}-3.1
+
 MAN8=			dhid.8
 
 post-patch:
@@ -20,18 +24,14 @@
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/dhid ${PREFIX}/sbin
-	${INSTALL_MAN} ${WRKSRC}/dhid.8 ${PREFIX}/man/man8
-	${INSTALL} ${COPY} -o root -g wheel -m 600 ${WRKSRC}/dhid.conf ${PREFIX}/etc/dhid.conf.sample
+	${INSTALL_MAN} ${OLDWRKSRC}/dhid.8 ${PREFIX}/man/man8
+	${INSTALL} ${COPY} -o root -g wheel -m 600 ${OLDWRKSRC}/dhid.conf ${PREFIX}/etc/dhid.conf.sample
 
 post-install:
 	@if [ ! -f ${PREFIX}/etc/rc.d/dhid.sh ]; then \
 		${ECHO} "===>   Installing ${PREFIX}/etc/rc.d/dhid.sh startup file."; \
 		${INSTALL_SCRIPT} -m 751 ${FILESDIR}/dhid.sh ${PREFIX}/etc/rc.d/dhid.sh; \
 	fi;
-	@${ECHO} "--------------------------------------------------------------------------"
-	@${ECHO} "Before dhid can run, you will need to register with a DHIS provider."
-	@${ECHO} "See http://www.dhis.org/dhis/services/ for a list of providers."
-	@${ECHO} "Enter the DHIS account information into the ${PREFIX}/etc/dhid.conf file."
-	@${ECHO} "--------------------------------------------------------------------------"
+	@${CAT} ${PKGMESSAGE}
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /usr/home/ncvs/ports/net/dhid/distinfo,v
retrieving revision 1.3
diff -u -r1.3 distinfo
--- distinfo	2000/02/05 22:07:50	1.3
+++ distinfo	2001/01/14 19:53:14
@@ -1 +1,2 @@
+MD5 (dhid-4.0.2.tar.gz) = 16532ef68d89ed51a9e57ea9ac886268
 MD5 (dhid-3.1.tar.gz) = f419031035f79936592c8ecf97fbe62c
Index: pkg-descr
===================================================================
RCS file: /usr/home/ncvs/ports/net/dhid/pkg-descr,v
retrieving revision 1.3
diff -u -r1.3 pkg-descr
--- pkg-descr	2000/04/20 20:17:33	1.3
+++ pkg-descr	2001/01/14 19:55:53
@@ -1,5 +1,5 @@
-DHIS Daemon Client release 3.1
-==============================
+DHIS Daemon Client release 4.0.1
+================================
 
 dhid is the DHIS client daemon. dhid is used to update the DNS tables on
 a DHIS provider.
Index: pkg-message
===================================================================
RCS file: /usr/home/ncvs/ports/net/dhid/pkg-message,v
retrieving revision 1.1
diff -u -r1.1 pkg-message
--- pkg-message	2000/02/13 12:54:25	1.1
+++ pkg-message	2001/01/14 19:44:05
@@ -1,3 +1,5 @@
+
 Before dhid can run, you will need to register with a DHIS provider.
 See http://www.dhis.org/dhis/services/ for a list of providers.
 Enter the DHIS account information into the dhid.conf file.
+
Index: files/patch-aa
===================================================================
RCS file: /usr/home/ncvs/ports/net/dhid/files/patch-aa,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 patch-aa
--- files/patch-aa	1999/11/01 03:55:21	1.1.1.1
+++ files/patch-aa	2001/01/14 19:41:46
@@ -1,8 +1,8 @@
---- dhid.h.orig	Tue Jun 22 20:01:43 1999
-+++ dhid.h	Sat Aug 21 05:28:10 1999
-@@ -63,8 +63,8 @@
+--- dhid.h.orig	Sun Jan 14 19:39:01 2001
++++ dhid.h	Sun Jan 14 19:41:37 2001
+@@ -73,8 +73,8 @@
+ #define	OFFLINE_REQ	0x00000451
  
- #define	POLL_INTERVAL	60
  
 -#define	DHID_CONF	"/etc/dhid.conf"
 -#define	DHID_PID	"/etc/dhid.pid"
@@ -10,4 +10,4 @@
 +#define	DHID_PID	"/var/run/dhid.pid"
  
  #define	DEF_ISPORT	58800
- #define	DEF_MXPORT	58801
+ #define	FAIL_ALLOW	3
Index: files/patch-ab
===================================================================
RCS file: /usr/home/ncvs/ports/net/dhid/files/patch-ab,v
retrieving revision 1.3
diff -u -r1.3 patch-ab
--- files/patch-ab	2000/02/13 12:54:24	1.3
+++ files/patch-ab	2001/01/14 19:40:46
@@ -1,21 +1,17 @@
---- Makefile.orig	Thu Jan 13 23:15:01 2000
-+++ Makefile	Thu Feb 10 23:13:56 2000
-@@ -25,17 +25,13 @@
+--- Makefile.orig	Sun Jan 14 19:39:56 2001
++++ Makefile	Sun Jan 14 19:40:37 2001
+@@ -25,13 +25,10 @@
  #
- #      DHIS(c)  Dynamic Host Information System Release 3.1
+ #      DHIS(c)  Dynamic Host Information System Release 4.0
  
 -CC=cc
--CFLAGS=
--LFLAGS=
--LIBS=
 +CC?=cc
- RM=rm -f
  
- all:	dhid
- 
- dhid:	conf.o endian.o network.o crypt.o main.o
- 	$(CC) $(LFLAGS) -o dhid conf.o endian.o network.o crypt.o main.o $(LIBS)
--	strip dhid
+ # Add -lnsl and -lsocket to LIBS in SysV systems 
+ #
+-CFLAGS=-I/usr/local/include -DQRC=1 
+-LFLAGS=-L/usr/local/lib
+-LIBS=-lgmp
  
- main.o: dhid.h network.h conf.h main.c
- 	$(CC) $(CFLAGS) -c main.c
+ # Use these and comment the above if you wish to compile dhid without 
+ # secure public key authentication or don't have the GMP library 


>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.BSF.4.21.0101141956580.37805-100000>