diff --git a/pkg.info b/pkg.info index 1cbba9b..ae38ca8 100644 --- a/pkg.info +++ b/pkg.info @@ -1,12 +1,14 @@ name: enit description: The official init system for Tide Linux -version: 0.3.1 +version: 0.3.2 revision: 1 url: https://github.com/EnumeratedDev/enit license: MIT architecture: any output_architecture: x86_64 type: source +keep: + - etc/esvm/enabled_services make_depends: - git - golang @@ -15,4 +17,4 @@ downloads: type: git clone_to: ${BPM_SOURCE} git_branch: ${BPM_PKG_VERSION} - checksum: 2be3e0c9479cb2caae60cb6ad83a8813041275a9 + checksum: 7f37da209139281f83339b6a263b01eaed3d31b9 diff --git a/source-files/enabled_services b/source-files/enabled_services new file mode 100644 index 0000000..babfd4c --- /dev/null +++ b/source-files/enabled_services @@ -0,0 +1,9 @@ +1: + - agetty-tty1 + - agetty-tty2 + - agetty-tty3 + - agetty-tty4 + - agetty-tty5 + - agetty-tty6 +2: + - lo-interface diff --git a/source.sh b/source.sh index ccf585a..1a6254c 100644 --- a/source.sh +++ b/source.sh @@ -14,6 +14,9 @@ package() { make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc LOCALSTATEDIR=/var install make DESTDIR="$BPM_OUTPUT" PREFIX=/usr SYSCONFDIR=/etc LOCALSTATEDIR=/var install-services + # Install default enabled services file + install -Dm644 "$BPM_WORKDIR"/enabled_services "$BPM_OUTPUT"/etc/esvm/enabled_services + # Create shortcut scripts for ectl power commands for cmd in shutdown poweroff halt reboot restart; do install -Dm755 "$BPM_WORKDIR"/ectl-shortcut-template.sh "$BPM_OUTPUT"/usr/sbin/"$cmd"