summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Harmon <russ@eatnumber1.com>2010-02-09 03:35:50 -0500
committerRussell Harmon <russ@eatnumber1.com>2010-02-09 04:10:01 -0500
commit735ad753cd12f58d47119154a81b321d2414d46a (patch)
treea0dc2020da375dc0af603c4a94e4732077b8c833 /sys-fs/aufs2-util
parentAdd live freeorion ebuild. (diff)
downloadeatnumber1-735ad753cd12f58d47119154a81b321d2414d46a.tar.gz
eatnumber1-735ad753cd12f58d47119154a81b321d2414d46a.tar.bz2
eatnumber1-735ad753cd12f58d47119154a81b321d2414d46a.zip
Add aufs2-util
Diffstat (limited to 'sys-fs/aufs2-util')
-rw-r--r--sys-fs/aufs2-util/aufs2-util-9999.ebuild33
-rw-r--r--sys-fs/aufs2-util/files/aufs2-util-9999_gentoo.patch30
2 files changed, 63 insertions, 0 deletions
diff --git a/sys-fs/aufs2-util/aufs2-util-9999.ebuild b/sys-fs/aufs2-util/aufs2-util-9999.ebuild
new file mode 100644
index 0000000..1644340
--- /dev/null
+++ b/sys-fs/aufs2-util/aufs2-util-9999.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+inherit eutils git linux-info toolchain-funcs multilib
+
+DESCRIPTION="Userspace utilities for aufs2."
+HOMEPAGE="http://aufs.sourceforge.net/"
+SRC_URI=""
+EGIT_REPO_URI="http://git.c3sl.ufpr.br/pub/scm/aufs/aufs2-util.git"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+ tc-export CC LD AR
+ epatch "${FILESDIR}/${P}_gentoo.patch"
+}
+
+src_compile() {
+ ARCH="$(tc-arch-kernel)" emake KDIR="${KERNEL_DIR}" || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install || die
+ dodoc README || die
+}
diff --git a/sys-fs/aufs2-util/files/aufs2-util-9999_gentoo.patch b/sys-fs/aufs2-util/files/aufs2-util-9999_gentoo.patch
new file mode 100644
index 0000000..3e1ad17
--- /dev/null
+++ b/sys-fs/aufs2-util/files/aufs2-util-9999_gentoo.patch
@@ -0,0 +1,30 @@
+diff --git a/Makefile b/Makefile
+index 1492703..bcc6a67 100644
+--- a/Makefile
++++ b/Makefile
+@@ -72,7 +72,7 @@ aufs.5: aufs.in.5 c2tmac
+
+ .INTERMEDIATE: c2sh c2tmac
+
+-Install = install -o root -g root -p
++Install = install -p
+ install_sbin: File = mount.aufs umount.aufs auplink
+ install_sbin: Tgt = ${DESTDIR}/sbin
+ install_ubin: File = auchk aubrsync #auctl
+diff --git a/libau/Makefile b/libau/Makefile
+index 9588514..9265639 100644
+--- a/libau/Makefile
++++ b/libau/Makefile
+@@ -41,10 +41,10 @@ ${LibSo}.${LibSoMajor}.${LibSoMinor}: ${LibSoObj}
+
+ install_ulib: File = ${LibSo} ${LibSo}.${LibSoMajor} \
+ ${LibSo}.${LibSoMajor}.${LibSoMinor}
+-install_ulib: Tgt = ${DESTDIR}/usr/lib
++install_ulib: Tgt = ${DESTDIR}/usr/${LIBDIR}
+ install_ulib: ${File}
+ install -d ${Tgt}
+- ${Install} -m 644 -s ${File} ${Tgt}
++ cp -d ${File} ${Tgt}
+ # -m 6755
+
+ clean: