From 788f88d4face2c77900d4168d140ddc936458646 Mon Sep 17 00:00:00 2001 From: abs Date: Fri, 18 Oct 2002 22:03:49 +0000 Subject: Import cmu-dhcpd-3.3.7.9 CMU dhcpd 3.3.7 is a combined BootP and DHCP server, available from Carnegie Mellon University. Development of this sofware at CMU has been halted. At Princeton we've added a few new features, and fixed some bugs (and probably introduced new ones, naturally). We've also incorporated patches that others have posted. Our version is 3.3.7+PU. --- net/cmu-dhcpd/DESCR | 7 +++++++ net/cmu-dhcpd/Makefile | 24 ++++++++++++++++++++++++ net/cmu-dhcpd/PLIST | 5 +++++ net/cmu-dhcpd/distinfo | 5 +++++ net/cmu-dhcpd/patches/patch-aa | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 73 insertions(+) create mode 100644 net/cmu-dhcpd/DESCR create mode 100644 net/cmu-dhcpd/Makefile create mode 100644 net/cmu-dhcpd/PLIST create mode 100644 net/cmu-dhcpd/distinfo create mode 100644 net/cmu-dhcpd/patches/patch-aa (limited to 'net/cmu-dhcpd') diff --git a/net/cmu-dhcpd/DESCR b/net/cmu-dhcpd/DESCR new file mode 100644 index 00000000000..63d23d89707 --- /dev/null +++ b/net/cmu-dhcpd/DESCR @@ -0,0 +1,7 @@ +CMU dhcpd 3.3.7 is a combined BootP and DHCP server, available from +Carnegie Mellon University. + +Development of this sofware at CMU has been halted. At Princeton +we've added a few new features, and fixed some bugs (and probably +introduced new ones, naturally). We've also incorporated patches +that others have posted. diff --git a/net/cmu-dhcpd/Makefile b/net/cmu-dhcpd/Makefile new file mode 100644 index 00000000000..f809ac41e27 --- /dev/null +++ b/net/cmu-dhcpd/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1.1.1 2002/10/18 22:06:01 abs Exp $ +# + +DISTNAME= CMU-dhcp-3.3.7+PU-9 +PKGNAME= cmu-dhcp-3.3.7.9 +CATEGORIES= net +MASTER_SITES= http://heymon.princeton.edu/software/dhcpd/ +EXTRACT_SUFX= .tar.Z + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://heymon.princeton.edu/software/dhcpd/ +COMMENT= CMU BootP and DHCP server, plus Princeton patches + +WRKSRC= ${WRKDIR}/CMU-dhcp-3.3.7+PU-9 +GNU_CONFIGURE= YES + +do-install: + ${INSTALL_DATA_DIR} /var/db/bindings + ${INSTALL_PROGRAM} ${WRKSRC}/dhcpd ${PREFIX}/sbin/cmu-dhcpd + ${INSTALL_MAN} ${WRKSRC}/man/bootptab.5 ${PREFIX}/man/man5/bootptab.5 + ${INSTALL_MAN} ${WRKSRC}/man/dhcpd.8 ${PREFIX}/man/man8/dhcpd.8 + ${INSTALL_MAN} ${WRKSRC}/man/dhcpd.conf.5 ${PREFIX}/man/man5/dhcpd.conf.5 + +.include "../../mk/bsd.pkg.mk" diff --git a/net/cmu-dhcpd/PLIST b/net/cmu-dhcpd/PLIST new file mode 100644 index 00000000000..fd71bafedd2 --- /dev/null +++ b/net/cmu-dhcpd/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2002/10/18 22:06:01 abs Exp $ +man/man5/bootptab.5 +man/man5/dhcpd.conf.5 +man/man8/dhcpd.8 +sbin/cmu-dhcpd diff --git a/net/cmu-dhcpd/distinfo b/net/cmu-dhcpd/distinfo new file mode 100644 index 00000000000..73d4c1bce93 --- /dev/null +++ b/net/cmu-dhcpd/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2002/10/18 22:06:01 abs Exp $ + +SHA1 (CMU-dhcp-3.3.7+PU-9.tar.Z) = 9c7eb8f498eddd35d0eb9ceaa90451f06bb5cf27 +Size (CMU-dhcp-3.3.7+PU-9.tar.Z) = 752011 bytes +SHA1 (patch-aa) = bbedb6f3c01d6459f5e0623e8e165ecef6d09374 diff --git a/net/cmu-dhcpd/patches/patch-aa b/net/cmu-dhcpd/patches/patch-aa new file mode 100644 index 00000000000..45599c18866 --- /dev/null +++ b/net/cmu-dhcpd/patches/patch-aa @@ -0,0 +1,32 @@ +$NetBSD: patch-aa,v 1.1.1.1 2002/10/18 22:06:01 abs Exp $ + +--- defaults.h.orig Wed Oct 20 20:14:15 1999 ++++ defaults.h +@@ -41,7 +41,7 @@ + /* override each of them from the commandline. */ + + /* Absolute path to pidfile. */ +-#define PID_FILE "/etc/dhcpd.pid" ++#define PID_FILE "/var/run/cmu-dhcpd.pid" + + /* Absolute path to bootptab file. */ + #define TAB_FILE "/etc/bootptab" +@@ -50,7 +50,7 @@ + #define CONFIG_FILE "/etc/dhcpd.conf" + + /* Absolute path to bindings directory. */ +-#define LASTBINDDIR "/etc/bindings" ++#define LASTBINDDIR "/var/db/bindings" + + /* Absolute path to bootptab dump file. */ + #define DUMPTAB_FILE "/tmp/bootpd.dump" +@@ -81,6 +81,9 @@ + do this, if your platform needs that route to work right, you'll need + to add the route manually before starting the daemon. */ + /* #define NOBROADCAST */ ++#ifdef __NetBSD__ ++#define NOBROADCAST ++#endif + + /* */ + /**********************************************************************/ -- cgit v1.2.3