blob: 8cbe0dd055de43f3eeb596d149be69d9bbc4cac3 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=dnsmasq
pkgver=2.71
pkgrel=0
pkgdesc="Small forwarding DNS server"
url="http://www.thekelleys.org.uk/dnsmasq/"
arch="all"
license="GPL-2"
depends=
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="15a68f7f6cc0119e843f67d2f79598f1 dnsmasq-2.71.tar.gz
006fed857314053b870ff1927c12ae78 dnsmasq.initd
16985abb08c8e11f85e38b37ea3863a4 dnsmasq.confd"
sha256sums="7d8c64f66a396442e01b639df3ea6b4e02ba88cbe206c80be8de68b6841634c4 dnsmasq-2.71.tar.gz
3722169ffed553293ff41208b0f1a87f93c7b036e82da48b26b81500aab25d2d dnsmasq.initd
51c0672a70d5d6793d295d82db666d372fb081e8627318f67c88e48d08d254b5 dnsmasq.confd"
sha512sums="e08593f05b6ec1ceb7b7a027a6c3e015034ff7c0b1f4ab1c612d2510b0989fbad35bd14c446eeda0c4ea71a316751d7e9f0a8f971998ab3e7a8cf68f23d3ca1e dnsmasq-2.71.tar.gz
e7a37e687e42a7260a94135cb298d2b76c826d113ddc4050e3bf43d8523f7d7f3027b849288896ed1aac098c129e1db59ed429dc1983cff7d86d768af3f86fc5 dnsmasq.initd
9a401bfc408bf1638645c61b8ca734bea0a09ef79fb36648ec7ef21666257234254bbe6c73c82cc23aa1779ddcdda0e6baa2c041866f16dfb9c4e0ba9133eab8 dnsmasq.confd"
|