summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2017-08-04 15:31:39 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2017-08-04 15:31:39 -0500
commit091d90cec62c962d7dd4de44265829bda388262f (patch)
tree2254f5c844b269d26a91e51213c9a48d773ea4b8
parent525cdf9544dcb202bdaf29c01a630b9ae399d876 (diff)
downloadabslibre-091d90cec62c962d7dd4de44265829bda388262f.tar.gz
abslibre-091d90cec62c962d7dd4de44265829bda388262f.tar.bz2
abslibre-091d90cec62c962d7dd4de44265829bda388262f.zip
opensysusers: add package to [pcr]
-rw-r--r--pcr/opensysusers/PKGBUILD28
-rw-r--r--pcr/opensysusers/opensysusers.hook12
2 files changed, 40 insertions, 0 deletions
diff --git a/pcr/opensysusers/PKGBUILD b/pcr/opensysusers/PKGBUILD
new file mode 100644
index 000000000..2bf04e3ae
--- /dev/null
+++ b/pcr/opensysusers/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer (Manjaro): Chris Cromer <chris@cromer.cl>
+# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+
+_url="https://github.com/arch-openrc/opensysusers/archive"
+
+pkgname=opensysusers
+pkgver=0.2
+pkgrel=2
+pkgdesc="A standalone utility for handling systemd-style sysusers.d users and groups"
+arch=('any')
+url="https://github.com/arch-openrc/opensysusers"
+license=('BSD2')
+groups=('openrc-base')
+depends=('shadow')
+optdepends=('openrc: update automatically on boot')
+source=("${pkgname}-${pkgver}.tar.gz::${_url}/${pkgver}.tar.gz"
+ 'opensysusers.hook')
+sha256sums=('1094e1120b005110c9e972b7ff391b82707f78f57753b2785a801a64cc7f4e48'
+ '766ff3fe9be2e31ace5798a112d7bc2b1bee25e76d25aeb6edef8a620d2eae4a')
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make bindir="/usr/bin" DESTDIR="${pkgdir}" install
+ install -vDm0755 openrc/opensysusers.initd "${pkgdir}"/etc/init.d/opensysusers
+ install -vDm0644 "${srcdir}"/opensysusers.hook "${pkgdir}/usr/share/libalpm/hooks/opensysusers.hook"
+
+ ln -snf "/usr/bin/sysusers" "${pkgdir}/usr/bin/systemd-sysusers"
+}
diff --git a/pcr/opensysusers/opensysusers.hook b/pcr/opensysusers/opensysusers.hook
new file mode 100644
index 000000000..7e67758ca
--- /dev/null
+++ b/pcr/opensysusers/opensysusers.hook
@@ -0,0 +1,12 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/lib/sysusers.d/*/
+Target = etc/sysusers.d/*/
+Target = run/sysusers.d/*/
+
+[Action]
+Description = Updating system users and groups
+When = PostTransaction
+Exec = /usr/bin/sysusers