blob: 6f4cd79317e3f9a952ce7892e2104568d42cf876 (
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.75
pkgrel=1
pkgdesc="Small forwarding DNS server"
url="http://www.thekelleys.org.uk/dnsmasq/"
arch="all"
license="GPL2"
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="d99ac126d4fe910c679d88430559669b dnsmasq-2.75.tar.gz
bfc91bcb341fd6d0f50eaeca1bb31cb0 dnsmasq.initd
16985abb08c8e11f85e38b37ea3863a4 dnsmasq.confd"
sha256sums="f8252c0a0ba162c2cd45f81140c7c17cc40a5fca2b869d1a420835b74acad294 dnsmasq-2.75.tar.gz
9105043609236d774c1f502c309b56cbc669ce0b5e39b424789bbf55f0842037 dnsmasq.initd
51c0672a70d5d6793d295d82db666d372fb081e8627318f67c88e48d08d254b5 dnsmasq.confd"
sha512sums="17406223738ae24311bde4a705b4ab5836d0af16a4b75ceeb55584f683644e1c4c6c43d319221810279bed4ed2185ce4e7d2c92d4d65cdf0baaf729152284832 dnsmasq-2.75.tar.gz
a7c44bd4c7d04d881e561288ee4979378ee0cd72a812a5dc33a040aea40374a2cbcafb1b3b2a6fa07291ee0831b7d421f7a8749289213fe1fb3205163980bfa5 dnsmasq.initd
9a401bfc408bf1638645c61b8ca734bea0a09ef79fb36648ec7ef21666257234254bbe6c73c82cc23aa1779ddcdda0e6baa2c041866f16dfb9c4e0ba9133eab8 dnsmasq.confd"
|