2003-06-03 02:03:40 +00:00
|
|
|
# New ports collection makefile for: dnsmasq
|
|
|
|
# Date created: 1 June 2003
|
2006-06-06 09:31:28 +00:00
|
|
|
# Whom: Steven Honson
|
2003-06-03 02:03:40 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dnsmasq
|
2008-06-20 22:05:40 +00:00
|
|
|
PORTVERSION= 2.42
|
2006-02-22 20:16:25 +00:00
|
|
|
CATEGORIES= dns ipv6
|
2006-11-04 22:36:46 +00:00
|
|
|
MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/ \
|
|
|
|
${MASTER_SITE_GENTOO}
|
2006-08-21 11:51:06 +00:00
|
|
|
MASTER_SITE_SUBDIR= distfiles
|
2003-06-03 02:03:40 +00:00
|
|
|
|
2006-11-08 09:28:33 +00:00
|
|
|
MAINTAINER= farrokhi@FreeBSD.org
|
2004-08-14 11:49:51 +00:00
|
|
|
COMMENT= Lightweight, easy to configure DNS forwarder and DHCP server
|
2003-06-03 02:03:40 +00:00
|
|
|
|
2004-02-06 13:12:53 +00:00
|
|
|
MAN8= dnsmasq.8
|
2006-02-22 20:16:25 +00:00
|
|
|
|
2006-11-04 22:36:46 +00:00
|
|
|
docs= CHANGELOG FAQ doc.html setup.html
|
2006-02-22 20:16:25 +00:00
|
|
|
PORTDOCS= ${docs:T}
|
|
|
|
|
|
|
|
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
|
2005-07-16 01:23:02 +00:00
|
|
|
|
2005-10-24 01:36:21 +00:00
|
|
|
USE_GMAKE= yes
|
2006-08-01 19:58:37 +00:00
|
|
|
USE_GNOME= pkgconfig
|
|
|
|
MAKE_ENV= LIBS="${LDFLAGS}" RPM_OPT_FLAGS="${CPPFLAGS}" COPTS="${CFLAGS}"
|
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" PREFIX="${PREFIX}"
|
2003-06-03 02:03:40 +00:00
|
|
|
|
2006-08-01 19:58:37 +00:00
|
|
|
OPTIONS= IPV6 "IPv6 support" off
|
2006-06-06 09:31:28 +00:00
|
|
|
OPTIONS+= DBUS "D_BUS support" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-12-13 01:12:31 +00:00
|
|
|
.if defined(WITHOUT_IPV6)
|
2005-10-24 01:36:21 +00:00
|
|
|
CFLAGS+= -DNO_IPV6
|
2004-12-13 01:12:31 +00:00
|
|
|
.endif
|
|
|
|
|
2006-02-22 20:16:25 +00:00
|
|
|
.if defined(WITH_DBUS)
|
|
|
|
LIB_DEPENDS+= dbus-1:${PORTSDIR}/devel/dbus
|
2006-07-13 18:25:35 +00:00
|
|
|
CFLAGS+= -DHAVE_DBUS
|
2006-02-22 20:16:25 +00:00
|
|
|
.endif
|
|
|
|
|
2005-07-16 01:23:02 +00:00
|
|
|
USE_RC_SUBR= dnsmasq.sh
|
2003-10-13 19:36:10 +00:00
|
|
|
|
|
|
|
do-install:
|
2004-01-30 14:01:34 +00:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/dnsmasq ${PREFIX}/sbin
|
2004-10-13 09:16:07 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/dnsmasq.conf.example ${PREFIX}/etc
|
2006-01-25 11:01:34 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.8 ${PREFIX}/man/man8
|
2006-02-22 20:16:25 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${docs} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
${MKDIR} ${EXAMPLESDIR}/dynamic-dnsmasq ${EXAMPLESDIR}/dnslist
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/dynamic-dnsmasq/dynamic-dnsmasq.pl ${EXAMPLESDIR}/dynamic-dnsmasq/
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/contrib/dnslist/dnslist.pl ${EXAMPLESDIR}/dnslist/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/dnslist/dhcp.css ${EXAMPLESDIR}/dnslist/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/contrib/dnslist/dnslist.tt2 ${EXAMPLESDIR}/dnslist/
|
2003-10-13 19:36:10 +00:00
|
|
|
|
2005-07-16 01:23:02 +00:00
|
|
|
.include <bsd.port.post.mk>
|