pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net isc-dhcp4: add LDAP as an option; pkglint fixes
details: https://anonhg.NetBSD.org/pkgsrc/rev/c5dbed1b00b1
branches: trunk
changeset: 400335:c5dbed1b00b1
user: adam <adam%pkgsrc.org@localhost>
date: Tue Aug 27 08:12:01 2019 +0000
description:
isc-dhcp4: add LDAP as an option; pkglint fixes
diffstat:
net/isc-dhclient4/Makefile | 4 ++--
net/isc-dhcp4/Makefile.common | 10 +++++-----
net/isc-dhcp4/options.mk | 12 ++++++++++--
net/isc-dhcpd4/Makefile | 4 ++--
net/isc-dhcrelay4/Makefile | 4 ++--
5 files changed, 21 insertions(+), 13 deletions(-)
diffs (117 lines):
diff -r f2a85e3fcd61 -r c5dbed1b00b1 net/isc-dhclient4/Makefile
--- a/net/isc-dhclient4/Makefile Tue Aug 27 06:58:30 2019 +0000
+++ b/net/isc-dhclient4/Makefile Tue Aug 27 08:12:01 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2014/10/14 13:53:00 taca Exp $
+# $NetBSD: Makefile,v 1.12 2019/08/27 08:12:01 adam Exp $
PKGNAME= isc-dhclient-${DHVER}
COMMENT= ISC Dynamic Host Configuration Protocol (DHCP) Client
@@ -10,7 +10,7 @@
RCD_SCRIPTS= isc_dhclient
FILES_SUBST+= DHCP_HOME=${DHCP_HOME}
-.include "${.CURDIR}/../isc-dhcp4/options.mk"
+.include "../../net/isc-dhcp4/options.mk"
INSTALLATION_DIRS+= ${EGDIR}
diff -r f2a85e3fcd61 -r c5dbed1b00b1 net/isc-dhcp4/Makefile.common
--- a/net/isc-dhcp4/Makefile.common Tue Aug 27 06:58:30 2019 +0000
+++ b/net/isc-dhcp4/Makefile.common Tue Aug 27 08:12:01 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.38 2019/06/18 20:02:24 nia Exp $
+# $NetBSD: Makefile.common,v 1.39 2019/08/27 08:12:01 adam Exp $
#
# used by net/isc-dhcp4/Makefile
# used by net/isc-dhcpd4/Makefile
@@ -29,8 +29,8 @@
USE_TOOLS+= gmake gunzip gzip tar
USE_LANGUAGES+= c99 c++
-PATCHDIR= ${.CURDIR}/../isc-dhcp4/patches
-DISTINFO_FILE= ${.CURDIR}/../isc-dhcp4/distinfo
+PATCHDIR= ${.CURDIR}/../../net/isc-dhcp4/patches
+DISTINFO_FILE= ${.CURDIR}/../../net/isc-dhcp4/distinfo
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
BUILD_DEFS+= VARBASE DHCP_HOME DHCP_PID
@@ -63,7 +63,7 @@
SUBST_STAGE.config= pre-configure
SUBST_FILES.config= includes/dhcpd.h
SUBST_VARS.config= PREFIX PKG_SYSCONFDIR
-SUBST_MESSAGE.config= Fixing configuration files.
+SUBST_MESSAGE.config= Fixing configuration files.
BUILD_DIRS= ${BUILD_SUBDIR}
INSTALL_DIRS= ${SUBDIR}
@@ -71,7 +71,7 @@
# XXX This crap should replaced by a dependency on net/libbind, but
# that seems to be a different version of libbind.
post-extract:
- (cd ${WRKSRC}/bind && gunzip -c bind.tar.gz | tar xf -)
+ cd ${WRKSRC}/bind && ${TAR} -zxf bind.tar.gz
BIND_CONFIGURE_ARGS+= --disable-kqueue
BIND_CONFIGURE_ARGS+= --disable-epoll
diff -r f2a85e3fcd61 -r c5dbed1b00b1 net/isc-dhcp4/options.mk
--- a/net/isc-dhcp4/options.mk Tue Aug 27 06:58:30 2019 +0000
+++ b/net/isc-dhcp4/options.mk Tue Aug 27 08:12:01 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.2 2012/06/12 15:45:59 wiz Exp $
+# $NetBSD: options.mk,v 1.3 2019/08/27 08:12:01 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.dhcp
-PKG_SUPPORTED_OPTIONS+= inet6
+PKG_SUPPORTED_OPTIONS+= inet6 ldap
PKG_SUGGESTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
@@ -14,3 +14,11 @@
.else
CONFIGURE_ARGS+= --disable-dhcpv6
.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+CONFIGURE_ARGS+= --with-ldap
+CONFIGURE_ARGS+= --with-ldapcrypto
+.include "../../databases/openldap-client/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-ldap
+.endif
diff -r f2a85e3fcd61 -r c5dbed1b00b1 net/isc-dhcpd4/Makefile
--- a/net/isc-dhcpd4/Makefile Tue Aug 27 06:58:30 2019 +0000
+++ b/net/isc-dhcpd4/Makefile Tue Aug 27 08:12:01 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 2014/10/14 13:53:01 taca Exp $
+# $NetBSD: Makefile,v 1.14 2019/08/27 08:12:01 adam Exp $
PKGNAME= isc-dhcpd-${DHVER}
COMMENT= ISC Dynamic Host Configuration Protocol (DHCP) Server
@@ -14,7 +14,7 @@
FILES_SUBST+= DHCP_HOME=${DHCP_HOME:Q}
FILES_SUBST+= DHCP_PID=${DHCP_PID:Q}
-.include "${.CURDIR}/../isc-dhcp4/options.mk"
+.include "../../net/isc-dhcp4/options.mk"
INSTALLATION_DIRS+= ${EGDIR}
diff -r f2a85e3fcd61 -r c5dbed1b00b1 net/isc-dhcrelay4/Makefile
--- a/net/isc-dhcrelay4/Makefile Tue Aug 27 06:58:30 2019 +0000
+++ b/net/isc-dhcrelay4/Makefile Tue Aug 27 08:12:01 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2014/10/14 13:53:01 taca Exp $
+# $NetBSD: Makefile,v 1.11 2019/08/27 08:12:01 adam Exp $
PKGNAME= isc-dhcrelay-${DHVER}
COMMENT= ISC Dynamic Host Configuration Protocol (DHCP) Relay
@@ -8,7 +8,7 @@
RCD_SCRIPTS= isc_dhcrelay
FILES_SUBST+= DHCP_HOME=${DHCP_HOME}
-.include "${.CURDIR}/../isc-dhcp4/options.mk"
+.include "../../net/isc-dhcp4/options.mk"
.include "../../net/isc-dhcp4/Makefile.common"
.include "../../net/isc-dhcp4/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index