2012-10-16 09:23:29 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2015-08-11 00:17:55 +03:00
|
|
|
# $Id$
|
2012-10-16 09:23:29 +04:00
|
|
|
|
|
|
|
EAPI=4
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
inherit toolchain-funcs
|
|
|
|
|
|
|
|
DESCRIPTION="a fast, small and simple init with support for profiles"
|
|
|
|
HOMEPAGE="http://linux.schottelius.org/cinit/"
|
|
|
|
SRC_URI="http://linux.schottelius.org/${PN}/archives/${P}.tar.bz2"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
|
|
|
IUSE="doc"
|
|
|
|
|
2012-10-16 09:23:29 +04:00
|
|
|
src_prepare() {
|
|
|
|
sed -i "/contrib+tools/d" Makefile || die
|
|
|
|
sed -i "/^STRIP/s/strip.*/true/" Makefile.include || die
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake \
|
|
|
|
CC="$(tc-getCC)" \
|
|
|
|
LD="$(tc-getCC)" \
|
2012-10-16 09:23:29 +04:00
|
|
|
CFLAGS="${CFLAGS} -I." \
|
2012-02-06 16:39:49 +04:00
|
|
|
LDFLAGS="${LDFLAGS}" \
|
|
|
|
STRIP=/bin/true \
|
2012-10-16 09:23:29 +04:00
|
|
|
all
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2012-10-16 09:23:29 +04:00
|
|
|
emake LD=$(tc-getCC) DESTDIR="${D}" install
|
2012-02-06 16:39:49 +04:00
|
|
|
rm -f "${D}"/sbin/{init,shutdown,reboot}
|
|
|
|
dodoc Changelog CHANGES CREDITS README TODO
|
2012-10-16 09:23:29 +04:00
|
|
|
use doc && dodoc -r doc
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|