2015-04-15 13:38:03 +02:00
|
|
|
# Description: A authoritative only DNS server that strives to be secure and fast
|
2006-02-23 15:26:10 +00:00
|
|
|
# URL: http://www.maradns.org/
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=maradns
|
2015-09-28 11:42:56 +02:00
|
|
|
version=2.0.13
|
2006-02-23 15:26:10 +00:00
|
|
|
release=1
|
2015-04-15 13:38:03 +02:00
|
|
|
source=(http://maradns.samiam.org/download/2.0/$version/$name-$version.tar.bz2 \
|
2006-03-24 10:38:13 +00:00
|
|
|
mararc maradns db.localhost)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd maradns-$version
|
2007-12-28 10:45:59 +01:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
install -d $PKG/usr/{bin,sbin,man/man{1,5,8}}
|
2015-04-15 13:38:03 +02:00
|
|
|
install -d $PKG/etc/{rc.d,maradns}
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
sed -i "/^FLAGS/s/-O2/$CFLAGS/" build/Makefile.linux
|
2015-04-15 13:38:03 +02:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
./configure
|
2007-05-19 10:00:29 +02:00
|
|
|
make -j1
|
2006-02-23 15:26:10 +00:00
|
|
|
make PREFIX=$PKG/usr RPM_BUILD_ROOT=$PKG install
|
|
|
|
|
2015-04-15 13:38:03 +02:00
|
|
|
# remove deadwood
|
|
|
|
rm $PKG/usr/sbin/Deadwood
|
|
|
|
rm $PKG/usr/man/man1/Deadwood.1
|
|
|
|
rm $PKG/etc/dwood3rc
|
|
|
|
|
|
|
|
# remove duende
|
|
|
|
rm $PKG/usr/bin/duende
|
|
|
|
rm $PKG/usr/man/man8/duende.8
|
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
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
|
|
|
|
}
|