OSDN Git Service

add 66boot-initial-setup script, small fixes in the template.
[avyssos/66-voidlinux.git] / srcpkgs / boot-66serv / template
index 4747249..4c3e1f5 100644 (file)
@@ -22,13 +22,24 @@ checksum=03b692700030eaae1e882b6df97e84cbbf0180e067291342d5ed9117047475ba
 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
-       vlicense LICENSE
+
+       # 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/
+       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
+       vinstall "${FILESDIR}"/switch-initutils-66 644 usr/share/66/service/ switch-initutils
        vsed -i "s/@VERSION@/0.0.1/" "${DESTDIR}/usr/share/66/service/switch-initutils"
+
+       # Install license file
+       vlicense LICENSE
 }