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

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

MAINTAINER=	steven@honson.org
COMMENT=	A caching DNS forwarder

USE_REINPLACE=	yes

MAN8=		dnsmasq.8
PLIST_FILES=	sbin/dnsmasq etc/dnsmasq.conf.example

post-patch:
	@${REINPLACE_CMD} -e \
	's|^CC = gcc|CC?=cc|g ; \
	s|^CFLAGS = -O2|CFLAGS+=-O2|g' ${WRKSRC}/Makefile

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

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