blob: e583a5250de042db23b430aa73fc4fa8cefc8623 (
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
|
# $NetBSD: Makefile,v 1.11 2009/06/14 21:15:50 roy Exp $
#
DISTNAME= dnsmasq-2.49
CATEGORIES= net
MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/
MAINTAINER= roy@NetBSD.org
HOMEPAGE= http://www.thekelleys.org.uk/dnsmasq/doc.html
COMMENT= Lightweight, easy to configure DNS forwarder
RCD_SCRIPTS= dnsmasq
CONF_FILES= ${PREFIX}/share/examples/dnsmasq/dnsmasq.conf.example \
${PKG_SYSCONFDIR}/dnsmasq.conf
PKG_DESTDIR_SUPPORT= user-destdir
.include "options.mk"
# Override the defaults
CFLAGS+= -DCONFFILE=\\\"${PKG_SYSCONFDIR}/dnsmasq.conf\\\"
BUILD_MAKE_FLAGS+= COPTS="${CFLAGS}"
INSTALL_MAKE_FLAGS+= PREFIX="${PREFIX}"
INSTALL_MAKE_FLAGS+= MANDIR="${PREFIX}/${PKGMANDIR}"
INSTALL_MAKE_FLAGS+= LOCALEDIR="${PREFIX}/${PKGLOCALEDIR}"
# Upstream wants to use nawk, but awk should work just fine here.
BUILD_MAKE_FLAGS+= AWK="${AWK}"
INSTALL_MAKE_FLAGS+= AWK="${AWK}"
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/dnsmasq
${INSTALL} ${WRKSRC}/dnsmasq.conf.example \
${DESTDIR}${PREFIX}/share/examples/dnsmasq/
.include "../../mk/bsd.pkg.mk"
|