PKGBUILDs/extra/rbldnsd/PKGBUILD
2009-10-09 21:23:22 -05:00

33 lines
1.2 KiB
Bash

# $Id: PKGBUILD 36862 2009-04-28 06:07:16Z eric $
# Contributor: Dale Blount <dale@archlinux.org>
# Maintainer: Dale Blount <dale@archlinux.org>
pkgname=rbldnsd
pkgver=0.996b
pkgrel=1
pkgdesc="Small and fast DNS daemon which is especially made to serve DNSBL zones"
arch=(i686 x86_64)
url="http://www.corpit.ru/mjt/rbldnsd.html"
license=('GPL')
depends=('zlib')
backup=('etc/conf.d/rbldnsd')
options=('force')
install=$pkgname.install
source=(http://www.corpit.ru/mjt/$pkgname/${pkgname}_${pkgver}.tar.gz rc.rbldnsd conf.rbldnsd)
md5sums=('9a0f26f3b33764c325a96bd4c61b26fa' '1d197df99197244290217288b1a91c38'\
'8fc8131d235a938a1e8024ab85dc93ea')
build() {
cd $srcdir/$pkgname-$pkgver
./configure || return 1
make || return 1
install -d $pkgdir/var/lib/rbldns/logs
chown 59:59 $startdir/pkg/var/lib/rbldns || return 1
chown 58:58 $startdir/pkg/var/lib/rbldns/logs || return 1
chmod 0711 -R $startdir/pkg/var/lib/rbldns
install -D -m 0755 rbldnsd $pkgdir/usr/bin/rbldnsd || return 1
install -D -m 0644 rbldnsd.8 $pkgdir/usr/share/man/man8/rbldnsd.8 || return 1
install -D -m 0644 $srcdir/conf.rbldnsd $pkgdir/etc/conf.d/rbldnsd || return 1
install -D -m 0755 $srcdir/rc.rbldnsd $pkgdir/etc/rc.d/rbldnsd || return 1
}