Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 336175 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sys-fs/mdadm/mdadm-3.1.4.ebuild (-5 / +21 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.1.4.ebuild,v 1.8 2010/11/09 19:17:44 armin76 Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.1.4.ebuild,v 1.8 2010/11/09 19:17:44 armin76 Exp $
4
4
5
inherit eutils flag-o-matic
5
inherit eutils flag-o-matic toolchain-funcs
6
6
7
DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
7
DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
8
HOMEPAGE="http://neil.brown.name/blog/mdadm"
8
HOMEPAGE="http://neil.brown.name/blog/mdadm"
Lines 16-39 Link Here
16
DEPEND=""
16
DEPEND=""
17
RDEPEND=">=sys-apps/util-linux-2.16"
17
RDEPEND=">=sys-apps/util-linux-2.16"
18
18
19
# Tests edit values in /proc and run tests on software raid
20
# devices. Thus, they shouldn't be run on systems with active software
21
# RAID devices.
22
RESTRICT="test"
23
19
src_unpack() {
24
src_unpack() {
20
	unpack ${A}
25
	unpack ${A}
21
	cd "${S}"
26
	cd "${S}"
22
	epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
27
	epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
23
	epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
28
	epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
24
	epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
29
	epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
30
	epatch "${FILESDIR}"/${P}-cflags.patch
25
	use static && append-ldflags -static
31
	use static && append-ldflags -static
26
32
27
	sed -i -e 's:-z now::' Makefile || die #331653
33
	sed -i -e 's:-z now::' Makefile || die #331653
28
}
34
}
29
35
30
src_compile() {
36
mdadm_emake() {
31
	emake \
37
	emake \
32
		CROSS_COMPILE=${CHOST}- \
38
		CC="$(tc-getCC)" \
33
		CWFLAGS="-Wall" \
39
		CWFLAGS="-Wall" \
34
		CXFLAGS="${CFLAGS}" \
40
		CXFLAGS="${CFLAGS}" \
35
		all mdassemble \
41
		"$@" \
36
		|| die "emake failed"
42
		|| die "'emake $@' failed"
43
}
44
45
src_compile() {
46
	mdadm_emake all mdassemble
47
}
48
49
src_test() {
50
	mdadm_emake test
51
52
	sh ./test || die
37
}
53
}
38
54
39
src_install() {
55
src_install() {

Return to bug 336175