2015-06-01 13:15:16 +00:00
|
|
|
# Maintainer: Jack Frost <fbt@fleshless.org>
|
|
|
|
|
|
|
|
pkgdesc='Package for sysvinit compatibility'
|
|
|
|
pkgname=( 'sinit-sysvcompat' 'sinit-tools' )
|
|
|
|
license=( 'ISC' )
|
2017-11-22 23:33:10 +00:00
|
|
|
pkgver=1.0.6
|
2018-01-10 12:05:14 +00:00
|
|
|
pkgrel=5
|
2015-06-01 13:15:16 +00:00
|
|
|
arch=( 'any' )
|
2020-05-12 19:45:41 +00:00
|
|
|
url='https://code.fleshless.org/spark/sinit-tools'
|
2015-06-01 13:15:16 +00:00
|
|
|
|
|
|
|
conflicts=( 'systemd-sysvcompat' )
|
|
|
|
|
2020-05-12 19:45:41 +00:00
|
|
|
source=( "https://code.fleshless.org/Spark/sinit-tools/archive/$pkgver.tar.gz" )
|
2015-06-01 13:15:16 +00:00
|
|
|
|
|
|
|
package_sinit-sysvcompat() {
|
|
|
|
depends=( 'sinit' 'sinit-tools' )
|
|
|
|
|
|
|
|
mkdir -pm755 "${pkgdir}/usr/bin"
|
2018-01-10 12:05:14 +00:00
|
|
|
ln -s sinit "${pkgdir}/usr/bin/init"
|
|
|
|
ln -s shutdown "${pkgdir}/usr/bin/reboot"
|
|
|
|
ln -s shutdown "${pkgdir}/usr/bin/poweroff"
|
2015-06-01 13:15:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_sinit-tools() {
|
2017-11-23 18:58:13 +00:00
|
|
|
depends=( 'sinit' )
|
|
|
|
|
2020-05-12 19:45:41 +00:00
|
|
|
install -Dm755 "$pkgname/shutdown" "${pkgdir}/usr/bin/shutdown"
|
2015-06-01 13:15:16 +00:00
|
|
|
}
|
|
|
|
|
2020-05-12 19:45:41 +00:00
|
|
|
sha1sums=('96548925c0b4c649d0c2f5940fd29a3b221a8909')
|