Lines 1-6
Link Here
|
1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2009 Gentoo Foundation |
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/btrfs-progs/btrfs-progs-0.18-r1.ebuild,v 1.1 2009/06/14 15:46:16 lavajoe Exp $ |
3 |
# $Header:$ |
4 |
|
4 |
|
5 |
inherit eutils |
5 |
inherit eutils |
6 |
|
6 |
|
Lines 26-36
Link Here
|
26 |
|
26 |
|
27 |
# Apply hot fixes |
27 |
# Apply hot fixes |
28 |
#epatch "${FILESDIR}/${P}-hotfix.patch" |
28 |
#epatch "${FILESDIR}/${P}-hotfix.patch" |
|
|
29 |
|
30 |
# Fix hardcoded gcc |
31 |
sed -i -e 's:gcc $(CFLAGS):$(CC) $(CFLAGS):' Makefile |
29 |
} |
32 |
} |
30 |
|
33 |
|
31 |
src_compile() { |
34 |
src_compile() { |
32 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
35 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
33 |
all || die |
36 |
all || die |
|
|
37 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
38 |
btrfstune btrfs-image || die |
34 |
if use acl; then |
39 |
if use acl; then |
35 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
40 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ |
36 |
convert || die |
41 |
convert || die |
Lines 55-62
Link Here
|
55 |
ewarn "Note: btrfs-convert not built/installed (requires acl USE flag)" |
60 |
ewarn "Note: btrfs-convert not built/installed (requires acl USE flag)" |
56 |
fi |
61 |
fi |
57 |
|
62 |
|
|
|
63 |
|
58 |
if use debug-utils; then |
64 |
if use debug-utils; then |
59 |
newsbin debug-tree btrfs-debug-tree |
65 |
newsbin btrfs-debug-tree |
60 |
else |
66 |
else |
61 |
ewarn "Note: btrfs-debug-tree not installed (requires debug-utils USE flag)" |
67 |
ewarn "Note: btrfs-debug-tree not installed (requires debug-utils USE flag)" |
62 |
fi |
68 |
fi |
Lines 71-83
Link Here
|
71 |
fi |
77 |
fi |
72 |
|
78 |
|
73 |
dodoc INSTALL |
79 |
dodoc INSTALL |
|
|
80 |
emake prefix="${D}/usr/share" install-man |
74 |
} |
81 |
} |
75 |
|
82 |
|
76 |
pkg_postinst() { |
83 |
pkg_postinst() { |
77 |
ewarn "WARNING: This version of btrfs-progs corresponds to and should only" |
84 |
ewarn "WARNING: This version of btrfs-progs corresponds to and should only" |
78 |
ewarn " be used with the version of btrfs included in the" |
85 |
ewarn " be used with the version of btrfs included in the" |
79 |
ewarn " Linux kernel (2.6.29-rc2 and above)." |
86 |
ewarn " Linux kernel (2.6.31 and above)." |
80 |
ewarn "" |
87 |
ewarn "" |
81 |
ewarn " This version should NOT be used with earlier versions" |
88 |
ewarn " This version should NOT be used with earlier versions" |
82 |
ewarn " of the standaline btrfs module!" |
89 |
ewarn " of the standalone btrfs module!" |
83 |
} |
90 |
} |