| @@ -1,57 +1,58 @@ | | | @@ -1,57 +1,58 @@ |
1 | # $NetBSD: Makefile,v 1.22 2013/05/28 09:32:00 fhajny Exp $ | | 1 | # $NetBSD: Makefile,v 1.23 2013/07/21 07:59:26 roy Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= dnsmasq-2.66 | | 4 | DISTNAME= dnsmasq-2.66 |
| | | 5 | PKGREVISION= 1 |
5 | CATEGORIES= net | | 6 | CATEGORIES= net |
6 | MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/ | | 7 | MASTER_SITES= http://www.thekelleys.org.uk/dnsmasq/ |
7 | LICENSE= gnu-gpl-v3 | | 8 | LICENSE= gnu-gpl-v3 |
8 | | | 9 | |
9 | MAINTAINER= roy@NetBSD.org | | 10 | MAINTAINER= roy@NetBSD.org |
10 | HOMEPAGE= http://www.thekelleys.org.uk/dnsmasq/doc.html | | 11 | HOMEPAGE= http://www.thekelleys.org.uk/dnsmasq/doc.html |
11 | COMMENT= Lightweight, easy to configure DNS forwarder | | 12 | COMMENT= Lightweight, easy to configure DNS forwarder |
12 | | | 13 | |
13 | RCD_SCRIPTS= dnsmasq | | 14 | RCD_SCRIPTS= dnsmasq |
14 | CONF_FILES= ${PREFIX}/share/examples/dnsmasq/dnsmasq.conf.example \ | | 15 | CONF_FILES= ${PREFIX}/share/examples/dnsmasq/dnsmasq.conf.example \ |
15 | ${PKG_SYSCONFDIR}/dnsmasq.conf | | 16 | ${PKG_SYSCONFDIR}/dnsmasq.conf |
16 | | | 17 | |
17 | PKG_OPTIONS_VAR= PKG_OPTIONS.dnsmasq | | 18 | PKG_OPTIONS_VAR= PKG_OPTIONS.dnsmasq |
18 | PKG_SUPPORTED_OPTIONS= dbus inet6 | | 19 | PKG_SUPPORTED_OPTIONS= dbus inet6 |
19 | PKG_SUGGESTED_OPTIONS= inet6 | | 20 | PKG_SUGGESTED_OPTIONS= inet6 |
20 | PLIST_VARS+= dbus | | 21 | PLIST_VARS+= dbus |
21 | | | 22 | |
22 | .include "../../mk/bsd.options.mk" | | 23 | .include "../../mk/bsd.options.mk" |
23 | | | 24 | |
24 | .if !empty(PKG_OPTIONS:Mdbus) | | 25 | .if !empty(PKG_OPTIONS:Mdbus) |
25 | USE_TOOLS+= pkg-config | | 26 | USE_TOOLS+= pkg-config |
26 | CFLAGS+= -DHAVE_DBUS | | 27 | CFLAGS+= -DHAVE_DBUS |
27 | .include "../../sysutils/dbus/buildlink3.mk" | | 28 | .include "../../sysutils/dbus/buildlink3.mk" |
28 | CONF_FILES+= ${PREFIX}/share/examples/dnsmasq/dnsmasq-dbus.conf \ | | 29 | CONF_FILES+= ${PREFIX}/share/examples/dnsmasq/dnsmasq-dbus.conf \ |
29 | ${PKG_SYSCONFDIR}/dbus-1/system.d/dnsmasq-dbus.conf | | 30 | ${PKG_SYSCONFDIR}/dbus-1/system.d/dnsmasq-dbus.conf |
30 | PLIST.dbus= yes | | 31 | PLIST.dbus= yes |
31 | .endif | | 32 | .endif |
32 | | | 33 | |
33 | .if empty(PKG_OPTIONS:Minet6) | | 34 | .if empty(PKG_OPTIONS:Minet6) |
34 | CFLAGS+= -DNO_IPV6 | | 35 | CFLAGS+= -DNO_IPV6 |
35 | .endif | | 36 | .endif |
36 | | | 37 | |
37 | # Override the defaults | | 38 | # Override the defaults |
38 | AUTO_MKDIRS=yes | | 39 | AUTO_MKDIRS=yes |
39 | CFLAGS+= -DCONFFILE=\\\"${PKG_SYSCONFDIR}/dnsmasq.conf\\\" | | 40 | CFLAGS+= -DCONFFILE=\\\"${PKG_SYSCONFDIR}/dnsmasq.conf\\\" |
40 | BUILD_MAKE_FLAGS+= COPTS="${CFLAGS}" | | 41 | BUILD_MAKE_FLAGS+= COPTS="${CFLAGS}" |
41 | INSTALL_MAKE_FLAGS+= PREFIX="${PREFIX}" | | 42 | INSTALL_MAKE_FLAGS+= PREFIX="${PREFIX}" |
42 | INSTALL_MAKE_FLAGS+= MANDIR="${PREFIX}/${PKGMANDIR}" | | 43 | INSTALL_MAKE_FLAGS+= MANDIR="${PREFIX}/${PKGMANDIR}" |
43 | INSTALL_MAKE_FLAGS+= LOCALEDIR="${PREFIX}/${PKGLOCALEDIR}" | | 44 | INSTALL_MAKE_FLAGS+= LOCALEDIR="${PREFIX}/${PKGLOCALEDIR}" |
44 | | | 45 | |
45 | # Upstream wants to use nawk, but awk should work just fine here. | | 46 | # Upstream wants to use nawk, but awk should work just fine here. |
46 | BUILD_MAKE_FLAGS+= AWK="${AWK}" | | 47 | BUILD_MAKE_FLAGS+= AWK="${AWK}" |
47 | INSTALL_MAKE_FLAGS+= AWK="${AWK}" | | 48 | INSTALL_MAKE_FLAGS+= AWK="${AWK}" |
48 | | | 49 | |
49 | post-install: | | 50 | post-install: |
50 | ${INSTALL_DATA} ${WRKSRC}/dnsmasq.conf.example \ | | 51 | ${INSTALL_DATA} ${WRKSRC}/dnsmasq.conf.example \ |
51 | ${DESTDIR}${PREFIX}/share/examples/dnsmasq/ | | 52 | ${DESTDIR}${PREFIX}/share/examples/dnsmasq/ |
52 | .if !empty(PKG_OPTIONS:Mdbus) | | 53 | .if !empty(PKG_OPTIONS:Mdbus) |
53 | ${INSTALL_DATA} ${WRKSRC}/dbus/dnsmasq.conf \ | | 54 | ${INSTALL_DATA} ${WRKSRC}/dbus/dnsmasq.conf \ |
54 | ${DESTDIR}${PREFIX}/share/examples/dnsmasq/dnsmasq-dbus.conf | | 55 | ${DESTDIR}${PREFIX}/share/examples/dnsmasq/dnsmasq-dbus.conf |
55 | .endif | | 56 | .endif |
56 | | | 57 | |
57 | .include "../../mk/bsd.pkg.mk" | | 58 | .include "../../mk/bsd.pkg.mk" |