pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/isc-dhcp This package provides the ISC Dynamic Hos...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c0f26a5ba737
branches:  trunk
changeset: 536407:c0f26a5ba737
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Wed Dec 12 20:02:08 2007 +0000

description:
This package provides the ISC Dynamic Host Configuration Protocol (DHCP)
server and DHCP relay agent.

It includes an DHCP (and BOOTP) server daemon used to distribute network
information, an Object Management API command shell for querying and
modifying DHCP server attributes (while it is running), and an agent
for relaying DHCP and BOOTP requests between subnets.

This package contains the Base component.

Imported from pkgsrc-wip.  Inital packaging by reed@

diffstat:

 net/isc-dhcp/DESCR                 |   9 ++++++
 net/isc-dhcp/Makefile              |  30 ++++++++++++++++++++++
 net/isc-dhcp/Makefile.common       |  50 ++++++++++++++++++++++++++++++++++++++
 net/isc-dhcp/PLIST                 |  25 +++++++++++++++++++
 net/isc-dhcp/TODO                  |   4 +++
 net/isc-dhcp/buildlink3.mk         |  19 ++++++++++++++
 net/isc-dhcp/distinfo              |   8 ++++++
 net/isc-dhcp/files/isc_dhclient.sh |  33 +++++++++++++++++++++++++
 net/isc-dhcp/files/isc_dhcpd.sh    |  35 ++++++++++++++++++++++++++
 net/isc-dhcp/files/isc_dhcrelay.sh |  33 +++++++++++++++++++++++++
 net/isc-dhcp/files/site.conf       |  25 +++++++++++++++++++
 net/isc-dhcp/files/site.h          |   6 ++++
 net/isc-dhcp/patches/patch-ab      |  13 +++++++++
 net/isc-dhcp/patches/patch-ac      |  38 ++++++++++++++++++++++++++++
 net/isc-dhcp/patches/patch-ad      |  18 +++++++++++++
 15 files changed, 346 insertions(+), 0 deletions(-)

diffs (truncated from 406 to 300 lines):

diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/DESCR        Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,9 @@
+This package provides the ISC Dynamic Host Configuration Protocol (DHCP)
+server and DHCP relay agent.
+
+It includes an DHCP (and BOOTP) server daemon used to distribute network
+information, an Object Management API command shell for querying and
+modifying DHCP server attributes (while it is running), and an agent
+for relaying DHCP and BOOTP requests between subnets.
+
+This package contains the Base component.
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/Makefile     Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/12/12 20:02:08 adrianp Exp $
+#
+
+COMMENT=       ISC Dynamic Host Configuration Protocol (DHCP) Base
+COMPONENT=     base
+SUBDIR=                common minires dst
+
+MAN_FILES=     man5/dhcp-eval.5 man5/dhcp-options.5
+
+post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/isc-dhcp-${COMPONENT}
+       ${INSTALL_DATA_DIR} ${PREFIX}/include/isc-dhcp
+       ${INSTALL_DATA_DIR} ${PREFIX}/include/omapip
+
+       ${INSTALL_DATA} ${WRKSRC}/README \
+               ${PREFIX}/share/doc/isc-dhcp-${COMPONENT}
+       ${INSTALL_DATA} ${WRKSRC}/RELNOTES \
+               ${PREFIX}/share/doc/isc-dhcp-${COMPONENT}
+       ${INSTALL_DATA} ${WRKSRC}/doc/References.txt \
+               ${PREFIX}/share/doc/isc-dhcp-${COMPONENT}
+       ${INSTALL_DATA} ${WRKSRC}/includes/isc-dhcp/*.h \
+               ${PREFIX}/include/isc-dhcp
+       ${INSTALL_DATA} ${WRKSRC}/includes/omapip/*.h \
+               ${PREFIX}/include/omapip
+       ${INSTALL_LIB} \
+               ${WRKSRC}/work.`${WRKSRC}/configure --print-sysname`/dst/*.a \
+               ${PREFIX}/lib
+
+.include "../../wip/isc-dhcp/Makefile.common"
+.include "../../mk/bsd.pkg.mk"
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/Makefile.common
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/Makefile.common      Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2007/12/12 20:02:08 adrianp Exp $
+#
+
+DISTNAME=              dhcp-3.1.0
+PKGNAME=               ${DISTNAME:S/dhcp/isc-dhcp-${COMPONENT}/}
+CATEGORIES=            net
+MASTER_SITES=          http://ftp.isc.org/isc/dhcp/ \
+                       http://ftp.isc.org/isc/dhcp/dhcp-3.0-history/
+
+MAINTAINER=            adrianp%NetBSD.org@localhost
+HOMEPAGE=              http://www.isc.org/sw/dhcp/
+
+.include "../../mk/bsd.prefs.mk"
+
+HAS_CONFIGURE=         yes
+DHCP_HOME?=            ${VARBASE}/db/isc-dhcp
+DHCP_SYSLOG_LEVEL?=    1
+PKG_SYSCONFSUBDIR=     dhcp
+USE_TOOLS+=            nroff
+
+FILESDIR=              ${.CURDIR}/../isc-dhcp/files
+PATCHDIR=              ${.CURDIR}/../isc-dhcp/patches
+EGDIR=                 ${PREFIX}/share/examples/isc-dhcp-${COMPONENT}
+BUILD_DEFS+=           VARBASE DHCP_HOME DHCP_SYSLOG_LEVEL
+
+SUBST_CLASSES+=                conf
+SUBST_STAGE.conf=       pre-configure
+SUBST_MESSAGE.conf=    Fixing configuration files.
+SUBST_FILES.conf=      includes/site.h site.conf
+SUBST_SED.conf=                -e 's|@@DHCP_SYSLOG_LEVEL@@|${DHCP_SYSLOG_LEVEL}|g'
+SUBST_SED.conf+=       -e 's|@@VARBASE@@|${VARBASE}|g'
+SUBST_SED.conf+=       -e 's|@@SYSCONFDIR@@|${PKG_SYSCONFDIR}|g'
+SUBST_SED.conf+=       -e 's|@@PREFIX@@|${PREFIX}|g'
+SUBST_SED.conf+=       -e 's|@@CC@@|${CC:Q}|g'
+SUBST_SED.conf+=       -e 's|@@CFLAGS@@|${CFLAGS:Q}|g'
+SUBST_SED.conf+=       -e 's|@@PKGMANDIR@@|${PKGMANDIR}|g'
+
+post-extract:
+       ${CAT} ${FILESDIR}/site.h >> ${WRKSRC}/includes/site.h
+       ${CAT} ${FILESDIR}/site.conf >> ${WRKSRC}/site.conf
+
+do-install:
+.      for d in ${SUBDIR}
+               cd ${WRKSRC}/work.`${WRKSRC}/configure --print-sysname`/${d} \
+                       && ${SETENV} ${MAKE_ENV} ${MAKE} install
+.      endfor
+
+.      for m in ${MAN_FILES}
+               ${CHMOD} ${MANMODE} ${PREFIX}/${PKGMANDIR}/${m}
+.      endfor
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/PLIST        Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/12/12 20:02:08 adrianp Exp $
+include/isc-dhcp/boolean.h
+include/isc-dhcp/dst.h
+include/isc-dhcp/int.h
+include/isc-dhcp/lang.h
+include/isc-dhcp/list.h
+include/isc-dhcp/result.h
+include/isc-dhcp/types.h
+include/omapip/alloc.h
+include/omapip/buffer.h
+include/omapip/convert.h
+include/omapip/hash.h
+include/omapip/omapip.h
+include/omapip/omapip_p.h
+include/omapip/trace.h
+include/omapip/trace_mr.h
+lib/libdst.a
+man/man5/dhcp-eval.5
+man/man5/dhcp-options.5
+share/doc/isc-dhcp-base/README
+share/doc/isc-dhcp-base/RELNOTES
+share/doc/isc-dhcp-base/References.txt
+@dirrm share/doc/isc-dhcp-base
+@dirrm include/isc-dhcp
+@dirrm include/omapip
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/TODO
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/TODO Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,4 @@
+set up patch for NetBSD, like:
+includes/cf/netbsd.h
+and common/bpf.c and common/fddi.c to use NETBSD_FDDI
+(see NetBSD's /usr/src/dist/dhcp)
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/buildlink3.mk        Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/12/12 20:02:08 adrianp Exp $
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
+ISC_DHCP_BASE_BUILDLINK3_MK:=  ${ISC_DHCP_BASE_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+=    isc-dhcp-base
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Nisc-dhcp-base}
+BUILDLINK_PACKAGES+=   isc-dhcp-base
+BUILDLINK_ORDER:=      ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}isc-dhcp-base
+
+.if ${ISC_DHCP_BASE_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.isc-dhcp-base+=  isc-dhcp-base>=3.1.0
+BUILDLINK_PKGSRCDIR.isc-dhcp-base?=    ../../wip/isc-dhcp
+.endif # ISC_DHCP_BASE_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH:S/+$//}
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/distinfo     Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/12/12 20:02:08 adrianp Exp $
+
+SHA1 (dhcp-3.1.0.tar.gz) = f33d017f055648e6571aa26cf314d37857491a2e
+RMD160 (dhcp-3.1.0.tar.gz) = 59ef8b695b66d3cb61437e25a179d9f17639017d
+Size (dhcp-3.1.0.tar.gz) = 797100 bytes
+SHA1 (patch-ab) = e5d0a682c0228ce1c63533fe361f5649d5dd2c17
+SHA1 (patch-ac) = 14f834431c1cb97d0b9c11ae43abc7b758bac923
+SHA1 (patch-ad) = bd10d5f519065ecbd061f3ccff6685c390a1118a
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/files/isc_dhclient.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/files/isc_dhclient.sh        Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,33 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: isc_dhclient.sh,v 1.1.1.1 2007/12/12 20:02:08 adrianp Exp $
+#
+
+# PROVIDE: dhclient
+# REQUIRE: network mountcritlocal
+# BEFORE:  NETWORKING
+#
+#      Note that there no syslog logging of dhclient messages at boot because
+#      dhclient needs to start before services that syslog depends upon do.
+#
+
+if [ -f /etc/rc.subr ]; then
+        . /etc/rc.subr
+fi
+
+name="dhclient"
+rcvar="isc_dhclient"
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/isc-dhcp/${name}.pid"
+start_precmd="isc_dhclient_precmd"
+
+isc_dhclient_precmd()
+{
+       if [ ! -d @VARBASE@/run/isc-dhcp ]; then
+               @MKDIR@ @VARBASE@/run/isc-dhcp
+               @CHMOD@ 0770 @VARBASE@/run/isc-dhcp
+       fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/files/isc_dhcpd.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/files/isc_dhcpd.sh   Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,35 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: isc_dhcpd.sh,v 1.1.1.1 2007/12/12 20:02:08 adrianp Exp $
+#
+
+# PROVIDE: dhcpd
+# REQUIRE: DAEMON
+# BEFORE:  LOGIN
+
+if [ -f /etc/rc.subr ]; then
+        . /etc/rc.subr
+fi
+
+name="dhcpd"
+rcvar="isc_dhcpd"
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/isc-dhcp/${name}.pid"
+required_files="@PKG_SYSCONFDIR@/${name}.conf @DHCP_HOME@/${name}.leases"
+start_precmd="isc_dhcpd_precmd"
+
+isc_dhcpd_precmd()
+{
+       if [ ! -d @VARBASE@/run/isc-dhcp ]; then
+               @MKDIR@ @VARBASE@/run/isc-dhcp
+               @CHMOD@ 0770 @VARBASE@/run/isc-dhcp
+       fi
+
+       if [ ! -f @DHCP_HOME@/dhcpd.leases ]; then
+               @TOUCH@ @DHCP_HOME@/dhcpd.leases
+               @CHMOD@ 0640 @DHCP_HOME@/dhcpd.leases
+       fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/files/isc_dhcrelay.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/files/isc_dhcrelay.sh        Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,33 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: isc_dhcrelay.sh,v 1.1.1.1 2007/12/12 20:02:08 adrianp Exp $
+#
+
+# PROVIDE: dhcrelay
+# REQUIRE: DAEMON
+# BEFORE:  NETWORKING
+#
+#      Note that there no syslog logging of dhclient messages at boot because
+#      dhclient needs to start before services that syslog depends upon do.
+#
+
+if [ -f /etc/rc.subr ]; then
+        . /etc/rc.subr
+fi
+
+name="dhcrelay"
+rcvar="isc_dhcrelay"
+command="@PREFIX@/sbin/${name}"
+pidfile="@VARBASE@/run/isc-dhcp/${name}.pid"
+start_precmd="isc_dhcrelay_precmd"
+
+isc_dhcrelay_precmd()
+{
+       if [ ! -d @VARBASE@/run/isc-dhcp ]; then
+               @MKDIR@ @VARBASE@/run/isc-dhcp
+               @CHMOD@ 0770 @VARBASE@/run/isc-dhcp
+       fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff -r 86055a1805bb -r c0f26a5ba737 net/isc-dhcp/files/site.conf
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/isc-dhcp/files/site.conf      Wed Dec 12 20:02:08 2007 +0000
@@ -0,0 +1,25 @@
+CC = @@CC@@
+CC_OPTIONS = @@CFLAGS@@
+USERBINDIR = @@PREFIX@@/bin
+BINDIR = @@PREFIX@@/sbin
+CLIENTBINDIR = @@PREFIX@@/sbin
+ADMMANDIR = @@PREFIX@@/@@PKGMANDIR@@/man8
+FFMANDIR = @@PREFIX@@/@@PKGMANDIR@@/man5
+LIBMANDIR = @@PREFIX@@/@@PKGMANDIR@@/man3
+USRMANDIR = @@PREFIX@@/@@PKGMANDIR@@/man1
+ADMMANEXT = .8



Home | Main Index | Thread Index | Old Index