mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-04 12:18:08 -07:00
sys-process/runit: Remove old 2.1.1-r2
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST runit-2.1.1.tar.gz 109661 BLAKE2B 3962d3cb0d3d9f612bcef40939cba7d71f0bb338281578f4a2c3ec10a819e0d90c3d6cb6c3992226a5aaaa7e5f282a64abadac762422221f7abe0aedbffc2249 SHA512 a927a757386653fdc40437884e3dc2d1dda6aaf5f1919f301fcf604e559836bd44e5fcb296d69e7f4260fd881475124c44996530de4948d35d8a102b206ca470
|
||||
DIST runit-2.1.2.tar.gz 110916 BLAKE2B 101e514aeed282685ebe636f401ca6f94d157281d08a3ac487340aebe945b82d2ee01d41e9917446f4ebd7b27fe9fd18ba4ad55739ab1b62a0e59e1c438b55e9 SHA512 a18773ebf1aa22305dd89ed67363165b9fcf86c192b2be4e268d08005dd82d51265160c637abe072f2f2e378c4b315a75bd3d3e602c3e75bdd451a3b0190f8cf
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/sh
|
||||
# system one time tasks
|
||||
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
|
||||
RUNLEVEL=S /sbin/rc sysinit
|
||||
RUNLEVEL=S /sbin/rc boot
|
||||
|
||||
touch /etc/runit/stopit
|
||||
chmod 0 /etc/runit/stopit
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
|
||||
|
||||
exec env - PATH=$PATH \
|
||||
runsvdir /var/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec >/dev/console 2>&1
|
||||
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||
|
||||
echo 'Waiting for getties to stop...'
|
||||
sv shutdown -w 10 /var/service/getty-*
|
||||
|
||||
echo 'Waiting for services to stop...'
|
||||
sv shutdown -w 300 /var/service/*
|
||||
|
||||
echo 'Shutdown...'
|
||||
test -x /etc/runit/reboot && LAST=6 || LAST=0
|
||||
test -x /etc/runit/reboot && RC=reboot || RC=shutdown
|
||||
RUNLEVEL=$LAST /sbin/rc $RC
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/sh
|
||||
exec /sbin/agetty 38400 TTY linux
|
||||
@@ -1,72 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# 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 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"
|
||||
}
|
||||
Reference in New Issue
Block a user