diff options
author | William Hubbs <williamh@gentoo.org> | 2018-05-19 19:15:50 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2018-05-19 19:17:02 -0500 |
commit | 2f26d2dc5406a99c9e63874270ad8d227aabd10d (patch) | |
tree | fcb3e9bc17551700fe3395e73fd22175ef51f1d0 /sys-process | |
parent | games-puzzle/nudoku: use HTTPS (diff) | |
download | gentoo-2f26d2dc5406a99c9e63874270ad8d227aabd10d.tar.gz gentoo-2f26d2dc5406a99c9e63874270ad8d227aabd10d.tar.bz2 gentoo-2f26d2dc5406a99c9e63874270ad8d227aabd10d.zip |
sys-process/runit: 2.1.1-r2 revbump to remove eapi 3 ebuild
Package-Manager: Portage-2.3.24, Repoman-2.3.6
RepoMan-Options: --force
Diffstat (limited to 'sys-process')
-rw-r--r-- | sys-process/runit/runit-2.1.1-r2.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/sys-process/runit/runit-2.1.1-r2.ebuild b/sys-process/runit/runit-2.1.1-r2.ebuild new file mode 100644 index 000000000000..48bdcfc31e7c --- /dev/null +++ b/sys-process/runit/runit-2.1.1-r2.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs flag-o-matic + +DESCRIPTION="A UNIX init scheme with service supervision" +HOMEPAGE="http://smarden.org/runit/" +SRC_URI="http://smarden.org/runit/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" +IUSE="static" + +S=${WORKDIR}/admin/${P}/src + +src_prepare() { + default + # we either build everything or nothing static + sed -i -e 's:-static: :' Makefile || die "sed of Makefile failed" +} + +src_configure() { + use static && append-ldflags -static + + echo "$(tc-getCC) ${CFLAGS}" > conf-cc || die "setting cflags" + echo "$(tc-getCC) ${LDFLAGS}" > conf-ld || die "setting ldflags failed" +} + +src_install() { + keepdir /etc/runit{,/runsvdir{,/default,/all}} + dosym default /etc/runit/runsvdir/current + dosym ../etc/runit/runsvdir/current /var/service + dosym ../etc/runit/2 /sbin/runsvdir-start + + dobin $(<../package/commands) + dodir /sbin + mv "${ED}"/usr/bin/{runit-init,runit,utmpset} "${ED}"/sbin/ || die "dosbin" + + cd "${S}"/.. + dodoc package/{CHANGES,README,THANKS,TODO} + dohtml doc/*.html + doman man/*.[18] + + exeinto /etc/runit + doexe "${FILESDIR}"/{1,2,3,ctrlaltdel} + for tty in tty1 tty2 tty3 tty4 tty5 tty6; do + exeinto /etc/runit/runsvdir/all/getty-$tty/ + for script in run finish; do + newexe "${FILESDIR}"/$script.getty $script + sed -i -e "s:TTY:${tty}:g" "${ED}"/etc/runit/runsvdir/all/getty-$tty/$script + done + dosym ../all/getty-$tty /etc/runit/runsvdir/default/getty-$tty + done + + # make sv command work + cd "${S}" + insinto /etc/env.d + cat <<-EOF > env.d + #/etc/env.d/20runit + SVDIR="/var/service/" + EOF + newins env.d 20runit +} + +pkg_postinst() { + ewarn "/etc/profile was updated. Please run:" + ewarn "source /etc/profile" + ewarn "to make 'sv' work correctly on your currently open shells" +} |