updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / maradns-devel / PKGBUILD
blob810f7722ca5621b36f582e6bed96df8962e5ea03
1 #######################
2 ## Contributor: jiribb <jiribb@gmail.com>
3 ## Little modifications for devel version: figue <ffigue at gmail>
5 pkgname=maradns-devel
6 _pkgname=maradns
7 pkgver=1.3.14
8 pkgrel=1
9 pkgdesc="A fast, secure, admin and IPv6 friendly name server - Development release"
10 arch=('i686')
11 url="http://www.maradns.org/"
12 license=('custom:AS-IS' 'custom:BSD')
13 groups=()
14 depends=('glibc')
15 makedepends=()
16 provides=('dns-server')
17 conflicts=('maradns')
18 replaces=()
19 backup=('etc/mararc')
20 options=()
21 install=maradns.install
22 source=(http://www.maradns.org/download/1.3/$pkgver/maradns-$pkgver.tar.bz2 mararc rc-maradns maradns.install)
23 md5sums=('cf54d12c5d95df6add88c7dbaa83ea11'
24          '0368c452082f0b94ed0f75891ac650b8'
25          'ab525d7f4b2ee935026d9f491872cc84'
26          'efa4338ba6cb2907e571fc0307a1fdb0')
29 build() {
31 # prepare directories
32 mkdir -p $pkgdir/etc/{maradns,rc.d}
33 mkdir -p $pkgdir/usr/{bin,sbin,man/{man1,man5,man8},share/licenses/$_pkgname}
35 #build program
36 cd $srcdir/$_pkgname-$pkgver
37 ./configure
38 make || return 1
40 #install license
41 install -D -m644 COPYING $pkgdir/usr/share/licenses/$_pkgname/copying
43 # install binaries
44 install -D -m755 server/maradns $pkgdir/usr/sbin/maradns
45 install -D -m755 tcp/getzone $pkgdir/usr/bin/getzone
46 install -D -m755 tcp/fetchzone $pkgdir/usr/bin/fetchzone
47 install -D -m755 tcp/zoneserver $pkgdir/usr/sbin/zoneserver
48 install -D -m755 tools/askmara $pkgdir/usr/bin/askmara
49 install -D -m755 tools/duende $pkgdir/usr/bin/duende
51 # install man-pages
52 install -D -m644 doc/en/man/askmara.1 $pkgdir/usr/man/man1/askmara.1
53 install -D -m644 doc/en/man/getzone.1 $pkgdir/usr/man/man1/getzone.1
54 install -D -m644 doc/en/man/fetchzone.1 $pkgdir/usr/man/man1/fetchzone.1
55 install -D -m644 doc/en/man/maradns.8 $pkgdir/usr/man/man8/maradns.8
56 install -D -m644 doc/en/man/zoneserver.8 $pkgdir/usr/man/man8/zoneserver.8
57 install -D -m644 doc/en/man/duende.8 $pkgdir/usr/man/man8/duende.8
58 install -D -m644 doc/en/man/csv1.5 $pkgdir/usr/man/man5/csv1.5
59 install -D -m644 doc/en/man/csv2.5 $pkgdir/usr/man/man5/csv2.5
60 install -D -m644 doc/en/man/csv2_txt.5 $pkgdir/usr/man/man5/csv2_txt.5
61 install -D -m644 doc/en/man/mararc.5 $pkgdir/usr/man/man5/mararc.5
63 # default configs
64 #install -D -m644 $srcdir/mararc $pkgdir/etc/mararc
66 cp $srcdir/mararc $startdir/pkg/etc/
68 install -D -m644 $srcdir/$_pkgname-$pkgver/doc/en/examples/example_csv2 $pkgdir/etc/maradns/db.example.net
70 # rc.d script
71 install -D -m755 $srcdir/rc-maradns $pkgdir/etc/rc.d/maradns
73 # create logger directory for duende daemonizing tool
74 mkdir $pkgdir/etc/maradns/logger