blob: 1ecb7490f6854b60796343186817e389c4e18ffa (
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
29
30
|
# Maintainer (Artix): Chris Cromer <chris@cromer.cl>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
_url="https://github.com/artix-linux/opensysusers/archive"
pkgname=opensysusers
pkgver=0.2.1
pkgrel=2.parabola1
pkgdesc="A standalone utility for handling systemd-style sysusers.d users and groups"
arch=('any')
url="https://github.com/artix-linux/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=('1cbd13df62eeea65ad65e8abf5c7025929dbdc5a33be9ad6b19850bf54ab58f1'
'90fdf362a29138f1ed65e86e8b97d1251adb6b2e94d829cceb0094a63d00252a')
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"
# install -dm0755 "${pkgdir}/etc/runlevels/boot"
# ln -snf "/etc/init.d/opensysusers" "${pkgdir}/etc/runlevels/boot/opensysusers"
}
|