diff options
author | adrianp <adrianp@pkgsrc.org> | 2008-12-21 21:24:08 +0000 |
---|---|---|
committer | adrianp <adrianp@pkgsrc.org> | 2008-12-21 21:24:08 +0000 |
commit | 6b4812621976ac8c13b7b3ff8fab591b2de2eab3 (patch) | |
tree | e3a231614e5857aa1e88760db101fe3074c18125 /net | |
parent | 511204858935bf2874fc8353c7b1b004a0704bca (diff) | |
download | pkgsrc-6b4812621976ac8c13b7b3ff8fab591b2de2eab3.tar.gz |
Despite supporting --sysconfdir isc-dhcp hard sets the location of
configuration files and binaries in a number of cases. This should hopefully
fix them all. Without this patch they look in /etc only and fail to start
if the file is not present.
Diffstat (limited to 'net')
-rw-r--r-- | net/isc-dhclient4/Makefile | 3 | ||||
-rw-r--r-- | net/isc-dhclient4/distinfo | 3 | ||||
-rw-r--r-- | net/isc-dhcp4/Makefile | 3 | ||||
-rw-r--r-- | net/isc-dhcp4/Makefile.common | 9 | ||||
-rw-r--r-- | net/isc-dhcp4/distinfo | 3 | ||||
-rw-r--r-- | net/isc-dhcp4/patches/patch-ac | 27 | ||||
-rw-r--r-- | net/isc-dhcpd4/Makefile | 3 | ||||
-rw-r--r-- | net/isc-dhcpd4/distinfo | 3 | ||||
-rw-r--r-- | net/isc-dhcrelay4/Makefile | 3 | ||||
-rw-r--r-- | net/isc-dhcrelay4/distinfo | 3 |
10 files changed, 51 insertions, 9 deletions
diff --git a/net/isc-dhclient4/Makefile b/net/isc-dhclient4/Makefile index 4b026a5651e..8a73c2c2a67 100644 --- a/net/isc-dhclient4/Makefile +++ b/net/isc-dhclient4/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/02/13 22:05:21 adrianp Exp $ +# $NetBSD: Makefile,v 1.2 2008/12/21 21:24:08 adrianp Exp $ # COMMENT= ISC Dynamic Host Configuration Protocol (DHCP) Client COMPONENT= client +PKGREVISION= 1 SUBDIR= client CONF_FILES+= ${EGDIR}/dhclient.conf ${PKG_SYSCONFDIR}/dhclient.conf diff --git a/net/isc-dhclient4/distinfo b/net/isc-dhclient4/distinfo index 8cd01b6c52e..2f60323a443 100644 --- a/net/isc-dhclient4/distinfo +++ b/net/isc-dhclient4/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2008/02/13 22:05:21 adrianp Exp $ +$NetBSD: distinfo,v 1.2 2008/12/21 21:24:08 adrianp Exp $ SHA1 (dhcp-4.0.0.tar.gz) = acb4ab7634ba002893b15baba1443ef4d6c92201 RMD160 (dhcp-4.0.0.tar.gz) = 86963598124617bc7d1059262c75176db431f26d Size (dhcp-4.0.0.tar.gz) = 1043725 bytes SHA1 (patch-aa) = 162f8950cfcbb9647b81d8d1518867aaf8ec7905 SHA1 (patch-ab) = cd38b5075d2f3a3121fb7dc9f870a6091c603ef1 +SHA1 (patch-ac) = 7079a37a7bbdf7ede805ecba61700ecf86fffaea diff --git a/net/isc-dhcp4/Makefile b/net/isc-dhcp4/Makefile index a7fcf2c900e..ac0a1d07956 100644 --- a/net/isc-dhcp4/Makefile +++ b/net/isc-dhcp4/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/02/13 22:03:58 adrianp Exp $ +# $NetBSD: Makefile,v 1.2 2008/12/21 21:24:08 adrianp Exp $ # COMMENT= ISC Dynamic Host Configuration Protocol (DHCP) Base COMPONENT= base +PKGREVISION= 1 SUBDIR= includes common minires dst .include "options.mk" diff --git a/net/isc-dhcp4/Makefile.common b/net/isc-dhcp4/Makefile.common index 098aeb9b214..5f2cefd7fd0 100644 --- a/net/isc-dhcp4/Makefile.common +++ b/net/isc-dhcp4/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.2 2008/12/02 12:07:47 martti Exp $ +# $NetBSD: Makefile.common,v 1.3 2008/12/21 21:24:08 adrianp Exp $ # # used by net/isc-dhcp4/Makefile # used by net/isc-dhcpd4/Makefile @@ -35,6 +35,13 @@ CONFIGURE_ARGS+= --with-srv-pid-file=${DHCP_PID}/isc-dhcpd.pid CONFIGURE_ARGS+= --with-cli-pid-file=${DHCP_PID}/isc-dhclient.pid CONFIGURE_ARGS+= --with-relay-pid-file=${DHCP_PID}/isc-dhcrelay.pid +SUBST_CLASSES+= config +SUBST_STAGE.config= post-patch +SUBST_FILES.config= includes/dhcpd.h +SUBST_SED.config= -e "s|@@PREFIX@@|${PREFIX}|g" +SUBST_SED.config+= -e "s|@@PKG_SYSCONFDIR@@|${PKG_SYSCONFDIR}|g" +SUBST_MESSAGE.config= Fixing configuration files. + do-install: . for d in ${SUBDIR} cd ${WRKSRC}/${d} && ${SETENV} ${MAKE_ENV} ${MAKE} install diff --git a/net/isc-dhcp4/distinfo b/net/isc-dhcp4/distinfo index 924842e44d9..2f60323a443 100644 --- a/net/isc-dhcp4/distinfo +++ b/net/isc-dhcp4/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2008/02/13 22:03:58 adrianp Exp $ +$NetBSD: distinfo,v 1.2 2008/12/21 21:24:08 adrianp Exp $ SHA1 (dhcp-4.0.0.tar.gz) = acb4ab7634ba002893b15baba1443ef4d6c92201 RMD160 (dhcp-4.0.0.tar.gz) = 86963598124617bc7d1059262c75176db431f26d Size (dhcp-4.0.0.tar.gz) = 1043725 bytes SHA1 (patch-aa) = 162f8950cfcbb9647b81d8d1518867aaf8ec7905 SHA1 (patch-ab) = cd38b5075d2f3a3121fb7dc9f870a6091c603ef1 +SHA1 (patch-ac) = 7079a37a7bbdf7ede805ecba61700ecf86fffaea diff --git a/net/isc-dhcp4/patches/patch-ac b/net/isc-dhcp4/patches/patch-ac new file mode 100644 index 00000000000..c313f3b0665 --- /dev/null +++ b/net/isc-dhcp4/patches/patch-ac @@ -0,0 +1,27 @@ +$NetBSD: patch-ac,v 1.1 2008/12/21 21:24:08 adrianp Exp $ + +--- includes/dhcpd.h.orig 2007-12-08 19:36:00.000000000 +0000 ++++ includes/dhcpd.h +@@ -1241,7 +1241,7 @@ typedef unsigned char option_mask [16]; + #else /* !DEBUG */ + + #ifndef _PATH_DHCPD_CONF +-#define _PATH_DHCPD_CONF "/etc/dhcpd.conf" ++#define _PATH_DHCPD_CONF "@@PKG_SYSCONFDIR@@/dhcpd.conf" + #endif /* DEBUG */ + + #ifndef _PATH_DHCPD_DB +@@ -1263,11 +1263,11 @@ typedef unsigned char option_mask [16]; + #endif /* DEBUG */ + + #ifndef _PATH_DHCLIENT_CONF +-#define _PATH_DHCLIENT_CONF "/etc/dhclient.conf" ++#define _PATH_DHCLIENT_CONF "@@PKG_SYSCONFDIR@@/dhclient.conf" + #endif + + #ifndef _PATH_DHCLIENT_SCRIPT +-#define _PATH_DHCLIENT_SCRIPT "/sbin/dhclient-script" ++#define _PATH_DHCLIENT_SCRIPT "@@PREFIX@@/sbin/dhclient-script" + #endif + + #ifndef _PATH_DHCLIENT_PID diff --git a/net/isc-dhcpd4/Makefile b/net/isc-dhcpd4/Makefile index f8513ee41c1..9459845b2f3 100644 --- a/net/isc-dhcpd4/Makefile +++ b/net/isc-dhcpd4/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/02/13 22:06:15 adrianp Exp $ +# $NetBSD: Makefile,v 1.2 2008/12/21 21:24:08 adrianp Exp $ # COMMENT= ISC Dynamic Host Configuration Protocol (DHCP) Server COMPONENT= server +PKGREVISION= 1 SUBDIR= omapip dhcpctl server CONF_FILES+= ${EGDIR}/dhcpd.conf ${PKG_SYSCONFDIR}/dhcpd.conf diff --git a/net/isc-dhcpd4/distinfo b/net/isc-dhcpd4/distinfo index 1360124aff0..2f60323a443 100644 --- a/net/isc-dhcpd4/distinfo +++ b/net/isc-dhcpd4/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2008/02/13 22:06:15 adrianp Exp $ +$NetBSD: distinfo,v 1.2 2008/12/21 21:24:08 adrianp Exp $ SHA1 (dhcp-4.0.0.tar.gz) = acb4ab7634ba002893b15baba1443ef4d6c92201 RMD160 (dhcp-4.0.0.tar.gz) = 86963598124617bc7d1059262c75176db431f26d Size (dhcp-4.0.0.tar.gz) = 1043725 bytes SHA1 (patch-aa) = 162f8950cfcbb9647b81d8d1518867aaf8ec7905 SHA1 (patch-ab) = cd38b5075d2f3a3121fb7dc9f870a6091c603ef1 +SHA1 (patch-ac) = 7079a37a7bbdf7ede805ecba61700ecf86fffaea diff --git a/net/isc-dhcrelay4/Makefile b/net/isc-dhcrelay4/Makefile index 14e60bae3d3..57566b3092a 100644 --- a/net/isc-dhcrelay4/Makefile +++ b/net/isc-dhcrelay4/Makefile @@ -1,8 +1,9 @@ -# $NetBSD: Makefile,v 1.1.1.1 2008/02/13 22:06:55 adrianp Exp $ +# $NetBSD: Makefile,v 1.2 2008/12/21 21:24:08 adrianp Exp $ # COMMENT= ISC Dynamic Host Configuration Protocol (DHCP) Relay COMPONENT= relay +PKGREVISION= 1 SUBDIR= relay RCD_SCRIPTS= isc_dhcrelay diff --git a/net/isc-dhcrelay4/distinfo b/net/isc-dhcrelay4/distinfo index 32e787724a6..2f60323a443 100644 --- a/net/isc-dhcrelay4/distinfo +++ b/net/isc-dhcrelay4/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.1.1.1 2008/02/13 22:06:55 adrianp Exp $ +$NetBSD: distinfo,v 1.2 2008/12/21 21:24:08 adrianp Exp $ SHA1 (dhcp-4.0.0.tar.gz) = acb4ab7634ba002893b15baba1443ef4d6c92201 RMD160 (dhcp-4.0.0.tar.gz) = 86963598124617bc7d1059262c75176db431f26d Size (dhcp-4.0.0.tar.gz) = 1043725 bytes SHA1 (patch-aa) = 162f8950cfcbb9647b81d8d1518867aaf8ec7905 SHA1 (patch-ab) = cd38b5075d2f3a3121fb7dc9f870a6091c603ef1 +SHA1 (patch-ac) = 7079a37a7bbdf7ede805ecba61700ecf86fffaea |