OSDN Git Service

add 66boot-initial-setup script, small fixes in the template.
[avyssos/66-voidlinux.git] / srcpkgs / boot-66serv / template
1 # Template file for 'boot-66serv'
2 pkgname=boot-66serv
3 version=2.3.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 short_desc="Stage 1 boot for 66"
14 maintainer="mobinmob <mobinmob@disroot.org>"
15 # previous maintainer="teldra <teldra@rotce.de>"
16 license="ISC"
17 homepage="https://framagit.org/pkg/obmods/boot-66serv"
18 conf_files="/etc/66/rc.local"
19 distfiles="https://framagit.org/pkg/obmods/boot-66serv/-/archive/v${version}/boot-66serv-v${version}.tar.bz2"
20 checksum=03b692700030eaae1e882b6df97e84cbbf0180e067291342d5ed9117047475ba
21
22 make_dirs="/etc/runit/runsvdir/66 0750 root root"
23
24 post_install() {
25
26         # Install the switch-initutils core service for runit.
27         vinstall "${FILESDIR}"/switch-initutils 644 etc/runit/core-services 99-switch-initutils.sh
28         # Install the 66 wrapper for 66-boot
29         vbin "${FILESDIR}"/66
30         # Install the 66boot-initial-setup utility
31         vbin "${FILESDIR}"/66boot-initial-setup
32         # Create symlink for the boot@system service configuration file
33         ln -s /etc/66/conf/boot@system/version/boot@system "${DESTDIR}/etc/66rc.conf"
34
35         # Install runit and switch-initutils services for 66
36         # @version should be incremented only when there is a change in the specific
37         # frontend service file.
38         vinstall "${FILESDIR}"/runit 644 usr/share/66/service/
39         vsed -i "s/@VERSION@/0.0.1/" "${DESTDIR}/usr/share/66/service/runit"
40         vinstall "${FILESDIR}"/switch-initutils-66 644 usr/share/66/service/ switch-initutils
41         vsed -i "s/@VERSION@/0.0.1/" "${DESTDIR}/usr/share/66/service/switch-initutils"
42
43         # Install license file
44         vlicense LICENSE
45 }