[arch-commits] Commit in p11-kit/trunk (PKGBUILD p11-kit.install)

Jan Steffens heftig at archlinux.org
Sun Aug 12 23:12:08 UTC 2018


    Date: Sunday, August 12, 2018 @ 23:12:08
  Author: heftig
Revision: 331440

0.23.13-1

Added:
  p11-kit/trunk/p11-kit.install
Modified:
  p11-kit/trunk/PKGBUILD

-----------------+
 PKGBUILD        |   15 ++++++++-------
 p11-kit.install |   14 ++++++++++++++
 2 files changed, 22 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-12 23:08:52 UTC (rev 331439)
+++ PKGBUILD	2018-08-12 23:12:08 UTC (rev 331440)
@@ -2,14 +2,15 @@
 # Contributor: Ionut Biru <ibiru at archlinux.org>
 
 pkgname=p11-kit
-pkgver=0.23.12
+pkgver=0.23.13
 pkgrel=1
 pkgdesc="Provides a way to load and enumerate PKCS#11 modules"
 arch=(x86_64)
 url="https://p11-glue.freedesktop.org"
 license=(BSD)
-depends=(glibc libtasn1 libffi)
+depends=(glibc libtasn1 libffi libsystemd)
 makedepends=(gtk-doc git)
+install=p11-kit.install
 source=("git+https://github.com/p11-glue/p11-kit?signed#tag=$pkgver"
         0001-Build-and-install-libnssckbi-p11-kit.so.patch)
 sha256sums=('SKIP'
@@ -18,7 +19,7 @@
               '462225C3B46F34879FC8496CD605848ED7E69871') # Daiki Ueno
 
 prepare() {
-  cd $pkgname
+  cd p11-kit
 
   # Build and install an additional library (libnssckbi-p11-kit.so) which
   # is a copy of p11-kit-trust.so but uses the same label for root certs as
@@ -30,7 +31,7 @@
 }
 
 build() {
-  cd $pkgname
+  cd p11-kit
   ./configure --prefix=/usr \
     --sysconfdir=/etc \
     --localstatedir=/var \
@@ -42,14 +43,14 @@
 }
 
 check() {
-  cd $pkgname
+  cd p11-kit
   make check
 }
 
 package() {
-  cd $pkgname
+  cd p11-kit
   make DESTDIR="$pkgdir" install
-  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 COPYING
 
   ln -srf "$pkgdir/usr/bin/update-ca-trust" "$pkgdir/usr/lib/p11-kit/trust-extract-compat"
 }

Added: p11-kit.install
===================================================================
--- p11-kit.install	                        (rev 0)
+++ p11-kit.install	2018-08-12 23:12:08 UTC (rev 331440)
@@ -0,0 +1,14 @@
+post_install() {
+  # Enable socket by default
+  systemctl --global enable p11-kit-server.socket
+}
+
+post_upgrade() {
+  if (( $(vercmp $2 0.23.13-1) < 0)); then
+    systemctl --global enable p11-kit-server.socket
+  fi
+}
+
+pre_remove() {
+  systemctl --global disable p11-kit-server.socket
+}



More information about the arch-commits mailing list