mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
sys-apps/s6-linux-init: add 1.1.3.0
Signed-off-by: Petr Vaněk <arkamar@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
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
|
||||
DIST s6-linux-init-1.1.3.0.tar.gz 65116 BLAKE2B 9792c057371090ddec81f79177a62b9a6b3fb0bd68d9ef990fe7e5ddd0c353c69fc71c9bd2c7f458a87b8c7d2af4b376c87f3156bfebb35e8604424a7120759a SHA512 671f0532f708f570b307510d76eefabfecf0fb989491b2bb02dfccc1043ed80761367c2f7a56821aa44d159b57b4c1eca739b50362ec56f2be3b498df6f9a34a
|
||||
|
||||
83
sys-apps/s6-linux-init/s6-linux-init-1.1.3.0.ebuild
Normal file
83
sys-apps/s6-linux-init/s6-linux-init-1.1.3.0.ebuild
Normal file
@@ -0,0 +1,83 @@
|
||||
# Copyright 1999-2025 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-pkgconfig
|
||||
--pkgconfdir="/usr/$(get_libdir)/pkgconfig"
|
||||
|
||||
--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
|
||||
}
|
||||
Reference in New Issue
Block a user