summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-kernel/aufs-sources/Manifest9
-rw-r--r--sys-kernel/aufs-sources/aufs-sources-4.10.13.ebuild84
-rw-r--r--sys-kernel/aufs-sources/aufs-sources-4.4.64.ebuild84
-rw-r--r--sys-kernel/aufs-sources/aufs-sources-4.9.25.ebuild84
4 files changed, 261 insertions, 0 deletions
diff --git a/sys-kernel/aufs-sources/Manifest b/sys-kernel/aufs-sources/Manifest
index 5ac03f534da7..0058b4039bf0 100644
--- a/sys-kernel/aufs-sources/Manifest
+++ b/sys-kernel/aufs-sources/Manifest
@@ -10,6 +10,9 @@ DIST genpatches-4.10-11.extras.tar.xz 17344 SHA256 0d604227fd07cb97afe7ace9623d1
DIST genpatches-4.10-13.base.tar.xz 273848 SHA256 65d39739b2ad77131fb187c1130df97432a17c6ccc63218d78a0cd6d39825308 SHA512 37a5db0a656f96d17f8629c12eedea879da21a46aeace5a28f43cffb05dcf906840509697b3aed9c3590dc1600be086a3090cef3e246642837f264c14dde75e2 WHIRLPOOL e133f925d17417129851c6f0812aa6bd73d3ddbf936f87a94674b0696dc7dea13669f24ac89dff22fdd02ca3b0e5cf6ab9860c5eb7bc1e9c79abe10e68bd5f87
DIST genpatches-4.10-13.experimental.tar.xz 105404 SHA256 807ef08cc371cdefb048102e31d0e22bd3826835fe737ac5f04e9a20cbaf00c0 SHA512 91cf40bf8d70c1b4008f829a1459af180ca0531c7bb2950e3da6cfe5e9a0ff61bd7401ab2dae57b952bb18b6319447a0ee34f91bb7de7b0f23fbde9db36dcd91 WHIRLPOOL a3e5020c48a3c32eaa38b57bf38473df337066ef105ae3b87ab9f180339acfa56c85f74a063ec1fc7a80d93ae7c85fd1e5f23aa981b49abe373353960e080f48
DIST genpatches-4.10-13.extras.tar.xz 17340 SHA256 89ecdd76d177c1d667b803d33f502ae7c211d45f8e7a3e1e444c21c117786902 SHA512 0b48c694fc296d8dd5bd0b7ff59ab5db0c5ff7639f3bb3ac9c06fa6c5fc162af690715696846ac459b91192191034f00220f06563880715b2aa6c02fd454bb10 WHIRLPOOL aa27674ee9989412fe608261a9bcea80745746afd9e5617bbba6bc5aa512cb9b8995b0e781a42a4951c45ad32a51f320396f66edd5d79dff295185de2d46cc1c
+DIST genpatches-4.10-14.base.tar.xz 280688 SHA256 47a11244c2aa812a2b9d05b5069905e953a061c736ccd8460aa24ea8fef69d5f SHA512 7cf7069c7df3cad7aebdac22cb00d2d566d1eb0c503e2fe39b7ed972abf6a2083bdd18442f0d4c99f28b2cdaf48c58b0f71751533629338d7128f31dd5663b74 WHIRLPOOL 229569dcb0532c51207cfd2e86f2ff66539ddf7ae89f0eb933f53fdaa33ebdb68da8b04a28fe95743e6f6aaf4244c51034ae162d2ad53293f6b4f4493b981f06
+DIST genpatches-4.10-14.experimental.tar.xz 105388 SHA256 20512ae33f788ade4b2ccf2fe55e90c57ea070036259274a84e60bfe5cbae9cd SHA512 1a5d1de8ee74a68dd8a20fe640b6342154d8b2e4354d25648a16fd4dc35de648958891fc2ca959bf3045f6eaf1197b4d0b7c7e45561881d312d018cb171bda60 WHIRLPOOL ddc8c8839705463fa826cc1bb82a378940351275d4f7eabedb2a81793564a4ce8aa8379bff9c1459e91fde23f9ef4a4c58ae795cd245bb1994e0558155d711cb
+DIST genpatches-4.10-14.extras.tar.xz 17348 SHA256 a5a81409396a9e811bcc1e6056eea181207e37adfb8cd1aaa85499810f3c1db1 SHA512 890eed4fd6bdf822320b92219c03712903269c5f454e341b2cfc048482c0856ef1aee832f3ba369bd99c91bf7050ebea37a51b75b867644a7e3b9c1dc3530f66 WHIRLPOOL 38e8783dc65c77ece12d9ea3e18f3902c198ab587c3c949a9f36488267c7f1bda779d8794ba7238104253040d9654f828ad451eccffed9f5fb15642ea0dbd90a
DIST genpatches-4.10-8.base.tar.xz 177928 SHA256 d2a1baa7500946ad36849709bcc0430836fc9c050e0b85b094eb3de4f6a4a5e8 SHA512 38a0323484c88d1767962bb4327253e7aa47724f6f57e7fa94d559025c57bcceafaec4c5f6d13b1c2dc7e9cd80a917b8017d6cf1aac88c1212caf9cbd13cd7cd WHIRLPOOL c7503ceb8f870cf4fe2bf88f2ceb8b72b206c15d6e3d6fb8efe8198f8e8818eaf07a24e80969477f64b5ab9103f23bda1e152a3085f401305fe5f54520335356
DIST genpatches-4.10-8.experimental.tar.xz 105420 SHA256 1018517fff821f903912e118a5490c9513da476892aa72dca01f650a8920e951 SHA512 1f498c23affa95d2ba77588d178c09c2181c24e35ebd57ccd18ae48db9155c56b19ab48c39dba7dc98530881a29b64233015cf4c290f2c23432611bee58d64d6 WHIRLPOOL ac48d4c8a18222e968e2e553569733a462f847331ad99cdffcd2d9e919a415dd0140adaa80ba98d75123bd3df2e6439466628973a650e7b82fba406664a8babb
DIST genpatches-4.10-8.extras.tar.xz 17348 SHA256 3444b846c3232541152db3bb2d9ff5aa66c7c7249d346fd990ed304489e19d02 SHA512 a655184d0dfc4327a18b8e170bfad077818b7064d4c3b682c478835f297fac1d1f3cc3c611111f51275a9a5edabdfe7837954e7ab112b0480c60b1936a37b35e WHIRLPOOL 360df1ae85469913c9236147e2f5e4d38f1e109a35d4961a2cab271ef79049101680058c5a99430829de7e895ef5ca89e81a59dbf83deccb5d49daca4d1d5159
@@ -34,6 +37,9 @@ DIST genpatches-4.4-65.extras.tar.xz 16472 SHA256 2969fa6da17617b3730dbec250959b
DIST genpatches-4.4-66.base.tar.xz 1149196 SHA256 db6a7cd45c16da060ce18d0c61d8d096a9b4c7ae79236eeecc8f698d52dcbce8 SHA512 2c545218bcde5714bcc1a12a8ad9cc6dd4c7e7415b271ae380f9721c490e3429743d90c858cc0188169ad5659df672c74fb8e5777e0b378e961fe024dbcb93b3 WHIRLPOOL 2f6e00715e39943064301fa29d3647694e27942cb63984da41ba75a6920f70810cab658e999ef9858ae17e267db2178f8f95fa3c6468304ea1e98ecf721e237e
DIST genpatches-4.4-66.experimental.tar.xz 87776 SHA256 8d737388ed6a605447db7b625d0d2caf0a67faf697170d1743c7bf6e17839c48 SHA512 5a3c64fe0ac8a3511611f53670ee15edcde1bd845e8eed3ef7350350cfcd1369417926215e44f7760793db3244ade5a73a2a4f6e762b22e6756f9e52cb27f636 WHIRLPOOL f56445a2cc28325b7a85bc61358f34e3f21b50178f1dd6e7dbdde708770200984186b3d46001baaaa8f6d1b6f37fd54da2da38444eb2096d4765a80ea52d94c2
DIST genpatches-4.4-66.extras.tar.xz 16468 SHA256 53dc88a27d6b03dcaa09f97f7efd950e87a9c5ea0e448b75adb7e51878b01b62 SHA512 5a374b8e616e8cb1a35f218873d7cac9cc9f681b577db57dd8bfec284788ce18675aa60427922cbeebe1780b16f9ade3e87cd9335c23259c9ac881940b9ef6e2 WHIRLPOOL cf3bd1d49e5f9aac25eb2c5157b5c266c4ae34361b7993cadb58db780b5c42c4f22a748d500826bf732e7aaa1d2d8d1561538a4d72d88ca6c5cb19b993c43973
+DIST genpatches-4.4-67.base.tar.xz 1156096 SHA256 8015e2f67b44b7dc8a8d02d803d0d39cd8f40804d8628c979c55f7c787fbdba7 SHA512 2103deaaf4281e0e642f7156c782eab85d40a67e19b4fb4135139dd534ecd4e0bfbc2fb98f42bb4ee332e4b212907a09b52348f7631dfb7d031c0c4ac3d616a1 WHIRLPOOL 5234909f85551c1ee16505b4d62e8d8f79ea8154b549c610b92a8ee8b3aea0ba8f8704b35c81f0e87ac12f4ea7cb1ed4c5704df0d9b71c4182e099e90265b350
+DIST genpatches-4.4-67.experimental.tar.xz 87784 SHA256 0844db5beb4b0b1facd2fa359ff2f21a01d3132e30b73818890742578a4d45bf SHA512 9789545f87a93e1370f4d62ee3d4b5e6d3ef10a4e6ad13c86735c417f5e42d285bce0fcf1e59dda7ccb0b806ebac0673c8fbd9bfcde7eed4f6fd46110dbc4eef WHIRLPOOL 22d45c5d1d5b6533013532311f7545007805359083ee12feae4e5a067196d494e1711ea6141169cbee17189aa7accec172afebe15ba12a16d4a0d2ca49d01547
+DIST genpatches-4.4-67.extras.tar.xz 16456 SHA256 998c53f7ec91d5f03358b2b251bf2de44f1fc3fce0a4d0059a150166acc45982 SHA512 bf47389b04718ac41ae1a2f7729356a0380df8c83a845004be4ee2c7a8065e845acea3ce16ba16f25eb5512142853d66271f18b4c11012fb06895f827a39d102 WHIRLPOOL f339f79e76e66c5d333439be29520bec9cb8c3094aa21f0914de99b599e6259dd54dab9919dd4e3344316a01e497a2e0c554bba241867dbe6000fbeafde70877
DIST genpatches-4.9-18.base.tar.xz 385508 SHA256 d29fc16842e846c2c6487e9c1543e6fe43429d34882ac9c6ca070c1fe3564605 SHA512 c1d08b3d66df74efe610cbf586921f7caa57bb8337848380fdc8e2034883180a60a26dab9ded50974fb468d35dc923912ead08cb0f751a515cef85efb31955d9 WHIRLPOOL e1ef981b945718eab2e96470f96a033cc2b1ede6c706d6cd3e32f4f1c4e066766135141d55a5ccee06d9fb84bc66df389cdb2d095ad569bd565afc600b3b4095
DIST genpatches-4.9-18.experimental.tar.xz 105616 SHA256 209be56c1efb0ba3fbee17f2437bd00b36caecc6c44db2b4e1a0e46ae17640b0 SHA512 37d6983f46ed4031f11f91ffcdacb510b40cab682d71ac471ab3c2ae78598ee9826068afb8b1388d96133635ba2680cc106624e0d79c341d2610b4f74330b773 WHIRLPOOL 5af9422c0526c5e23977f2d25ea683ed1ecf6f9e14a6daf52490bd808e9790cf6f6d9ef96353bda3474197eb954159575a4f0e6a768a86777d9b8a61828d0a0e
DIST genpatches-4.9-18.extras.tar.xz 17348 SHA256 64167f17f122f969476bf68a3e0493a77d7ae9e78087c2748cdfdc6e6186af2a SHA512 dcbdea379a0e28e9b8ed08b32ee71a36ce9ccc817e5b79f38759031e3324441f3e91e6b7e2802d1a694574bb4ce9e8f441d88ccbbd9280b3a4456eadab7d5fec WHIRLPOOL 1d3ba61d03d17a707a65423e85f7f3a235a9d39fb26e4602b5cf663e097dc9e8618380d7a54db60705e6b38e9c0674330df57a6e243c7215411275a489ab8b42
@@ -52,6 +58,9 @@ DIST genpatches-4.9-24.extras.tar.xz 17360 SHA256 7427dd7e31491ffaa51be08bb5517c
DIST genpatches-4.9-25.base.tar.xz 556996 SHA256 4a238c650ade8b832110f046da192a5800010de1df671d2b6d55c1a465eb6329 SHA512 9c04a29cfb293fb34c9f1c9b2d727c62664603af9514cb0e91ca0589a0c7699046f7eebb6ddb58c3e3777f92422ae9bdf4f20386a26139f320faab4dcaa99a82 WHIRLPOOL 2aadfd3a792f82dbd0679ffe8a617a961476a7d275259d30bd2ad2ff99ff629a0ae2539d184718ce0808b603a014394a1ccb7f9ea9be2a9d1f0a36b9fce6566c
DIST genpatches-4.9-25.experimental.tar.xz 106408 SHA256 f2c2b9077c6ebcf8eef14bf7eea7a8d692709a001c62cc26916849b2304b81bd SHA512 b2be508731e892b831bd72a1a727474d73a74898e9a1acdc316c940fef823ccdba1bbe2c894d826162c47b15bc05756e8b867716014d2b8fbde39a560133aef9 WHIRLPOOL e53db28c191e9419fd80c2b43dc63ee0878f7e5fbeca3ee73ce3eaaffc609d2da2fce2e646a7a3148d996c121336c75874e5e31f95d7224ccb324e2a195afb3b
DIST genpatches-4.9-25.extras.tar.xz 17340 SHA256 89ecdd76d177c1d667b803d33f502ae7c211d45f8e7a3e1e444c21c117786902 SHA512 0b48c694fc296d8dd5bd0b7ff59ab5db0c5ff7639f3bb3ac9c06fa6c5fc162af690715696846ac459b91192191034f00220f06563880715b2aa6c02fd454bb10 WHIRLPOOL aa27674ee9989412fe608261a9bcea80745746afd9e5617bbba6bc5aa512cb9b8995b0e781a42a4951c45ad32a51f320396f66edd5d79dff295185de2d46cc1c
+DIST genpatches-4.9-26.base.tar.xz 563020 SHA256 2fdd667a8924f924d8b341963ee737564de7f075334344a3f3e113cf9b7974b6 SHA512 9f43a3ad5f6776f0f8c28d1a6048a06969b760a3e8265b4cc3d6abcb908a800843264888c533a1a6350a4d6eb49da04b66f6a1b03014742583e9f1cdff341688 WHIRLPOOL e8a07308570fe525447f87177b4e72a4c2cc1f9724a418647e2e316b96624196033f226ecba8affad1707382d155efce05af723a1033d461681a39b63d6623f8
+DIST genpatches-4.9-26.experimental.tar.xz 106380 SHA256 d916ff32e3062cce15b0d791f37ae0879f705aae0332d925c9dc3b11a4056e2b SHA512 713190bced05a544df5527940844f456ea32318fb4f6409d4a022d39331a9a100d38a342ec1978285689d64dea47ae4f3c3a7ec725ad45cfb9731b11f99e597a WHIRLPOOL e0eadfb3fc68fb32642597fc22557db6a0042ca1e83408cd237d087ec1823453f47467f0778f87749b1a4ea2ced356bf91b881bd06514e7df09f150596d9402b
+DIST genpatches-4.9-26.extras.tar.xz 17348 SHA256 a5a81409396a9e811bcc1e6056eea181207e37adfb8cd1aaa85499810f3c1db1 SHA512 890eed4fd6bdf822320b92219c03712903269c5f454e341b2cfc048482c0856ef1aee832f3ba369bd99c91bf7050ebea37a51b75b867644a7e3b9c1dc3530f66 WHIRLPOOL 38e8783dc65c77ece12d9ea3e18f3902c198ab587c3c949a9f36488267c7f1bda779d8794ba7238104253040d9654f828ad451eccffed9f5fb15642ea0dbd90a
DIST linux-4.10.tar.xz 94231404 SHA256 3c95d9f049bd085e5c346d2c77f063b8425f191460fcd3ae9fe7e94e0477dc4b SHA512 c3690125a8402df638095bd98a613fcf1a257b81de7611c84711d315cd11e2634ab4636302b3742aedf1e3ba9ce0fea53fe8c7d48e37865d8ee5db3565220d90 WHIRLPOOL 86d021bae2dbfc4ef80c22d9e886bed4fbd9476473a2851d7beaf8ed0c7f7fbc1fa0da230eb9e763eb231b7c164c17b2a73fd336ab233543f57be280d6173738
DIST linux-4.4.tar.xz 87295988 SHA256 401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2 SHA512 13c8459933a8b80608e226a1398e3d1848352ace84bcfb7e6a4a33cb230bbe1ab719d4b58e067283df91ce5311be6d2d595fc8c19e2ae6ecc652499415614b3e WHIRLPOOL 02abc203d867404b9934aaa4c1e5b5dcbb0b0021e91a03f3a7e7fd224eed106821d8b4949f32a590536db150e5a88c16fcde88538777a26d0c17900f0257b1bc
DIST linux-4.9.tar.xz 93192404 SHA256 029098dcffab74875e086ae970e3828456838da6e0ba22ce3f64ef764f3d7f1a SHA512 bf67ff812cc3cb7e5059e82cc5db0d9a7c5637f7ed9a42e4730c715bf7047c81ed3a571225f92a33ef0b6d65f35595bc32d773356646df2627da55e9bc7f1f1a WHIRLPOOL 072505b29972ad120eb25a074217847c9c2813416c4903e605a0433574f5f87616dbea0b1454e4b19acc48107f11274b682958b1d773373156e99f8163e6606a
diff --git a/sys-kernel/aufs-sources/aufs-sources-4.10.13.ebuild b/sys-kernel/aufs-sources/aufs-sources-4.10.13.ebuild
new file mode 100644
index 000000000000..18d433d93370
--- /dev/null
+++ b/sys-kernel/aufs-sources/aufs-sources-4.10.13.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras experimental"
+K_GENPATCHES_VER=14
+UNIPATCH_STRICTORDER=1
+inherit kernel-2 eutils readme.gentoo-r1
+
+AUFS_VERSION=4.10_p20170410
+AUFS_TARBALL="aufs-sources-${AUFS_VERSION}.tar.xz"
+# git archive -v --remote=git://git.code.sf.net/p/aufs/aufs4-standalone aufs${AUFS_VERSION/_p*} > aufs-sources-${AUFS_VERSION}.tar
+AUFS_URI="https://dev.gentoo.org/~jlec/distfiles/${AUFS_TARBALL}"
+
+KEYWORDS="~amd64 ~x86"
+HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches http://aufs.sourceforge.net/"
+IUSE="experimental module vanilla"
+
+DESCRIPTION="Full sources including the Gentoo patchset for the linux kernel tree and aufs4 support"
+SRC_URI="
+ ${KERNEL_URI}
+ ${ARCH_URI}
+ ${AUFS_URI}
+ !vanilla? ( ${GENPATCHES_URI} )
+ "
+
+PDEPEND="=sys-fs/aufs-util-4*"
+
+README_GENTOO_SUFFIX="-r1"
+
+src_unpack() {
+ detect_version
+ detect_arch
+ if use vanilla; then
+ unset UNIPATCH_LIST_GENPATCHES UNIPATCH_LIST_DEFAULT
+ ewarn "You are using USE=vanilla"
+ ewarn "This will drop all support from the gentoo kernel security team"
+ fi
+
+ UNIPATCH_LIST="
+ "${WORKDIR}"/aufs4-kbuild.patch
+ "${WORKDIR}"/aufs4-base.patch
+ "${WORKDIR}"/aufs4-mmap.patch"
+
+ use module && UNIPATCH_LIST+=" "${WORKDIR}"/aufs4-standalone.patch"
+
+ unpack ${AUFS_TARBALL}
+
+ einfo "Using aufs4 version: ${AUFS_VERSION}"
+
+ kernel-2_src_unpack
+}
+
+src_prepare() {
+ kernel-2_src_prepare
+ if ! use module; then
+ sed -e 's:tristate:bool:g' -i "${WORKDIR}"/fs/aufs/Kconfig || die
+ fi
+ cp -f "${WORKDIR}"/include/uapi/linux/aufs_type.h include/uapi/linux/aufs_type.h || die
+ cp -rf "${WORKDIR}"/{Documentation,fs} . || die
+}
+
+src_install() {
+ kernel-2_src_install
+ dodoc "${WORKDIR}"/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch
+ docompress -x /usr/share/doc/${PF}/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+ einfo "For more info on this patchset, and how to report problems, see:"
+ einfo "${HOMEPAGE}"
+ has_version sys-fs/aufs-util || \
+ elog "In order to use aufs FS you need to install sys-fs/aufs-util"
+
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ kernel-2_pkg_postrm
+}
diff --git a/sys-kernel/aufs-sources/aufs-sources-4.4.64.ebuild b/sys-kernel/aufs-sources/aufs-sources-4.4.64.ebuild
new file mode 100644
index 000000000000..4786cf072c5d
--- /dev/null
+++ b/sys-kernel/aufs-sources/aufs-sources-4.4.64.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras experimental"
+K_GENPATCHES_VER=67
+UNIPATCH_STRICTORDER=1
+inherit kernel-2 eutils readme.gentoo-r1
+
+AUFS_VERSION=4.4_p20170410
+AUFS_TARBALL="aufs-sources-${AUFS_VERSION}.tar.xz"
+# git archive -v --remote=git://git.code.sf.net/p/aufs/aufs4-standalone aufs${AUFS_VERSION/_p*} > aufs-sources-${AUFS_VERSION}.tar
+AUFS_URI="https://dev.gentoo.org/~jlec/distfiles/${AUFS_TARBALL}"
+
+KEYWORDS="~amd64 ~x86"
+HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches http://aufs.sourceforge.net/"
+IUSE="experimental module vanilla"
+
+DESCRIPTION="Full sources including the Gentoo patchset for the linux kernel tree and aufs4 support"
+SRC_URI="
+ ${KERNEL_URI}
+ ${ARCH_URI}
+ ${AUFS_URI}
+ !vanilla? ( ${GENPATCHES_URI} )
+ "
+
+PDEPEND="=sys-fs/aufs-util-4*"
+
+README_GENTOO_SUFFIX="-r1"
+
+src_unpack() {
+ detect_version
+ detect_arch
+ if use vanilla; then
+ unset UNIPATCH_LIST_GENPATCHES UNIPATCH_LIST_DEFAULT
+ ewarn "You are using USE=vanilla"
+ ewarn "This will drop all support from the gentoo kernel security team"
+ fi
+
+ UNIPATCH_LIST="
+ "${WORKDIR}"/aufs4-kbuild.patch
+ "${WORKDIR}"/aufs4-base.patch
+ "${WORKDIR}"/aufs4-mmap.patch"
+
+ use module && UNIPATCH_LIST+=" "${WORKDIR}"/aufs4-standalone.patch"
+
+ unpack ${AUFS_TARBALL}
+
+ einfo "Using aufs4 version: ${AUFS_VERSION}"
+
+ kernel-2_src_unpack
+}
+
+src_prepare() {
+ kernel-2_src_prepare
+ if ! use module; then
+ sed -e 's:tristate:bool:g' -i "${WORKDIR}"/fs/aufs/Kconfig || die
+ fi
+ cp -f "${WORKDIR}"/include/uapi/linux/aufs_type.h include/uapi/linux/aufs_type.h || die
+ cp -rf "${WORKDIR}"/{Documentation,fs} . || die
+}
+
+src_install() {
+ kernel-2_src_install
+ dodoc "${WORKDIR}"/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch
+ docompress -x /usr/share/doc/${PF}/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+ einfo "For more info on this patchset, and how to report problems, see:"
+ einfo "${HOMEPAGE}"
+ has_version sys-fs/aufs-util || \
+ elog "In order to use aufs FS you need to install sys-fs/aufs-util"
+
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ kernel-2_pkg_postrm
+}
diff --git a/sys-kernel/aufs-sources/aufs-sources-4.9.25.ebuild b/sys-kernel/aufs-sources/aufs-sources-4.9.25.ebuild
new file mode 100644
index 000000000000..5b0faf80f8bb
--- /dev/null
+++ b/sys-kernel/aufs-sources/aufs-sources-4.9.25.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+ETYPE="sources"
+K_WANT_GENPATCHES="base extras experimental"
+K_GENPATCHES_VER=26
+UNIPATCH_STRICTORDER=1
+inherit kernel-2 eutils readme.gentoo-r1
+
+AUFS_VERSION=4.9_p20170410
+AUFS_TARBALL="aufs-sources-${AUFS_VERSION}.tar.xz"
+# git archive -v --remote=git://git.code.sf.net/p/aufs/aufs4-standalone aufs${AUFS_VERSION/_p*} > aufs-sources-${AUFS_VERSION}.tar
+AUFS_URI="https://dev.gentoo.org/~jlec/distfiles/${AUFS_TARBALL}"
+
+KEYWORDS="~amd64 ~x86"
+HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches http://aufs.sourceforge.net/"
+IUSE="experimental module vanilla"
+
+DESCRIPTION="Full sources including the Gentoo patchset for the linux kernel tree and aufs4 support"
+SRC_URI="
+ ${KERNEL_URI}
+ ${ARCH_URI}
+ ${AUFS_URI}
+ !vanilla? ( ${GENPATCHES_URI} )
+ "
+
+PDEPEND="=sys-fs/aufs-util-4*"
+
+README_GENTOO_SUFFIX="-r1"
+
+src_unpack() {
+ detect_version
+ detect_arch
+ if use vanilla; then
+ unset UNIPATCH_LIST_GENPATCHES UNIPATCH_LIST_DEFAULT
+ ewarn "You are using USE=vanilla"
+ ewarn "This will drop all support from the gentoo kernel security team"
+ fi
+
+ UNIPATCH_LIST="
+ "${WORKDIR}"/aufs4-kbuild.patch
+ "${WORKDIR}"/aufs4-base.patch
+ "${WORKDIR}"/aufs4-mmap.patch"
+
+ use module && UNIPATCH_LIST+=" "${WORKDIR}"/aufs4-standalone.patch"
+
+ unpack ${AUFS_TARBALL}
+
+ einfo "Using aufs4 version: ${AUFS_VERSION}"
+
+ kernel-2_src_unpack
+}
+
+src_prepare() {
+ kernel-2_src_prepare
+ if ! use module; then
+ sed -e 's:tristate:bool:g' -i "${WORKDIR}"/fs/aufs/Kconfig || die
+ fi
+ cp -f "${WORKDIR}"/include/uapi/linux/aufs_type.h include/uapi/linux/aufs_type.h || die
+ cp -rf "${WORKDIR}"/{Documentation,fs} . || die
+}
+
+src_install() {
+ kernel-2_src_install
+ dodoc "${WORKDIR}"/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch
+ docompress -x /usr/share/doc/${PF}/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ kernel-2_pkg_postinst
+ einfo "For more info on this patchset, and how to report problems, see:"
+ einfo "${HOMEPAGE}"
+ has_version sys-fs/aufs-util || \
+ elog "In order to use aufs FS you need to install sys-fs/aufs-util"
+
+ readme.gentoo_print_elog
+}
+
+pkg_postrm() {
+ kernel-2_pkg_postrm
+}