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' )
|
|
|
|
url='https://git.fleshless.org/sinit-tools'
|
|
|
|
|
|
|
|
conflicts=( 'systemd-sysvcompat' )
|
|
|
|
|
2017-11-22 23:33:10 +00:00
|
|
|
source=( "https://git.fleshless.org/u/spark/sinit-tools/snapshot/sinit-tools-${pkgver}.zip" )
|
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' )
|
|
|
|
|
2015-06-01 13:15:16 +00:00
|
|
|
install -Dm755 "${pkgname}-${pkgver}/shutdown" "${pkgdir}/usr/bin/shutdown"
|
|
|
|
}
|
|
|
|
|
2017-11-22 23:33:10 +00:00
|
|
|
sha1sums=('e1838fe888c070883b4b4c9f65ded5c2ed60d7ad')
|