blob: 50aad964392a0b6a9089eecc61afe1e672b3ffc6 (
plain)
1 # $Id: Pkgfile,v 1.14 2004/05/30 11:31:36 jue Exp $
2 # Description: A authoritative,recursive (caching) DNS server that strives to be secure and fast
3 # URL: http://www.maradns.org/
4 # Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
5
6 name=maradns
7 version=1.2.03.2
8 release=1
9 source=(http://www.maradns.org/download/1.2/$version/maradns-$version.tar.bz2 \
10 mararc maradns db.localhost db.0.0.127)
11
12 build () {
13 cd maradns-$version
14
15 install -d $PKG/usr/{bin,sbin,man/man{1,5,8}}
16 install -d $PKG/{etc/{rc.d,maradns},var/log}
17
18 sed -i "/^FLAGS/s/-O2/$CFLAGS/" build/Makefile.linux
19 ./configure
20 make
21 make PREFIX=$PKG/usr RPM_BUILD_ROOT=$PKG install
22
23 rm -r $PKG/usr/doc
24 mv $PKG/etc/mararc $PKG/etc/mararc.sample
25
26 install -m 644 $SRC/mararc $PKG/etc
27 install -m 644 $SRC/db.* $PKG/etc/maradns
28 install -m 755 $SRC/maradns $PKG/etc/rc.d
29
30 touch $PKG/var/log/maradns.log
31 }
|