summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorM0Rf302018-01-29 19:51:15 +0100
committerM0Rf302018-01-29 19:51:15 +0100
commit75f6520d873146b2dca301300fd5ba98ea5b4164 (patch)
treef2372f4d97961bacc7b9ea6c88bd4cd54ccef5b1
parent366a660bf113661323d19d7cfdf84dcda853bc0a (diff)
downloadaur-75f6520d873146b2dca301300fd5ba98ea5b4164.tar.gz
openbazaard-git: using DynamicUser
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
-rw-r--r--openbazaard.sysuser.conf2
3 files changed, 11 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a81ad5ca2149..ba526970d95d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -20,9 +20,11 @@ pkgbase = openbazaard-git
source = openbazaar-go::git+https://github.com/OpenBazaar/openbazaar-go.git
source = openbazaard.service
source = openbazaard.conf
+ source = openbazaard.sysuser.conf
md5sums = SKIP
md5sums = b0193c5364076ce7b112f13edf995ac1
md5sums = 9fd31f8bc5b6ccc21a52fc1b58fdb9d6
+ md5sums = 92cd2fa8929c5acddbddf7d4fc2fd494
pkgname = openbazaard-git
diff --git a/PKGBUILD b/PKGBUILD
index 76b7d5834b8e..1eed79f1de08 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,8 +17,10 @@ _user=github.com/OpenBazaar
_repo=openbazaar-go
source=("${_repo}::git+https://${_user}/${_repo}.git"
- "${_pkgname}.service"
- "${_pkgname}.conf")
+ ${_pkgname}.service
+ ${_pkgname}.conf
+ ${_pkgname}.sysuser.conf
+)
export GOOS=linux
case "$CARCH" in
@@ -55,8 +57,10 @@ package() {
install -Dm755 $GOPATH/bin/${_repo} $pkgdir/usr/bin/${_pkgname}
install -Dm644 $srcdir/${_pkgname}.service $pkgdir/usr/lib/systemd/system/${_pkgname}.service
install -D -m644 $srcdir/${_pkgname}.conf $pkgdir/etc/conf.d/${_pkgname}
+ install -Dm755 $srcdir/${_pkgname}.sysuser.conf $pkgdir/usr/lib/sysusers.d/${_pkgname}.conf
}
md5sums=('SKIP'
'b0193c5364076ce7b112f13edf995ac1'
- '9fd31f8bc5b6ccc21a52fc1b58fdb9d6')
+ '9fd31f8bc5b6ccc21a52fc1b58fdb9d6'
+ '92cd2fa8929c5acddbddf7d4fc2fd494')
diff --git a/openbazaard.sysuser.conf b/openbazaard.sysuser.conf
new file mode 100644
index 000000000000..8d44084af866
--- /dev/null
+++ b/openbazaard.sysuser.conf
@@ -0,0 +1,2 @@
+u openbazaar - -
+g openbazaar - -