summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 9 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index edb327bba954..170b3eabfba0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = poldi
pkgdesc = PAM module for authentication using a smartcard
pkgver = 0.4.1
- pkgrel = 6
+ pkgrel = 7
url = http://www.g10code.com/p-poldi.html
install = poldi.install
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index e47f7cb8adef..4d040bd401d6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=poldi
pkgver=0.4.1
-pkgrel=6
+pkgrel=7
pkgdesc="PAM module for authentication using a smartcard"
arch=('i686' 'x86_64')
url="http://www.g10code.com/p-poldi.html"
@@ -18,6 +18,13 @@ source=("ftp://ftp.gnupg.org/gcrypt/alpha/poldi/$pkgname-$pkgver.tar.bz2"
"poldi-arch.patch"
"poldi.logrotate")
+prepare() {
+ sed -i \
+ -e 's!\(#define GNUPG_DEFAULT_SCD\).*!\1 "/usr/lib/gnupg/scdaemon"!' \
+ -e 's!\(#define GNUPG_DEFAULT_DIRMNGR\).*!\1 "/usr/lib/gnupg/dirmngr_ldap"!' \
+ $srcdir/poldi-0.4.1/config.h.in
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"