aboutsummaryrefslogtreecommitdiffstats
path: root/main/dnsmasq/APKBUILD
blob: c80b60fb52cb617c550e9096e89e1befc5d79e5f (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dnsmasq
pkgver=2.73
pkgrel=0
pkgdesc="Small forwarding DNS server"
url="http://www.thekelleys.org.uk/dnsmasq/"
arch="all"
license="GPL-2"
depends=
makedepends="linux-headers"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-doc"
source="http://www.thekelleys.org.uk/dnsmasq/$pkgname-$pkgver.tar.gz
	$pkgname.initd
	$pkgname.confd
	"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	sed -i -e 's/^AWK.*/AWK = awk/' Makefile
	make PREFIX=/usr \
		CFLAGS="$CFLAGS" \
		DBUS_LIBS= \
		DBUS_CFLAGS= \
		DBUS_MINOR= \
		all || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make PREFIX=/usr \
		DESTDIR="$pkgdir" \
		DBUS_LIBS= \
		DBUS_CFLAGS= \
		DBUS_MINOR= \
		install
	install -D -m755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -D -m644 "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
	install dnsmasq.conf.example "$pkgdir"/etc/dnsmasq.conf
}

md5sums="c2d56b11317336bc788ded4298642e2e  dnsmasq-2.73.tar.gz
68886433160c8b4a1d46c92be52b2244  dnsmasq.initd
16985abb08c8e11f85e38b37ea3863a4  dnsmasq.confd"
sha256sums="9f350f74ae2c7990b1c7c6c8591d274c37b674aa987f54dfee7ca856fae0d02d  dnsmasq-2.73.tar.gz
c3b088e3b3f8651a8c5d72041529731f14dd0a64e56aefa539fcb0d148f14ed3  dnsmasq.initd
51c0672a70d5d6793d295d82db666d372fb081e8627318f67c88e48d08d254b5  dnsmasq.confd"
sha512sums="7433fc231d4b8ba4d762e9baae8ea2f710aa338fe96e19a5b2a96cbb9d1231f035a45754887057c582445153444eaa3fe9bb860773d432667f278ab6e410eb2c  dnsmasq-2.73.tar.gz
1ff5ed2643c4f145757933afaead29bd1f215c125cc30a44710b91aa998587cd4d89316d62261d69a33720487573f1c74a782f8589d3fc5622af6c6695a613b4  dnsmasq.initd
9a401bfc408bf1638645c61b8ca734bea0a09ef79fb36648ec7ef21666257234254bbe6c73c82cc23aa1779ddcdda0e6baa2c041866f16dfb9c4e0ba9133eab8  dnsmasq.confd"