PKGBUILDs/aur/h2n/PKGBUILD

46 lines
1.5 KiB
Bash

#Maintainer: Mark Lamourine <markllama@gmail.com>
#
# Code and patches stolen from the Fedora 14 source RPM
# This package isn't anywhere on AUR/Arch Linux
#
plugrel=1
pkgname=h2n
pkgver=2.56
pkgrel=1
pkgdesc="h2n Converts a hosts file to bind9 configuration and zone files"
license=('unknown')
arch=('arm')
url="ftp://ftp.hpl.hp.com/pub/h2n"
depends=('perl' 'perl-net-dns' 'pdksh')
source=("ftp://ftp.hpl.hp.com/pub/h2n/h2n-$pkgver.tar.gz")
md5sums=('eb257ca05beb35c70b195ef08da6961e')
build() {
cd $srcdir/$pkgname-$pkgver
mkdir -p $pkgdir/etc
mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/share/man/man1
mkdir -p $pkgdir/usr/share/doc/h2n-$pkgver
install -D -m 644 h2n.conf $pkgdir/etc/ || return 1
install -D -m 755 h2n $pkgdir/usr/bin/ || return 1
install -D -m 755 build-dns $pkgdir/usr/bin/ || return 1
install -D -m 755 check_del $pkgdir/usr/bin/ || return 1
install -D -m 755 check-dn $pkgdir/usr/bin/ || return 1
install -D -m 755 check-ip $pkgdir/usr/bin/ || return 1
install -D -m 755 check-named $pkgdir/usr/bin/ || return 1
install -D -m 755 check-net $pkgdir/usr/bin/ || return 1
install -D -m 644 h2n.1 $pkgdir/usr/share/man/man1/ || return 1
install -D -m 644 README $pkgdir/usr/share/doc/h2n-$pkgver/ || return 1
install -D -m 644 h2n.html $pkgdir/usr/share/doc/h2n-$pkgver/ || return 1
install -D -m 644 h2n.txt $pkgdir/usr/share/doc/h2n-$pkgver/ || return 1
}