summaryrefslogtreecommitdiff
path: root/maradns/Pkgfile
blob: e8d492bd9836abd8cfafdc217e27191b52f31daa (plain)
    1 # Description: A authoritative,recursive (caching) 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=1.4.07
    7 release=1
    8 source=(http://www.maradns.org/download/1.4/$version/maradns-$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}}
   15     install -d  $PKG/{etc/{rc.d,maradns},var/log}
   16 
   17     sed -i "/^FLAGS/s/-O2/$CFLAGS/" build/Makefile.linux
   18     ./configure
   19     make -j1
   20     make PREFIX=$PKG/usr RPM_BUILD_ROOT=$PKG install
   21 
   22     rm -r $PKG/usr/doc
   23     mv $PKG/etc/mararc $PKG/etc/mararc.sample
   24 
   25     install -m 644 $SRC/mararc $PKG/etc
   26     install -m 644 $SRC/db.* $PKG/etc/maradns
   27     install -m 755 $SRC/maradns $PKG/etc/rc.d
   28 
   29     touch $PKG/var/log/maradns.log
   30 }

Generated by cgit