31 lines
884 B
Plaintext
31 lines
884 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.2.12.05
|
|
release=1
|
|
source=(http://www.maradns.org/download/1.2/$version/maradns-$version.tar.bz2 \
|
|
mararc maradns db.localhost)
|
|
|
|
build () {
|
|
cd maradns-$version
|
|
|
|
install -d $PKG/usr/{bin,sbin,man/man{1,5,8}}
|
|
install -d $PKG/{etc/{rc.d,maradns},var/log}
|
|
|
|
sed -i "/^FLAGS/s/-O2/$CFLAGS/" build/Makefile.linux
|
|
./configure
|
|
make
|
|
make PREFIX=$PKG/usr RPM_BUILD_ROOT=$PKG install
|
|
|
|
rm -r $PKG/usr/doc
|
|
mv $PKG/etc/mararc $PKG/etc/mararc.sample
|
|
|
|
install -m 644 $SRC/mararc $PKG/etc
|
|
install -m 644 $SRC/db.* $PKG/etc/maradns
|
|
install -m 755 $SRC/maradns $PKG/etc/rc.d
|
|
|
|
touch $PKG/var/log/maradns.log
|
|
}
|