[arch-commits] Commit in boinc/trunk (PKGBUILD boinc.install boinc.sysusers)

Felix Yan fyan at archlinux.org
Fri Oct 23 09:18:49 UTC 2015


    Date: Friday, October 23, 2015 @ 11:18:48
  Author: fyan
Revision: 144786

upgpkg: boinc 7.6.12-1

- Bumped to latest version. It's not recommended for Linux yet, but it has been more than 1.5 years since a recommended release and I've already used it daily for more than a year. This package will be following the latest release from now on, please report any bugs you found.
- Make use of systemd-sysusers and never removes user/group. New installations will no longer have a boinc user with >1000 uid, so it won't be shown on sddm, etc. If you want the same for existing installations, please stop the boinc daemon, remove the package, remove the boinc user/group manually, and then re-install the package.

Added:
  boinc/trunk/boinc.sysusers
Modified:
  boinc/trunk/PKGBUILD
  boinc/trunk/boinc.install

----------------+
 PKGBUILD       |   29 ++++++++++++++++++-----------
 boinc.install  |   19 +++----------------
 boinc.sysusers |    2 ++
 3 files changed, 23 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-10-23 08:56:12 UTC (rev 144785)
+++ PKGBUILD	2015-10-23 09:18:48 UTC (rev 144786)
@@ -5,7 +5,7 @@
 
 pkgbase=boinc
 pkgname=(boinc boinc-nox)
-pkgver=7.6.9
+pkgver=7.6.12
 _tag="client_release/7.6/$pkgver"
 pkgrel=1
 arch=('i686' 'x86_64')
@@ -15,10 +15,17 @@
 install=$pkgbase.install
 options=('!staticlibs')
 source=("git+https://github.com/BOINC/boinc.git#tag=$_tag"
-	boinc.bash
-	boinc.desktop
-	boinc.service
-	boinc-AM_CONDITIONAL.patch)
+         boinc.bash
+         boinc.desktop
+         boinc.service
+         boinc.sysusers
+         boinc-AM_CONDITIONAL.patch)
+md5sums=('SKIP'
+         '4d00e1aa4090a3f51feb20f5a541b9ee'
+         'db62de2f08117e6379a3c613b58fa7ff'
+         '3d5cbab785cc8b004661b17c65883fd5'
+         '240f952d38c5814cc3d8cd1668fe2154'
+         'e27047518dec54d4db38816487a28661')
 
 prepare() {
   cd "$srcdir/$pkgbase"
@@ -77,6 +84,9 @@
   #install systemd unit
   install -Dm644 "${srcdir}/$pkgbase.service" "${pkgdir}/usr/lib/systemd/system/$pkgbase.service"
 
+  #install sysusers conf
+  install -Dm644 "${srcdir}/$pkgbase.sysusers" "${pkgdir}/usr/lib/sysusers.d/$pkgbase.conf"
+
   #install bash-completion
   install -Dm644 "${srcdir}/$pkgbase.bash" "${pkgdir}/usr/share/bash-completion/completions/$pkgbase"
 
@@ -103,6 +113,9 @@
   #install systemd unit
   install -Dm644 "${srcdir}/$pkgbase.service" "${pkgdir}/usr/lib/systemd/system/$pkgbase.service"
 
+  #install sysusers conf
+  install -Dm644 "${srcdir}/$pkgbase.sysusers" "${pkgdir}/usr/lib/sysusers.d/$pkgbase.conf"
+
   #install bash-completion
   install -Dm644 "${srcdir}/$pkgbase.bash" "${pkgdir}/usr/share/bash-completion/completions/$pkgbase"
 
@@ -109,9 +122,3 @@
   #remove initscripts stuff
   rm -rf "$pkgdir/etc"
 }
-
-md5sums=('SKIP'
-         '4d00e1aa4090a3f51feb20f5a541b9ee'
-         'db62de2f08117e6379a3c613b58fa7ff'
-         '3d5cbab785cc8b004661b17c65883fd5'
-         'e27047518dec54d4db38816487a28661')

Modified: boinc.install
===================================================================
--- boinc.install	2015-10-23 08:56:12 UTC (rev 144785)
+++ boinc.install	2015-10-23 09:18:48 UTC (rev 144786)
@@ -1,18 +1,5 @@
-# arg 1:  the new package version
 post_install() {
-  /usr/sbin/groupadd boinc 2>/dev/null || true
-  /usr/sbin/useradd -s /bin/bash -g boinc -d /var/lib/boinc boinc 2>/dev/null || true
-
-  if [ ! -d /var/lib/boinc ]; then
-    install -d /var/lib/boinc
-  fi
-  chown -R boinc:boinc /var/lib/boinc
+  systemd-sysusers boinc.conf
+  mkdir -p var/lib/boinc
+  chown -R boinc:boinc var/lib/boinc
 }
-
-# arg 1:  the old package version
-post_remove() {
-  /usr/sbin/userdel boinc
-  /usr/sbin/groupdel boinc
-
-  echo '>>> If you really do not want to run Boinc in the future, you may completely remove the directory "/var/lib/boinc".'
-}

Added: boinc.sysusers
===================================================================
--- boinc.sysusers	                        (rev 0)
+++ boinc.sysusers	2015-10-23 09:18:48 UTC (rev 144786)
@@ -0,0 +1,2 @@
+u boinc - "BOINC Daemon" /var/lib/boinc
+g boinc -
\ No newline at end of file



More information about the arch-commits mailing list