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

Contents of /sys-fs/btrfs-progs/btrfs-progs-0.18-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Apr 9 03:53:54 2012 UTC (2 years, 5 months ago) by lavajoe
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Remove old

(Portage version: 2.1.10.47/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.18-r1.ebuild,v 1.3 2012/04/09 02:20:07 lavajoe Exp $
4
5 inherit eutils
6
7 DESCRIPTION="Btrfs filesystem utilities"
8 HOMEPAGE="http://btrfs.wiki.kernel.org/"
9 SRC_URI="mirror://gentoo/${P}.tar.bz2"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~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 # Apply hot fixes
28 #epatch "${FILESDIR}/${P}-hotfix.patch"
29
30 # Fix hardcoded "gcc" and "make"
31 sed -i -e 's:gcc $(CFLAGS):$(CC) $(CFLAGS):' Makefile
32 sed -i -e 's:make:$(MAKE):' Makefile
33 }
34
35 src_compile() {
36 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
37 all || die
38 if use acl; then
39 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
40 convert || die
41 fi
42 }
43
44 src_install() {
45 into /
46 dosbin btrfs-show
47 dosbin btrfs-vol
48 dosbin btrfsctl
49 dosbin btrfsck
50 dosbin btrfstune
51 dosbin btrfs-image
52 # fsck will segfault if invoked at boot, so do not make this link
53 #dosym btrfsck /sbin/fsck.btrfs
54 newsbin mkfs.btrfs mkbtrfs
55 dosym mkbtrfs /sbin/mkfs.btrfs
56 if use acl; then
57 dosbin btrfs-convert
58 else
59 ewarn "Note: btrfs-convert not built/installed (requires acl USE flag)"
60 fi
61
62 if use debug-utils; then
63 newsbin debug-tree btrfs-debug-tree
64 else
65 ewarn "Note: btrfs-debug-tree not installed (requires debug-utils USE flag)"
66 fi
67
68 into /usr
69 newbin bcp btrfs-bcp
70
71 if use debug-utils; then
72 newbin show-blocks btrfs-show-blocks
73 else
74 ewarn "Note: btrfs-show-blocks not installed (requires debug-utils USE flag)"
75 fi
76
77 dodoc INSTALL
78 }
79
80 pkg_postinst() {
81 ewarn "WARNING: This version of btrfs-progs corresponds to and should only"
82 ewarn " be used with the version of btrfs included in the"
83 ewarn " Linux kernel (2.6.29-rc2 and above)."
84 ewarn ""
85 ewarn " This version should NOT be used with earlier versions"
86 ewarn " of the standaline btrfs module!"
87 }

  ViewVC Help
Powered by ViewVC 1.1.20