[arch-commits] Commit in 389-ds-base/trunk (3 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Aug 12 21:49:24 UTC 2019


    Date: Monday, August 12, 2019 @ 21:49:24
  Author: svenstaro
Revision: 359782

upgpkg: 389-ds-base 1.4.1.6-6

Add own user for dirsrv

Added:
  389-ds-base/trunk/389-ds-base.sysusers
  389-ds-base/trunk/389-ds-base.tmpfiles
Modified:
  389-ds-base/trunk/PKGBUILD

----------------------+
 389-ds-base.sysusers |    1 +
 389-ds-base.tmpfiles |    2 ++
 PKGBUILD             |   14 ++++++++++----
 3 files changed, 13 insertions(+), 4 deletions(-)

Added: 389-ds-base.sysusers
===================================================================
--- 389-ds-base.sysusers	                        (rev 0)
+++ 389-ds-base.sysusers	2019-08-12 21:49:24 UTC (rev 359782)
@@ -0,0 +1 @@
+u dirsvr   440      "389 Directory Server" /var/lib/389-ds-base

Added: 389-ds-base.tmpfiles
===================================================================
--- 389-ds-base.tmpfiles	                        (rev 0)
+++ 389-ds-base.tmpfiles	2019-08-12 21:49:24 UTC (rev 359782)
@@ -0,0 +1,2 @@
+d /var/log/389-ds-base 0700 dirsvr dirsvr -
+d /var/lib/389-ds-base 0700 dirsvr dirsvr -

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-08-12 21:19:04 UTC (rev 359781)
+++ PKGBUILD	2019-08-12 21:49:24 UTC (rev 359782)
@@ -6,7 +6,7 @@
 pkgname=389-ds-base
 pkgver=1.4.1.6
 pkgdesc="389 Directory Server (base)"
-pkgrel=5
+pkgrel=6
 arch=(x86_64)
 url="http://port389.org/"
 license=(GPL)
@@ -18,8 +18,12 @@
         etc/dirsrv/config/template-initconfig)
 depends=(libevent nspr nss net-snmp pam openldap python-argcomplete python-dateutil python-ldap)
 makedepends=(cargo rsync doxygen cmocka python-setuptools python-argparse-manpage)
-source=("https://releases.pagure.org/389-ds-base/${pkgname}-${pkgver}.tar.bz2")
-sha512sums=('0a943453cbcd8b43b4fdc58563c8802d9270d9a3cf4dcd76e3f77168d45e84b8e07d8df8ddadb09ba9294e7ba7e9304ce329bc37edeb16a9161797c902fadc1c')
+source=("https://releases.pagure.org/389-ds-base/${pkgname}-${pkgver}.tar.bz2"
+        389-ds-base.sysusers
+        389-ds-base.tmpfiles)
+sha512sums=('0a943453cbcd8b43b4fdc58563c8802d9270d9a3cf4dcd76e3f77168d45e84b8e07d8df8ddadb09ba9294e7ba7e9304ce329bc37edeb16a9161797c902fadc1c'
+            'e929056340de506720dbeb526eb118110a6c5701a2263886b547034865ce0e6b78b024de163fe272420c28c4cccdadeda4f220158821527fd6376ac2ae9cf5f0'
+            'ae773d2f6e3bb64b5bcdc483670a6a812184582e5440bcc4970af723a8e9d35f09a55a31a829a7cacb7051940136c395ff61856817720b3ef59c9dd3e397a365')
 
 prepare() {
   cd "${pkgbase}-${pkgver}"
@@ -62,7 +66,6 @@
   cd "${pkgbase}-${pkgver}"
   make -j1 DESTDIR="${pkgdir}/" install
 
-  install -dm755 "${pkgdir}"/var/log/${pkgbase}/ "${pkgdir}"/var/lib/${pkgbase}/
   install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 
   # Upstream expects lib389 and 389-ds-base to be shipped in the same package more or less
@@ -71,4 +74,7 @@
   python setup.py install --skip-build -O1 --root=${pkgdir}
   mv ${pkgdir}/usr/sbin/* ${pkgdir}/usr/bin/
   rmdir ${pkgdir}/usr/sbin
+
+  install -Dm644 "${srcdir}/${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
+  install -Dm644 "${srcdir}/${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
 }


More information about the arch-commits mailing list