dnssec-tools: conforming to standarts, install script, licence, etc...
authorHarvie <tomas@mudrunka.cz>
Wed, 4 Aug 2010 01:48:32 +0000 (03:48 +0200)
committerHarvie <tomas@mudrunka.cz>
Wed, 4 Aug 2010 01:48:32 +0000 (03:48 +0200)
dnssec-tools/PKGBUILD
dnssec-tools/dnssec-tools.install [new file with mode: 0644]

index fa69249f30dfd1677f81d40cae6414adafbe14d7..cbf328e24cdd79683891cf0bc245a646ddcaec5d 100644 (file)
@@ -7,9 +7,10 @@ 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"
 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')
 
@@ -37,5 +38,11 @@ build() {
        make
 
        msg 'Installing files to package...'
-       make -j1 install DESTDIR="${pkgdir}"
+               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}/"
 }
diff --git a/dnssec-tools/dnssec-tools.install b/dnssec-tools/dnssec-tools.install
new file mode 100644 (file)
index 0000000..fb22a0a
--- /dev/null
@@ -0,0 +1,15 @@
+# arg 1:  the new package version
+post_install() {
+       echo 'Generating default config file if not exists...'
+       while echo; do true; done 2>/dev/null | dtinitconf >/dev/null
+}
+
+# arg 1:  the new package version
+# arg 2:  the old package version
+post_upgrade() {
+       post_install $1
+}
+
+# arg 1:  the old package version
+pre_remove() {
+}
This page took 0.142767 seconds and 4 git commands to generate.