blob: 046a197f3950ca222cfaf0adb6bbe4a8bed0d503 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dnsmasq
pkgver=2.76
pkgrel=4
pkgdesc="A lightweight DNS, DHCP, RA, TFTP and PXE server"
url="http://www.thekelleys.org.uk/dnsmasq/"
arch="all"
license="GPL2"
depends="!$pkgname-dnssec"
makedepends="linux-headers nettle-dev"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-doc $pkgname-dnssec"
source="http://www.thekelleys.org.uk/dnsmasq/$pkgname-$pkgver.tar.gz
$pkgname.initd
$pkgname.confd
uncomment-conf-dir.patch
"
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$builddir"
make CFLAGS="$CFLAGS" COPTS="-DHAVE_DNSSEC" all || return 1
mv src/dnsmasq src/dnsmasq~dnssec || return 1
make CFLAGS="$CFLAGS" clean all
}
# dnsmasq doesn't provide any test suite (shame on them!), so just check that
# the binary isn't totally broken...
check() {
cd "$builddir"
./src/dnsmasq --help >/dev/null
}
package() {
cd "$builddir"
make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
install -D -m755 "$srcdir"/$pkgname.initd \
"$pkgdir"/etc/init.d/$pkgname || return 1
install -D -m644 "$srcdir"/$pkgname.confd \
"$pkgdir"/etc/conf.d/$pkgname || return 1
install -m644 dnsmasq.conf.example "$pkgdir"/etc/dnsmasq.conf || return 1
install -d -m755 "$pkgdir"/etc/dnsmasq.d
}
dnssec() {
pkgdesc="$pkgdesc with DNSSEC support"
depends="!$pkgname"
cd "$builddir"
install -D -m 755 src/dnsmasq~dnssec \
"$subpkgdir"/usr/sbin/dnsmasq || return 1
install -D -m 644 trust-anchors.conf \
"$subpkgdir"/usr/share/$pkgname/trust-anchors.conf || return 1
cp -r "$pkgdir"/etc "$subpkgdir"/etc
}
sha512sums="c22627a8d864671096d3b3428ec4f879b513e1f1e7f79be3ab89444c56234e748fbfa6b6b4f9e521984fea95d363f4aa2ca6243f0dfc12ffb74bed0648ae21c5 dnsmasq-2.76.tar.gz
b07055d71e535f753aff432124812fbef86cc2f490ff2a4704959c34b0f69caa74791a4ad08b2b8638c9126233591d3a86c188965eb1308e7e7c12dc0039d1ad dnsmasq.initd
9a401bfc408bf1638645c61b8ca734bea0a09ef79fb36648ec7ef21666257234254bbe6c73c82cc23aa1779ddcdda0e6baa2c041866f16dfb9c4e0ba9133eab8 dnsmasq.confd
d01077f39e1240041a6700137810f254daf683b2d58dafecb6b162e94d694992e57d45964a57993b298f97c2b589eedcf9fb1506692730a38b7f06b5f55ba8d8 uncomment-conf-dir.patch"
|