diff options
author | David P <megver83@parabola.nu> | 2019-11-13 18:18:24 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2019-11-13 18:18:24 -0300 |
commit | e0f289a70a7f05c2ed1024862d2d73d32205f08d (patch) | |
tree | 40496e5f11100fce4b48e655f753f380bb6acb7c /nonsystemd/sysvinit/PKGBUILD | |
parent | 30088680c8cc570015ce6ded55596b426e97fe26 (diff) | |
download | abslibre-e0f289a70a7f05c2ed1024862d2d73d32205f08d.tar.gz abslibre-e0f289a70a7f05c2ed1024862d2d73d32205f08d.tar.bz2 abslibre-e0f289a70a7f05c2ed1024862d2d73d32205f08d.zip |
addpkg: nonsystemd/sysvinit 2.96-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd/sysvinit/PKGBUILD')
-rw-r--r-- | nonsystemd/sysvinit/PKGBUILD | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/nonsystemd/sysvinit/PKGBUILD b/nonsystemd/sysvinit/PKGBUILD new file mode 100644 index 000000000..22bc5e6e8 --- /dev/null +++ b/nonsystemd/sysvinit/PKGBUILD @@ -0,0 +1,61 @@ +# Maintainer: David P. <megver83@parabola.nu> +# Maintainer: Luke Shumaker <lukeshu@parabola.nu> +# Contributor: Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=sysvinit +pkgver=2.96 +pkgrel=1 +pkgdesc='Linux System V Init' +url='http://www.nongnu.org/sysvinit/' +arch=('i686' 'x86_64' 'armv7h') +license=('GPL') +depends=('glibc' 'initscripts') +provides=('init') +conflicts=(${provides[@]}) +source=(#"https://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig} + "http://download.savannah.gnu.org/releases/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}) +sha256sums=('2a2e26b72aa235a23ab1c8471005f890309ce1196c83fbc9413c57b9ab62b587' + 'SKIP') +validpgpkeys=('146BF1D0D20B006B10299B4CFA3EC79A4C0C11CC') # Jesse Smith <jsmith@resonatingmedia.com> + +build() { + cd "$pkgname-$pkgver" + make +} + +package() { + cd "$pkgname-$pkgver" + + install -d "$pkgdir/usr/bin" + ln -s usr/bin "$pkgdir/bin" + ln -s usr/bin "$pkgdir/sbin" + make ROOT="$pkgdir" install + rm "$pkgdir/bin" "$pkgdir/sbin" + + install -d "$pkgdir/usr/share/licenses/$pkgname" + install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + local rmprogs=( + # provided by e2fsprogs + logsave + # provided by util-linux + last + lastb + mesg + sulogin + utmpdump + wall + # provided by procps-ng + pidof + ) + cd "$pkgdir" + local prog + for prog in "${rmprogs[@]}"; do + rm usr/bin/"$prog" usr/share/man/man?/"$prog".? + done + + # old Arch Linux sysvinit would have split out fstab-decode, + # killall5, and bootlogd into a separate sysvinit-tools package. + # Unfortunately, because sysvinit-tools provided pidof, procps-ng + # still conflicts=(sysvinit-tools). +} |