summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@atlas.cz>2023-01-16 16:45:14 +0100
committerSam James <sam@gentoo.org>2023-01-17 01:52:14 +0000
commit900e7eb3aaf51a2849fe91c4c0a77caf83cfe447 (patch)
treedacdad9e5e78efbe1e9a37c000330e04506c5359 /sys-apps/s6-linux-init
parentsys-apps/s6-portable-utils: add 2.2.5.1 (diff)
downloadgentoo-900e7eb3aaf51a2849fe91c4c0a77caf83cfe447.tar.gz
gentoo-900e7eb3aaf51a2849fe91c4c0a77caf83cfe447.tar.bz2
gentoo-900e7eb3aaf51a2849fe91c4c0a77caf83cfe447.zip
sys-apps/s6-linux-init: add 1.0.8.1
The --disable-static needs to be explicitly specified in configuration phase otherwise static libraries are created. Fixes: 5215a1214162 ("sys-apps/s6-linux-init: drop IUSE="static static-libs"") Bug: https://bugs.gentoo.org/890877 Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps/s6-linux-init')
-rw-r--r--sys-apps/s6-linux-init/Manifest1
-rw-r--r--sys-apps/s6-linux-init/s6-linux-init-1.0.8.1.ebuild73
2 files changed, 74 insertions, 0 deletions
diff --git a/sys-apps/s6-linux-init/Manifest b/sys-apps/s6-linux-init/Manifest
index 7dfba1589d75..8387575cf922 100644
--- a/sys-apps/s6-linux-init/Manifest
+++ b/sys-apps/s6-linux-init/Manifest
@@ -1 +1,2 @@
DIST s6-linux-init-1.0.8.0.tar.gz 58732 BLAKE2B 15e90b1987729f4771ffd294d2a6b4738e0e2d3438c694c1739c6c8ff8bff3a3b9c31565f446e7387fda226b4f0480c36051a593e2e8081301bc83973f9fcb5e SHA512 b64319bc13a98e5f766a118ebd54ccec93163b38b2afc060fe4034a4f2312bb6ae68019e37706338f84c74aa527e5b2ac1f4b29d39255c2d436eab8608483346
+DIST s6-linux-init-1.0.8.1.tar.gz 59188 BLAKE2B e0f417fb349b3f47dcaa9f36c6f40d8c58066d62ad953b8f797ce6cce14e8c337acd15d34498b49fc0f9455cf4551c948fd7f16b0947f7cdc376e762594afc3a SHA512 df3b5699f9c04ffc89d219dbc9536a64ad3d2fb1d5c5844b2fb9804ac9e223e8b16fe1084baee9b60d3ab61f228de1b57605c3c0f72227758afb16aea1c68340
diff --git a/sys-apps/s6-linux-init/s6-linux-init-1.0.8.1.ebuild b/sys-apps/s6-linux-init/s6-linux-init-1.0.8.1.ebuild
new file mode 100644
index 000000000000..62c217701a87
--- /dev/null
+++ b/sys-apps/s6-linux-init/s6-linux-init-1.0.8.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit 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="~amd64 ~arm ~x86"
+IUSE="+sysv-utils"
+
+RDEPEND="dev-lang/execline:=
+ >=dev-libs/skalibs-2.13.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=/usr/$(get_libdir)
+ --skeldir=/etc/s6-linux-init/skel
+ --libdir=/usr/$(get_libdir)/${PN}
+ --with-dynlib=/usr/$(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() {
+ einfo "Read ${EROOT}/usr/share/doc/${PF}/html/quickstart.html"
+ einfo "for usage instructions."
+}