| @@ -1,55 +1,55 @@ | | | @@ -1,55 +1,55 @@ |
1 | # $NetBSD: Makefile.common,v 1.13 2011/12/11 14:36:11 taca Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.14 2012/01/13 13:42:09 taca 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 | http://ftp.isc.org/isc/dhcp/${VERSION}/ | | 12 | 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/sw/dhcp | | 15 | HOMEPAGE= https://www.isc.org/sw/dhcp |
16 | LICENSE= isc | | 16 | LICENSE= isc |
17 | | | 17 | |
18 | CONFLICTS+= isc-dhcp-base-3.*{,nb*} | | 18 | CONFLICTS+= isc-dhcp-base-3.*{,nb*} |
19 | | | 19 | |
20 | VERSION= 4.2.3-P1 | | 20 | VERSION= 4.2.3-P2 |
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 | DHCP_HOME?= ${VARBASE}/db/isc-dhcp | | 25 | DHCP_HOME?= ${VARBASE}/db/isc-dhcp |
26 | DHCP_PID?= ${VARBASE}/run/isc-dhcp | | 26 | DHCP_PID?= ${VARBASE}/run/isc-dhcp |
27 | PKG_SYSCONFSUBDIR= dhcp | | 27 | PKG_SYSCONFSUBDIR= dhcp |
28 | | | 28 | |
29 | USE_TOOLS+= gmake | | 29 | USE_TOOLS+= gmake |
30 | USE_LANGUAGES+= c c++ | | 30 | USE_LANGUAGES+= c c++ |
31 | | | 31 | |
32 | PATCHDIR= ${.CURDIR}/../isc-dhcp4/patches | | 32 | PATCHDIR= ${.CURDIR}/../isc-dhcp4/patches |
33 | DISTINFO_FILE= ${.CURDIR}/../isc-dhcp4/distinfo | | 33 | DISTINFO_FILE= ${.CURDIR}/../isc-dhcp4/distinfo |
34 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | | 34 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} |
35 | BUILD_DEFS+= VARBASE DHCP_HOME DHCP_PID | | 35 | BUILD_DEFS+= VARBASE DHCP_HOME DHCP_PID |
36 | | | 36 | |
37 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | | 37 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} |
38 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 38 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
39 | CONFIGURE_ARGS+= --with-srv-lease-file=${DHCP_HOME}/dhcpd.leases | | 39 | CONFIGURE_ARGS+= --with-srv-lease-file=${DHCP_HOME}/dhcpd.leases |
40 | CONFIGURE_ARGS+= --with-cli-lease-file=${DHCP_HOME}/dhclient.leases | | 40 | CONFIGURE_ARGS+= --with-cli-lease-file=${DHCP_HOME}/dhclient.leases |
41 | CONFIGURE_ARGS+= --with-srv-pid-file=${DHCP_PID}/isc-dhcpd.pid | | 41 | CONFIGURE_ARGS+= --with-srv-pid-file=${DHCP_PID}/isc-dhcpd.pid |
42 | CONFIGURE_ARGS+= --with-cli-pid-file=${DHCP_PID}/isc-dhclient.pid | | 42 | CONFIGURE_ARGS+= --with-cli-pid-file=${DHCP_PID}/isc-dhclient.pid |
43 | CONFIGURE_ARGS+= --with-relay-pid-file=${DHCP_PID}/isc-dhcrelay.pid | | 43 | CONFIGURE_ARGS+= --with-relay-pid-file=${DHCP_PID}/isc-dhcrelay.pid |
44 | | | 44 | |
45 | SUBST_CLASSES+= config | | 45 | SUBST_CLASSES+= config |
46 | SUBST_STAGE.config= post-patch | | 46 | SUBST_STAGE.config= post-patch |
47 | SUBST_FILES.config= includes/dhcpd.h | | 47 | SUBST_FILES.config= includes/dhcpd.h |
48 | SUBST_SED.config= -e "s|@@PREFIX@@|${PREFIX}|g" | | 48 | SUBST_SED.config= -e "s|@@PREFIX@@|${PREFIX}|g" |
49 | SUBST_SED.config+= -e "s|@@PKG_SYSCONFDIR@@|${PKG_SYSCONFDIR}|g" | | 49 | SUBST_SED.config+= -e "s|@@PKG_SYSCONFDIR@@|${PKG_SYSCONFDIR}|g" |
50 | SUBST_MESSAGE.config= Fixing configuration files. | | 50 | SUBST_MESSAGE.config= Fixing configuration files. |
51 | | | 51 | |
52 | BUILD_DIRS= ${BUILD_SUBDIR} | | 52 | BUILD_DIRS= ${BUILD_SUBDIR} |
53 | INSTALL_DIRS= ${SUBDIR} | | 53 | INSTALL_DIRS= ${SUBDIR} |
54 | | | 54 | |
55 | .include "../../security/openssl/buildlink3.mk" | | 55 | .include "../../security/openssl/buildlink3.mk" |