if [ "${PV}" = "9999" ]; then GIT=git else GIT= fi inherit eutils flag-o-matic ${GIT} multilib toolchain-funcs DESCRIPTION="OpenRC manages the services, startup and shutdown of a host" HOMEPAGE="http://roy.marples.name/openrc" if [ "${PV}" = "9999" ]; then EGIT_REPO_URI="git://git.overlays.gentoo.org/proj/openrc.git" else SRC_URI="http://roy.marples.name/${PN}/${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/module-init-tools-3.2.2-r2 ) kernel_FreeBSD? ( sys-process/fuser-bsd ) ncurses? ( sys-libs/ncurses ) pam? ( virtual/pam ) !=sys-apps/baselayout-2.0.0 !/dev/null rm -rf "${ROOT}${svcdir}" fi ) fi } pkg_postinst() { # Remove old baselayout links rm -f "${ROOT}"etc/runlevels/boot/checkfs \ "${ROOT}"etc/runlevels/boot/checkroot \ "${ROOT}"etc/runlevels/boot/rmnologin # 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 elog "You should now update all files in /etc, using etc-update" elog "or equivalent before restarting any services or this host." }