blob: dbdc3cb8b9478863faefa6d0aeeee3643184eeb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $NetBSD: Makefile.common,v 1.4 2009/03/05 23:35:12 adrianp Exp $
#
# used by net/isc-dhcp/Makefile
# used by net/isc-dhcpd/Makefile
# used by net/isc-dhclient/Makefile
# used by net/isc-dhcrelay/Makefile
DISTNAME= dhcp-3.1.2
PKGNAME= ${DISTNAME:S/dhcp/isc-dhcp-${COMPONENT}/}
CATEGORIES= net
MASTER_SITES= http://ftp.isc.org/isc/dhcp/ \
http://ftp.isc.org/isc/dhcp/dhcp-3.0-history/
MAINTAINER= adrianp@NetBSD.org
HOMEPAGE= http://www.isc.org/sw/dhcp/
CONFLICTS+= isc-dhcp-base-4.*{,nb*}
.include "../../mk/bsd.prefs.mk"
HAS_CONFIGURE= yes
DHCP_HOME?= ${VARBASE}/db/isc-dhcp
DHCP_SYSLOG_LEVEL?= 1
PKG_SYSCONFSUBDIR= dhcp
USE_TOOLS+= nroff
FILESDIR= ${.CURDIR}/../isc-dhcp/files
PATCHDIR= ${.CURDIR}/../isc-dhcp/patches
EGDIR= ${PREFIX}/share/examples/isc-dhcp-${COMPONENT}
BUILD_DEFS+= VARBASE DHCP_HOME DHCP_SYSLOG_LEVEL
SUBST_CLASSES+= conf
SUBST_STAGE.conf= pre-configure
SUBST_MESSAGE.conf= Fixing configuration files.
SUBST_FILES.conf= includes/site.h site.conf
SUBST_SED.conf= -e 's|@@DHCP_SYSLOG_LEVEL@@|${DHCP_SYSLOG_LEVEL}|g'
SUBST_SED.conf+= -e 's|@@VARBASE@@|${VARBASE}|g'
SUBST_SED.conf+= -e 's|@@SYSCONFDIR@@|${PKG_SYSCONFDIR}|g'
SUBST_SED.conf+= -e 's|@@PREFIX@@|${PREFIX}|g'
SUBST_SED.conf+= -e 's|@@CC@@|${CC:Q}|g'
SUBST_SED.conf+= -e 's|@@CFLAGS@@|${CFLAGS:Q}|g'
SUBST_SED.conf+= -e 's|@@PKGMANDIR@@|${PKGMANDIR}|g'
post-extract:
${CAT} ${FILESDIR}/site.h >> ${WRKSRC}/includes/site.h
${CAT} ${FILESDIR}/site.conf >> ${WRKSRC}/site.conf
do-install:
. for d in ${SUBDIR}
cd ${WRKSRC}/work.`${WRKSRC}/configure --print-sysname`/${d} \
&& ${SETENV} ${MAKE_ENV} ${MAKE} install
. endfor
. for m in ${MAN_FILES}
${CHMOD} ${MANMODE} ${PREFIX}/${PKGMANDIR}/${m}
. endfor
|