From 5a6e7225284a312537a0caf555f840b9818bbef3 Mon Sep 17 00:00:00 2001 From: Iskander Zemmouri Date: Mon, 6 Apr 2020 21:27:17 +0200 Subject: [PATCH] New package: 66-boot-0.1.2.1 --- srcpkgs/66-boot/INSTALL | 10 ++++++++++ srcpkgs/66-boot/INSTALL.msg | 3 +++ srcpkgs/66-boot/REMOVE | 6 ++++++ srcpkgs/66-boot/files/66-bootstart | 2 ++ srcpkgs/66-boot/files/tty@ | 12 ++++++++++++ srcpkgs/66-boot/template | 24 ++++++++++++++++++++++++ 6 files changed, 57 insertions(+) create mode 100644 srcpkgs/66-boot/INSTALL create mode 100644 srcpkgs/66-boot/INSTALL.msg create mode 100644 srcpkgs/66-boot/REMOVE create mode 100644 srcpkgs/66-boot/files/66-bootstart create mode 100644 srcpkgs/66-boot/files/tty@ create mode 100644 srcpkgs/66-boot/template diff --git a/srcpkgs/66-boot/INSTALL b/srcpkgs/66-boot/INSTALL new file mode 100644 index 00000000000..8dcc4ce024c --- /dev/null +++ b/srcpkgs/66-boot/INSTALL @@ -0,0 +1,10 @@ +if [ "$UPDATE" = "no" ]; then + case "${ACTION}" in + post) + 66-tree -n boot + 66-enable -t boot boot + 66-tree -ncE default + 66-enable -t default tty@tty1 tty@tty2 tty@tty3 tty@tty4 + ;; + esac +fi diff --git a/srcpkgs/66-boot/INSTALL.msg b/srcpkgs/66-boot/INSTALL.msg new file mode 100644 index 00000000000..d07c97363db --- /dev/null +++ b/srcpkgs/66-boot/INSTALL.msg @@ -0,0 +1,3 @@ +To boot with 66, simply add the argument `init=/usr/bin/66-bootstart' to your kernel commandline. + +The available service files are packaged in `66-services'. diff --git a/srcpkgs/66-boot/REMOVE b/srcpkgs/66-boot/REMOVE new file mode 100644 index 00000000000..9dc0c4270ba --- /dev/null +++ b/srcpkgs/66-boot/REMOVE @@ -0,0 +1,6 @@ +case "${ACTION}" in + post) + 66-tree -R boot + 66-tree -R default + ;; +esac diff --git a/srcpkgs/66-boot/files/66-bootstart b/srcpkgs/66-boot/files/66-bootstart new file mode 100644 index 00000000000..81d37211783 --- /dev/null +++ b/srcpkgs/66-boot/files/66-bootstart @@ -0,0 +1,2 @@ +#!/usr/bin/execlineb -P +66-boot -b "Booting with 66-boot..." -m /run diff --git a/srcpkgs/66-boot/files/tty@ b/srcpkgs/66-boot/files/tty@ new file mode 100644 index 00000000000..dcb2671922f --- /dev/null +++ b/srcpkgs/66-boot/files/tty@ @@ -0,0 +1,12 @@ +[main] +@type = classic +@description = "Launch @I" +@user = ( root ) +@options = ( env ) + +[start] +@build = auto +@execute = ( execl-cmdline -s { agetty ${cmd_args} @I } ) + +[environment] +cmd_args=!-J 38400 diff --git a/srcpkgs/66-boot/template b/srcpkgs/66-boot/template new file mode 100644 index 00000000000..9b06d5ee767 --- /dev/null +++ b/srcpkgs/66-boot/template @@ -0,0 +1,24 @@ +# Template file for '66-boot' +pkgname=66-boot +_realpkgname=boot-66serv +version=0.1.2.1 +revision=1 +archs="noarch" +wrksrc=${_realpkgname}-v${version} +build_style=gnu-configure +makedepends="file" +depends="s6 s6-rc s6-linux-utils s6-portable-utils 66 66-tools" +short_desc="Stage 1 boot for 66" +maintainer="Iskander Zemmouri " +license="ISC" +homepage="https://framagit.org/Obarun/boot-66serv" +distfiles="https://framagit.org/Obarun/${_realpkgname}/-/archive/v${version}/${_realpkgname}-v${version}.tar.gz" +checksum=508fb91de713664ba5244f5d50a9cde106ce03be63dad24e03bfa813f40af2ea +conf_files="/etc/66/*.conf + /etc/66/rc.local" + +post_install() { + vinstall ${FILESDIR}/tty@ 644 usr/share/66/service/ + vbin ${FILESDIR}/66-bootstart + vlicense LICENSE +}