blob: 484ae96e037747f536cf159d330f5ecc083fe736 (
plain)
1 # Description: A authoritative only DNS server that strives to be secure and fast
2 # URL: http://www.maradns.org/
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4
5 name=maradns
6 version=2.0.15
7 release=1
8 source=(http://maradns.samiam.org/download/2.0/$version/$name-$version.tar.bz2 \
9 mararc maradns db.localhost)
10
11 build () {
12 cd maradns-$version
13
14 install -d $PKG/usr/{bin,sbin,man/man{1,5,8},share}
15 install -d $PKG/etc/{rc.d,maradns}
16
17 sed -i "/^FLAGS/s/-O2/$CFLAGS/" build/Makefile.linux
18
19 ./configure
20 make -j1
21 make PREFIX=$PKG/usr RPM_BUILD_ROOT=$PKG install
22
23 # remove deadwood
24 rm $PKG/usr/sbin/Deadwood
25 rm $PKG/usr/man/man1/Deadwood.1
26 rm $PKG/etc/dwood3rc
27
28 # remove duende
29 rm $PKG/usr/bin/duende
30 rm $PKG/usr/man/man8/duende.8
31
32 # move man-pages
33 mv $PKG/usr/man/ $PKG/usr/share/man
34
35 rm -r $PKG/usr/doc
36 mv $PKG/etc/mararc $PKG/etc/mararc.sample
37
38 install -m 644 $SRC/mararc $PKG/etc
39 install -m 644 $SRC/db.* $PKG/etc/maradns
40 install -m 755 $SRC/maradns $PKG/etc/rc.d
41 }
|