summaryrefslogtreecommitdiffstats
path: root/dns/dnsmasq/Makefile
blob: 4e9bfddfbfa3e0e0dbded047518c64f98b157962 (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
# New ports collection makefile for:	dnsmasq
# Date created:				1 June 2003
# Whom:					Steven Honson <steven@honson.org>
#
# $FreeBSD$
#

PORTNAME=	dnsmasq
PORTVERSION=	2.18
CATEGORIES=	dns
MASTER_SITES=	http://www.thekelleys.org.uk/dnsmasq/

MAINTAINER=	steven@honson.org
COMMENT=	Lightweight, easy to configure DNS forwarder and DHCP server

USE_REINPLACE=	yes
USE_RC_SUBR=	yes

MAN8=		dnsmasq.8
PLIST_FILES=	sbin/dnsmasq etc/dnsmasq.conf.example etc/rc.d/dnsmasq.sh

USE_GETOPT_LONG=	yes
MAKE_ENV+=	"LIBS=${LDFLAGS}"
.if defined(WITHOUT_IPV6)
MAKE_ENV+=	RPM_OPT_FLAGS="${CPPFLAGS} -DNO_IPV6"
.else
MAKE_ENV+=	RPM_OPT_FLAGS="${CPPFLAGS}"
.endif

post-build:
	@${SED} -e "s|%%RC_SUBR%%|${RC_SUBR}|g;s|%%PREFIX%%|${PREFIX}|g" \
	<${FILESDIR}/dnsmasq.sh >${WRKDIR}/dnsmasq.sh

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/dnsmasq ${PREFIX}/sbin
	${INSTALL_DATA} ${WRKSRC}/dnsmasq.conf.example ${PREFIX}/etc
	${INSTALL_SCRIPT} ${WRKDIR}/dnsmasq.sh ${PREFIX}/etc/rc.d
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${PREFIX}/man/man8

.include <bsd.port.mk>
OpenPOWER on IntegriCloud