From 735ad753cd12f58d47119154a81b321d2414d46a Mon Sep 17 00:00:00 2001 From: Russell Harmon Date: Tue, 9 Feb 2010 03:35:50 -0500 Subject: Add aufs2-util --- sys-fs/aufs2-util/aufs2-util-9999.ebuild | 33 ++++++++++++++++++++++ .../aufs2-util/files/aufs2-util-9999_gentoo.patch | 30 ++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 sys-fs/aufs2-util/aufs2-util-9999.ebuild create mode 100644 sys-fs/aufs2-util/files/aufs2-util-9999_gentoo.patch 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: -- cgit v1.2.3-65-gdbad