OSDN Git Service

575bb81631cd44fdaa5aa612dfb0c1a570562eb9
[avyssos/66-voidlinux.git] / srcpkgs / boot-66serv / template
1 # Template file for 'boot-66serv'
2 pkgname=boot-66serv
3 version=2.4.0
4 revision=1
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"
11 makedepends="file"
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>"
17 license="ISC"
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
22 patch_args=" -Np1"
23 make_dirs="/etc/runit/runsvdir/66 0750 root root"
24
25 post_install() {
26
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
30         vbin "${FILESDIR}"/66
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"
39
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"
47
48         # Install sysctl.sh in /usr/share/66/script/
49         vinstall "${FILESDIR}"/sysctl.sh 755 usr/share/66/script/
50
51         # Install backwards compatibility symlink for modules.sh
52         ln -s /usr/bin/modules-load ${DESTDIR}/usr/share/66/script/modules.sh
53
54         # Install license file
55         vlicense LICENSE
56 }