summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Gottula2021-07-08 16:05:11 -0700
committerJustin Gottula2021-07-08 16:26:08 -0700
commite13522b9081e3edc9bce4cd692b3219cb6e66386 (patch)
tree4051c48a64c7c59e177919f330d2d9f4c85d6bf0
parente8984dd4bedcec81cee25886154aee5e7c78ef1c (diff)
downloadaur-e13522b9081e3edc9bce4cd692b3219cb6e66386.tar.gz
Use 'DynamicUser' for service instead of sysusers file
This has already been applied upstream post-0.6.4, but there simply hasn't been another release containing the change just yet. Why not apply it early to make things cleaner.
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
-rw-r--r--wsdd.service3
-rw-r--r--wsdd.sysusers1
4 files changed, 4 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 674e3923adf..ee254270321 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -8,10 +8,8 @@ pkgbase = wsdd
depends = samba
source = wsdd-0.6.4.tar.gz::https://github.com/christgau/wsdd/archive/v0.6.4.tar.gz
source = wsdd.service
- source = wsdd.sysusers
sha256sums = bb8bc6411b70be68369c53bf75827ac77f16a5bf5606de6536dd7e6d6ce4c2be
- sha256sums = d61e01d12624d03d1528417c001d7576dffda2a5eef5dcb0a5e859923e4c07cc
- sha256sums = b3d70334300cbd6c8ad3c0c9c910d09ba8bf98ff01b274bcda82d4973e4e1ac6
+ sha256sums = 5408872bb509fc130de00099407c7eef6c68b7913b54649970e8e3a2f54f4316
pkgname = wsdd
diff --git a/PKGBUILD b/PKGBUILD
index fcc06c05ab0..457fefc1990 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,15 +12,12 @@ license=('MIT')
depends=('samba')
source=("wsdd-${pkgver}.tar.gz::https://github.com/christgau/wsdd/archive/v${pkgver}.tar.gz"
- 'wsdd.service'
- 'wsdd.sysusers')
+ 'wsdd.service')
sha256sums=('bb8bc6411b70be68369c53bf75827ac77f16a5bf5606de6536dd7e6d6ce4c2be'
- 'd61e01d12624d03d1528417c001d7576dffda2a5eef5dcb0a5e859923e4c07cc'
- 'b3d70334300cbd6c8ad3c0c9c910d09ba8bf98ff01b274bcda82d4973e4e1ac6')
+ '5408872bb509fc130de00099407c7eef6c68b7913b54649970e8e3a2f54f4316')
package() {
install -D -m 755 "${srcdir}/${pkgname}-${pkgver}/src/wsdd.py" "${pkgdir}/usr/bin/wsdd"
- install -D -m 644 "${srcdir}/wsdd.sysusers" "${pkgdir}/usr/lib/sysusers.d/wsdd.conf"
install -D -m 644 "${srcdir}/wsdd.service" "${pkgdir}/usr/lib/systemd/system/wsdd.service"
}
diff --git a/wsdd.service b/wsdd.service
index a2b60f94414..3444a3570e1 100644
--- a/wsdd.service
+++ b/wsdd.service
@@ -7,8 +7,7 @@ Wants=network-online.target
;Wants=smb.service
[Service]
-User=wsdd
-Group=wsdd
+DynamicUser=yes
Type=simple
ExecStart=/usr/bin/wsdd --shortlog --workgroup WORKGROUP
diff --git a/wsdd.sysusers b/wsdd.sysusers
deleted file mode 100644
index bd14b49bc7d..00000000000
--- a/wsdd.sysusers
+++ /dev/null
@@ -1 +0,0 @@
-u wsdd - "WSD daemon" /usr/lib/wsdd