diff options
author | Laurent Bercot <ska-adelie@skarnet.org> | 2019-06-09 11:17:49 +0000 |
---|---|---|
committer | Luis Ressel <aranea@aixah.de> | 2019-07-22 00:44:05 +0200 |
commit | 2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9 (patch) | |
tree | 47207be4ed1841ba5fd4ca1e54541c84ed85c5dc /system/s6-linux-init | |
parent | d3eb7058d8f66a7fa94c262314df4c95a76a36fc (diff) | |
download | packages-2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9.tar.gz packages-2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9.tar.bz2 packages-2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9.tar.xz packages-2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9.zip |
system/s6-linux-init-early-getty: new subpackage of s6-linux-init
Diffstat (limited to 'system/s6-linux-init')
-rw-r--r-- | system/s6-linux-init/APKBUILD | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/system/s6-linux-init/APKBUILD b/system/s6-linux-init/APKBUILD index aed46e575..d1cead76d 100644 --- a/system/s6-linux-init/APKBUILD +++ b/system/s6-linux-init/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Laurent Bercot <ska-adelie@skarnet.org> pkgname=s6-linux-init pkgver=1.0.2.0 -pkgrel=0 +pkgrel=1 pkgdesc="A s6-based init system" url="https://skarnet.org/software/$pkgname/" arch="all" @@ -11,11 +11,11 @@ license="ISC" _skalibs_version=2.8.1.0 depends="execline s6 s6-linux-init-common" makedepends="skalibs-dev>=$_skalibs_version execline-dev s6-dev utmps-dev" -subpackages="$pkgname-common:common:noarch $pkgname-libs $pkgname-dev $pkgname-libs-dev:libsdev $pkgname-doc" +subpackages="$pkgname-common:common:noarch $pkgname-early-getty:earlygetty:noarch $pkgname-libs $pkgname-dev $pkgname-libs-dev:libsdev $pkgname-doc" source="https://skarnet.org/software/$pkgname/$pkgname-$pkgver.tar.gz rc.init runlevel rc.shutdown reboot.sh" install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall" provides="/sbin/init=0" - +_earlytty=tty2 build() { cd "$builddir" @@ -46,6 +46,7 @@ package() { ./s6-linux-init-maker \ -u catchlog \ + -G "/sbin/agetty -- 38400 $_earlytty linux" \ -1 \ -L \ -p "/usr/bin:/usr/sbin:/bin:/sbin" \ @@ -77,6 +78,16 @@ common() { } +earlygetty() { + pkgdesc="Files for an early getty on $_earlytty" + depends="s6-linux-init-common" + svcimg="$pkgdir/etc/s6-linux-init/current/run-image/service" + subsvcimg="$subpkgdir/etc/s6-linux-init/current/run-image/service" + mkdir -p -m 0755 "$subsvcimg" + mv "$svcimg/s6-linux-init-early-getty" "$subsvcimg/getty-$_earlytty" +} + + libs() { pkgdesc="$pkgdesc (shared libraries)" depends="skalibs-libs>=$_skalibs_version" |