summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXyne2018-01-06 01:55:11 +0100
committerXyne2018-01-06 01:55:11 +0100
commit1eb7427ccde7c63e6a6aab84a1f632ed8b0272c2 (patch)
tree4e8a8d15b9b0c832b44753f5df9943948c2ef023
parentc7276f707f9a5ce70614deef043194bde2735f0e (diff)
downloadaur-1eb7427ccde7c63e6a6aab84a1f632ed8b0272c2.tar.gz
added pacserve user and group
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD17
-rw-r--r--pacserve.install16
3 files changed, 35 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 38f26db05d1..d2947870c2d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,23 @@
# Generated by mksrcinfo v8
-# Wed Aug 17 21:59:18 UTC 2016
+# Sat Jan 6 00:54:15 UTC 2018
pkgbase = pacserve
pkgdesc = Easily share Pacman packages between computers. A replacement for PkgD.
- pkgver = 2016
+ pkgver = 2017
pkgrel = 1
- url = http://xyne.archlinux.ca/projects/pacserve
+ url = https://xyne.archlinux.ca/projects/pacserve
+ install = pacserve.install
arch = any
license = GPL
depends = pyalpm
depends = python3-threaded_servers
backup = etc/pacserve/pacserve-ports.conf
backup = etc/pacserve/pacserve.service.conf
- source = http://xyne.archlinux.ca/projects/pacserve/src/pacserve-2016.tar.xz
- source = http://xyne.archlinux.ca/projects/pacserve/src/pacserve-2016.tar.xz.sig
- md5sums = 210fd1f1008a8f0cc2c501ef0ba9f9f0
- md5sums = 448d071a157c7f75670afeafb6d88da4
- sha512sums = 780693734ef09fd79699f9f982a864a414e100e2a20d86477c2206225835605334b563721ada347dca3eed11d86eadf6c48c23294d6cb95f992b9be131319258
- sha512sums = b9673ee164522f65f2da7aad2e87fed7b4d2b1bb9852d639f79a5c34c896899319d380f0233fa1d70df55150994d4ed11c83f94a009c002fb46b3af17ebc2645
+ source = https://xyne.archlinux.ca/projects/pacserve/src/pacserve-2017.tar.xz
+ source = https://xyne.archlinux.ca/projects/pacserve/src/pacserve-2017.tar.xz.sig
+ md5sums = 9c7587a93dc451d807fbcd1fabf08e7f
+ md5sums = 4350ca4f6a48c67c40263efed7ab93bc
+ sha512sums = a2bbfcec8d61f3d84c890370d5b4ace887e412940b2b435d1e4e9263ceecd0b96da1554124cb0471d1f52e3985da2b32cdcbe73d6f11ded26773ca6d8a158c39
+ sha512sums = 854de5bd367caf7adbf6e9828c473c3688bdaa14211cf8ca7f231e3f46d426d9d4d059bcee49ac59a56eccb166be650a7e88e80dee146a1c72caced7b9e45d31
pkgname = pacserve
diff --git a/PKGBUILD b/PKGBUILD
index 4f6a445f6f0..ae1170a6686 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,26 @@
#Maintainer: Xyne <ac xunilhcra enyx, backwards>
pkgname=pacserve
-pkgver=2016
+pkgver=2017
pkgrel=1
pkgdesc='Easily share Pacman packages between computers. A replacement for PkgD.'
arch=(any)
license=(GPL)
-url="http://xyne.archlinux.ca/projects/pacserve"
+url="https://xyne.archlinux.ca/projects/pacserve"
depends=(pyalpm python3-threaded_servers)
backup=(etc/pacserve/pacserve-ports.conf etc/pacserve/pacserve.service.conf)
source=(
- http://xyne.archlinux.ca/projects/pacserve/src/pacserve-2016.tar.xz
- http://xyne.archlinux.ca/projects/pacserve/src/pacserve-2016.tar.xz.sig
+ https://xyne.archlinux.ca/projects/pacserve/src/pacserve-2017.tar.xz
+ https://xyne.archlinux.ca/projects/pacserve/src/pacserve-2017.tar.xz.sig
)
sha512sums=(
- 780693734ef09fd79699f9f982a864a414e100e2a20d86477c2206225835605334b563721ada347dca3eed11d86eadf6c48c23294d6cb95f992b9be131319258
- b9673ee164522f65f2da7aad2e87fed7b4d2b1bb9852d639f79a5c34c896899319d380f0233fa1d70df55150994d4ed11c83f94a009c002fb46b3af17ebc2645
+ a2bbfcec8d61f3d84c890370d5b4ace887e412940b2b435d1e4e9263ceecd0b96da1554124cb0471d1f52e3985da2b32cdcbe73d6f11ded26773ca6d8a158c39
+ 854de5bd367caf7adbf6e9828c473c3688bdaa14211cf8ca7f231e3f46d426d9d4d059bcee49ac59a56eccb166be650a7e88e80dee146a1c72caced7b9e45d31
)
md5sums=(
- 210fd1f1008a8f0cc2c501ef0ba9f9f0
- 448d071a157c7f75670afeafb6d88da4
+ 9c7587a93dc451d807fbcd1fabf08e7f
+ 4350ca4f6a48c67c40263efed7ab93bc
)
+install=pacserve.install
validpgpkeys=('EC3CBE7F607D11E663149E811D1F0DC78F173680')
package ()
diff --git a/pacserve.install b/pacserve.install
new file mode 100644
index 00000000000..64465a43e77
--- /dev/null
+++ b/pacserve.install
@@ -0,0 +1,16 @@
+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
+}