summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXyne2018-01-15 04:39:47 +0100
committerXyne2018-01-15 04:39:47 +0100
commit1e60964fe6b652229947e9d02d5c79587dc4bd7b (patch)
tree70d6a50989f77a14cf6ebef25df5abfcfc088fc1
parent1eb7427ccde7c63e6a6aab84a1f632ed8b0272c2 (diff)
downloadaur-1e60964fe6b652229947e9d02d5c79587dc4bd7b.tar.gz
Update to 2017-2
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD5
-rw-r--r--pacserve.install20
3 files changed, 12 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d2947870c2d..55ef2ff5f8c 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Sat Jan 6 00:54:15 UTC 2018
+# Mon Jan 15 03:39:47 UTC 2018
pkgbase = pacserve
pkgdesc = Easily share Pacman packages between computers. A replacement for PkgD.
pkgver = 2017
- pkgrel = 1
+ pkgrel = 2
url = https://xyne.archlinux.ca/projects/pacserve
install = pacserve.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index ae1170a6686..51c3c2f8582 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
#Maintainer: Xyne <ac xunilhcra enyx, backwards>
pkgname=pacserve
pkgver=2017
-pkgrel=1
+pkgrel=2
pkgdesc='Easily share Pacman packages between computers. A replacement for PkgD.'
arch=(any)
license=(GPL)
@@ -42,6 +42,9 @@ package ()
do
install -Dm644 "$service_" "$pkgdir/usr/lib/systemd/system/${service_##*/}"
done
+
+ echo 'u pacserve - "Pacserve daemon" /etc/pacserve' |
+ install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
}
# vim: set ts=2 sw=2 et:
diff --git a/pacserve.install b/pacserve.install
index 64465a43e77..5b1ea8b024c 100644
--- a/pacserve.install
+++ b/pacserve.install
@@ -1,16 +1,8 @@
-pacserve_dir=/etc/pacserve
-
-post_install(){
- groupadd pacserve &>/dev/null
- useradd -g pacserve -d "$pacserve_dir" -s /bin/false pacserve &>/dev/null
-}
-
post_upgrade(){
- getent group pacserve >/dev/null 2>&1 || groupadd pacserve &>/dev/null
- getent passwd pacserve >/dev/null 2>&1 || useradd -g pacserve -d "$pacserve_dir" -s /bin/false pacserve &>/dev/null
-}
-
-post_remove(){
- getent passwd pacserve >/dev/null 2>&1 || userdel pacserve
- getent group pacserve >/dev/null 2>&1 || groupdel pacserve
+ oldver="$2"
+ if [[ $(vercmp "$oldver" 2018) -le 0 ]]
+ then
+ getent passwd pacserve >/dev/null 2>&1 || userdel pacserve
+ getent group pacserve >/dev/null 2>&1 || groupdel pacserve
+ fi
}