Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2001 16:32:03 +0000
From:      Ceri <setantae@submonkey.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/32271: [PATCH] pkg-plist for net/isc-dhcp2 incorrect
Message-ID:  <E1682CJ-0003xu-00@rhadamanth.private.submonkey.net>

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

>Number:         32271
>Category:       ports
>Synopsis:       [PATCH] pkg-plist for net/isc-dhcp2 incorrect
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 25 08:40:02 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     setantae@submonkey.net
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD rhadamanth.private.submonkey.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Fri Nov 16 21:14:33 GMT 2001 root@rhadamanth.private.submonkey.net:/usr/obj/usr/src/sys/RHADAMANTH i386


	
>Description:
	The plist for net/isc-dhcp2 says that it installs a dhclient.conf.
	It doesn't, nor should it.

>How-To-Repeat:
	cat /usr/ports/net/isc-dhcp2
>Fix:
	Apply the attached patch.
	Please note that this is my first attempt at doing anything like
	this in the ports tree, and although the patches pass portlint,
	there may well be issues with the patch attached.

	Please do advise if I have made obvious errors.
	Anyway, here's the patch :


diff -u net/isc-dhcp2.old/Makefile net/isc-dhcp2/Makefile
--- net/isc-dhcp2.old/Makefile	Sun Nov 25 16:26:17 2001
+++ net/isc-dhcp2/Makefile	Sun Nov 25 16:24:46 2001
@@ -7,6 +7,7 @@
 
 PORTNAME=	isc-dhcp
 PORTVERSION=	2.0.5
+PORTREVISION=	1
 CATEGORIES=	net
 MASTER_SITES=	ftp://ftp.isc.org/isc/dhcp/ \
 		ftp://ftp.isc.org/isc/dhcp/dhcp-2.0-history/
@@ -27,6 +28,7 @@
 
 post-install:
 	${TOUCH} /var/db/dhcpd.leases
+	${TOUCH} ${PREFIX}/etc/dhcpd.conf
 .for file in dhcpd dhcrelay
 	if [ -f ${PREFIX}/sbin/${file} ]; then \
 		strip ${PREFIX}/sbin/${file}; \
Only in net/isc-dhcp2.old/: Makefile.old
Common subdirectories: net/isc-dhcp2.old/files and net/isc-dhcp2/files
diff -u net/isc-dhcp2.old/pkg-plist net/isc-dhcp2/pkg-plist
--- net/isc-dhcp2.old/pkg-plist	Sun Nov 25 16:26:21 2001
+++ net/isc-dhcp2/pkg-plist	Sun Nov 25 16:19:15 2001
@@ -2,4 +2,4 @@
 sbin/dhcrelay
 etc/rc.d/%%STARTUP_SCRIPT%%
 @exec touch /var/db/dhcpd.leases
-@exec touch %D/etc/dhclient.conf
+@exec touch %D/etc/dhcpd.conf
>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?E1682CJ-0003xu-00>