summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/dirmngr/PKGBUILD30
-rw-r--r--abs/core/dirmngr/dirmngr.install20
2 files changed, 50 insertions, 0 deletions
diff --git a/abs/core/dirmngr/PKGBUILD b/abs/core/dirmngr/PKGBUILD
new file mode 100644
index 0000000..40e0c74
--- /dev/null
+++ b/abs/core/dirmngr/PKGBUILD
@@ -0,0 +1,30 @@
+# $Id: PKGBUILD 155870 2012-04-08 07:13:40Z tpowa $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+
+pkgname=dirmngr
+pkgver=1.1.0
+pkgrel=4
+pkgdesc="A daemon to handle CRL and certificate requests"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="ftp://ftp.gnupg.org/gcrypt/dirmngr"
+depends=('libgcrypt' 'libldap' 'libksba' 'libgpg-error' 'libassuan' 'pth')
+source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2)
+install=dirmngr.install
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+ # FIX for https://bugzilla.redhat.com/565131
+ # not sure how best to turn this into something more upstreamable
+ # patch configure to try this combo first? -- Rex
+ # https://bugs.archlinux.org/task/28606
+ export LDAPLIBS="-lldap -llber"
+ ./configure --prefix=/usr --libexecdir=/usr/lib
+ make
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+ make DESTDIR=$pkgdir install
+}
+md5sums=('f2570f0248f5947daac200e85291b328')
diff --git a/abs/core/dirmngr/dirmngr.install b/abs/core/dirmngr/dirmngr.install
new file mode 100644
index 0000000..e26e0e7
--- /dev/null
+++ b/abs/core/dirmngr/dirmngr.install
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(dirmngr.info)
+
+post_install() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ [ -x usr/bin/install-info ] || return 0
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+ done
+}