blob: 2bf04e3ae69b8414798f34aa4f1541d6ce7e8d67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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"
}
|