29 lines
772 B
Bash
29 lines
772 B
Bash
# Maintainer: Jack Frost <fbt@fleshless.org>
|
|
|
|
pkgdesc='Package for sysvinit compatibility'
|
|
pkgname=( 'sinit-sysvcompat' 'sinit-tools' )
|
|
license=( 'ISC' )
|
|
pkgver=1.0.5
|
|
pkgrel=3
|
|
arch=( 'any' )
|
|
url='https://git.fleshless.org/sinit-tools'
|
|
|
|
conflicts=( 'systemd-sysvcompat' )
|
|
|
|
source=( "https://git.fleshless.org/sinit-tools/snapshot/sinit-tools-${pkgver}.zip" )
|
|
|
|
package_sinit-sysvcompat() {
|
|
depends=( 'sinit' 'sinit-tools' )
|
|
|
|
mkdir -pm755 "${pkgdir}/usr/bin"
|
|
ln -s /usr/bin/sinit "${pkgdir}/usr/bin/init"
|
|
ln -s /usr/bin/shutdown "${pkgdir}/usr/bin/reboot"
|
|
ln -s /usr/bin/shutdown "${pkgdir}/usr/bin/poweroff"
|
|
}
|
|
|
|
package_sinit-tools() {
|
|
install -Dm755 "${pkgname}-${pkgver}/shutdown" "${pkgdir}/usr/bin/shutdown"
|
|
}
|
|
|
|
sha1sums=('cad43ec50195ef704f514c22986b17f2a18ff44c')
|