OSDN Git Service

update boot-66serv to 2.3.1.
[avyssos/66-voidlinux.git] / srcpkgs / boot-66serv / template
index 1a57510..01f7cdd 100644 (file)
@@ -1,30 +1,44 @@
 # Template file for 'boot-66serv'
 pkgname=boot-66serv
-version=2.2.1
+version=2.3.1
 revision=1
 wrksrc=${pkgname}-v${version}
 build_style=gnu-configure
-configure_args="--HOSTNAME=voidlinux --TTY=!4
      --KEYMAP=!us --TZ=Europe/Madrid"
+configure_args="--HOSTNAME=!voidlinux --TTY=!4
--KEYMAP=!us --TZ=!Europe/Madrid --TMPFILE=!no"
 make_install_target="install install-man install-html"
 hostmakedepends="lowdown"
 makedepends="file"
 depends="s6 s6-rc s6-linux-utils s6-portable-utils 66 66-tools"
 short_desc="Stage 1 boot for 66"
 maintainer="mobinmob <mobinmob@disroot.org>"
-# previous maintainer="teldra <teldra@rotce.de>"
 license="ISC"
-homepage="https://framagit.org/Obarun/boot-66serv"
+homepage="https://framagit.org/pkg/obmods/boot-66serv"
 conf_files="/etc/66/rc.local"
-distfiles="https://framagit.org/Obarun/${pkgname}/-/archive/v${version}/${pkgname}-v${version}.tar.gz"
-checksum=34eac7f84dd9cafda78a7b5a21eed484e9d6b52e8fba0ade6dbb5f1567def84d
+distfiles="https://framagit.org/pkg/obmods/boot-66serv/-/archive/v${version}/boot-66serv-v${version}.tar.bz2"
+checksum=b6fd72c1a662bb4ee15a27885e2967196966772a02595006730f56a87f85a679
+
+make_dirs="/etc/runit/runsvdir/66 0750 root root"
 
 post_install() {
-       vinstall ${FILESDIR}/switch-initutils 644 etc/runit/core-services 99-switch-initutils.sh
-       vbin ${FILESDIR}/66
+
+       # Install the switch-initutils core service for runit.
+       vinstall "${FILESDIR}"/switch-initutils 644 etc/runit/core-services 99-switch-initutils.sh
+       # Install the 66 wrapper for 66-boot
+       vbin "${FILESDIR}"/66
+       # Install the 66boot-initial-setup utility
+       vbin "${FILESDIR}"/66boot-initial-setup
+       # Create symlink for the boot@system service configuration file
+       ln -s /etc/66/conf/boot@system/version/boot@system "${DESTDIR}/etc/66rc.conf"
+
+       # Install runit and switch-initutils services for 66
+       # @version should be incremented only when there is a change in the specific
+       # frontend service file.
+       vinstall "${FILESDIR}"/runit 644 usr/share/66/service/
+       vsed -i "s/@VERSION@/0.0.1/" "${DESTDIR}/usr/share/66/service/runit"
+       vinstall "${FILESDIR}"/switch-initutils-66 644 usr/share/66/service/ switch-initutils
+       vsed -i "s/@VERSION@/0.0.2/" "${DESTDIR}/usr/share/66/service/switch-initutils"
+
+       # Install license file
        vlicense LICENSE
-       vinstall ${FILESDIR}/tty@ 644 usr/share/66/service/
-       vsed -i "s/@VERSION@/${version}/" "${DESTDIR}/usr/share/66/service/tty@"
-       vinstall ${FILESDIR}/runit 644 usr/share/66/service/
-       vsed -i "s/@VERSION@/${version}/" "${DESTDIR}/usr/share/66/service/runit"
 }