a10c8cef56
Fixed --version flag in dhcrelay Clarified error message when lease limit exceeded Log messages when failover peer names mismatch have been improved to point out the problem. Manpage entries in dhcp-options.5 for the 'domain-list' format have been updated. The 'min-secs' configuration parameter's log message has been updated to be more helpful. Fixes to allow code to compile on Mac OS X Leopard (10.5). See http://www.isc.org/sw/dhcp/dhcp_rel2.php for all the details
56 lines
1.7 KiB
Text
56 lines
1.7 KiB
Text
# $NetBSD: Makefile.common,v 1.3 2008/05/27 19:34:30 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.1
|
|
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
|