1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils linux-info
12 DESCRIPTION="An init system, a /sbin/init replacement; designed for simplicity"
13 HOMEPAGE="http://universe2.us/epoch.html"
14 SRC_URI="http://universe2.us/${PN}_${PV}.tar.gz"
16 LICENSE="public-domain"
18 KEYWORDS="~amd64 ~arm ~x86"
20 S="${WORKDIR}/${PN}_${PV}"
23 local CONFIG_CHECK="~PROC_FS"
25 [[ ${MERGE_TYPE} != buildonly ]] && check_extra_config
29 epatch "${FILESDIR}"/${PN}-1.0-fix-CFLAGS.patch
33 NEED_EMPTY_CFLAGS=1 sh ./buildepoch.sh || die "Cannot build epoch."
39 cd ${type} || die "Cannot change directory."
41 if [[ "${file}" != "epoch" ]] ; then
42 new${type} ${file} epoch-${file}
45 cd .. || die "Cannot change directory."
49 cd built || die "Cannot change directory."
53 # For now, rename to epoch-* until we can blend in with a standard approach.
58 newins "${FILESDIR}"/${PN}-1.0_rc1-epoch.conf epoch.conf
62 elog "Make sure to provide /run and /tmp tmpfs mounts using /etc/fstab."
64 elog "An example epoch configuration is provided at /etc/epoch/epoch.conf"
65 elog "which starts a minimal needed to use Gentoo."
67 elog "To use epoch, add this kernel parameter: init=/usr/sbin/epoch-init"
69 elog "Additional information about epoch is available at"
70 elog "${HOMEPAGE} and configuration documentation at"
71 elog "http://universe2.us/epochconfig.html which is useful reading material."
73 elog "Its author Subsentient can be contacted at #epoch on irc.freenode.net."