summaryrefslogtreecommitdiff
path: root/sys-apps/s6-linux-init
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-10-25 04:04:27 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-10-25 04:04:27 +0100
commitb11a5614cb96e70e116581c98abf286c2cf694ca (patch)
treeb602f03c26a8da259d67174441f0630d3fbbfa5d /sys-apps/s6-linux-init
parente7daa1f959ba2c720f36a6984f588098e68b15cd (diff)
gentoo auto-resync : 25:10:2024 - 04:04:26
Diffstat (limited to 'sys-apps/s6-linux-init')
-rw-r--r--sys-apps/s6-linux-init/Manifest2
-rw-r--r--sys-apps/s6-linux-init/s6-linux-init-1.1.2.1.ebuild79
2 files changed, 81 insertions, 0 deletions
diff --git a/sys-apps/s6-linux-init/Manifest b/sys-apps/s6-linux-init/Manifest
index 82e6ccd02045..939286a8cede 100644
--- a/sys-apps/s6-linux-init/Manifest
+++ b/sys-apps/s6-linux-init/Manifest
@@ -1,3 +1,5 @@
DIST s6-linux-init-1.1.2.0.tar.gz 60986 BLAKE2B e1becccf2ae54d06e590586c3158ae4ea4ec9a78c942bbdca5aca7320cd3cbbf9fe7e4b711c1c3505027d704dbd5de2185dc4d84bbc2dfc7687ff41c765bb31e SHA512 76376c4d407e665f67f733f1366dbacca58d268ebdbe22a9147cb102d519bd4c5887a345f66db2005d29ed9a841cb5a388c73c7d8df00d984cc4a25b9a813786
+DIST s6-linux-init-1.1.2.1.tar.gz 61073 BLAKE2B ae5d71b3817ef8b2c09d06fb34a8b170a3d63ffd31333bc136f320d31bdcca093915d9711ea018caab85cef0677ef98cd75101671f9a4d72eaba92cbb22c38a8 SHA512 343b6a9bdcf3b1abb544409bb2d7a6c8a1dbcb07d1b941ae74e8800e48ad605c6427f724d7692569b3ade4829948d0e57024c764c18a60c3bb2eb2efefedb622
EBUILD s6-linux-init-1.1.2.0.ebuild 1765 BLAKE2B 0872560322a1463f204ce7cf0013fd1d94d66a38574da40ae8940f8a06df5eba67661ec5840ff0800f9694bfa689b0d5d132e465fce55549af2f6cbb5627d04f SHA512 22377c3138ca2de279502b50b0d82dc2a7ad7145f69d4f5289fb44ac65dc0efb9153938596108b4ee0cabbfa15b94e200e1ff22c7428d43e8fbee75313710a08
+EBUILD s6-linux-init-1.1.2.1.ebuild 1768 BLAKE2B e57f65dff3ea99cce55f8fa52a493c0c4dfca15d30bc7b2fe31b660ea4b3956109065ae70b170fc7e2d5bcbc675a82385df17619723a47d6dd78fec06ad6ad1c SHA512 4ae68df97ea515f31dde7aaf7d775d604f5e46e98b037d08af89436d2544cd68ed65143c8bc80f6fc591a1099f32b4fd53f4ffa61fc5576a1024231e071b74a0
MISC metadata.xml 750 BLAKE2B b0b1508188b05b09ab4c8ea338d7db19a41ee23bb0ae69916add81ddd0cd9a6a6591c4b53c9fb92ea88510e9b93fa1cdcfa2d89be51acaa6e3260465311d1c10 SHA512 c2cae5bd406eb008667b178636e96fd44707e1468140fc7c088afdf0fcb9fdcaab6c02a791409985c0425c13cdaa12a222d135a6406aef432b1b3bf2d83da1e6
diff --git a/sys-apps/s6-linux-init/s6-linux-init-1.1.2.1.ebuild b/sys-apps/s6-linux-init/s6-linux-init-1.1.2.1.ebuild
new file mode 100644
index 000000000000..a444a4733a4d
--- /dev/null
+++ b/sys-apps/s6-linux-init/s6-linux-init-1.1.2.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit optfeature toolchain-funcs
+
+DESCRIPTION="Generates an init binary for s6-based init systems"
+HOMEPAGE="https://www.skarnet.org/software/s6-linux-init/"
+SRC_URI="https://www.skarnet.org/software/${PN}/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/$(ver_cut 1-2)"
+KEYWORDS="~alpha ~amd64 ~arm ~mips ~x86"
+IUSE="+sysv-utils"
+
+RDEPEND="
+ dev-lang/execline:=
+ >=dev-libs/skalibs-2.14.0.0:=
+ sys-apps/s6:=[execline]
+ sysv-utils? (
+ !sys-apps/openrc[sysv-utils(-)]
+ !sys-apps/systemd[sysv-utils]
+ !sys-apps/sysvinit
+ )
+"
+DEPEND="${RDEPEND}"
+
+HTML_DOCS=( doc/. )
+
+src_prepare() {
+ default
+
+ # Avoid QA warning for LDFLAGS addition
+ sed -i -e 's/.*-Wl,--hash-style=both$/:/' configure || die
+
+ sed -i -e '/AR := /d' -e '/RANLIB := /d' Makefile || die
+}
+
+src_configure() {
+ tc-export AR CC RANLIB
+
+ local myconf=(
+ --bindir=/bin
+ --dynlibdir="/$(get_libdir)"
+ --skeldir=/etc/s6-linux-init/skel
+ --libdir="/usr/$(get_libdir)/${PN}"
+ --libexecdir=/lib/s6
+ --with-dynlib="/$(get_libdir)"
+ --with-lib="/usr/$(get_libdir)/s6"
+ --with-lib="/usr/$(get_libdir)/skalibs"
+ --with-sysdeps="/usr/$(get_libdir)/skalibs"
+ --enable-shared
+ --disable-allstatic
+ --disable-static
+ --disable-static-libc
+ )
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ if use sysv-utils ; then
+ "${D}/bin/s6-linux-init-maker" -f "${D}/etc/s6-linux-init/skel" "${T}/dir" || die
+ into /
+ dosbin "${T}/dir/bin"/{halt,poweroff,reboot,shutdown,telinit}
+ fi
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ elog "Read ${EROOT}/usr/share/doc/${PF}/html/quickstart.html"
+ elog "for usage instructions."
+ fi
+
+ optfeature "man pages" app-doc/s6-linux-init-man-pages
+}