1 # Template file for 'boot-66serv'
5 wrksrc=${pkgname}-v${version}
6 build_style=gnu-configure
7 configure_args="--HOSTNAME=!voidlinux --TTY=!4
8 --KEYMAP=!us --TZ=!Europe/Madrid"
9 make_install_target="install install-man install-html"
10 hostmakedepends="lowdown"
12 depends="s6 s6-rc s6-linux-utils s6-portable-utils 66 66-tools"
13 # Only for the unofficial repository
14 # depends+=" void-unofficial-repo-66"
15 short_desc="Stage 1 boot for 66"
16 maintainer="mobinmob <mobinmob@disroot.org>"
18 homepage="https://framagit.org/pkg/obmods/boot-66serv"
19 conf_files="/etc/66/rc.local"
20 distfiles="https://framagit.org/pkg/obmods/boot-66serv/-/archive/v${version}/boot-66serv-v${version}.tar.bz2"
21 checksum=db2de4a1ad10fb8ea199665c31075f9ddf96121d4c9c9272b33b5ec678630819
23 make_dirs="/etc/runit/runsvdir/66 0750 root root"
27 # Install the switch-initutils core service for runit.
28 vinstall "${FILESDIR}"/switch-initutils 644 etc/runit/core-services 99-switch-initutils.sh
29 # Install the 66 wrapper for 66-boot
31 # Install the 66boot-initial-setup utility
32 vbin "${FILESDIR}"/66boot-initial-setup
33 # Install the 66boot-rcdotconf utility
34 vbin "${FILESDIR}"/66boot-rcdotconf
35 # Install the 66boot-storage-autoconf utility
36 vbin "${FILESDIR}"/66boot-storage-autoconf
37 # Create symlink for the boot@system service configuration file
38 ln -s ../etc/66/conf/boot@system/version/boot@system "${DESTDIR}/etc/66rc.conf"
40 # Install runit and switch-initutils services for 66
41 # @version should be incremented only when there is a change in the specific
42 # frontend service file.
43 vinstall "${FILESDIR}"/runit 644 usr/share/66/service/
44 vsed -i "s/@VERSION@/0.0.1/" "${DESTDIR}/usr/share/66/service/runit"
45 vinstall "${FILESDIR}"/switch-initutils-66 644 usr/share/66/service/ switch-initutils
46 vsed -i "s/@VERSION@/0.0.2/" "${DESTDIR}/usr/share/66/service/switch-initutils"
48 # Install sysctl.sh in /usr/share/66/script/
49 vinstall "${FILESDIR}"/sysctl.sh 755 usr/share/66/script/
51 # Install backwards compatibility symlink for modules.sh
52 ln -s /usr/bin/modules-load ${DESTDIR}/usr/share/66/script/modules.sh
54 # Install license file