123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # Copyright 1999-2012 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- inherit eutils
- DESCRIPTION="a small yet feature-complete init"
- HOMEPAGE="http://www.fefe.de/minit/"
- SRC_URI="http://dl.fefe.de/${P}.tar.bz2"
- LICENSE="GPL-2"
- SLOT="0"
- KEYWORDS="~x86"
- IUSE=""
- DEPEND=">=dev-libs/libowfat-0.28-r1
- dev-libs/dietlibc"
- RDEPEND="${DEPEND}"
- src_unpack() {
- unpack ${A}
- epatch "${FILESDIR}"/minit-0.10-fixes.diff
- }
- src_compile() {
- emake CFLAGS="${CFLAGS} -I/usr/include/libowfat" \
- LDFLAGS="${LDFLAGS}" DIET="diet" CC="$(tc-getCC)" || die
- }
- src_install() {
- emake install-files DESTDIR="${D}" || die
- mv "${D}"/sbin/shutdown "${D}"/sbin/minit-shutdown || die
- mv "${D}"/sbin/killall5 "${D}"/sbin/minit-killall5 || die
- rm "${D}"/sbin/init || die
- dodoc CHANGES README TODO
- }
- pkg_postinst() {
- [ -e /etc/minit/in ] || mkfifo "${ROOT}"/etc/minit/in
- [ -e /etc/minit/out ] || mkfifo "${ROOT}"/etc/minit/out
- }
|