| @@ -1,102 +1,102 @@ | | | @@ -1,102 +1,102 @@ |
1 | # $NetBSD: Makefile.common,v 1.44 2022/03/31 09:50:54 jperkin Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.44.4.1 2022/10/07 16:34:09 bsiegert Exp $ |
2 | # | | 2 | # |
3 | # used by net/isc-dhcp4/Makefile | | 3 | # used by net/isc-dhcp4/Makefile |
4 | # used by net/isc-dhcpd4/Makefile | | 4 | # used by net/isc-dhcpd4/Makefile |
5 | # used by net/isc-dhclient4/Makefile | | 5 | # used by net/isc-dhclient4/Makefile |
6 | # used by net/isc-dhcrelay4/Makefile | | 6 | # used by net/isc-dhcrelay4/Makefile |
7 | | | 7 | |
8 | DISTNAME= dhcp-${VERSION} | | 8 | DISTNAME= dhcp-${VERSION} |
9 | DHVER= ${DISTNAME:S/dhcp-//:S/-P/p/} | | 9 | DHVER= ${DISTNAME:S/dhcp-//:S/-P/p/} |
10 | CATEGORIES= net | | 10 | CATEGORIES= net |
11 | MASTER_SITES= ftp://ftp.isc.org/isc/dhcp/${VERSION}/ | | 11 | MASTER_SITES= ftp://ftp.isc.org/isc/dhcp/${VERSION}/ |
12 | MASTER_SITES+= http://ftp.isc.org/isc/dhcp/${VERSION}/ | | 12 | MASTER_SITES+= http://ftp.isc.org/isc/dhcp/${VERSION}/ |
13 | | | 13 | |
14 | MAINTAINER= pkgsrc-users@NetBSD.org | | 14 | MAINTAINER= pkgsrc-users@NetBSD.org |
15 | HOMEPAGE= https://www.isc.org/dhcp/ | | 15 | HOMEPAGE= https://www.isc.org/dhcp/ |
16 | LICENSE= mpl-2.0 | | 16 | LICENSE= mpl-2.0 |
17 | | | 17 | |
18 | CONFLICTS+= isc-dhcp-base-3.* | | 18 | CONFLICTS+= isc-dhcp-base-3.* |
19 | | | 19 | |
20 | VERSION= 4.4.3 | | 20 | VERSION= 4.4.3-P1 |
21 | | | 21 | |
22 | .include "../../mk/bsd.prefs.mk" | | 22 | .include "../../mk/bsd.prefs.mk" |
23 | | | 23 | |
24 | GNU_CONFIGURE= yes | | 24 | GNU_CONFIGURE= yes |
25 | GNU_CONFIGURE_STRICT= no # has several configure programs | | 25 | GNU_CONFIGURE_STRICT= no # has several configure programs |
26 | DHCP_HOME?= ${VARBASE}/db/isc-dhcp | | 26 | DHCP_HOME?= ${VARBASE}/db/isc-dhcp |
27 | DHCP_PID?= ${VARBASE}/run/isc-dhcp | | 27 | DHCP_PID?= ${VARBASE}/run/isc-dhcp |
28 | PKG_SYSCONFSUBDIR= dhcp | | 28 | PKG_SYSCONFSUBDIR= dhcp |
29 | | | 29 | |
30 | USE_TOOLS+= gmake gunzip gzip tar | | 30 | USE_TOOLS+= gmake gunzip gzip tar |
31 | USE_LANGUAGES+= c99 c++ | | 31 | USE_LANGUAGES+= c99 c++ |
32 | | | 32 | |
33 | PATCHDIR= ${.CURDIR}/../../net/isc-dhcp4/patches | | 33 | PATCHDIR= ${.CURDIR}/../../net/isc-dhcp4/patches |
34 | DISTINFO_FILE= ${.CURDIR}/../../net/isc-dhcp4/distinfo | | 34 | DISTINFO_FILE= ${.CURDIR}/../../net/isc-dhcp4/distinfo |
35 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | | 35 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} |
36 | BUILD_DEFS+= VARBASE DHCP_HOME DHCP_PID | | 36 | BUILD_DEFS+= VARBASE DHCP_HOME DHCP_PID |
37 | | | 37 | |
38 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | | 38 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} |
39 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 39 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
40 | CONFIGURE_ARGS+= --with-srv-lease-file=${DHCP_HOME}/dhcpd.leases | | 40 | CONFIGURE_ARGS+= --with-srv-lease-file=${DHCP_HOME}/dhcpd.leases |
41 | CONFIGURE_ARGS+= --with-cli-lease-file=${DHCP_HOME}/dhclient.leases | | 41 | CONFIGURE_ARGS+= --with-cli-lease-file=${DHCP_HOME}/dhclient.leases |
42 | CONFIGURE_ARGS+= --with-srv-pid-file=${DHCP_PID}/isc-dhcpd.pid | | 42 | CONFIGURE_ARGS+= --with-srv-pid-file=${DHCP_PID}/isc-dhcpd.pid |
43 | CONFIGURE_ARGS+= --with-cli-pid-file=${DHCP_PID}/isc-dhclient.pid | | 43 | CONFIGURE_ARGS+= --with-cli-pid-file=${DHCP_PID}/isc-dhclient.pid |
44 | CONFIGURE_ARGS+= --with-relay-pid-file=${DHCP_PID}/isc-dhcrelay.pid | | 44 | CONFIGURE_ARGS+= --with-relay-pid-file=${DHCP_PID}/isc-dhcrelay.pid |
45 | CONFIGURE_ARGS+= --with-srv6-lease-file=${DHCP_HOME}/dhcpd6.leases | | 45 | CONFIGURE_ARGS+= --with-srv6-lease-file=${DHCP_HOME}/dhcpd6.leases |
46 | CONFIGURE_ARGS+= --with-cli6-lease-file=${DHCP_HOME}/dhclient6.leases | | 46 | CONFIGURE_ARGS+= --with-cli6-lease-file=${DHCP_HOME}/dhclient6.leases |
47 | CONFIGURE_ARGS+= --with-srv6-pid-file=${DHCP_PID}/isc-dhcpd6.pid | | 47 | CONFIGURE_ARGS+= --with-srv6-pid-file=${DHCP_PID}/isc-dhcpd6.pid |
48 | CONFIGURE_ARGS+= --with-cli6-pid-file=${DHCP_PID}/isc-dhclient6.pid | | 48 | CONFIGURE_ARGS+= --with-cli6-pid-file=${DHCP_PID}/isc-dhclient6.pid |
49 | CONFIGURE_ARGS+= --with-relay6-pid-file=${DHCP_PID}/isc-dhcrelay6.pid | | 49 | CONFIGURE_ARGS+= --with-relay6-pid-file=${DHCP_PID}/isc-dhcrelay6.pid |
50 | | | 50 | |
51 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) | | 51 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
52 | CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q} | | 52 | CONFIGURE_ENV+= BUILD_CC=${NATIVE_CC:Q} |
53 | # Target will have /dev/random. For whatever reason this package | | 53 | # Target will have /dev/random. For whatever reason this package |
54 | # requires you to specify the random device to use, and for native | | 54 | # requires you to specify the random device to use, and for native |
55 | # compilation it uses /dev/random, so we'll match that here even though | | 55 | # compilation it uses /dev/random, so we'll match that here even though |
56 | # it is almost certainly the case that it should be using /dev/urandom. | | 56 | # it is almost certainly the case that it should be using /dev/urandom. |
57 | CONFIGURE_ENV.NetBSD+= ac_cv_file__dev_random=yes | | 57 | CONFIGURE_ENV.NetBSD+= ac_cv_file__dev_random=yes |
58 | CONFIGURE_ARGS.NetBSD+= --with-randomdev=/dev/random | | 58 | CONFIGURE_ARGS.NetBSD+= --with-randomdev=/dev/random |
59 | .endif | | 59 | .endif |
60 | | | 60 | |
61 | CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ | | 61 | CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ |
62 | LDFLAGS.SunOS+= -lnsl | | 62 | LDFLAGS.SunOS+= -lnsl |
63 | | | 63 | |
64 | SUBST_CLASSES+= config | | 64 | SUBST_CLASSES+= config |
65 | SUBST_STAGE.config= pre-configure | | 65 | SUBST_STAGE.config= pre-configure |
66 | SUBST_FILES.config= includes/dhcpd.h | | 66 | SUBST_FILES.config= includes/dhcpd.h |
67 | SUBST_VARS.config= PREFIX PKG_SYSCONFDIR | | 67 | SUBST_VARS.config= PREFIX PKG_SYSCONFDIR |
68 | SUBST_MESSAGE.config= Fixing configuration files. | | 68 | SUBST_MESSAGE.config= Fixing configuration files. |
69 | | | 69 | |
70 | BUILD_DIRS= ${BUILD_SUBDIR} | | 70 | BUILD_DIRS= ${BUILD_SUBDIR} |
71 | INSTALL_DIRS= ${SUBDIR} | | 71 | INSTALL_DIRS= ${SUBDIR} |
72 | | | 72 | |
73 | # XXX This crap should replaced by a dependency on net/libbind, but | | 73 | # XXX This crap should replaced by a dependency on net/libbind, but |
74 | # that seems to be a different version of libbind. | | 74 | # that seems to be a different version of libbind. |
75 | post-extract: | | 75 | post-extract: |
76 | cd ${WRKSRC}/bind && ${TAR} -zxf bind.tar.gz | | 76 | cd ${WRKSRC}/bind && ${TAR} -zxf bind.tar.gz |
77 | | | 77 | |
78 | BIND_CONFIGURE_ARGS+= --disable-kqueue | | 78 | BIND_CONFIGURE_ARGS+= --disable-kqueue |
79 | BIND_CONFIGURE_ARGS+= --disable-epoll | | 79 | BIND_CONFIGURE_ARGS+= --disable-epoll |
80 | BIND_CONFIGURE_ARGS+= --disable-devpoll | | 80 | BIND_CONFIGURE_ARGS+= --disable-devpoll |
81 | BIND_CONFIGURE_ARGS+= --without-openssl | | 81 | BIND_CONFIGURE_ARGS+= --without-openssl |
82 | BIND_CONFIGURE_ARGS+= --without-libxml2 | | 82 | BIND_CONFIGURE_ARGS+= --without-libxml2 |
83 | BIND_CONFIGURE_ARGS+= --enable-exportlib | | 83 | BIND_CONFIGURE_ARGS+= --enable-exportlib |
84 | BIND_CONFIGURE_ARGS+= --enable-threads=no | | 84 | BIND_CONFIGURE_ARGS+= --enable-threads=no |
85 | BIND_CONFIGURE_ARGS+= --with-export-includedir=${WRKSRC}/bind/include | | 85 | BIND_CONFIGURE_ARGS+= --with-export-includedir=${WRKSRC}/bind/include |
86 | BIND_CONFIGURE_ARGS+= --with-export-libdir=${WRKSRC}/bind/lib | | 86 | BIND_CONFIGURE_ARGS+= --with-export-libdir=${WRKSRC}/bind/lib |
87 | BIND_CONFIGURE_ARGS+= --with-gssapi=no | | 87 | BIND_CONFIGURE_ARGS+= --with-gssapi=no |
88 | BIND_CONFIGURE_ARGS+= --with-python=no | | 88 | BIND_CONFIGURE_ARGS+= --with-python=no |
89 | | | 89 | |
90 | BIND_WRKSRC= ${WRKSRC}/bind/bind-9.11.36 | | 90 | BIND_WRKSRC= ${WRKSRC}/bind/bind-9.11.36 |
91 | | | 91 | |
92 | post-configure: | | 92 | post-configure: |
93 | ${RUN}${_ULIMIT_CMD} \ | | 93 | ${RUN}${_ULIMIT_CMD} \ |
94 | cd ${BIND_WRKSRC} && \ | | 94 | cd ${BIND_WRKSRC} && \ |
95 | ${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV} \ | | 95 | ${PKGSRC_SETENV} ${_CONFIGURE_SCRIPT_ENV} \ |
96 | ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \ | | 96 | ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \ |
97 | ${CONFIGURE_SCRIPT} \ | | 97 | ${CONFIGURE_SCRIPT} \ |
98 | ${CONFIGURE_ARGS} \ | | 98 | ${CONFIGURE_ARGS} \ |
99 | ${BIND_CONFIGURE_ARGS} | | 99 | ${BIND_CONFIGURE_ARGS} |
100 | | | 100 | |
101 | .include "../../devel/zlib/buildlink3.mk" | | 101 | .include "../../devel/zlib/buildlink3.mk" |
102 | .include "../../security/openssl/buildlink3.mk" | | 102 | .include "../../security/openssl/buildlink3.mk" |