/[gentoo-x86]/sys-fs/btrfs-progs/btrfs-progs-0.19.ebuild
Gentoo

Contents of /sys-fs/btrfs-progs/btrfs-progs-0.19.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Apr 9 02:20:07 2012 UTC (2 years, 4 months ago) by lavajoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Rewrite live ebuild to take advantage of improved upstream Makefiles (bug #411209) and fix bug #410765 - thanks go to floppym@gentoo.org for new ebuild

(Portage version: 2.1.10.47/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
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.19.ebuild,v 1.5 2010/08/11 14:04:23 ssuominen Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Btrfs filesystem utilities"
8 HOMEPAGE="http://btrfs.wiki.kernel.org/"
9 SRC_URI="http://www.kernel.org/pub/linux/kernel/people/mason/btrfs/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="amd64 ~arm x86"
14 IUSE="acl debug-utils"
15
16 DEPEND="debug-utils? ( dev-python/matplotlib )
17 acl? (
18 sys-apps/acl
19 sys-fs/e2fsprogs
20 )"
21 RDEPEND="${DEPEND}"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26
27 # Remove code that updates the total used space, since
28 # btrfs_update_block_group does that work now.
29 # (patch that did not make 0.19 release)
30 epatch "${FILESDIR}"/${P}-convert-remove-used-space-update.patch
31
32 epatch "${FILESDIR}"/${P}-glibc212.patch
33
34 # Fix hardcoded "gcc" and "make"
35 sed -i -e 's:gcc $(CFLAGS):$(CC) $(CFLAGS):' Makefile
36 sed -i -e 's:make:$(MAKE):' Makefile
37 }
38
39 src_compile() {
40 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
41 all || die
42 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
43 btrfstune btrfs-image || die
44 if use acl; then
45 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
46 convert || die
47 fi
48 }
49
50 src_install() {
51 into /
52 dosbin btrfs-show
53 dosbin btrfs-vol
54 dosbin btrfsctl
55 dosbin btrfsck
56 dosbin btrfstune
57 dosbin btrfs-image
58 # fsck will segfault if invoked at boot, so do not make this link
59 #dosym btrfsck /sbin/fsck.btrfs
60 newsbin mkfs.btrfs mkbtrfs
61 dosym mkbtrfs /sbin/mkfs.btrfs
62 if use acl; then
63 dosbin btrfs-convert
64 else
65 ewarn "Note: btrfs-convert not built/installed (requires acl USE flag)"
66 fi
67
68 if use debug-utils; then
69 dobin btrfs-debug-tree
70 else
71 ewarn "Note: btrfs-debug-tree not installed (requires debug-utils USE flag)"
72 fi
73
74 into /usr
75 newbin bcp btrfs-bcp
76
77 if use debug-utils; then
78 newbin show-blocks btrfs-show-blocks
79 else
80 ewarn "Note: btrfs-show-blocks not installed (requires debug-utils USE flag)"
81 fi
82
83 dodoc INSTALL
84 emake prefix="${D}/usr/share" install-man
85 }
86
87 pkg_postinst() {
88 ewarn "WARNING: This version of btrfs-progs corresponds to and should only"
89 ewarn " be used with the version of btrfs included in the"
90 ewarn " Linux kernel (2.6.31 and above)."
91 ewarn ""
92 ewarn " This version should NOT be used with earlier versions"
93 ewarn " of the standalone btrfs module!"
94 }

  ViewVC Help
Powered by ViewVC 1.1.20