inherit flag-o-matic eutils toolchain-funcs multilib DESCRIPTION="OpenRC manages the services, startup and shutdown of a host" HOMEPAGE="http://roy.marples.name/" if [ "${PV}" = "9999" ]; then inherit git EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/openrc.git" else SRC_URI="http://roy.marples.name/${P}.tar.bz2" fi LICENSE="BSD-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" IUSE="ncurses pam static unicode kernel_linux kernel_FreeBSD" RDEPEND="virtual/init kernel_linux? ( >=sys-apps/coreutils-5.2.1 >=sys-apps/module-init-tools-3.2.2-r2 sys-apps/makedev ) kernel_FreeBSD? ( sys-process/fuser-bsd ) ncurses? ( sys-libs/ncurses ) pam? ( virtual/pam ) !/dev/null rm -rf "${ROOT}${svcdir}" fi ) fi } pkg_postinst() { # Make our runlevels if they don't exist if [ ! -e "${ROOT}"etc/runlevels ]; then einfo "Copying across default runlevels" cp -RPp "${ROOT}"usr/share/"${PN}"/runlevels "${ROOT}"/etc fi if [ -d "${ROOT}"etc/modules.autoload.d ]; then ewarn "${ROOT}etc/modules.autoload.d exists" ewarn "This has been deprecated in favour of /etc/conf.d/modules" fi einfo "You should now update all files in /etc, using etc-update" einfo "or equivalent before restarting any services or this host." }