--- /dev/null
+# ChangeLog for sys-apps/runit
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/runit/ChangeLog,v 1.1 2004/10/10 02:09:40 vapier Exp $
+
+*runit-1.0.5 (09 Oct 2004)
+
+ 09 Oct 2004; Mike Frysinger <vapier@gentoo.org> :
+ Initial import. Ebuild submitted by Torne Wuff #39160.
--- /dev/null
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 6c0cd248ea4b64148f724d8705f056dd ChangeLog 339
+MD5 197323b23555ef7ab64d572ee0d3588e runit-1.0.5.ebuild 1661
+MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
+MD5 c40ea29a84ae96a8d38976a36c963335 files/1 175
+MD5 3b574bfad17bf4d2d22e025289d2bad7 files/2 551
+MD5 14c3375cd167d9c7b1b89febd8de64e6 files/3 377
+MD5 ca1dc1a0ccab2afbac7a8540c74bd612 files/finish.getty 30
+MD5 9f1dcf4c31a2d9df9336b8d1c9b13a83 files/ctrlaltdel 189
+MD5 2d1e9a75a18249dec3a71503c5266d55 files/run.getty 44
+MD5 0c9a4b2732a7c102b84593eae16b34c7 files/digest-runit-1.0.5 62
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.9.10 (GNU/Linux)
+
+iD8DBQFBaJn2HTu7gpaalycRAlAhAJ4p5H76ewIAlZNqS1ZsezJ3uoTZLACfbRWx
+FIB/MToYAtMEH9pZHL4QnCw=
+=lUAe
+-----END PGP SIGNATURE-----
--- /dev/null
+#!/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
--- /dev/null
+#!/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: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
--- /dev/null
+#!/bin/sh
+exec >/dev/console 2>&1
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+
+echo 'Waiting for getties to stop...'
+svwaitdown -xk -t10 /var/service/getty-*
+
+echo 'Waiting for services to stop...'
+svwaitdown -xk -t300 /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
+
--- /dev/null
+#!/bin/sh
+
+PATH=/bin:/usr/bin
+MSG="System is going down in 14 seconds..."
+
+# echo 'disabled.' ; exit
+touch /etc/runit/stopit
+chmod 100 /etc/runit/stopit && echo "$MSG" | wall
+/bin/sleep 14
--- /dev/null
+MD5 e90ed8f2f37fae157b0f422ff6e594cb runit-1.0.5.tar.gz 89541
--- /dev/null
+#!/bin/sh
+exec utmpset -w TTY
--- /dev/null
+#!/bin/sh
+exec /sbin/agetty 38400 TTY linux
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>base-system</herd>
+</pkgmetadata>
--- /dev/null
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/runit/runit-1.0.5.ebuild,v 1.1 2004/10/10 02:09:40 vapier Exp $
+
+inherit gcc 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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="static"
+
+DEPEND="virtual/glibc"
+
+S=${WORKDIR}/admin/${P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # we either build everything or nothing static
+ sed -i -e 's:-static: :' src/Makefile
+ use static && append-ldflags -static
+
+ echo "$(gcc-getCC) ${CFLAGS}" > src/conf-cc
+ echo "$(gcc-getCC) ${LDFLAGS}" > src/conf-ld
+}
+
+src_compile() {
+ cd src
+ emake || die "make failed"
+}
+
+src_install() {
+ dodir /var
+ keepdir /etc/runit{,/runsvdir{,/default,/all}}
+ dosym default /etc/runit/runsvdir/current
+ dosym ../etc/runit/runsvdir/current /var/service
+
+ cd src
+ dobin chpst runsv runsvchdir runsvctrl runsvdir \
+ runsvstat svlogd svwaitdown svwaitup || die "dobin"
+ into /
+ dosbin runit-init runit utmpset || die "dosbin"
+
+ cd ${S}
+ dodoc package/{CHANGES,README,THANKS}
+ dohtml doc/*.html
+ doman man/*
+
+ 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
+ dosed "s:TTY:${tty}:g" /etc/runit/runsvdir/all/getty-$tty/$script
+ done
+ dosym ../all/getty-$tty /etc/runit/runsvdir/default/getty-$tty
+ done
+}