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

Bruno Pagani archange at archlinux.org
Fri Nov 2 16:40:38 UTC 2018


    Date: Friday, November 2, 2018 @ 16:40:38
  Author: archange
Revision: 401240

git user does not have a fixed uid

So its actual uid will generally differ between the build chroot and the actual
installation system.
Fix that by changing owner (and permissions while we are at it) in .tmpfiles.

Modified:
  gitea/trunk/PKGBUILD
  gitea/trunk/gitea.tmpfiles

----------------+
 PKGBUILD       |    7 +++----
 gitea.tmpfiles |    2 ++
 2 files changed, 5 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-02 16:30:58 UTC (rev 401239)
+++ PKGBUILD	2018-11-02 16:40:38 UTC (rev 401240)
@@ -4,7 +4,7 @@
 
 pkgname=gitea
 pkgver=1.5.3
-pkgrel=2
+pkgrel=3
 pkgdesc="Painless self-hosted Git service. Community managed fork of Gogs."
 arch=('x86_64')
 url="https://gitea.io"
@@ -29,7 +29,7 @@
         gitea-ldflags.patch
         gitea-disable-u2f.patch)
 sha256sums=('SKIP'
-            'da04ca25b76bcfc443c49da056393240d94d8c7e3b4bd63d4cf10e5aea001239'
+            'f6829347594d424d63bcc211f85effaea90b677960593fe3ca978b3b5a3d12a7'
             '98339795107f1979c6aff6a8a5255d4d368cbabd4e8760867b789646d749b3ae'
             '66c5a84fbbe56dd8b3bca3a779aaaf5d4855573f0dd2b273018a8983d7951a72'
             'f062d395b3122edcbcb51f6bac59da70ef57bfcf4693c17bde14ee35b1ef5e92'
@@ -61,6 +61,5 @@
   install -Dm644 ${pkgname}/LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
   install -Dm644 ${pkgname}.service -t "${pkgdir}"/usr/lib/systemd/system/
   install -Dm644 ${pkgname}.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/${pkgname}.conf
-  install -dm755 -o root -g git "${pkgdir}"/etc/gitea
-  install -m 660 -o root -g git ${pkgname}/custom/conf/app.ini.sample "${pkgdir}"/etc/gitea/app.ini
+  install -D ${pkgname}/custom/conf/app.ini.sample "${pkgdir}"/etc/gitea/app.ini
 }

Modified: gitea.tmpfiles
===================================================================
--- gitea.tmpfiles	2018-11-02 16:30:58 UTC (rev 401239)
+++ gitea.tmpfiles	2018-11-02 16:40:38 UTC (rev 401240)
@@ -5,3 +5,5 @@
 d /var/lib/gitea/repos 0750 git git
 d /var/lib/gitea/tmp 0750 git git
 d /var/log/gitea 0750 git git
+z /etc/gitea 0755 root git
+z /etc/gitea/app.ini 0660 root git


More information about the arch-commits mailing list