diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-07-27 23:09:11 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-07-27 23:28:35 -0400 |
commit | 7c8ba901313707f6310c159df4176dedae01e719 (patch) | |
tree | 0d3638b9b62b42043ccdd4bcd3fbe97583debc91 | |
parent | 3f4087f3f6bdcc5c89ac84f1364ab382d4e4f85e (diff) | |
download | abslibre-7c8ba901313707f6310c159df4176dedae01e719.tar.gz abslibre-7c8ba901313707f6310c159df4176dedae01e719.tar.bz2 abslibre-7c8ba901313707f6310c159df4176dedae01e719.zip |
pcr/opensysusers: Split man5 off in to a separate package
To avoid conflicting with systemd over the sysusers.d(5) manpage
-rw-r--r-- | pcr/opensysusers/PKGBUILD | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/pcr/opensysusers/PKGBUILD b/pcr/opensysusers/PKGBUILD index 14eafad0f..5891e3256 100644 --- a/pcr/opensysusers/PKGBUILD +++ b/pcr/opensysusers/PKGBUILD @@ -3,10 +3,14 @@ # Contributor: Luke Shumaker <lukeshu@parabola.nu> # Maintainer (Artix): Chris Cromer <chris@artixlinux.org> +# Note: have opensysusers-manpages as a separate package, so that +# notsystemd (which also includes sysusers.d(5)) and opensysusers +# don't conflict. + pkgbase=opensysusers -pkgname=('opensysusers' 'opensysusers-systemdcompat') +pkgname=('opensysusers' 'opensysusers-manpages' 'opensysusers-systemdcompat') pkgver=0.4.8 -pkgrel=2 +pkgrel=3 pkgdesc="A standalone utility to handle systemd-style sysusers.d files" arch=('any') url="https://github.com/artix-linux/opensysusers" @@ -26,11 +30,16 @@ build() { package_opensysusers() { groups=('base-openrc') + optdepends=( + 'opensysusers-manpages' + 'opensysusers-systemdcompat' + ) cd "$srcdir/$pkgbase-$pkgver" install -d "$pkgdir"/usr/bin make PREFIX=/usr HAVESYSTEMD=no HAVEOPENRC=yes HAVEMAN=yes DESTDIR="$pkgdir" install find "$pkgdir" -type f -name 'systemd-*' -delete + rm -rf "$pkgdir"/usr/share/man/man5 find "$pkgdir" -depth -type d -empty -exec rmdir -- {} \; install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" @@ -43,6 +52,16 @@ package_opensysusers() { install -Dm0644 ../opensysusers.hook "$pkgdir"/usr/share/libalpm/hooks/opensysusers.hook } +package_opensysusers-manpages() { + conflicts=('systemd') # because of the sysusers.d(5) manpage + + cd "$srcdir/$pkgbase-$pkgver" + make PREFIX=/usr HAVESYSTEMD=no HAVEOPENRC=yes HAVEMAN=yes DESTDIR="$srcdir/manpages" install + install -d "$pkgdir"/usr/share/man + mv -T {"$srcdir/manpages","$pkgdir"}/usr/share/man/man5 + rm -rf "$srcdir/manpages" +} + package_opensysusers-systemdcompat() { depends=("opensysusers=$pkgver") pkgdesc='Compatibility wrapper for opensysfiles providing the systemd-sysfiles program' |