diff options
Diffstat (limited to 'sys-apps/s6-linux-init')
-rw-r--r-- | sys-apps/s6-linux-init/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/s6-linux-init/s6-linux-init-0.4.0.0.ebuild | 62 |
2 files changed, 63 insertions, 0 deletions
diff --git a/sys-apps/s6-linux-init/Manifest b/sys-apps/s6-linux-init/Manifest index 424974a80e7d..59d7487f0ef9 100644 --- a/sys-apps/s6-linux-init/Manifest +++ b/sys-apps/s6-linux-init/Manifest @@ -1 +1,2 @@ DIST s6-linux-init-0.3.1.1.tar.gz 25955 BLAKE2B 46e8e88c9c48fd00819cd0f437eea7ca6a5c08751aa3196dda24a8d3a22fdb14270ae99c74134ab0e123dde65bf3cc86c7916a157e447a72428db9b3870ffe3f SHA512 b8a44e09fc6770e91f1ffeed3267bf5fb83cf857653727d52773674db5942fbbc010355bdf24e456d2b2df5a1ac72888b78b2ec502c0d42770af58aaaec00648 +DIST s6-linux-init-0.4.0.0.tar.gz 26744 BLAKE2B d56ba8def4e4a0158721fd9b9c4f19aa2e13e615e7e598fdced2b7c341820f31830c021d9181792bfd324e70163fed826c691a80fbbb7ae6f30be46eeb6330b9 SHA512 5b53d3afad28b476d366d649f9989de79adaaa3b7d255323bb121a6f8e6fef051306cd6368ddcc3745b6472bf4ac2ccb7f4088f6addeb6d52ebc40e703dcbb44 diff --git a/sys-apps/s6-linux-init/s6-linux-init-0.4.0.0.ebuild b/sys-apps/s6-linux-init/s6-linux-init-0.4.0.0.ebuild new file mode 100644 index 000000000000..f1878d4e465b --- /dev/null +++ b/sys-apps/s6-linux-init/s6-linux-init-0.4.0.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +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" +KEYWORDS="~amd64 ~x86" +IUSE="static" + +DEPEND=">=sys-devel/make-3.81 + static? ( + >=dev-libs/skalibs-2.6.4.0[static-libs] + ) + !static? ( + >=dev-libs/skalibs-2.6.4.0 + ) +" +RDEPEND=" + >=dev-lang/execline-2.3.0.4 + >=sys-apps/s6-2.7.1.0 + >=sys-apps/s6-linux-utils-2.4.0.2 + >=sys-apps/s6-portable-utils-2.2.1.1 + !static? ( + >=dev-libs/skalibs-2.6.4.0:= + ) +" + +DOCS="INSTALL examples" +HTML_DOCS="doc/*" + +src_prepare() { + default + + # Remove QA warning about LDFLAGS addition + sed -i "s/tryldflag LDFLAGS_AUTO -Wl,--hash-style=both/:/" "${S}/configure" || die + + # configure overrides gentoo's -fstack-protector default + sed -i "/^tryflag CFLAGS_AUTO -fno-stack-protector$/d" "${S}/configure" || die +} + +src_configure() { + econf \ + --bindir=/bin \ + --dynlibdir=/$(get_libdir) \ + --libdir=/usr/$(get_libdir)/${PN} \ + --with-dynlib=/$(get_libdir) \ + --with-lib=/usr/$(get_libdir)/skalibs \ + --with-sysdeps=/usr/$(get_libdir)/skalibs \ + $(use_enable static allstatic) \ + $(use_enable static static-libc) +} + +pkg_postinst() +{ + einfo "The generated init script requires additional packages." + einfo "Read ${ROOT}usr/share/doc/${PF}/INSTALL for details." +} |