opt/maradns/Pkgfile

31 lines
882 B
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01:00
# Description: A authoritative,recursive (caching) DNS server that strives to be secure and fast
# URL: http://www.maradns.org/
2008-07-11 09:29:19 +02:00
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
2006-02-23 16:26:10 +01:00
name=maradns
2010-02-04 14:14:02 +01:00
version=1.4.03
2006-02-23 16:26:10 +01:00
release=1
2009-12-24 12:27:14 +01:00
source=(http://www.maradns.org/download/1.4/$version/maradns-$version.tar.bz2 \
2006-03-24 11:38:13 +01:00
mararc maradns db.localhost)
2006-02-23 16:26:10 +01:00
build () {
cd maradns-$version
2007-12-28 10:45:59 +01:00
2006-02-23 16:26:10 +01:00
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
2007-05-19 10:00:29 +02:00
make -j1
2006-02-23 16:26:10 +01:00
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
}