[arch-commits] Commit in cgit/trunk (PKGBUILD tmpfiles.conf)

Christian Hesse eworm at archlinux.org
Sun Mar 14 21:59:21 UTC 2021


    Date: Sunday, March 14, 2021 @ 21:59:20
  Author: eworm
Revision: 891314

upgpkg: cgit 1.2.3-2: create cache directory from tmpfiles

Added:
  cgit/trunk/tmpfiles.conf
Modified:
  cgit/trunk/PKGBUILD

---------------+
 PKGBUILD      |   26 ++++++++++++++------------
 tmpfiles.conf |    1 +
 2 files changed, 15 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-14 21:00:50 UTC (rev 891313)
+++ PKGBUILD	2021-03-14 21:59:20 UTC (rev 891314)
@@ -6,7 +6,7 @@
 
 pkgname=cgit
 pkgver=1.2.3
-pkgrel=1
+pkgrel=2
 pkgdesc="A web interface for git written in plain C"
 arch=('x86_64')
 url="https://git.zx2c4.com/cgit/"
@@ -14,21 +14,23 @@
 depends=('openssl' 'luajit')
 makedepends=('zlib' 'curl' 'asciidoc')
 optdepends=('groff: about page using man page syntax'
-	    'python-pygments: syntax highlighting support'
-	    'python-docutils: about page formatted with reStructuredText'
-	    'python-markdown: about page formatted with markdown'
-	    'gzip: gzip compressed snapshots'
-	    'bzip2: bzip2 compressed snapshots'
-	    'lzip: lzip compressed snapshots'
-	    'xz: xz compressed snapshots'
-	    'zstd: zstd compressed snapshots'
-	    'mime-types: serve file with correct content-type header')
+            'python-pygments: syntax highlighting support'
+            'python-docutils: about page formatted with reStructuredText'
+            'python-markdown: about page formatted with markdown'
+            'gzip: gzip compressed snapshots'
+            'bzip2: bzip2 compressed snapshots'
+            'lzip: lzip compressed snapshots'
+            'xz: xz compressed snapshots'
+            'zstd: zstd compressed snapshots'
+            'mime-types: serve file with correct content-type header')
 install=cgit.install
 validpgpkeys=('AB9942E6D4A4CFC3412620A749FC7012A5DE03AE')
 source=("https://git.zx2c4.com/cgit/snapshot/cgit-$pkgver.tar."{xz,asc}
-	"apache.example.conf")
+        'tmpfiles.conf'
+        'apache.example.conf')
 sha256sums=('5a5f12d2f66bd3629c8bc103ec8ec2301b292e97155d30a9a61884ea414a6da4'
             'SKIP'
+            '4004b72d433e5810b046fc6019171a11a0dae3e9c6b29a44f16ed41705c46c3d'
             '89927d462c0504863c163eb8a210e5d65db30ee6e4300ff6a2f92460e4f20a62')
 
 prepare() {
@@ -47,7 +49,7 @@
 
   make CGIT_SCRIPT_PATH=/usr/share/webapps/cgit DESTDIR="$pkgdir" prefix=/usr install install-man
 
-  install -vd "$pkgdir/var/cache/$pkgname"
+  install -vDm0644 "$srcdir/tmpfiles.conf" "$pkgdir/usr/lib/tmpfiles.d/cgit.conf"
   install -vDm0644 "$srcdir/apache.example.conf" "$pkgdir/etc/webapps/cgit/apache.example.conf"
   mkdir -p "$pkgdir/usr/lib/cgit"
   mv "$pkgdir/usr/share/webapps/cgit/cgit.cgi" "$pkgdir/usr/lib/cgit"

Added: tmpfiles.conf
===================================================================
--- tmpfiles.conf	                        (rev 0)
+++ tmpfiles.conf	2021-03-14 21:59:20 UTC (rev 891314)
@@ -0,0 +1 @@
+d /var/cache/cgit 0750 http http -



More information about the arch-commits mailing list