OSDN Git Service

use upstream patches for local-iptables and devices-crypttab.
[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 --TMPFILE=!no
9  --ZFS_IMPORT=!zpoolcache"
10 make_install_target="install install-man install-html"
11 hostmakedepends="lowdown"
12 makedepends="file"
13 depends="s6 s6-rc s6-linux-utils s6-portable-utils 66 66-tools"
14 short_desc="Stage 1 boot for 66"
15 maintainer="mobinmob <mobinmob@disroot.org>"
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 patch_args=" -Np1"
22
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         # Create symlink for the boot@system service configuration file
34         ln -s /etc/66/conf/boot@system/version/boot@system "${DESTDIR}/etc/66rc.conf"
35
36         # Install runit and switch-initutils services for 66
37         # @version should be incremented only when there is a change in the specific
38         # frontend service file.
39         vinstall "${FILESDIR}"/runit 644 usr/share/66/service/
40         vsed -i "s/@VERSION@/0.0.1/" "${DESTDIR}/usr/share/66/service/runit"
41         vinstall "${FILESDIR}"/switch-initutils-66 644 usr/share/66/service/ switch-initutils
42         vsed -i "s/@VERSION@/0.0.1/" "${DESTDIR}/usr/share/66/service/switch-initutils"
43
44         # Install license file
45         vlicense LICENSE
46 }