73c9a8414a
Changes since 4.3.2rc2 - None Changes since 4.3.2rc1 - Corrected a compilation error introduced by the fix for ISC-Bugs #37415. The error occurs on Linux variants that do not support VLAN tag information in packet auxiliary data. The configure script now only enables inclusion of the VLAN tag-based logic if it is supported by the underlying OS. [ISC-Bugs #38677] Changes since 4.3.2b1 - Specifying the option, --disable-debug, on the configure script command line now disables debug features. Prior to this, specifying --disable-debug incorrectly enabled debug features. Thanks to Gustavo Zacarias for reporting the issue. [ISC-Bugs #37780] - Unit test execution now uses a path augmented during configuration processing of the --with-atf option to locate ATF runtime tools, atf-run and atf-report. For most installations of ATF, this should alleviate the need to manually include them in the PATH, as was formerly required. If the configure script cannot locate the tools it will emit a warning, informing the user that the tools must be in the PATH when running unit tests. Secondly, please note that "make check" will now exit with a failure status code (non-zero) if one or more unit tests fail. This means that invoking "make check" from an upper level directory will cause the make process to STOP after the first test subdirectory with failed test(s). To force all tests in all subdirectories to run, regardless of individual test outcome, use the command "make -k check". [ISC-Bugs #38619]
99 lines
3.4 KiB
Text
99 lines
3.4 KiB
Text
# $NetBSD: Makefile.common,v 1.25 2015/03/15 00:47:59 taca Exp $
|
|
#
|
|
# used by net/isc-dhcp4/Makefile
|
|
# used by net/isc-dhcpd4/Makefile
|
|
# used by net/isc-dhclient4/Makefile
|
|
# used by net/isc-dhcrelay4/Makefile
|
|
|
|
DISTNAME= dhcp-${VERSION}
|
|
DHVER= ${DISTNAME:S/dhcp-//:S/-P/p/}
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.isc.org/isc/dhcp/${VERSION}/ \
|
|
http://ftp.isc.org/isc/dhcp/${VERSION}/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://www.isc.org/sw/dhcp
|
|
LICENSE= isc
|
|
|
|
CONFLICTS+= isc-dhcp-base-3.*{,nb*}
|
|
|
|
VERSION= 4.3.2
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
GNU_CONFIGURE= yes
|
|
DHCP_HOME?= ${VARBASE}/db/isc-dhcp
|
|
DHCP_PID?= ${VARBASE}/run/isc-dhcp
|
|
PKG_SYSCONFSUBDIR= dhcp
|
|
|
|
USE_TOOLS+= gmake gzip tar
|
|
USE_LANGUAGES+= c c++
|
|
|
|
PATCHDIR= ${.CURDIR}/../isc-dhcp4/patches
|
|
DISTINFO_FILE= ${.CURDIR}/../isc-dhcp4/distinfo
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
BUILD_DEFS+= VARBASE DHCP_HOME DHCP_PID
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --with-srv-lease-file=${DHCP_HOME}/dhcpd.leases
|
|
CONFIGURE_ARGS+= --with-cli-lease-file=${DHCP_HOME}/dhclient.leases
|
|
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
|
|
CONFIGURE_ARGS+= --with-srv6-lease-file=${DHCP_HOME}/dhcpd6.leases
|
|
CONFIGURE_ARGS+= --with-cli6-lease-file=${DHCP_HOME}/dhclient6.leases
|
|
CONFIGURE_ARGS+= --with-srv6-pid-file=${DHCP_PID}/isc-dhcpd6.pid
|
|
CONFIGURE_ARGS+= --with-cli6-pid-file=${DHCP_PID}/isc-dhclient6.pid
|
|
CONFIGURE_ARGS+= --with-relay6-pid-file=${DHCP_PID}/isc-dhcrelay6.pid
|
|
|
|
.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
|
|
CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q}
|
|
. if ${OPSYS} == "NetBSD"
|
|
# Target will have /dev/random. For whatever reason this package
|
|
# requires you to specify the random device to use, and for native
|
|
# compilation it uses /dev/random, so we'll match that here even though
|
|
# it is almost certainly the case that it should be using /dev/urandom.
|
|
CONFIGURE_ENV+= ac_cv_file__dev_random=yes
|
|
CONFIGURE_ARGS+= --with-randomdev=/dev/random
|
|
. endif
|
|
.endif
|
|
|
|
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.
|
|
|
|
BUILD_DIRS= ${BUILD_SUBDIR}
|
|
INSTALL_DIRS= ${SUBDIR}
|
|
|
|
# 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 -)
|
|
|
|
BIND_CONFIGURE_ARGS+= --disable-kqueue
|
|
BIND_CONFIGURE_ARGS+= --disable-epoll
|
|
BIND_CONFIGURE_ARGS+= --disable-devpoll
|
|
BIND_CONFIGURE_ARGS+= --without-openssl
|
|
BIND_CONFIGURE_ARGS+= --without-libxml2
|
|
BIND_CONFIGURE_ARGS+= --enable-exportlib
|
|
BIND_CONFIGURE_ARGS+= --enable-threads=no
|
|
BIND_CONFIGURE_ARGS+= --with-export-includedir=${WRKSRC}/bind/include
|
|
BIND_CONFIGURE_ARGS+= --with-export-libdir=${WRKSRC}/bind/lib
|
|
BIND_CONFIGURE_ARGS+= --with-gssapi=no
|
|
|
|
BIND_WRKSRC= ${WRKSRC}/bind/bind-9.9.7
|
|
|
|
post-configure:
|
|
${RUN}${_ULIMIT_CMD} \
|
|
cd ${BIND_WRKSRC} && \
|
|
${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV} \
|
|
${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \
|
|
${CONFIGURE_SCRIPT} \
|
|
${CONFIGURE_ARGS} \
|
|
${BIND_CONFIGURE_ARGS}
|
|
|
|
.include "../../security/openssl/buildlink3.mk"
|