summaryrefslogtreecommitdiff
blob: a02b2c972e2ef53b496eab8a4d0628e8d8a92eac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/jinit/jinit-0.1.12-r1.ebuild,v 1.2 2010/02/22 12:07:45 phajdan.jr Exp $

inherit eutils

DESCRIPTION="An alternative to sysvinit which supports the need(8) concept"
HOMEPAGE="http://john.fremlin.de/programs/linux/jinit/"
SRC_URI="http://john.fremlin.de/programs/linux/jinit/download/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-amd64 ~ppc ~sparc ~x86"
IUSE=""

DEPEND=""
RDEPEND=""

src_unpack() {
	unpack ${A}
	cd "${S}"

	epatch "${FILESDIR}"/${P}-gcc43.patch
}

src_install() {
	emake DESTDIR="${D}" install || die "failed emake install"
	emake prefix="${D}"/usr/share/doc/${PF}/example-setup install-initscripts \
		|| die "failed installing example setup"
	mv "${D}"/usr/sbin "${D}"/ || die
	mv "${D}"/sbin/init "${D}"/sbin/jinit || die
	mv "${D}"/sbin/shutdown "${D}"/sbin/jinit-shutdown || die
	dodoc AUTHORS ChangeLog NEWS README TODO || die
}