1
0
forked from ports/opt
opt/maradns/Pkgfile
2005-11-21 14:48:16 +00:00

27 lines
863 B
Plaintext

# Description: A authoritative,recursive (caching) DNS server that strives to be secure and fast
# URL: http://www.maradns.org/
# Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
name=maradns
version=1.0.35
release=1
source=(http://www.maradns.org/download/$name-$version.tar.bz2 \
mararc maradns db.localhost db.0.0.127)
build () {
cd $name-$version
mkdir -p $PKG/usr/{bin,sbin,man/man{1,5,8}}
mkdir -p $PKG/{etc/{rc.d,maradns},var/log}
find -regex '.*Makefile.*' | xargs sed -i "/^FLAGS/s/-g/$CFLAGS/"
make
make PREFIX=$PKG/usr RPM_BUILD_ROOT=$PKG install
rm -r $PKG/usr/doc
mv $PKG/etc/mararc $PKG/etc/mararc.sample
touch $PKG/var/log/maradns.log
install -m 644 $SRC/mararc $PKG/etc
install -m 644 $SRC/db.* $PKG/etc/maradns
install -m 755 $SRC/maradns $PKG/etc/rc.d
}