summaryrefslogtreecommitdiff
path: root/nonsystemd
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-06-05 08:10:58 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2021-07-19 15:35:59 -0400
commitceabb79eb28b9542df19a911e98c595db2e622a9 (patch)
tree7406f2568495270a178a189e7d51041506f1b03e /nonsystemd
parentebe34e7c331e23196a835545d446baab39ed01cf (diff)
downloadabslibre-ceabb79eb28b9542df19a911e98c595db2e622a9.tar.gz
abslibre-ceabb79eb28b9542df19a911e98c595db2e622a9.tar.bz2
abslibre-ceabb79eb28b9542df19a911e98c595db2e622a9.zip
[opensysusers]: REVERTME? upgrade to v0.6
Diffstat (limited to 'nonsystemd')
-rw-r--r--nonsystemd/opensysusers/PKGBUILD53
1 files changed, 53 insertions, 0 deletions
diff --git a/nonsystemd/opensysusers/PKGBUILD b/nonsystemd/opensysusers/PKGBUILD
new file mode 100644
index 000000000..f74d4b400
--- /dev/null
+++ b/nonsystemd/opensysusers/PKGBUILD
@@ -0,0 +1,53 @@
+# Maintainer David P. <megver83@parabola.nu>
+# Contributor: Omar Vega Ramos <ovruni@gnu.org.pe>
+# Contributor: Luke Shumaker <lukeshu@parabola.nu>
+# Maintainer (Artix): Chris Cromer <cromer@artixlinux.org>
+# Maintainer (Artix): artoo <artoo@artixlinux.org>
+
+pkgbase=opensysusers
+pkgname=(opensysusers opensysusers-docs)
+pkgver=0.6
+pkgrel=1
+pkgdesc="A standalone utility for handling systemd-style sysusers.d users and groups"
+arch=('any')
+url="https://gitea.artixlinux.org/artix/opensysusers"
+license=('BSD2')
+makedepends=('docbook-xsl')
+conflicts=('systemd-tools')
+source=("${pkgbase}-${pkgver}.tar.gz::https://gitea.artixlinux.org/artix/opensysusers/archive/${pkgver}.tar.gz"
+ '20-opensysusers.hook'
+ 'sysusers-hook')
+sha256sums=('bd9ea8ea60b269e3db0f0f96cb700bb64306644f9c5dc9a6253a184294f30726'
+ '8085d3f8e7b2030cef5e0f50622121ea161a2d9d087664f0a11d36f275b24970'
+ '4222b2496d8bb1ac9c07707e4ef1b334b8b59eb15451ea8ba0fd6e4c93e50c56')
+
+build(){
+ cd "${pkgbase}"
+ make PREFIX=/usr HAVEOPENRC=yes
+}
+
+package_opensysusers() {
+ depends=('pacman')
+ replaces=('opensysusers-systemdcompat')
+
+ cd "${pkgbase}"
+ make PREFIX=/usr DESTDIR="${pkgdir}" install-shared install-default-bin install-openrc
+
+ # pacman hooks
+ install -Dm755 ${srcdir}/sysusers-hook "$pkgdir"/usr/share/libalpm/scripts/sysusers-hook
+ install -Dm644 -t "$pkgdir"/usr/share/libalpm/hooks ${srcdir}/*.hook
+
+ ln -snf "/usr/bin/sysusers" "${pkgdir}/usr/bin/systemd-sysusers"
+
+ install -d "${pkgdir}"/etc/runlevels/boot
+ ln -snf /etc/init.d/opensysusers "${pkgdir}"/etc/runlevels/boot/opensysusers
+}
+
+package_opensysusers-docs(){
+ pkgdesc="Opensysusers manpages"
+ depends=('opensysusers')
+ replaces=(opensysusers-manpages)
+
+ cd "${pkgbase}"
+ make PREFIX=/usr DESTDIR="${pkgdir}" install-man
+}