dnssec-tools: conforming to standarts, install script, licence, etc...
[mirrors/ArchLinux-Packages.git] / dnssec-tools / PKGBUILD
index 584b882e65f966b9b11d43c1c82387e70a43abbc..cbf328e24cdd79683891cf0bc245a646ddcaec5d 100644 (file)
@@ -5,18 +5,21 @@
 pkgname=dnssec-tools
 pkgver=1.7
 pkgrel=1
-pkgdesc="set of software tools, patches, applications, wrappers, extensions, and plugins that will help ease the deployment of DNSSEC related technologies"
+pkgdesc="Set of software tools, patches, applications, wrappers, extensions, and plugins that will help ease the deployment of DNSSEC related technologies"
 url="http://www.dnssec-tools.org/"
-license="GPL"
+license="Custom"
 arch=('i686' 'x86_64')
 depends=(perl perl-timedate perl-net-dns perl-net-dns-sec)
+install="${pkgname}.install"
 source=("http://www.dnssec-tools.org/download/${pkgname}-${pkgver}.tar.gz")
 md5sums=('f3dfe18ae50cf65594936e1684d469d0')
 
 build() {
        cd ${srcdir}/${pkgname}-${pkgver}/ || return 1
        msg 'Configuring...'
-       ./configure --prefix='' --exec_prefix=/usr\
+       ./configure\
+               --exec_prefix=/usr --prefix=/usr\
+               --sysconfdir=/etc --mandir=/usr/share/man\
                --with-resolv-conf=/etc/resolv.conf\
                --with-root-hints=none\
                --with-ipv6\
@@ -31,16 +34,15 @@ build() {
                mv tmp ./validator/libval/val_policy.h
   }
 
-       #msg2 'fixing validator/mkinstalldirs to obey the DESTDIR'
-       ##cat validator/mkinstalldirs | sed -e 's/pathcomp="$pathcomp$d"/pathcomp="$DESTDIR$pathcomp$d"/' | sed -e 's/exit $errstatus/exit 0/g' > tmp
-       #cat validator/mkinstalldirs | sed -e 's/mkdir /mkdir -p "$DESTDIR"/' > tmp
-       #mv tmp validator/mkinstalldirs
-       #chmod +x validator/mkinstalldirs
-
        msg 'Building...'
        make
 
        msg 'Installing files to package...'
-       #export DESTDIR="${pkgdir}";
-       make -j1 install DESTDIR="${pkgdir}" mandir="/usr/share/man"
+               make -j1 install DESTDIR="${pkgdir}"
+       msg2 'configuration files'
+               cp -r validator/etc/* "${pkgdir}/etc/${pkgname}/"
+               rm -rf "${pkgdir}/etc/${pkgname}/${pkgname}.conf" #will be generated in post_install
+       msg2 'license informations'
+               mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
+               cp COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
 }
This page took 0.095553 seconds and 4 git commands to generate.