Skip to content

Commit

Permalink
sys-kernel/aufs-sources: Bump to latest genpatches and linux release
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Signed-off-by: Justin Lecher <[email protected]>
  • Loading branch information
jlec committed Mar 26, 2017
1 parent 32c239d commit ade7f57
Show file tree
Hide file tree
Showing 5 changed files with 348 additions and 0 deletions.
12 changes: 12 additions & 0 deletions sys-kernel/aufs-sources/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ DIST genpatches-4.4-58.extras.tar.xz 16456 SHA256 93d5480260772badd18a8bfa34e81f
DIST genpatches-4.4-59.base.tar.xz 1076172 SHA256 ff0f6d61956cfc18e7b1d2b88c90c005fa567039de4f8380297e2805f6d61437 SHA512 70fd7c5822380cc6f808e6109c22e07ec3f290459db2b8541894d4253d0f7b6871e04548f282b6542deb75bbe77fa22b9e3cf86e4d5037418e12927251454603 WHIRLPOOL 25f1cdf1f0311678854d67f1c476c4939495d75630af93d550731a89de3faa0b1d233a2aefa317bcfadeae1bddb9d53dfba3e511f00fa65f1d43d23429f80360
DIST genpatches-4.4-59.experimental.tar.xz 87776 SHA256 22f5481f14e0b42618b67979e9977345598f44ea481ea58b4ab398035524884c SHA512 31a50744f3630ea68c718fc3805067daacb3ba21b294c4bb882b7e37ce6ca9ba44ee48faa2c12ae7305b0dc76ab796348a79784d14e78380437a1e7f205ba722 WHIRLPOOL 668932fbe28cf70ee1266a9be832e66eecee5fb532e35bc4620f67e69aa4ef045a04ae24f3af26420085279cd53bfaac52bd2459bf9ae711789e48cc69a52b88
DIST genpatches-4.4-59.extras.tar.xz 16456 SHA256 c4e2501f4dd68c0176fd4b2dcd379c0d7a01fade793b7fbae99d6afb8ccc906c SHA512 5217f7864c489d8d42846ddc531ab21d813bf0126a43ac9ec89ecbf695b79a1336aaf1d705659f037027c2597b2eb89d6859ddea95b1d898e2f850080d01c2f6 WHIRLPOOL dc911685984d57b16deb4e6fef09497030badae2253003c54ec4e6195645c5eeba947857bfa035f41b4d03312ff83204fc2ed12cee363b4f16dc440b349c71a8
DIST genpatches-4.4-60.base.tar.xz 1089360 SHA256 8fb8e1f651c824fb42b14acf84c4e805afa158f533fb0cbffbde93cc678e31b6 SHA512 ff3c8b574837f5990758886f9c48358c5ac8d4214ba9fe77d92e02dcbb9f263b8e0463842122ac894d20512b68e86ff635d1740641539d7b51145fe8d119db90 WHIRLPOOL f37a0b649dc31fa18412c80cf588be7c76e7a63dcfa1c5f2e42e8b921598651eb8f8da04ff11e17b53d0492b446ffb41250a8aafebd826fa550bfe646962bd6f
DIST genpatches-4.4-60.experimental.tar.xz 87752 SHA256 dd462501b6d690a362bf0817f4cbfc2240dfcb42f24f96ca7564a766355a59f2 SHA512 fbe48f82edc5bec21ecb6ca9a3744e295fa3d49ea10fe47afa1721d33c9fd9c4afbe964c2bc4d4c952b092d92e74cf7ebdaec3ba4b7e69017073c45edd1ff4c9 WHIRLPOOL d1cd08010c01b7fc9b095975b9c09b9317f433005a117d70b932482b10e221ae5eb4a620fbdf5dba36295d6af99162fd1f5b047d0d3616177373488bc319402b
DIST genpatches-4.4-60.extras.tar.xz 16464 SHA256 214376258c68bf3f19a555a80ff15e7b6316b4bdf3ba3718cef03f293953059c SHA512 0f58851a8fa56d2973196404077379b3f8057e95d87c7ff4402b24ca5c04881d535cf1385f92797686340d2cd959c08dd7658433487088c0dc38b99426d77d22 WHIRLPOOL b91c621a632abb789444b54e049978b6b558a53c96c828369807e7440e4eae85f6bf67a8cc1c934b060f6aed2ea06947375b81fa2838b7ed7c0a3ca3177a84c9
DIST genpatches-4.4-61.base.tar.xz 1096892 SHA256 6b50e14801344989969f81198c2fdace0de79c1e23370e469ec2f8809a94779d SHA512 5b718ffd15e1990bcfe9b090aef16609b61831b2417c27ca138b1c24ec3c4cece46cb0dc3894f7b1c15b2c95c4b7bf5198cd43c4cef6e0c628c1abf9dcc273d7 WHIRLPOOL cd088fb0d1f5398bc14adf8667453b2885dc292a7f6e8a230644f5bbf59378a261b62aeaaa928ae027f545ffe975f28e49b0a2cb5d112da9fe4a94d378c6956d
DIST genpatches-4.4-61.experimental.tar.xz 87796 SHA256 a854b0ec904c037df6990b6664f7c18a96c0cbb26ef55d1f60888bd963726f87 SHA512 2e4b7f5d2987197e4589222247f68516e0d0aa2ed13d32d87d44104dc9ab9e46a01d4b5912f98354c73497d67cc3f11bad224483e55b2ebc112976bbe8dc6f75 WHIRLPOOL b97b80d5ebefa461898b3b98326d6fcffc868c12c992bbe9d2f5d9cd556ac3c27c19c9147b95692cd51b1b8b378859cbd9d5074a68c971bae07aad8b06959b9a
DIST genpatches-4.4-61.extras.tar.xz 16460 SHA256 692c8bd9330244081c90b0a80b7ff54a629ba75c4a5e455dc2ae1ea98e534702 SHA512 65a3ca3298bd160d9291390ecded8bff86b823bde5a27b4fc6eefcdff94aa530d32d9408ce114f81975136fc7a246af55d69fa146452fa7e54ba892f64252f69 WHIRLPOOL 028ad09386c6d0b46f5ff87b3878919a10b5e4154f800ee332bdb2a619267ccec776ab74467893bc39b8a7a06a9d2c7cf911f0db6471ff5db97d4074648ae505
DIST genpatches-4.9-14.base.tar.xz 299156 SHA256 a19e22f33b62858d28b2c78a3325f9334bd089bce9d077d6a759aa59a0b1a472 SHA512 4891b932bf0967e42dc047ca5213c2ece7a4e8347cdb0c176b0dba2063ccab0245d1f3f89ad9e184226a02870526a246cd1f291f20e2e0d4aa79d06b40edaf16 WHIRLPOOL 0490f84c21e80a0b80d2c851096e07a31cdd24bc9fc8b29682d84876155ee8c074d7f736d1b5c6f7512e4810d57fca649602e519feb96e325a732b7cb32623db
DIST genpatches-4.9-14.experimental.tar.xz 105584 SHA256 a14fb8785a4f245cbcdc12557a4b2487ccb00e39763af17204557fbf81cb19b8 SHA512 34787219163e2443b558531f5c427463aa1c4e1131bf950bb6afc906af4d8e3c2c57b5361ce7745a8b77f7ba391d76c35cfcc58afa464ea3da0c693cc2058e93 WHIRLPOOL 16287aa781e7777120c95638c4d72c13e4c1d0820323a4e7996e58431e9ee34bca9a8970f0c6ff2a9815227a901b1cd1128562994d43e73779e57a3d5c37febc
DIST genpatches-4.9-14.extras.tar.xz 17332 SHA256 2bdf94536e891c377ae1cc0120cb3f420cc84c7b5fe2f8070840d895f7e43ddc SHA512 53adb516ae85e00a99fcae63e668a268520b74314b626c094cba4044a2c443b4f340238ca03a27624b23d356678739a933d515c8240cc08c2c4db79be090b183 WHIRLPOOL d540140ae6b1edde3f34ebc19e7bba0cb0a05a8b7aed5be3c02f698ac40b6e713b249687f1d467553c859aca7e7e54b3901eeeb22ffedace8e6bd34e04000aec
Expand All @@ -48,6 +54,12 @@ DIST genpatches-4.9-17.extras.tar.xz 17352 SHA256 7a61c27163b6f0b5f517a819b31ece
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
DIST genpatches-4.9-19.base.tar.xz 420920 SHA256 42e008bdb9ee0c032dce7dc74175f892ab0afb13a1167404342b2833730d8232 SHA512 7ab74f3dfc766d03bef4d2409b817ed325470f975e2b51a48daa44046d11584a6e60ae3ff28568dd9a601d7caf6642df3c3a9a1b2b106ec282fb744bce866b6e WHIRLPOOL b3268236d79648b6d3b00ff5d878135f4ffea347dd16d9437904093b1bd6e10132646f58f92a9ebf2c2e2538c2b4aec1993216a170004fcfa251e16bd06d85cc
DIST genpatches-4.9-19.experimental.tar.xz 105600 SHA256 eafcadcb523c9edd672be9ab45af5bded697b9eedf24afc35f3daa760c3a03b6 SHA512 cfd021591de29d634401b68e1ba98095398b3a8ba293a657acb473c5c0a3c5e6137e065d081bc0e30f99785af6aa4090de55fed200e7e4f3e4427fec1cd1f2c9 WHIRLPOOL 3756ca2d2361c894224345a61aad719b28b5d0c04be239537a9325b6a87e36dba0abb2999f7a37453573c823325663f19e3f2ca921bc167cba61c919fda0b8f2
DIST genpatches-4.9-19.extras.tar.xz 17348 SHA256 21a0716823ebe74c997fdbf56e8037a383dae0121d4eb22fd0b924f9bef78001 SHA512 a86efdf561cd96cb98d4a434df94f9c3fec2c5b53a99a7ee433326bed907aaa53ed65045bb9333d1344aa5367b9b63cfe97527ae2185e7093c09ad3b59e6dad8 WHIRLPOOL 131d2f2354f7662b53a24cf0743a719869842b9141db1df807a8cf1a5f3bb18362564e3a26d7056f1996b1a9bcf2594e5ad68555b44d52b81bc105176717575b
DIST genpatches-4.9-20.base.tar.xz 427100 SHA256 a7346ab49ac9eae72b627b3779c29dd636b4c412473a0bfe35d91678c6a4d853 SHA512 0b9773d58f6e140e55bd6d3d46e144e4273d7b313958fdcd21b4eb8e8294b18164d95203259eddf6bdd4485c20b1f57cdd863ad313235207c05d894551bd15e6 WHIRLPOOL ad5fc950eb886024d914973dd49a4077672ef0fde90a437f82912318ac433f624533291fc3307c1fb189f0588ca52a56e000d10538d412634451f4015ebcc989
DIST genpatches-4.9-20.experimental.tar.xz 106416 SHA256 ba236b5f039288d762956146600f133fcba58e90ab3dbd30c799ac6e75fe2cb3 SHA512 d863fd523d0633f78c1b1e911d1714511b43818117296a265e6b58f9c258aa045d8b09562856d84ea3dadb8814e8e73517c653d878f03082fa4c4e7679a44bb7 WHIRLPOOL 8aeff2374985d07933099f11ed391c0cb9ff35273d183602563e10cda3546a03699edadac78df8003fdbb7ed3830ff4b2b7246a0527e712d75641d7650833975
DIST genpatches-4.9-20.extras.tar.xz 17352 SHA256 91ac2b1add9a0a7129b1358cd731999b4dd4f2ae3f0438e74b9b1bf3c580a6c4 SHA512 f734a880ec55892b86274ab1b01dbd78d2301b321a36cf6de9e6fc9927a8e03c034ef873a84dd445f29274def7247bd606ffad5e16124bc848fd04c906678d02 WHIRLPOOL 0e3692fc1cb71ba7dd5a4cc45dbce1bdbc0a6793a4f7e82ad2a203a4501f9386d97886196d54216633725c7b112319908716090f5381373f527e13a9d18f5841
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
84 changes: 84 additions & 0 deletions sys-kernel/aufs-sources/aufs-sources-4.4.56.ebuild
Original file line number Diff line number Diff line change
@@ -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=60
UNIPATCH_STRICTORDER=1
inherit kernel-2 eutils readme.gentoo-r1

AUFS_VERSION=4.4_p20170313
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
}
84 changes: 84 additions & 0 deletions sys-kernel/aufs-sources/aufs-sources-4.4.57.ebuild
Original file line number Diff line number Diff line change
@@ -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=61
UNIPATCH_STRICTORDER=1
inherit kernel-2 eutils readme.gentoo-r1

AUFS_VERSION=4.4_p20170313
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
}
84 changes: 84 additions & 0 deletions sys-kernel/aufs-sources/aufs-sources-4.9.17.ebuild
Original file line number Diff line number Diff line change
@@ -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=19
UNIPATCH_STRICTORDER=1
inherit kernel-2 eutils readme.gentoo-r1

AUFS_VERSION=4.9_p20170313
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
}
84 changes: 84 additions & 0 deletions sys-kernel/aufs-sources/aufs-sources-4.9.18.ebuild
Original file line number Diff line number Diff line change
@@ -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=20
UNIPATCH_STRICTORDER=1
inherit kernel-2 eutils readme.gentoo-r1

AUFS_VERSION=4.9_p20170313
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
}

0 comments on commit ade7f57

Please sign in to comment.