summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2014-06-02 09:24:20 +0000
committerJustin Lecher <jlec@gentoo.org>2014-06-02 09:24:20 +0000
commit697e6e85770b77f3aaf4201543c63d22d5b839ad (patch)
tree1fceedb2ca4a3518d42e5eda61190c829066ec6a /sys-fs/aufs3
parentInitial commit. Text tools forever! (diff)
downloadhistorical-697e6e85770b77f3aaf4201543c63d22d5b839ad.tar.gz
historical-697e6e85770b77f3aaf4201543c63d22d5b839ad.tar.bz2
historical-697e6e85770b77f3aaf4201543c63d22d5b839ad.zip
sys-fs/aufs3: Version Bump
Package-Manager: portage-2.2.10/cvs/Linux x86_64 Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'sys-fs/aufs3')
-rw-r--r--sys-fs/aufs3/ChangeLog8
-rw-r--r--sys-fs/aufs3/Manifest28
-rw-r--r--sys-fs/aufs3/aufs3-3_p20140526.ebuild4
-rw-r--r--sys-fs/aufs3/aufs3-3_p20140602.ebuild171
4 files changed, 184 insertions, 27 deletions
diff --git a/sys-fs/aufs3/ChangeLog b/sys-fs/aufs3/ChangeLog
index 6179d67a0f51..c87b27b27721 100644
--- a/sys-fs/aufs3/ChangeLog
+++ b/sys-fs/aufs3/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-fs/aufs3
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.92 2014/05/26 06:29:25 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/ChangeLog,v 1.93 2014/06/02 09:23:19 jlec Exp $
+
+*aufs3-3_p20140602 (02 Jun 2014)
+
+ 02 Jun 2014; Justin Lecher <jlec@gentoo.org> aufs3-3_p20140526.ebuild,
+ +aufs3-3_p20140602.ebuild:
+ Version Bump
*aufs3-3_p20140526 (26 May 2014)
diff --git a/sys-fs/aufs3/Manifest b/sys-fs/aufs3/Manifest
index 14482cfe09d8..6064584a3a2b 100644
--- a/sys-fs/aufs3/Manifest
+++ b/sys-fs/aufs3/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA512
-
AUX README.gentoo 915 SHA256 c4344c4eb6a1a38ddf86bf271c61b7514700cd986be16bfd3555a99fa2bdff88 SHA512 26a1c7389c1a5ccf0bad3fe496461048deea2dc0d627e2ad65c51404b6f3b74439e6a13c6531e501d442c281f5582524229faeaa5df22d43cb4dc7eecdb61399 WHIRLPOOL 58eab5b45c464518794d47f800b8de0ec7975094fd983be6988abe1806b3b19de831ce59dd7da4a2d3323cd93a6705827bc2c66ea852327ea443709987ba9803
AUX pax-3.11.patch 2722 SHA256 133d80384de031c73d989a36b4e88571a5b1084c51366cfec3f5234e7e1ef446 SHA512 dc7e8eba4aa01552ec0d44636db99aa7c3d9af11f1182165ad7da383f9ed4cd92e4b9aef779b3d2bcb62797fd7d673ae35294ee1b9b768320be5bb5a03893de8 WHIRLPOOL e329ea70448d30510b5dc64ba9eca54c969c6781dc75ed326714ad0de90d10f43844e62e840cf1bfaed0ebb166b9f8a3cdef295ff06f5b38b4e5d75857e3fb46
AUX pax-3.patch 2856 SHA256 511ddca31106798b0890fdffeb05b4149b734cd0c73432610d9afc438f397cf3 SHA512 086cfdd649fda53d6c0740ab95e2ba59052f378ef32658b02876c6e4a5fee0cb3ee845afa111e4ac6e1a1b6666d7595169056920170ee0dfb8fdf66f094695ff WHIRLPOOL 47a2ba83166f9cc6044b205069be4cdb945c8dd020fb8496ed68fe1d947f89028ffe32ec185363d96048cbf82fcdaf07eb02f1eae1cd6a2e61d27e89267f5b43
@@ -18,6 +15,7 @@ DIST aufs3-standalone-3_p20140310.tar.xz 1697212 SHA256 708dd73eeb43a364b80557bb
DIST aufs3-standalone-3_p20140420.tar.xz 1706528 SHA256 196340c20b080ab2eb458d55d2c43838761cc849ac4715d0cbcbf91dae07cccc SHA512 db826206d4311ceb65b96351b167801c9e7581d5d16c8c25140eac66ddd70fd82151619bc7269fefc5eb16b53d15343969136acba12eb96d07c1d4773e926a4f WHIRLPOOL 27f3b37d012f9db861cd47b13f5d48650d80cbc318c5d9e52f3253d8a50c2f89403947199fe10d7418979dab2611353b2104cfe081acf9a610b11b7d54be0216
DIST aufs3-standalone-3_p20140511.tar.xz 1734852 SHA256 2c6b91c59b5567e171772c7827fba0ff856b1fc0d6f4154f7ae315b8797a6376 SHA512 169a2f160d64af65bbe098cb3f403f3cdf31a62fd802f7e3efc78ca1088f8dd7d198d7c785a7ee2844658dff66e67ad468f8e79fb8584eedbedb2ad1df1a714c WHIRLPOOL 92d0b042bba53fd4a722d5f1f096f718108b0874f58cbe8be018eb81a428a5965874636b6fef07c763d871333ddc4899a01eecf114812783b8565937fae42776
DIST aufs3-standalone-3_p20140526.tar.xz 1762352 SHA256 b859cc0961b1937d12de3b527562175c598cdffcccde7e85340f726994df1e6a SHA512 b71485782efa08c8c824c2b5571c7836a015b097188acd1b19f5c60f3927d02224b06e59bc7c4db8172658c70ff3b3f0e40560582811c9e58945b48e77bcabc4 WHIRLPOOL 87770aea892e2a3083f890295c1948816cf992a09aad16f0dcff43928edb2688c24091863be4b4b4871bc6923741a5b45d84aab3aabc9cf7aafb9b1d6232a0d2
+DIST aufs3-standalone-3_p20140602.tar.xz 1835304 SHA256 3ff598a2bda18bc66010bf9b39dc35b9a83834d91b20e62448a276ca808dff2e SHA512 b961506a09980703e96a303994fb78718d17f9d59cabe3d17aedb601ad32607669564c4b003eb97a98b97c1d131553f06918f857f9df11811617999da2d88c61 WHIRLPOOL 8462e4b41e4cee2cd510a6cebbf30127ae6a561909233249ffc4b295c6ca84f138988d6d30f966d870957d46e7aaca34709037320755705d61a0b39f6892c91a
EBUILD aufs3-3_p20131007.ebuild 4698 SHA256 9f443498a9de7e6c238aebc2bd9be4353686c11878f1ffe46c53f7c1f082b710 SHA512 0f38101a85be0724f599e357ca1a9721fa127b5523acb0a2a704a665adb7118cc6eb13f55a89f39ab1e30713e85afab0fe5b5f3b5186e80282eab08d74776889 WHIRLPOOL 23c597f3dc1cc736a77792906b64fcaed150b998fa2c7c93ef8190615a9ff7711738ca7b2cdf8e749265ba467dd6af6d9bf6c810ac43123afa770d0e2452bef3
EBUILD aufs3-3_p20131014.ebuild 4698 SHA256 ffcd8421f15e90df7e79f0a799b594b2a6e4d1f843ad4f571091077931972dd0 SHA512 acfb8d87f742da0418b43ffaa79390a1d374b64da3ed31652a67a57cddb94d63df6a144fe13cbdfbb9e4f08f02f1c318f44b07bee3faa936d5699f871b7567fb WHIRLPOOL 3bee56dee7da38fd55af4493a7400e336e0521e9780dd2bf791b22bbeec66870243102e718d7cde4689f25a00ce461c9ed1318a80e810680c9fcd33580805e5d
EBUILD aufs3-3_p20131104-r1.ebuild 4812 SHA256 5264e3ddaed1ed9547215e3e7f6b459c2f261980ae60900ca5d0f57a49e1a5a8 SHA512 0f826d4d200a4cb5074a5274b5d20f5e56edfbb19cefa812cbb68436af25ae2744c559a3adadf06910e6e983ec079b66ed072ad8124b28a958b92d8466ad1619 WHIRLPOOL 8e8d3ab45dc8c0532c140f9becbdd4dcd00d5c8ef0fa07af9c7c5d8f2624cb529ed9b2d39b98791af223dd35e98e22aef83ffbdb90a10b2fdd4c46df6448c3e5
@@ -32,25 +30,7 @@ EBUILD aufs3-3_p20140303.ebuild 5083 SHA256 13ce4d58e04d31ac959057ac5a7950a8b79e
EBUILD aufs3-3_p20140310.ebuild 5083 SHA256 536dc15adca75852f1cc56acd2179a2ca123453955e2e4450cd55a1ebf57d8ab SHA512 538bf0ca02e2ea9927ad5b3c12946543f5fbad2ef6106eff41353c67d296db81b14a8b78fdb5cf1a593864eb06ab01abde06771253b0d60b8ccfb426a639da59 WHIRLPOOL a5daaa3d5621d8adc503354a5d7dfc7acc3f26e7ce224936d10abaee1f1a728159de1c02b5d62dd0d28ea1e9f65b4e36562b81dc35d1ad94f6d0d735988f1f61
EBUILD aufs3-3_p20140420.ebuild 5083 SHA256 e047e2558ff9a2140045e203f6ad2d2571b3b7ad30d17b6786bb252f7d52889d SHA512 805d16ee377b46a5b1b960cc58be164c11810972e2f7ee216c33449815cde9dc85940022dfc34bebe8806fb6f3363f9cee6ced8a45625c78212f747127c5c127 WHIRLPOOL be81c80536b4a3e57386b6cf7fe9ab3c9e0782a19b6004800c8f1ad2de3eb7142e9c6bbffcbb79651093eb13522820bba083d872ac3acb10a06747239966ac42
EBUILD aufs3-3_p20140511.ebuild 5083 SHA256 1e698b9fddf6f0d317c6fbbb09d1c860c6828c0ad611ccf520df466457314fd0 SHA512 647e99d91821e02f93a1cc9d51625ad91295ade80a49977c038b891e27cbafa089ee46281f016dc0a484bf3d25a7fcc60b0ab976a72c3b54b4c511196b407c35 WHIRLPOOL c34d354fcb87cef2c8e76c30c16cdfc58500338ebd7618b8e339d09d5308eb8e0cd7dc5c96614065c56cc09a055857de329f326df7ba9fc04d4c6026e52eaea1
-EBUILD aufs3-3_p20140526.ebuild 5266 SHA256 0ae138efe14848a1fec10dcec9f13ffb1df61a089384f3b698409faa6358c03f SHA512 9021a84bd54bc328cac3405f40f6f04bdffc208185edfaf41695d27206aaef9291f8f3ae182ae15cb5358a56f9c4b538b43938c115393506719873ac14ecc13d WHIRLPOOL 80c51fb945108eda1f9071e37b1cafd14d9e9a1167272d4a042b09ec55ce589cbce282223bcab4c0dbbaa7e2fc6bf08eb485fc03f13d229c22d98245042e5bd3
-MISC ChangeLog 23337 SHA256 178342f2735abd17aaa702390ea57bd6c0a28ab2cd289071fdf0c9b0a9d6d7d0 SHA512 8e2779325b803fc6d6f2035592d410cc67d3fe3fb375301ffc2f04782c1848f872d17137d08f08072bf65bfd581277b42a0925128fac123a623260ff64b977e4 WHIRLPOOL fcb9ebf7a64ab4a2e3a1e42c723b3144032aadc4115bbd42cc989bfb182505d03ff3bc09e1d31bee15f979e4d22432e375466e5383689db717940763c2a76f55
+EBUILD aufs3-3_p20140526.ebuild 5265 SHA256 c2fab1893ed9895cb5d65864575d71ce52e48855e27071b09f0bf5385b32622d SHA512 0f9efc5b751a1a654255e04c4791b6279b896396a93f944865736be0403d0d429ad2f5c7032c185c1f476098e8fc49c9871063edc79dd2e858838e97171cc504 WHIRLPOOL f2afa5f58672ec2e6cd7ec47d740dcc9273fd8c548c1ef437720221ae26640917aa2a3eac63f84399ac9bfd0773a461046b8b8742cef40b2219bc724dc842e03
+EBUILD aufs3-3_p20140602.ebuild 5265 SHA256 527c38f361619ac7491ee43260642cea9cda2f00c6ea0dd0a9f37b398867d86e SHA512 a7f289973bed5f4f2b8e90ca1273834d1b6ee3b071ae81e77fa83a95c3612a6e914d8277354d0bbece3db68b331e16457a7d65cd4018879fc8d40de6c1b65c1e WHIRLPOOL 1b77cea9b408adde6c212eb90708b9980eaa1b461670d8f85d0a02d12615632fefacba839728cbc7cfc50a666af466687569408ab97ed5233b6bb92e50718bf2
+MISC ChangeLog 23489 SHA256 66c9d5c44067cff55727d6a804691d8be8d2bfcc93eeb4745261b5696626878e SHA512 4f3f1bb176d65995ed6b4ed8ee0a3cea910193ce74707fcff790841968ceb4882f7b659e3216bb1b9e2046bc86bb6270a065d0c11ba27c8e78df09dad5e89354 WHIRLPOOL ff26cf3580f3e493597640d49d3a740c0b3212fa685588dfdc56b9198f68eb51da89ce0459aa4bda5c36e265f0034c64a48325463b480c1c43e2c6ea621b36e9
MISC metadata.xml 717 SHA256 3c55d0a76fa9856c7079674c14f0bfa18c454848aa652f26669b207905ee09aa SHA512 28a8b5b0e55ea607135f34da28025698b578bd6db14f48865ed4996745fccda6a05b0882a5fd13185005517b577231f6c1e01b192add81fddfd0e66b86fc8d4c WHIRLPOOL cd4f9b75f8b5aa5dad559af879445a86740c7cdfab6bd7d97d3ddba5596c139ed2c52b5447b66698078f476a65c3b4355d9f6377e70a54d9cd063e060a0ce2ce
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.22 (GNU/Linux)
-
-iQJ8BAEBCgBmBQJTgt9CXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
-ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQyQ0JDQjFGMzBDQ0UxMjFGNENDNDgxMDdC
-OUQ0RjIzMUJEMTU1OEFCAAoJELnU8jG9FVirL4kQAIrVQRPO2udye4KDEu8STkNo
-8IB42Rt9u5aHUImnEACWlKwmVqF32tbymzV2QxAqDe1jcs1Nyulnqz4AZr9WJw9x
-bJ2WcM32hLhNdn95s6+KmGjHiGkhRpPRHpevKkO0WEXjUDkzRhSZNDgca7DxDNpe
-ByHZ7ypOhbl9EHdNs8CqmHy1G8jOpeHV463+w2xgeN6auQS6tuLcusFpFhIVyouA
-mROUOD/mV4/z73g2d4PBtMK+26bolDR8kN6dBVbBEoeyX8Y1X+diRhdcfZHW5f5E
-qjjWxnaBmv+oZsdApNgkXTuiK2OAElAKck/XI0vCPhlgTvSoxo+fc16SNsNUpbkG
-KFNzqeYR5JEI3CAy/UTTlJjmaM5doCpgz0L5fFsY3VGIOcwtZc0bgCkogQh1qY0v
-XgAS6/2imDYH5RnqnFTHCygy1T3dlNM1bnQ+f9AyOxCiJn47I3LRnBp2vQBWRo5r
-+HObdnNN8H1pFW6lE1WrAxIfZfyTaluYgvkgyKSmY6kSCMtEKRj7mwAMDrhl/c2D
-FMomBhQ6KwqVsbMpL8V+7dFHNjgwvXm/8RNAtskDh7h4zMYoFQVkJzgAZg5HTzZe
-zvPv7op7xggfPw1TrEMUpD7p79FpJJWDauEURHahFeJZ9HIIWFm8ARHgayUSXdv/
-sAmyEjpM9z2E8R3PsUEV
-=DSXB
------END PGP SIGNATURE-----
diff --git a/sys-fs/aufs3/aufs3-3_p20140526.ebuild b/sys-fs/aufs3/aufs3-3_p20140526.ebuild
index cf049c607490..95cccd7d1724 100644
--- a/sys-fs/aufs3/aufs3-3_p20140526.ebuild
+++ b/sys-fs/aufs3/aufs3-3_p20140526.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140526.ebuild,v 1.1 2014/05/26 06:29:25 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140526.ebuild,v 1.2 2014/06/02 09:23:19 jlec Exp $
EAPI=5
@@ -36,7 +36,7 @@ S="${WORKDIR}"/${PN}-standalone
MODULE_NAMES="aufs(misc:${S})"
pkg_setup() {
-# CONFIG_CHECK+=" !AUFS_FS"
+ CONFIG_CHECK+=" !AUFS_FS"
use inotify && CONFIG_CHECK+=" ~FSNOTIFY"
use nfs && CONFIG_CHECK+=" EXPORTFS"
use fuse && CONFIG_CHECK+=" ~FUSE_FS"
diff --git a/sys-fs/aufs3/aufs3-3_p20140602.ebuild b/sys-fs/aufs3/aufs3-3_p20140602.ebuild
new file mode 100644
index 000000000000..d35b54e19075
--- /dev/null
+++ b/sys-fs/aufs3/aufs3-3_p20140602.ebuild
@@ -0,0 +1,171 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/aufs3/aufs3-3_p20140602.ebuild,v 1.1 2014/06/02 09:23:19 jlec Exp $
+
+EAPI=5
+
+inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs
+
+AUFS_VERSION="${PV%%_p*}"
+# highest branch version
+PATCH_MAX_VER=14
+# highest supported version
+KERN_MAX_VER=15
+# lowest supported version
+KERN_MIN_VER=10
+
+DESCRIPTION="An entirely re-designed and re-implemented Unionfs"
+HOMEPAGE="http://aufs.sourceforge.net/"
+SRC_URI="http://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs"
+
+DEPEND="
+ dev-util/patchutils
+ dev-vcs/git"
+RDEPEND="
+ sys-fs/aufs-util
+ !sys-fs/aufs
+ !sys-fs/aufs2"
+
+S="${WORKDIR}"/${PN}-standalone
+
+MODULE_NAMES="aufs(misc:${S})"
+
+pkg_setup() {
+ CONFIG_CHECK+=" !AUFS_FS"
+ use inotify && CONFIG_CHECK+=" ~FSNOTIFY"
+ use nfs && CONFIG_CHECK+=" EXPORTFS"
+ use fuse && CONFIG_CHECK+=" ~FUSE_FS"
+ use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS"
+ use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources"
+
+ # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system
+ [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return
+
+ get_version
+ kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade."
+ kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new"
+
+ linux-mod_pkg_setup
+
+ if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then
+ PATCH_BRANCH="x-rcN"
+ elif [[ "${KV_MINOR}" == "10" ]] && [[ "${KV_PATCH}" -ge "28" ]]; then
+ PATCH_BRANCH="${KV_MINOR}".x
+ elif [[ "${KV_MINOR}" == "12" ]]; then
+ PATCH_BRANCH="${KV_MINOR}".x
+ else
+ PATCH_BRANCH="${KV_MINOR}"
+ fi
+
+ case ${KV_EXTRA} in
+ "")
+ elog "It seems you are using vanilla-sources with aufs3"
+ elog "Please use sys-kernel/aufs-sources with USE=vanilla"
+ elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade"
+ ;;
+ "-gentoo")
+ elog "It seems you are using gentoo-sources with aufs3"
+ elog "Please use sys-kernel/aufs-sources"
+ elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade"
+ ;;
+ esac
+
+ pushd "${T}" &> /dev/null
+ unpack ${A}
+ cd ${PN}-standalone || die
+ local module_branch=origin/${PN}.${PATCH_BRANCH}
+ einfo "Using ${module_branch} as patch source"
+ git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die
+ combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch
+ combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch
+ if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then
+ if use kernel-patch; then
+ cd ${KV_DIR}
+ ewarn "Patching your kernel..."
+ patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null
+ epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch
+ ewarn "You need to compile your kernel with the applied patch"
+ ewarn "to be able to load and use the aufs kernel module"
+ else
+ eerror "You need to apply a patch to your kernel to compile and run the ${PN} module"
+ eerror "Either enable the kernel-patch useflag to do it with this ebuild"
+ eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand"
+ die "missing kernel patch, please apply it first"
+ fi
+ fi
+ popd &> /dev/null
+ export PKG_SETUP_HAS_BEEN_RAN=1
+}
+
+set_config() {
+ for option in $*; do
+ grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option"
+ sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die
+ done
+}
+
+src_prepare() {
+ local module_branch=origin/${PN}.${PATCH_BRANCH}
+
+ einfo "Using for module creation branch ${module_branch}"
+ git checkout -q -b local-gentoo ${module_branch} || die
+
+ # All config options to off
+ sed "s:= y:=:g" -i config.mk || die
+
+ set_config RDU BRANCH_MAX_127 SBILIST
+
+ use debug && set_config DEBUG
+ use fuse && set_config BR_FUSE POLL
+ use hfs && set_config BR_HFSPLUS
+ use inotify && set_config HNOTIFY HFSNOTIFY
+ use nfs && set_config EXPORT
+ use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64
+ use ramfs && set_config BR_RAMFS
+
+ if use pax_kernel; then
+ if kernel_is ge 3 11; then
+ epatch "${FILESDIR}"/pax-3.11.patch
+ else
+ epatch "${FILESDIR}"/pax-3.patch
+ fi
+ fi
+
+ sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die
+}
+
+src_compile() {
+ local ARCH=x86
+
+ emake \
+ CC=$(tc-getCC) \
+ LD=$(tc-getLD) \
+ LDFLAGS="$(raw-ldflags)" \
+ ARCH=$(tc-arch-kernel) \
+ CONFIG_AUFS_FS=m \
+ KDIR="${KV_OUT_DIR}"
+}
+
+src_install() {
+ linux-mod_src_install
+
+ insinto /usr/share/doc/${PF}
+
+ use doc && doins -r Documentation
+
+ use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch
+
+ dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-ibitmap}.patch
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_pkg_postinst
+ linux-mod_pkg_postinst
+}