[arch-commits] Commit in tang/trunk (PKGBUILD)

Jonas Witschel diabonas at gemini.archlinux.org
Sun Jun 5 12:06:41 UTC 2022


    Date: Sunday, June 5, 2022 @ 12:06:40
  Author: diabonas
Revision: 1222852

upgpkg: tang 11-2: install key directory (once again)

The upgrade to tang 11-1 accidentally removed the creation of the key directory
(because "Z" in the tmpfiles.d configuration file only alters the permission of
existing directories, it does not create them if they do not exist). This means
that tang does not work out of the box because it cannot automatically create
the required keys.

Fix this by restoring the accidentally removed "mkdir" call. Creating the empty
directory as part of the package instead of only through the tmpfiles.d
configuration file means that it can be properly tracked by
"pacman -Qo /var/db/tang/".

Modified:
  tang/trunk/PKGBUILD

----------+
 PKGBUILD |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-06-05 12:06:20 UTC (rev 1222851)
+++ PKGBUILD	2022-06-05 12:06:40 UTC (rev 1222852)
@@ -2,7 +2,7 @@
 pkgname=tang
 pkgver=11
 _commit=e2059ee1109510a7c14b099af7dcd8631e598270 # git rev-parse "v$pkgver^{}"
-pkgrel=1
+pkgrel=2
 pkgdesc='Server for binding data to network presence'
 arch=('x86_64')
 url='https://github.com/latchset/tang'
@@ -38,6 +38,7 @@
 package() {
 	cd "$pkgname"
 	DESTDIR="$pkgdir" meson install -C build
+	mkdir -pm700 "$pkgdir/var/db/tang"
 	install -Dm644 "$srcdir/tang.sysusers.conf" "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
 	install -Dm644 "$srcdir/tang.tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
 }



More information about the arch-commits mailing list