/[gentoo-x86]/sys-process/minit/minit-0.10.ebuild
Gentoo

Contents of /sys-process/minit/minit-0.10.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Aug 4 16:55:19 2012 UTC (2 years, 9 months ago) by vostorga
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
Allowing minit to cross-compile, bug 375653. Patch thanks to Bertrand Jacquin <beber@meleeweb.net>

(Portage version: 2.1.10.65/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-process/minit/minit-0.10.ebuild,v 1.5 2009/12/09 14:00:34 vostorga Exp $
4
5 inherit eutils
6
7 DESCRIPTION="a small yet feature-complete init"
8 HOMEPAGE="http://www.fefe.de/minit/"
9 SRC_URI="http://dl.fefe.de/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~x86"
14 IUSE=""
15
16 DEPEND=">=dev-libs/libowfat-0.28-r1
17 dev-libs/dietlibc"
18 RDEPEND="${DEPEND}"
19
20 src_unpack() {
21 unpack ${A}
22
23 epatch "${FILESDIR}"/minit-0.10-fixes.diff
24 }
25
26 src_compile() {
27 emake CFLAGS="${CFLAGS} -I/usr/include/libowfat" \
28 LDFLAGS="${LDFLAGS}" DIET="diet" CC="$(tc-getCC)" || die
29 }
30
31 src_install() {
32 emake install-files DESTDIR="${D}" || die
33 mv "${D}"/sbin/shutdown "${D}"/sbin/minit-shutdown || die
34 mv "${D}"/sbin/killall5 "${D}"/sbin/minit-killall5 || die
35 rm "${D}"/sbin/init || die
36 dodoc CHANGES README TODO
37 }
38
39 pkg_postinst() {
40 [ -e /etc/minit/in ] || mkfifo "${ROOT}"/etc/minit/in
41 [ -e /etc/minit/out ] || mkfifo "${ROOT}"/etc/minit/out
42 }

  ViewVC Help
Powered by ViewVC 1.1.20