# initialization - the init system ScrapLinux runs as pid 1. # # A fork of Leah Neukirchen's nitro: the supervision core is nitro's and so is # the licence. What is different is the boot report, the naming, and that this # is the init ScrapLinux ships rather than one of several a system might pick. # # Pinned to a commit rather than a tag because the fork has no releases yet. # A branch archive would build something different every time it was fetched, # which is not a package. name=initialization version=0.8.1 release=1 desc="The ScrapLinux init system and process supervisor" url="https://github.com/apiwo/initialization" license="0BSD" depend="glibc" # initctl answers as poweroff, reboot, halt and shutdown - they are links to # it, because they talk to pid 1 and only the running init can answer. On a # machine booted with initialization those are the right ones, so they are # taken from busybox the same way less and wget are. replaces="busybox" makedepend="" _commit=e3a37de # Named after the commit, not the version: the cache is keyed on the file # name, so a version-named archive is not re-fetched when the commit it # pins moves and the build silently keeps using the old source. source="initialization-$_commit.tar.gz::https://github.com/apiwo/initialization/archive/$_commit.tar.gz" sha256="SKIP" build() { cd "initialization-$_commit" make PREFIX=/usr } package() { cd "initialization-$_commit" make install PREFIX=/usr DESTDIR="$pkgdir" # /usr/bin/service belongs to scraplinux-base: it is the wrapper that hands # a verb to whichever init is actually running, so nothing here should # answer for an init that is not. rm -f "$pkgdir/usr/bin/service" }