| 1 |
# Copyright 1999-2012 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.11.ebuild,v 1.5 2012/09/29 13:02:48 blueness Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
# Note: leaving commented-out references to using git downloading, since
|
| 8 |
# upstream does not produce tarballs for the versions we need.
|
| 9 |
# We, for now, are using the git hash and subversion used by Fedora.
|
| 10 |
|
| 11 |
#inherit git-2 toolchain-funcs
|
| 12 |
inherit toolchain-funcs
|
| 13 |
|
| 14 |
DESCRIPTION="Btrfs filesystem utilities"
|
| 15 |
HOMEPAGE="https://btrfs.wiki.kernel.org"
|
| 16 |
SRC_URI="mirror://gentoo/${P}.tar.bz2"
|
| 17 |
|
| 18 |
LICENSE="GPL-2"
|
| 19 |
SLOT="0"
|
| 20 |
KEYWORDS="amd64 arm ~mips ppc ppc64 x86"
|
| 21 |
IUSE=""
|
| 22 |
|
| 23 |
DEPEND="sys-libs/zlib
|
| 24 |
sys-apps/acl
|
| 25 |
sys-fs/e2fsprogs"
|
| 26 |
RDEPEND="${DEPEND}"
|
| 27 |
|
| 28 |
#EGIT_REPO_URI="git://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git
|
| 29 |
# https://git.kernel.org/pub/scm/linux/kernel/git/mason/btrfs-progs.git"
|
| 30 |
#EGIT_COMMIT="1957076ab4fefa47b6efed3da541bc974c83eed7"
|
| 31 |
|
| 32 |
src_prepare() {
|
| 33 |
# Fix hardcoded "gcc" and "make"
|
| 34 |
sed -i -e 's:gcc $(CFLAGS):$(CC) $(CFLAGS):' Makefile || die
|
| 35 |
sed -i -e 's:make:$(MAKE):' Makefile || die
|
| 36 |
}
|
| 37 |
|
| 38 |
src_compile() {
|
| 39 |
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
|
| 40 |
}
|
| 41 |
|
| 42 |
src_install() {
|
| 43 |
emake DESTDIR="${D}" prefix=/usr bindir=/sbin mandir=/usr/share/man install
|
| 44 |
}
|
| 45 |
|
| 46 |
pkg_postinst() {
|
| 47 |
ewarn "WARNING: This version of btrfs-progs corresponds to and should only"
|
| 48 |
ewarn " be used with the version of btrfs included in the"
|
| 49 |
ewarn " Linux kernel (2.6.31 and above)."
|
| 50 |
ewarn ""
|
| 51 |
ewarn " This version should NOT be used with earlier versions"
|
| 52 |
ewarn " of the standalone btrfs module!"
|
| 53 |
}
|