| git.druid.rocks | index | druid520 | ports | ports/ | init/ | sinit/ | add.sh |
ports/init/sinit/add.sh
set -e
git clone git://git.suckless.org/sinit
cd sinit
make CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
make install PREFIX=$MP_PREFIX
# upstream sinit only ever installs itself as "sinit" (see its own
# manifest: bin/sinit, share/man/man8/sinit.8) -- it deliberately leaves
# the actual /sbin/init (or /init) symlink a packager's own job, same as
# every other suckless tool that expects the distro to wire it in. never
# done here until now: hit for real, the container's own cold-boot path
# ("incus start" after a genuine stop, not just staying up since before
# this port was ever installed) failed outright with lxc's own "Failed
# to exec /sbin/init - No such file or directory", because nothing had
# ever actually created that symlink.
ln -sf ../bin/sinit $MP_PREFIX/sbin/init
make clean || true