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
}