1 |
commit: f73da9da310d0422eb866464d413b5e02e97a7df |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 19 07:48:10 2016 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 19 08:18:59 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f73da9da |
7 |
|
8 |
sys-fs/aufs3: Drop old |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
12 |
|
13 |
sys-fs/aufs3/Manifest | 13 --- |
14 |
sys-fs/aufs3/aufs3-3_p20150406.ebuild | 172 ---------------------------------- |
15 |
sys-fs/aufs3/aufs3-3_p20150420.ebuild | 172 ---------------------------------- |
16 |
sys-fs/aufs3/aufs3-3_p20150504.ebuild | 172 ---------------------------------- |
17 |
sys-fs/aufs3/aufs3-3_p20150511.ebuild | 172 ---------------------------------- |
18 |
sys-fs/aufs3/aufs3-3_p20150518.ebuild | 172 ---------------------------------- |
19 |
sys-fs/aufs3/aufs3-3_p20150525.ebuild | 172 ---------------------------------- |
20 |
sys-fs/aufs3/aufs3-3_p20150608.ebuild | 172 ---------------------------------- |
21 |
sys-fs/aufs3/aufs3-3_p20151012.ebuild | 172 ---------------------------------- |
22 |
sys-fs/aufs3/aufs3-3_p20151102.ebuild | 172 ---------------------------------- |
23 |
sys-fs/aufs3/aufs3-3_p20151109.ebuild | 172 ---------------------------------- |
24 |
sys-fs/aufs3/aufs3-3_p20151116.ebuild | 172 ---------------------------------- |
25 |
sys-fs/aufs3/aufs3-3_p20151221.ebuild | 172 ---------------------------------- |
26 |
sys-fs/aufs3/aufs3-3_p20160118.ebuild | 172 ---------------------------------- |
27 |
14 files changed, 2249 deletions(-) |
28 |
|
29 |
diff --git a/sys-fs/aufs3/Manifest b/sys-fs/aufs3/Manifest |
30 |
index dfcfa4b..7f063bb 100644 |
31 |
--- a/sys-fs/aufs3/Manifest |
32 |
+++ b/sys-fs/aufs3/Manifest |
33 |
@@ -1,15 +1,2 @@ |
34 |
-DIST aufs3-standalone-3_p20150406.tar.xz 2863952 SHA256 e2de4fcdb086ab33bc182b084bf534891cc31a7d3ffc805d40dc087c37ab464b SHA512 c843999798f99fef5c16232935606ca438774104dc04c58982bb2b3f9ae371d9f2173b5454d366481de22fd3e658ee9e67f6981504c5c8157af20a8f15f269d1 WHIRLPOOL 0d2efaa6918c6f90339cae02a9ef3908921e8d1903364aaff9af034262f439886a02a639f9eaae27a28093fc6bf451bbc9fe7072a766a36e51f75c779378095d |
35 |
-DIST aufs3-standalone-3_p20150420.tar.xz 2864092 SHA256 0f592b3c84b149d0842c518b83656be61a627f5bb9c953b824fd1631e24a2224 SHA512 ad383f37c5201a6a6e53e91f18d63648b3768b8327f07c36a207eb90b63b13779709a0f18696896c833866a30e1010c70ad8aa1259ae08dca5465a68f91d48e5 WHIRLPOOL 029f0cb665e0aa5f8d8bc2a93177e73d8ee7d80d68326f4f38018cec5678ff70378e70473f48bde1ba4f8096331eae4e40949b7c732f22789d09c690cd5cfce7 |
36 |
-DIST aufs3-standalone-3_p20150504.tar.xz 2886004 SHA256 f88435f8fa5d0316a5d87cc8c99012a5504e4f52deee518ae6d4b48152a38071 SHA512 acb863eb197a089e7720237f4b1f1a28be150eee751cb6930e16d96053c1dee84333479ac5f2e5eee2107fe73f9563fe4864c01d07a9de452cff1b7fd283844c WHIRLPOOL d6dcea3e86d0eb5636fe6026c9d8e887e8c15283f364aaf41fe1b7eb4ebfe51caae8dcad26162353e90a28e27587a777fa6d7d6e710c1d1006f2b597bd39c06e |
37 |
-DIST aufs3-standalone-3_p20150511.tar.xz 2940252 SHA256 c3f67eff4fa23a1734e94733d7d7f9e7be1564525e70c8207995a02f96c75ab3 SHA512 c66c6450596f5f5dd6223b7945cbd5a6bf8117c2c0c98547a7debae6e78965cce1cc5e681d60efa798f93f94f67c0129c5372d9fbcbd313abfc5a6bbf89d28df WHIRLPOOL e56fbac3edff29bcc2653683ceaa6e94f18f0764d435e454e981b9f728b03a7cb7562f5a1005455a764cfaf001c7db87d3b74e9a433165d51d53097f45f9cf75 |
38 |
-DIST aufs3-standalone-3_p20150518.tar.xz 2967016 SHA256 f938bdcc461dacf2b59c807b31fca70f166007a3973c50076b60c6d2e53b163c SHA512 7aede4db3135949a7f3098a29ff9234e21eb78534c0aec3b8fdcd63782110f48c76734752857bd157b29cbd16fdb7e844cc50992e4750cfb05ccfba2d9247b64 WHIRLPOOL bdf559b43d2cede70c334621574f62f123a481cefbec091f3e9e3bd12a499ea985e885a941e24634c2d8e9e9a83acb2c149da29038db00562824647ca6e8db78 |
39 |
-DIST aufs3-standalone-3_p20150525.tar.xz 2988108 SHA256 117be76206e67425c4144174afaa347c4f9e9414200899b5c43a8ec0b91c7d03 SHA512 ea6031ff9231ce68b95450e428989ad81b1c6ce4a9a21f718f73dbafd3aa1e12191d7abd57829e0f80cc0cf0aa412e35b2cad4e14430078b88b2e17312d7b708 WHIRLPOOL 81aeff069ebc6122856c74fcdd38784bd7a231c99726a73ddaad04f145978053fd3ff8b788ac0995fa261cfbf62d461c43f8dca887525df887fdb0011a417f40 |
40 |
-DIST aufs3-standalone-3_p20150608.tar.xz 3015460 SHA256 cdf92d07f45becfeb70ea3314e554ea9c8766a2815c3aa6c8d634b5307c76d5d SHA512 4d29d2d4908cd7a4471bc3efe5c23e57d41765937c700eee8593a5c07d7e84e12e6093ef4338b6bd4e9e6f0e44674557a659fd5fa5257a79b381385d208c2209 WHIRLPOOL ccf68e64eb5bc1893c2e5d50c6fc3eaf4e71fd06949ae16e4343734dca39f7f016ab0a08796d444efe55947a8645193979c0dccce702d8c38e46207bfde4f1ad |
41 |
DIST aufs3-standalone-3_p20150622.tar.xz 3063280 SHA256 2fa44f9df9d58df7a5251ebd2cec206fa90ca8e110c1f657df18e62adb170517 SHA512 fe7a62249130d68f72b14f21b57e5d6db402f56637afc876068d916e78884d08476c804ac58ef06eeb9e13e0a2e1cb75ac782f83054f1c06cb85c74a3c48ba01 WHIRLPOOL 7f85a5324d51e148c97109357c13fcab76121d25ee006211d2212f9c6d352330be110569848c8ca96421bc4582025c73030329d7e501837e4d18cafd6002f153 |
42 |
-DIST aufs3-standalone-3_p20151012.tar.xz 3122148 SHA256 f54f1f19bec26f653939e00b30007a465a1f555356ec3886f2a5970276494d0e SHA512 fcf251f358c0dfb66387744d1a1339b2bbcc979c7cc86d01068d108abd6a765c69ecce56cc182d385006febf5abf093fb2c2af77e4cc149134ac413a26b4118f WHIRLPOOL 06be7483792bceea58b26d733c1eed6f69ddd81cd49617550c3414e1800964690b69c1ee9f12b1d48887d051d6b0488a009a56aec0df7cbcc5625ca27f9043f8 |
43 |
-DIST aufs3-standalone-3_p20151102.tar.xz 3139016 SHA256 8d43e3c3c744ddfd250321d7a43ac98c77ff93d2775674f3c7a71183260702fb SHA512 0c0f261dc295d7b33560796f7baef761d802eac4de6b09be9a8f41689f3458149c271025e45d053fb188f56b6b2d6e5a02e159b0fefef090cbb0b44cfad78c4a WHIRLPOOL 1bcd9292362b27c564b5450c84b5f22bb16b2498b34507a78bf30df25c034bce4112ddec688f632f39cd935f1dd15dcf7f18213dc0d13a63aed1e2873da2d89b |
44 |
-DIST aufs3-standalone-3_p20151109.tar.xz 3151124 SHA256 1fe9341fe93a469d3a17604c90f949304e035e687f1fc3fac4c9f76d93b9535d SHA512 3f3e018e5236e6e8d67c3d0dd13eb38dd9d72ec32c0e572bb9f3b4fb85b4ee7d9d50a5cf63bb6432c5625e8d98655e3f0c228bd66b79fae680dbe866553cbc40 WHIRLPOOL 28d853afe21c8ce5a1ae9a9b5394db87b823bd791e14c5c5d15f3943ff3c67b0ce2bf28b2287f4ce9fc79feeb44127f9a26ba888a8449859b9414880d6748762 |
45 |
-DIST aufs3-standalone-3_p20151116.tar.xz 3164412 SHA256 6702030b4a90b168d8ee227856caeaf999eec91e83bf96517d93cb1242d98ccd SHA512 40bdb947fd3da48d1d245c18cad3a23f61301e596e3b2b9b82b9915c239941af0b55c8491b408c66c07721385de365093601f764b43f096a432d76452f9d76e1 WHIRLPOOL e07ac272cc37eb74776b93030f3a201c8e2e0a7e73777c7e1140a41c83ac58b1e8c77fc4d52dfe9027d10442b5f6a1f11ea1a35a3b36ce8d87bd725f48cb5c3d |
46 |
-DIST aufs3-standalone-3_p20151221.tar.xz 3174536 SHA256 2f84b85466244e11607680a9cc905f60c56fa4478c4b310366044999819ff58f SHA512 dadc95eea30c2e13ca0f4c316a5aa2a3ff7f8025eb7123a483713ee844a3f0eabe29ddd4c5497e368ba1b0f01008d3578f745eb0bdf5210fb71d2dd4ef54a711 WHIRLPOOL b6f2bde1de90074a238984d72041e27a6d8c7dfc828c055ebce9325d18c35b212770eae6a2ff619ad2b6e176d2833cdd9a184488fd0eb63acb15e5fece608bd6 |
47 |
-DIST aufs3-standalone-3_p20160118.tar.xz 3174824 SHA256 fc9d23a7769a44f0cf91020a5ca70d0fd25890d420ef8db52061610d5db39ad1 SHA512 91e5ad1bb1263a5a6ac48c2c91db75d79ece809f7571a24d8c324154a43cb202996d3534b7e6cc382b55790453dd5209fe841051e3525734c532f183415211b6 WHIRLPOOL abd6490808cd86fb65e5eb2469611799191eb9f36b75ab0c655c2a4cdd8cbe6b5d7341f6631fd97ba9af9f30cab0edc8934c038dc1fdef79042625761afe3f4d |
48 |
DIST aufs3-standalone-3_p20160215.tar.xz 3220152 SHA256 e1e468e799826a128ab9ffb5b15dade4c721a4703ffff522f305de91d7b81489 SHA512 ff57fe257575bd217622b408e89daaff1dad0954c2c0a599d4d4117f190a0b59aee9ac9c39f9b6d820604108fa2643d84833e78848cc12e0ea4b84e0dd9e9c7a WHIRLPOOL fa1037e6411c928b99e92e75a7b11aeb5acc0e5c31c45c05cdf21f3368f75fa4ccca199687964fb61ee50927a9df274ea624ea7b363600a4a943cfc171a417cc |
49 |
|
50 |
diff --git a/sys-fs/aufs3/aufs3-3_p20150406.ebuild b/sys-fs/aufs3/aufs3-3_p20150406.ebuild |
51 |
deleted file mode 100644 |
52 |
index 9930d1e..0000000 |
53 |
--- a/sys-fs/aufs3/aufs3-3_p20150406.ebuild |
54 |
+++ /dev/null |
55 |
@@ -1,172 +0,0 @@ |
56 |
-# Copyright 1999-2015 Gentoo Foundation |
57 |
-# Distributed under the terms of the GNU General Public License v2 |
58 |
-# $Id$ |
59 |
- |
60 |
-EAPI=5 |
61 |
- |
62 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
63 |
- |
64 |
-AUFS_VERSION="${PV%%_p*}" |
65 |
-# highest branch version |
66 |
-PATCH_MAX_VER=19 |
67 |
-# highest supported version |
68 |
-KERN_MAX_VER=20 |
69 |
-# lowest supported version |
70 |
-KERN_MIN_VER=14 |
71 |
- |
72 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
73 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
74 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
75 |
- |
76 |
-LICENSE="GPL-2" |
77 |
-SLOT="0" |
78 |
-KEYWORDS="~amd64 ~x86" |
79 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
80 |
- |
81 |
-DEPEND=" |
82 |
- dev-util/patchutils |
83 |
- dev-vcs/git" |
84 |
-RDEPEND=" |
85 |
- sys-fs/aufs-util |
86 |
- !sys-fs/aufs |
87 |
- !sys-fs/aufs2 |
88 |
- !sys-fs/aufs4" |
89 |
- |
90 |
-S="${WORKDIR}"/${PN}-standalone |
91 |
- |
92 |
-MODULE_NAMES="aufs(misc:${S})" |
93 |
- |
94 |
-pkg_setup() { |
95 |
- CONFIG_CHECK+=" !AUFS_FS" |
96 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
97 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
98 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
99 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
100 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
101 |
- |
102 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
103 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
104 |
- |
105 |
- get_version |
106 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
107 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
108 |
- |
109 |
- linux-mod_pkg_setup |
110 |
- |
111 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
112 |
- PATCH_BRANCH="x-rcN" |
113 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
114 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
115 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
116 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
117 |
- else |
118 |
- PATCH_BRANCH="${KV_MINOR}" |
119 |
- fi |
120 |
- |
121 |
- case ${KV_EXTRA} in |
122 |
- "") |
123 |
- elog "It seems you are using vanilla-sources with aufs3" |
124 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
125 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
126 |
- ;; |
127 |
- "-gentoo") |
128 |
- elog "It seems you are using gentoo-sources with aufs3" |
129 |
- elog "Please use sys-kernel/aufs-sources" |
130 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
131 |
- ;; |
132 |
- esac |
133 |
- |
134 |
- pushd "${T}" &> /dev/null |
135 |
- unpack ${A} |
136 |
- cd ${PN}-standalone || die |
137 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
138 |
- einfo "Using ${module_branch} as patch source" |
139 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
140 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
141 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
142 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
143 |
- if use kernel-patch; then |
144 |
- cd ${KV_DIR} |
145 |
- ewarn "Patching your kernel..." |
146 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
147 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
148 |
- ewarn "You need to compile your kernel with the applied patch" |
149 |
- ewarn "to be able to load and use the aufs kernel module" |
150 |
- else |
151 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
152 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
153 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
154 |
- die "missing kernel patch, please apply it first" |
155 |
- fi |
156 |
- fi |
157 |
- popd &> /dev/null |
158 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
159 |
-} |
160 |
- |
161 |
-set_config() { |
162 |
- for option in $*; do |
163 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
164 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
165 |
- done |
166 |
-} |
167 |
- |
168 |
-src_prepare() { |
169 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
170 |
- |
171 |
- einfo "Using for module creation branch ${module_branch}" |
172 |
- git checkout -q -b local-gentoo ${module_branch} || die |
173 |
- |
174 |
- # All config options to off |
175 |
- sed "s:= y:=:g" -i config.mk || die |
176 |
- |
177 |
- set_config RDU BRANCH_MAX_127 SBILIST |
178 |
- |
179 |
- use debug && set_config DEBUG |
180 |
- use fuse && set_config BR_FUSE POLL |
181 |
- use hfs && set_config BR_HFSPLUS |
182 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
183 |
- use nfs && set_config EXPORT |
184 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
185 |
- use ramfs && set_config BR_RAMFS |
186 |
- |
187 |
- if use pax_kernel; then |
188 |
- if kernel_is ge 3 11; then |
189 |
- epatch "${FILESDIR}"/pax-3.11.patch |
190 |
- else |
191 |
- epatch "${FILESDIR}"/pax-3.patch |
192 |
- fi |
193 |
- fi |
194 |
- |
195 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
196 |
-} |
197 |
- |
198 |
-src_compile() { |
199 |
- local ARCH=x86 |
200 |
- |
201 |
- emake \ |
202 |
- CC=$(tc-getCC) \ |
203 |
- LD=$(tc-getLD) \ |
204 |
- LDFLAGS="$(raw-ldflags)" \ |
205 |
- ARCH=$(tc-arch-kernel) \ |
206 |
- CONFIG_AUFS_FS=m \ |
207 |
- KDIR="${KV_OUT_DIR}" |
208 |
-} |
209 |
- |
210 |
-src_install() { |
211 |
- linux-mod_src_install |
212 |
- |
213 |
- insinto /usr/share/doc/${PF} |
214 |
- |
215 |
- use doc && doins -r Documentation |
216 |
- |
217 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
218 |
- |
219 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
220 |
- |
221 |
- readme.gentoo_create_doc |
222 |
-} |
223 |
- |
224 |
-pkg_postinst() { |
225 |
- readme.gentoo_pkg_postinst |
226 |
- linux-mod_pkg_postinst |
227 |
-} |
228 |
|
229 |
diff --git a/sys-fs/aufs3/aufs3-3_p20150420.ebuild b/sys-fs/aufs3/aufs3-3_p20150420.ebuild |
230 |
deleted file mode 100644 |
231 |
index 9930d1e..0000000 |
232 |
--- a/sys-fs/aufs3/aufs3-3_p20150420.ebuild |
233 |
+++ /dev/null |
234 |
@@ -1,172 +0,0 @@ |
235 |
-# Copyright 1999-2015 Gentoo Foundation |
236 |
-# Distributed under the terms of the GNU General Public License v2 |
237 |
-# $Id$ |
238 |
- |
239 |
-EAPI=5 |
240 |
- |
241 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
242 |
- |
243 |
-AUFS_VERSION="${PV%%_p*}" |
244 |
-# highest branch version |
245 |
-PATCH_MAX_VER=19 |
246 |
-# highest supported version |
247 |
-KERN_MAX_VER=20 |
248 |
-# lowest supported version |
249 |
-KERN_MIN_VER=14 |
250 |
- |
251 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
252 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
253 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
254 |
- |
255 |
-LICENSE="GPL-2" |
256 |
-SLOT="0" |
257 |
-KEYWORDS="~amd64 ~x86" |
258 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
259 |
- |
260 |
-DEPEND=" |
261 |
- dev-util/patchutils |
262 |
- dev-vcs/git" |
263 |
-RDEPEND=" |
264 |
- sys-fs/aufs-util |
265 |
- !sys-fs/aufs |
266 |
- !sys-fs/aufs2 |
267 |
- !sys-fs/aufs4" |
268 |
- |
269 |
-S="${WORKDIR}"/${PN}-standalone |
270 |
- |
271 |
-MODULE_NAMES="aufs(misc:${S})" |
272 |
- |
273 |
-pkg_setup() { |
274 |
- CONFIG_CHECK+=" !AUFS_FS" |
275 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
276 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
277 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
278 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
279 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
280 |
- |
281 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
282 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
283 |
- |
284 |
- get_version |
285 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
286 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
287 |
- |
288 |
- linux-mod_pkg_setup |
289 |
- |
290 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
291 |
- PATCH_BRANCH="x-rcN" |
292 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
293 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
294 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
295 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
296 |
- else |
297 |
- PATCH_BRANCH="${KV_MINOR}" |
298 |
- fi |
299 |
- |
300 |
- case ${KV_EXTRA} in |
301 |
- "") |
302 |
- elog "It seems you are using vanilla-sources with aufs3" |
303 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
304 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
305 |
- ;; |
306 |
- "-gentoo") |
307 |
- elog "It seems you are using gentoo-sources with aufs3" |
308 |
- elog "Please use sys-kernel/aufs-sources" |
309 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
310 |
- ;; |
311 |
- esac |
312 |
- |
313 |
- pushd "${T}" &> /dev/null |
314 |
- unpack ${A} |
315 |
- cd ${PN}-standalone || die |
316 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
317 |
- einfo "Using ${module_branch} as patch source" |
318 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
319 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
320 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
321 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
322 |
- if use kernel-patch; then |
323 |
- cd ${KV_DIR} |
324 |
- ewarn "Patching your kernel..." |
325 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
326 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
327 |
- ewarn "You need to compile your kernel with the applied patch" |
328 |
- ewarn "to be able to load and use the aufs kernel module" |
329 |
- else |
330 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
331 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
332 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
333 |
- die "missing kernel patch, please apply it first" |
334 |
- fi |
335 |
- fi |
336 |
- popd &> /dev/null |
337 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
338 |
-} |
339 |
- |
340 |
-set_config() { |
341 |
- for option in $*; do |
342 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
343 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
344 |
- done |
345 |
-} |
346 |
- |
347 |
-src_prepare() { |
348 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
349 |
- |
350 |
- einfo "Using for module creation branch ${module_branch}" |
351 |
- git checkout -q -b local-gentoo ${module_branch} || die |
352 |
- |
353 |
- # All config options to off |
354 |
- sed "s:= y:=:g" -i config.mk || die |
355 |
- |
356 |
- set_config RDU BRANCH_MAX_127 SBILIST |
357 |
- |
358 |
- use debug && set_config DEBUG |
359 |
- use fuse && set_config BR_FUSE POLL |
360 |
- use hfs && set_config BR_HFSPLUS |
361 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
362 |
- use nfs && set_config EXPORT |
363 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
364 |
- use ramfs && set_config BR_RAMFS |
365 |
- |
366 |
- if use pax_kernel; then |
367 |
- if kernel_is ge 3 11; then |
368 |
- epatch "${FILESDIR}"/pax-3.11.patch |
369 |
- else |
370 |
- epatch "${FILESDIR}"/pax-3.patch |
371 |
- fi |
372 |
- fi |
373 |
- |
374 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
375 |
-} |
376 |
- |
377 |
-src_compile() { |
378 |
- local ARCH=x86 |
379 |
- |
380 |
- emake \ |
381 |
- CC=$(tc-getCC) \ |
382 |
- LD=$(tc-getLD) \ |
383 |
- LDFLAGS="$(raw-ldflags)" \ |
384 |
- ARCH=$(tc-arch-kernel) \ |
385 |
- CONFIG_AUFS_FS=m \ |
386 |
- KDIR="${KV_OUT_DIR}" |
387 |
-} |
388 |
- |
389 |
-src_install() { |
390 |
- linux-mod_src_install |
391 |
- |
392 |
- insinto /usr/share/doc/${PF} |
393 |
- |
394 |
- use doc && doins -r Documentation |
395 |
- |
396 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
397 |
- |
398 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
399 |
- |
400 |
- readme.gentoo_create_doc |
401 |
-} |
402 |
- |
403 |
-pkg_postinst() { |
404 |
- readme.gentoo_pkg_postinst |
405 |
- linux-mod_pkg_postinst |
406 |
-} |
407 |
|
408 |
diff --git a/sys-fs/aufs3/aufs3-3_p20150504.ebuild b/sys-fs/aufs3/aufs3-3_p20150504.ebuild |
409 |
deleted file mode 100644 |
410 |
index 9930d1e..0000000 |
411 |
--- a/sys-fs/aufs3/aufs3-3_p20150504.ebuild |
412 |
+++ /dev/null |
413 |
@@ -1,172 +0,0 @@ |
414 |
-# Copyright 1999-2015 Gentoo Foundation |
415 |
-# Distributed under the terms of the GNU General Public License v2 |
416 |
-# $Id$ |
417 |
- |
418 |
-EAPI=5 |
419 |
- |
420 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
421 |
- |
422 |
-AUFS_VERSION="${PV%%_p*}" |
423 |
-# highest branch version |
424 |
-PATCH_MAX_VER=19 |
425 |
-# highest supported version |
426 |
-KERN_MAX_VER=20 |
427 |
-# lowest supported version |
428 |
-KERN_MIN_VER=14 |
429 |
- |
430 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
431 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
432 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
433 |
- |
434 |
-LICENSE="GPL-2" |
435 |
-SLOT="0" |
436 |
-KEYWORDS="~amd64 ~x86" |
437 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
438 |
- |
439 |
-DEPEND=" |
440 |
- dev-util/patchutils |
441 |
- dev-vcs/git" |
442 |
-RDEPEND=" |
443 |
- sys-fs/aufs-util |
444 |
- !sys-fs/aufs |
445 |
- !sys-fs/aufs2 |
446 |
- !sys-fs/aufs4" |
447 |
- |
448 |
-S="${WORKDIR}"/${PN}-standalone |
449 |
- |
450 |
-MODULE_NAMES="aufs(misc:${S})" |
451 |
- |
452 |
-pkg_setup() { |
453 |
- CONFIG_CHECK+=" !AUFS_FS" |
454 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
455 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
456 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
457 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
458 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
459 |
- |
460 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
461 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
462 |
- |
463 |
- get_version |
464 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
465 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
466 |
- |
467 |
- linux-mod_pkg_setup |
468 |
- |
469 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
470 |
- PATCH_BRANCH="x-rcN" |
471 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
472 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
473 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
474 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
475 |
- else |
476 |
- PATCH_BRANCH="${KV_MINOR}" |
477 |
- fi |
478 |
- |
479 |
- case ${KV_EXTRA} in |
480 |
- "") |
481 |
- elog "It seems you are using vanilla-sources with aufs3" |
482 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
483 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
484 |
- ;; |
485 |
- "-gentoo") |
486 |
- elog "It seems you are using gentoo-sources with aufs3" |
487 |
- elog "Please use sys-kernel/aufs-sources" |
488 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
489 |
- ;; |
490 |
- esac |
491 |
- |
492 |
- pushd "${T}" &> /dev/null |
493 |
- unpack ${A} |
494 |
- cd ${PN}-standalone || die |
495 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
496 |
- einfo "Using ${module_branch} as patch source" |
497 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
498 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
499 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
500 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
501 |
- if use kernel-patch; then |
502 |
- cd ${KV_DIR} |
503 |
- ewarn "Patching your kernel..." |
504 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
505 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
506 |
- ewarn "You need to compile your kernel with the applied patch" |
507 |
- ewarn "to be able to load and use the aufs kernel module" |
508 |
- else |
509 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
510 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
511 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
512 |
- die "missing kernel patch, please apply it first" |
513 |
- fi |
514 |
- fi |
515 |
- popd &> /dev/null |
516 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
517 |
-} |
518 |
- |
519 |
-set_config() { |
520 |
- for option in $*; do |
521 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
522 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
523 |
- done |
524 |
-} |
525 |
- |
526 |
-src_prepare() { |
527 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
528 |
- |
529 |
- einfo "Using for module creation branch ${module_branch}" |
530 |
- git checkout -q -b local-gentoo ${module_branch} || die |
531 |
- |
532 |
- # All config options to off |
533 |
- sed "s:= y:=:g" -i config.mk || die |
534 |
- |
535 |
- set_config RDU BRANCH_MAX_127 SBILIST |
536 |
- |
537 |
- use debug && set_config DEBUG |
538 |
- use fuse && set_config BR_FUSE POLL |
539 |
- use hfs && set_config BR_HFSPLUS |
540 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
541 |
- use nfs && set_config EXPORT |
542 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
543 |
- use ramfs && set_config BR_RAMFS |
544 |
- |
545 |
- if use pax_kernel; then |
546 |
- if kernel_is ge 3 11; then |
547 |
- epatch "${FILESDIR}"/pax-3.11.patch |
548 |
- else |
549 |
- epatch "${FILESDIR}"/pax-3.patch |
550 |
- fi |
551 |
- fi |
552 |
- |
553 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
554 |
-} |
555 |
- |
556 |
-src_compile() { |
557 |
- local ARCH=x86 |
558 |
- |
559 |
- emake \ |
560 |
- CC=$(tc-getCC) \ |
561 |
- LD=$(tc-getLD) \ |
562 |
- LDFLAGS="$(raw-ldflags)" \ |
563 |
- ARCH=$(tc-arch-kernel) \ |
564 |
- CONFIG_AUFS_FS=m \ |
565 |
- KDIR="${KV_OUT_DIR}" |
566 |
-} |
567 |
- |
568 |
-src_install() { |
569 |
- linux-mod_src_install |
570 |
- |
571 |
- insinto /usr/share/doc/${PF} |
572 |
- |
573 |
- use doc && doins -r Documentation |
574 |
- |
575 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
576 |
- |
577 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
578 |
- |
579 |
- readme.gentoo_create_doc |
580 |
-} |
581 |
- |
582 |
-pkg_postinst() { |
583 |
- readme.gentoo_pkg_postinst |
584 |
- linux-mod_pkg_postinst |
585 |
-} |
586 |
|
587 |
diff --git a/sys-fs/aufs3/aufs3-3_p20150511.ebuild b/sys-fs/aufs3/aufs3-3_p20150511.ebuild |
588 |
deleted file mode 100644 |
589 |
index 9930d1e..0000000 |
590 |
--- a/sys-fs/aufs3/aufs3-3_p20150511.ebuild |
591 |
+++ /dev/null |
592 |
@@ -1,172 +0,0 @@ |
593 |
-# Copyright 1999-2015 Gentoo Foundation |
594 |
-# Distributed under the terms of the GNU General Public License v2 |
595 |
-# $Id$ |
596 |
- |
597 |
-EAPI=5 |
598 |
- |
599 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
600 |
- |
601 |
-AUFS_VERSION="${PV%%_p*}" |
602 |
-# highest branch version |
603 |
-PATCH_MAX_VER=19 |
604 |
-# highest supported version |
605 |
-KERN_MAX_VER=20 |
606 |
-# lowest supported version |
607 |
-KERN_MIN_VER=14 |
608 |
- |
609 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
610 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
611 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
612 |
- |
613 |
-LICENSE="GPL-2" |
614 |
-SLOT="0" |
615 |
-KEYWORDS="~amd64 ~x86" |
616 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
617 |
- |
618 |
-DEPEND=" |
619 |
- dev-util/patchutils |
620 |
- dev-vcs/git" |
621 |
-RDEPEND=" |
622 |
- sys-fs/aufs-util |
623 |
- !sys-fs/aufs |
624 |
- !sys-fs/aufs2 |
625 |
- !sys-fs/aufs4" |
626 |
- |
627 |
-S="${WORKDIR}"/${PN}-standalone |
628 |
- |
629 |
-MODULE_NAMES="aufs(misc:${S})" |
630 |
- |
631 |
-pkg_setup() { |
632 |
- CONFIG_CHECK+=" !AUFS_FS" |
633 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
634 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
635 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
636 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
637 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
638 |
- |
639 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
640 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
641 |
- |
642 |
- get_version |
643 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
644 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
645 |
- |
646 |
- linux-mod_pkg_setup |
647 |
- |
648 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
649 |
- PATCH_BRANCH="x-rcN" |
650 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
651 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
652 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
653 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
654 |
- else |
655 |
- PATCH_BRANCH="${KV_MINOR}" |
656 |
- fi |
657 |
- |
658 |
- case ${KV_EXTRA} in |
659 |
- "") |
660 |
- elog "It seems you are using vanilla-sources with aufs3" |
661 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
662 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
663 |
- ;; |
664 |
- "-gentoo") |
665 |
- elog "It seems you are using gentoo-sources with aufs3" |
666 |
- elog "Please use sys-kernel/aufs-sources" |
667 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
668 |
- ;; |
669 |
- esac |
670 |
- |
671 |
- pushd "${T}" &> /dev/null |
672 |
- unpack ${A} |
673 |
- cd ${PN}-standalone || die |
674 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
675 |
- einfo "Using ${module_branch} as patch source" |
676 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
677 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
678 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
679 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
680 |
- if use kernel-patch; then |
681 |
- cd ${KV_DIR} |
682 |
- ewarn "Patching your kernel..." |
683 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
684 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
685 |
- ewarn "You need to compile your kernel with the applied patch" |
686 |
- ewarn "to be able to load and use the aufs kernel module" |
687 |
- else |
688 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
689 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
690 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
691 |
- die "missing kernel patch, please apply it first" |
692 |
- fi |
693 |
- fi |
694 |
- popd &> /dev/null |
695 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
696 |
-} |
697 |
- |
698 |
-set_config() { |
699 |
- for option in $*; do |
700 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
701 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
702 |
- done |
703 |
-} |
704 |
- |
705 |
-src_prepare() { |
706 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
707 |
- |
708 |
- einfo "Using for module creation branch ${module_branch}" |
709 |
- git checkout -q -b local-gentoo ${module_branch} || die |
710 |
- |
711 |
- # All config options to off |
712 |
- sed "s:= y:=:g" -i config.mk || die |
713 |
- |
714 |
- set_config RDU BRANCH_MAX_127 SBILIST |
715 |
- |
716 |
- use debug && set_config DEBUG |
717 |
- use fuse && set_config BR_FUSE POLL |
718 |
- use hfs && set_config BR_HFSPLUS |
719 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
720 |
- use nfs && set_config EXPORT |
721 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
722 |
- use ramfs && set_config BR_RAMFS |
723 |
- |
724 |
- if use pax_kernel; then |
725 |
- if kernel_is ge 3 11; then |
726 |
- epatch "${FILESDIR}"/pax-3.11.patch |
727 |
- else |
728 |
- epatch "${FILESDIR}"/pax-3.patch |
729 |
- fi |
730 |
- fi |
731 |
- |
732 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
733 |
-} |
734 |
- |
735 |
-src_compile() { |
736 |
- local ARCH=x86 |
737 |
- |
738 |
- emake \ |
739 |
- CC=$(tc-getCC) \ |
740 |
- LD=$(tc-getLD) \ |
741 |
- LDFLAGS="$(raw-ldflags)" \ |
742 |
- ARCH=$(tc-arch-kernel) \ |
743 |
- CONFIG_AUFS_FS=m \ |
744 |
- KDIR="${KV_OUT_DIR}" |
745 |
-} |
746 |
- |
747 |
-src_install() { |
748 |
- linux-mod_src_install |
749 |
- |
750 |
- insinto /usr/share/doc/${PF} |
751 |
- |
752 |
- use doc && doins -r Documentation |
753 |
- |
754 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
755 |
- |
756 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
757 |
- |
758 |
- readme.gentoo_create_doc |
759 |
-} |
760 |
- |
761 |
-pkg_postinst() { |
762 |
- readme.gentoo_pkg_postinst |
763 |
- linux-mod_pkg_postinst |
764 |
-} |
765 |
|
766 |
diff --git a/sys-fs/aufs3/aufs3-3_p20150518.ebuild b/sys-fs/aufs3/aufs3-3_p20150518.ebuild |
767 |
deleted file mode 100644 |
768 |
index 9930d1e..0000000 |
769 |
--- a/sys-fs/aufs3/aufs3-3_p20150518.ebuild |
770 |
+++ /dev/null |
771 |
@@ -1,172 +0,0 @@ |
772 |
-# Copyright 1999-2015 Gentoo Foundation |
773 |
-# Distributed under the terms of the GNU General Public License v2 |
774 |
-# $Id$ |
775 |
- |
776 |
-EAPI=5 |
777 |
- |
778 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
779 |
- |
780 |
-AUFS_VERSION="${PV%%_p*}" |
781 |
-# highest branch version |
782 |
-PATCH_MAX_VER=19 |
783 |
-# highest supported version |
784 |
-KERN_MAX_VER=20 |
785 |
-# lowest supported version |
786 |
-KERN_MIN_VER=14 |
787 |
- |
788 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
789 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
790 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
791 |
- |
792 |
-LICENSE="GPL-2" |
793 |
-SLOT="0" |
794 |
-KEYWORDS="~amd64 ~x86" |
795 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
796 |
- |
797 |
-DEPEND=" |
798 |
- dev-util/patchutils |
799 |
- dev-vcs/git" |
800 |
-RDEPEND=" |
801 |
- sys-fs/aufs-util |
802 |
- !sys-fs/aufs |
803 |
- !sys-fs/aufs2 |
804 |
- !sys-fs/aufs4" |
805 |
- |
806 |
-S="${WORKDIR}"/${PN}-standalone |
807 |
- |
808 |
-MODULE_NAMES="aufs(misc:${S})" |
809 |
- |
810 |
-pkg_setup() { |
811 |
- CONFIG_CHECK+=" !AUFS_FS" |
812 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
813 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
814 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
815 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
816 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
817 |
- |
818 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
819 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
820 |
- |
821 |
- get_version |
822 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
823 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
824 |
- |
825 |
- linux-mod_pkg_setup |
826 |
- |
827 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
828 |
- PATCH_BRANCH="x-rcN" |
829 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
830 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
831 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
832 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
833 |
- else |
834 |
- PATCH_BRANCH="${KV_MINOR}" |
835 |
- fi |
836 |
- |
837 |
- case ${KV_EXTRA} in |
838 |
- "") |
839 |
- elog "It seems you are using vanilla-sources with aufs3" |
840 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
841 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
842 |
- ;; |
843 |
- "-gentoo") |
844 |
- elog "It seems you are using gentoo-sources with aufs3" |
845 |
- elog "Please use sys-kernel/aufs-sources" |
846 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
847 |
- ;; |
848 |
- esac |
849 |
- |
850 |
- pushd "${T}" &> /dev/null |
851 |
- unpack ${A} |
852 |
- cd ${PN}-standalone || die |
853 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
854 |
- einfo "Using ${module_branch} as patch source" |
855 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
856 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
857 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
858 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
859 |
- if use kernel-patch; then |
860 |
- cd ${KV_DIR} |
861 |
- ewarn "Patching your kernel..." |
862 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
863 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
864 |
- ewarn "You need to compile your kernel with the applied patch" |
865 |
- ewarn "to be able to load and use the aufs kernel module" |
866 |
- else |
867 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
868 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
869 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
870 |
- die "missing kernel patch, please apply it first" |
871 |
- fi |
872 |
- fi |
873 |
- popd &> /dev/null |
874 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
875 |
-} |
876 |
- |
877 |
-set_config() { |
878 |
- for option in $*; do |
879 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
880 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
881 |
- done |
882 |
-} |
883 |
- |
884 |
-src_prepare() { |
885 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
886 |
- |
887 |
- einfo "Using for module creation branch ${module_branch}" |
888 |
- git checkout -q -b local-gentoo ${module_branch} || die |
889 |
- |
890 |
- # All config options to off |
891 |
- sed "s:= y:=:g" -i config.mk || die |
892 |
- |
893 |
- set_config RDU BRANCH_MAX_127 SBILIST |
894 |
- |
895 |
- use debug && set_config DEBUG |
896 |
- use fuse && set_config BR_FUSE POLL |
897 |
- use hfs && set_config BR_HFSPLUS |
898 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
899 |
- use nfs && set_config EXPORT |
900 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
901 |
- use ramfs && set_config BR_RAMFS |
902 |
- |
903 |
- if use pax_kernel; then |
904 |
- if kernel_is ge 3 11; then |
905 |
- epatch "${FILESDIR}"/pax-3.11.patch |
906 |
- else |
907 |
- epatch "${FILESDIR}"/pax-3.patch |
908 |
- fi |
909 |
- fi |
910 |
- |
911 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
912 |
-} |
913 |
- |
914 |
-src_compile() { |
915 |
- local ARCH=x86 |
916 |
- |
917 |
- emake \ |
918 |
- CC=$(tc-getCC) \ |
919 |
- LD=$(tc-getLD) \ |
920 |
- LDFLAGS="$(raw-ldflags)" \ |
921 |
- ARCH=$(tc-arch-kernel) \ |
922 |
- CONFIG_AUFS_FS=m \ |
923 |
- KDIR="${KV_OUT_DIR}" |
924 |
-} |
925 |
- |
926 |
-src_install() { |
927 |
- linux-mod_src_install |
928 |
- |
929 |
- insinto /usr/share/doc/${PF} |
930 |
- |
931 |
- use doc && doins -r Documentation |
932 |
- |
933 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
934 |
- |
935 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
936 |
- |
937 |
- readme.gentoo_create_doc |
938 |
-} |
939 |
- |
940 |
-pkg_postinst() { |
941 |
- readme.gentoo_pkg_postinst |
942 |
- linux-mod_pkg_postinst |
943 |
-} |
944 |
|
945 |
diff --git a/sys-fs/aufs3/aufs3-3_p20150525.ebuild b/sys-fs/aufs3/aufs3-3_p20150525.ebuild |
946 |
deleted file mode 100644 |
947 |
index 9930d1e..0000000 |
948 |
--- a/sys-fs/aufs3/aufs3-3_p20150525.ebuild |
949 |
+++ /dev/null |
950 |
@@ -1,172 +0,0 @@ |
951 |
-# Copyright 1999-2015 Gentoo Foundation |
952 |
-# Distributed under the terms of the GNU General Public License v2 |
953 |
-# $Id$ |
954 |
- |
955 |
-EAPI=5 |
956 |
- |
957 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
958 |
- |
959 |
-AUFS_VERSION="${PV%%_p*}" |
960 |
-# highest branch version |
961 |
-PATCH_MAX_VER=19 |
962 |
-# highest supported version |
963 |
-KERN_MAX_VER=20 |
964 |
-# lowest supported version |
965 |
-KERN_MIN_VER=14 |
966 |
- |
967 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
968 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
969 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
970 |
- |
971 |
-LICENSE="GPL-2" |
972 |
-SLOT="0" |
973 |
-KEYWORDS="~amd64 ~x86" |
974 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
975 |
- |
976 |
-DEPEND=" |
977 |
- dev-util/patchutils |
978 |
- dev-vcs/git" |
979 |
-RDEPEND=" |
980 |
- sys-fs/aufs-util |
981 |
- !sys-fs/aufs |
982 |
- !sys-fs/aufs2 |
983 |
- !sys-fs/aufs4" |
984 |
- |
985 |
-S="${WORKDIR}"/${PN}-standalone |
986 |
- |
987 |
-MODULE_NAMES="aufs(misc:${S})" |
988 |
- |
989 |
-pkg_setup() { |
990 |
- CONFIG_CHECK+=" !AUFS_FS" |
991 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
992 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
993 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
994 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
995 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
996 |
- |
997 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
998 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
999 |
- |
1000 |
- get_version |
1001 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
1002 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
1003 |
- |
1004 |
- linux-mod_pkg_setup |
1005 |
- |
1006 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
1007 |
- PATCH_BRANCH="x-rcN" |
1008 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
1009 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
1010 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
1011 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
1012 |
- else |
1013 |
- PATCH_BRANCH="${KV_MINOR}" |
1014 |
- fi |
1015 |
- |
1016 |
- case ${KV_EXTRA} in |
1017 |
- "") |
1018 |
- elog "It seems you are using vanilla-sources with aufs3" |
1019 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
1020 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1021 |
- ;; |
1022 |
- "-gentoo") |
1023 |
- elog "It seems you are using gentoo-sources with aufs3" |
1024 |
- elog "Please use sys-kernel/aufs-sources" |
1025 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1026 |
- ;; |
1027 |
- esac |
1028 |
- |
1029 |
- pushd "${T}" &> /dev/null |
1030 |
- unpack ${A} |
1031 |
- cd ${PN}-standalone || die |
1032 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1033 |
- einfo "Using ${module_branch} as patch source" |
1034 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
1035 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
1036 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
1037 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
1038 |
- if use kernel-patch; then |
1039 |
- cd ${KV_DIR} |
1040 |
- ewarn "Patching your kernel..." |
1041 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
1042 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1043 |
- ewarn "You need to compile your kernel with the applied patch" |
1044 |
- ewarn "to be able to load and use the aufs kernel module" |
1045 |
- else |
1046 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
1047 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
1048 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
1049 |
- die "missing kernel patch, please apply it first" |
1050 |
- fi |
1051 |
- fi |
1052 |
- popd &> /dev/null |
1053 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
1054 |
-} |
1055 |
- |
1056 |
-set_config() { |
1057 |
- for option in $*; do |
1058 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
1059 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
1060 |
- done |
1061 |
-} |
1062 |
- |
1063 |
-src_prepare() { |
1064 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1065 |
- |
1066 |
- einfo "Using for module creation branch ${module_branch}" |
1067 |
- git checkout -q -b local-gentoo ${module_branch} || die |
1068 |
- |
1069 |
- # All config options to off |
1070 |
- sed "s:= y:=:g" -i config.mk || die |
1071 |
- |
1072 |
- set_config RDU BRANCH_MAX_127 SBILIST |
1073 |
- |
1074 |
- use debug && set_config DEBUG |
1075 |
- use fuse && set_config BR_FUSE POLL |
1076 |
- use hfs && set_config BR_HFSPLUS |
1077 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
1078 |
- use nfs && set_config EXPORT |
1079 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
1080 |
- use ramfs && set_config BR_RAMFS |
1081 |
- |
1082 |
- if use pax_kernel; then |
1083 |
- if kernel_is ge 3 11; then |
1084 |
- epatch "${FILESDIR}"/pax-3.11.patch |
1085 |
- else |
1086 |
- epatch "${FILESDIR}"/pax-3.patch |
1087 |
- fi |
1088 |
- fi |
1089 |
- |
1090 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
1091 |
-} |
1092 |
- |
1093 |
-src_compile() { |
1094 |
- local ARCH=x86 |
1095 |
- |
1096 |
- emake \ |
1097 |
- CC=$(tc-getCC) \ |
1098 |
- LD=$(tc-getLD) \ |
1099 |
- LDFLAGS="$(raw-ldflags)" \ |
1100 |
- ARCH=$(tc-arch-kernel) \ |
1101 |
- CONFIG_AUFS_FS=m \ |
1102 |
- KDIR="${KV_OUT_DIR}" |
1103 |
-} |
1104 |
- |
1105 |
-src_install() { |
1106 |
- linux-mod_src_install |
1107 |
- |
1108 |
- insinto /usr/share/doc/${PF} |
1109 |
- |
1110 |
- use doc && doins -r Documentation |
1111 |
- |
1112 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1113 |
- |
1114 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
1115 |
- |
1116 |
- readme.gentoo_create_doc |
1117 |
-} |
1118 |
- |
1119 |
-pkg_postinst() { |
1120 |
- readme.gentoo_pkg_postinst |
1121 |
- linux-mod_pkg_postinst |
1122 |
-} |
1123 |
|
1124 |
diff --git a/sys-fs/aufs3/aufs3-3_p20150608.ebuild b/sys-fs/aufs3/aufs3-3_p20150608.ebuild |
1125 |
deleted file mode 100644 |
1126 |
index 9930d1e..0000000 |
1127 |
--- a/sys-fs/aufs3/aufs3-3_p20150608.ebuild |
1128 |
+++ /dev/null |
1129 |
@@ -1,172 +0,0 @@ |
1130 |
-# Copyright 1999-2015 Gentoo Foundation |
1131 |
-# Distributed under the terms of the GNU General Public License v2 |
1132 |
-# $Id$ |
1133 |
- |
1134 |
-EAPI=5 |
1135 |
- |
1136 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
1137 |
- |
1138 |
-AUFS_VERSION="${PV%%_p*}" |
1139 |
-# highest branch version |
1140 |
-PATCH_MAX_VER=19 |
1141 |
-# highest supported version |
1142 |
-KERN_MAX_VER=20 |
1143 |
-# lowest supported version |
1144 |
-KERN_MIN_VER=14 |
1145 |
- |
1146 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
1147 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
1148 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
1149 |
- |
1150 |
-LICENSE="GPL-2" |
1151 |
-SLOT="0" |
1152 |
-KEYWORDS="~amd64 ~x86" |
1153 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
1154 |
- |
1155 |
-DEPEND=" |
1156 |
- dev-util/patchutils |
1157 |
- dev-vcs/git" |
1158 |
-RDEPEND=" |
1159 |
- sys-fs/aufs-util |
1160 |
- !sys-fs/aufs |
1161 |
- !sys-fs/aufs2 |
1162 |
- !sys-fs/aufs4" |
1163 |
- |
1164 |
-S="${WORKDIR}"/${PN}-standalone |
1165 |
- |
1166 |
-MODULE_NAMES="aufs(misc:${S})" |
1167 |
- |
1168 |
-pkg_setup() { |
1169 |
- CONFIG_CHECK+=" !AUFS_FS" |
1170 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
1171 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
1172 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
1173 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
1174 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
1175 |
- |
1176 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
1177 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
1178 |
- |
1179 |
- get_version |
1180 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
1181 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
1182 |
- |
1183 |
- linux-mod_pkg_setup |
1184 |
- |
1185 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
1186 |
- PATCH_BRANCH="x-rcN" |
1187 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
1188 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
1189 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
1190 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
1191 |
- else |
1192 |
- PATCH_BRANCH="${KV_MINOR}" |
1193 |
- fi |
1194 |
- |
1195 |
- case ${KV_EXTRA} in |
1196 |
- "") |
1197 |
- elog "It seems you are using vanilla-sources with aufs3" |
1198 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
1199 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1200 |
- ;; |
1201 |
- "-gentoo") |
1202 |
- elog "It seems you are using gentoo-sources with aufs3" |
1203 |
- elog "Please use sys-kernel/aufs-sources" |
1204 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1205 |
- ;; |
1206 |
- esac |
1207 |
- |
1208 |
- pushd "${T}" &> /dev/null |
1209 |
- unpack ${A} |
1210 |
- cd ${PN}-standalone || die |
1211 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1212 |
- einfo "Using ${module_branch} as patch source" |
1213 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
1214 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
1215 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
1216 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
1217 |
- if use kernel-patch; then |
1218 |
- cd ${KV_DIR} |
1219 |
- ewarn "Patching your kernel..." |
1220 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
1221 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1222 |
- ewarn "You need to compile your kernel with the applied patch" |
1223 |
- ewarn "to be able to load and use the aufs kernel module" |
1224 |
- else |
1225 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
1226 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
1227 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
1228 |
- die "missing kernel patch, please apply it first" |
1229 |
- fi |
1230 |
- fi |
1231 |
- popd &> /dev/null |
1232 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
1233 |
-} |
1234 |
- |
1235 |
-set_config() { |
1236 |
- for option in $*; do |
1237 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
1238 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
1239 |
- done |
1240 |
-} |
1241 |
- |
1242 |
-src_prepare() { |
1243 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1244 |
- |
1245 |
- einfo "Using for module creation branch ${module_branch}" |
1246 |
- git checkout -q -b local-gentoo ${module_branch} || die |
1247 |
- |
1248 |
- # All config options to off |
1249 |
- sed "s:= y:=:g" -i config.mk || die |
1250 |
- |
1251 |
- set_config RDU BRANCH_MAX_127 SBILIST |
1252 |
- |
1253 |
- use debug && set_config DEBUG |
1254 |
- use fuse && set_config BR_FUSE POLL |
1255 |
- use hfs && set_config BR_HFSPLUS |
1256 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
1257 |
- use nfs && set_config EXPORT |
1258 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
1259 |
- use ramfs && set_config BR_RAMFS |
1260 |
- |
1261 |
- if use pax_kernel; then |
1262 |
- if kernel_is ge 3 11; then |
1263 |
- epatch "${FILESDIR}"/pax-3.11.patch |
1264 |
- else |
1265 |
- epatch "${FILESDIR}"/pax-3.patch |
1266 |
- fi |
1267 |
- fi |
1268 |
- |
1269 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
1270 |
-} |
1271 |
- |
1272 |
-src_compile() { |
1273 |
- local ARCH=x86 |
1274 |
- |
1275 |
- emake \ |
1276 |
- CC=$(tc-getCC) \ |
1277 |
- LD=$(tc-getLD) \ |
1278 |
- LDFLAGS="$(raw-ldflags)" \ |
1279 |
- ARCH=$(tc-arch-kernel) \ |
1280 |
- CONFIG_AUFS_FS=m \ |
1281 |
- KDIR="${KV_OUT_DIR}" |
1282 |
-} |
1283 |
- |
1284 |
-src_install() { |
1285 |
- linux-mod_src_install |
1286 |
- |
1287 |
- insinto /usr/share/doc/${PF} |
1288 |
- |
1289 |
- use doc && doins -r Documentation |
1290 |
- |
1291 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1292 |
- |
1293 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
1294 |
- |
1295 |
- readme.gentoo_create_doc |
1296 |
-} |
1297 |
- |
1298 |
-pkg_postinst() { |
1299 |
- readme.gentoo_pkg_postinst |
1300 |
- linux-mod_pkg_postinst |
1301 |
-} |
1302 |
|
1303 |
diff --git a/sys-fs/aufs3/aufs3-3_p20151012.ebuild b/sys-fs/aufs3/aufs3-3_p20151012.ebuild |
1304 |
deleted file mode 100644 |
1305 |
index 9930d1e..0000000 |
1306 |
--- a/sys-fs/aufs3/aufs3-3_p20151012.ebuild |
1307 |
+++ /dev/null |
1308 |
@@ -1,172 +0,0 @@ |
1309 |
-# Copyright 1999-2015 Gentoo Foundation |
1310 |
-# Distributed under the terms of the GNU General Public License v2 |
1311 |
-# $Id$ |
1312 |
- |
1313 |
-EAPI=5 |
1314 |
- |
1315 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
1316 |
- |
1317 |
-AUFS_VERSION="${PV%%_p*}" |
1318 |
-# highest branch version |
1319 |
-PATCH_MAX_VER=19 |
1320 |
-# highest supported version |
1321 |
-KERN_MAX_VER=20 |
1322 |
-# lowest supported version |
1323 |
-KERN_MIN_VER=14 |
1324 |
- |
1325 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
1326 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
1327 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
1328 |
- |
1329 |
-LICENSE="GPL-2" |
1330 |
-SLOT="0" |
1331 |
-KEYWORDS="~amd64 ~x86" |
1332 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
1333 |
- |
1334 |
-DEPEND=" |
1335 |
- dev-util/patchutils |
1336 |
- dev-vcs/git" |
1337 |
-RDEPEND=" |
1338 |
- sys-fs/aufs-util |
1339 |
- !sys-fs/aufs |
1340 |
- !sys-fs/aufs2 |
1341 |
- !sys-fs/aufs4" |
1342 |
- |
1343 |
-S="${WORKDIR}"/${PN}-standalone |
1344 |
- |
1345 |
-MODULE_NAMES="aufs(misc:${S})" |
1346 |
- |
1347 |
-pkg_setup() { |
1348 |
- CONFIG_CHECK+=" !AUFS_FS" |
1349 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
1350 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
1351 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
1352 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
1353 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
1354 |
- |
1355 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
1356 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
1357 |
- |
1358 |
- get_version |
1359 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
1360 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
1361 |
- |
1362 |
- linux-mod_pkg_setup |
1363 |
- |
1364 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
1365 |
- PATCH_BRANCH="x-rcN" |
1366 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
1367 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
1368 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
1369 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
1370 |
- else |
1371 |
- PATCH_BRANCH="${KV_MINOR}" |
1372 |
- fi |
1373 |
- |
1374 |
- case ${KV_EXTRA} in |
1375 |
- "") |
1376 |
- elog "It seems you are using vanilla-sources with aufs3" |
1377 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
1378 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1379 |
- ;; |
1380 |
- "-gentoo") |
1381 |
- elog "It seems you are using gentoo-sources with aufs3" |
1382 |
- elog "Please use sys-kernel/aufs-sources" |
1383 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1384 |
- ;; |
1385 |
- esac |
1386 |
- |
1387 |
- pushd "${T}" &> /dev/null |
1388 |
- unpack ${A} |
1389 |
- cd ${PN}-standalone || die |
1390 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1391 |
- einfo "Using ${module_branch} as patch source" |
1392 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
1393 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
1394 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
1395 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
1396 |
- if use kernel-patch; then |
1397 |
- cd ${KV_DIR} |
1398 |
- ewarn "Patching your kernel..." |
1399 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
1400 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1401 |
- ewarn "You need to compile your kernel with the applied patch" |
1402 |
- ewarn "to be able to load and use the aufs kernel module" |
1403 |
- else |
1404 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
1405 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
1406 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
1407 |
- die "missing kernel patch, please apply it first" |
1408 |
- fi |
1409 |
- fi |
1410 |
- popd &> /dev/null |
1411 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
1412 |
-} |
1413 |
- |
1414 |
-set_config() { |
1415 |
- for option in $*; do |
1416 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
1417 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
1418 |
- done |
1419 |
-} |
1420 |
- |
1421 |
-src_prepare() { |
1422 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1423 |
- |
1424 |
- einfo "Using for module creation branch ${module_branch}" |
1425 |
- git checkout -q -b local-gentoo ${module_branch} || die |
1426 |
- |
1427 |
- # All config options to off |
1428 |
- sed "s:= y:=:g" -i config.mk || die |
1429 |
- |
1430 |
- set_config RDU BRANCH_MAX_127 SBILIST |
1431 |
- |
1432 |
- use debug && set_config DEBUG |
1433 |
- use fuse && set_config BR_FUSE POLL |
1434 |
- use hfs && set_config BR_HFSPLUS |
1435 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
1436 |
- use nfs && set_config EXPORT |
1437 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
1438 |
- use ramfs && set_config BR_RAMFS |
1439 |
- |
1440 |
- if use pax_kernel; then |
1441 |
- if kernel_is ge 3 11; then |
1442 |
- epatch "${FILESDIR}"/pax-3.11.patch |
1443 |
- else |
1444 |
- epatch "${FILESDIR}"/pax-3.patch |
1445 |
- fi |
1446 |
- fi |
1447 |
- |
1448 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
1449 |
-} |
1450 |
- |
1451 |
-src_compile() { |
1452 |
- local ARCH=x86 |
1453 |
- |
1454 |
- emake \ |
1455 |
- CC=$(tc-getCC) \ |
1456 |
- LD=$(tc-getLD) \ |
1457 |
- LDFLAGS="$(raw-ldflags)" \ |
1458 |
- ARCH=$(tc-arch-kernel) \ |
1459 |
- CONFIG_AUFS_FS=m \ |
1460 |
- KDIR="${KV_OUT_DIR}" |
1461 |
-} |
1462 |
- |
1463 |
-src_install() { |
1464 |
- linux-mod_src_install |
1465 |
- |
1466 |
- insinto /usr/share/doc/${PF} |
1467 |
- |
1468 |
- use doc && doins -r Documentation |
1469 |
- |
1470 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1471 |
- |
1472 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
1473 |
- |
1474 |
- readme.gentoo_create_doc |
1475 |
-} |
1476 |
- |
1477 |
-pkg_postinst() { |
1478 |
- readme.gentoo_pkg_postinst |
1479 |
- linux-mod_pkg_postinst |
1480 |
-} |
1481 |
|
1482 |
diff --git a/sys-fs/aufs3/aufs3-3_p20151102.ebuild b/sys-fs/aufs3/aufs3-3_p20151102.ebuild |
1483 |
deleted file mode 100644 |
1484 |
index 9930d1e..0000000 |
1485 |
--- a/sys-fs/aufs3/aufs3-3_p20151102.ebuild |
1486 |
+++ /dev/null |
1487 |
@@ -1,172 +0,0 @@ |
1488 |
-# Copyright 1999-2015 Gentoo Foundation |
1489 |
-# Distributed under the terms of the GNU General Public License v2 |
1490 |
-# $Id$ |
1491 |
- |
1492 |
-EAPI=5 |
1493 |
- |
1494 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
1495 |
- |
1496 |
-AUFS_VERSION="${PV%%_p*}" |
1497 |
-# highest branch version |
1498 |
-PATCH_MAX_VER=19 |
1499 |
-# highest supported version |
1500 |
-KERN_MAX_VER=20 |
1501 |
-# lowest supported version |
1502 |
-KERN_MIN_VER=14 |
1503 |
- |
1504 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
1505 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
1506 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
1507 |
- |
1508 |
-LICENSE="GPL-2" |
1509 |
-SLOT="0" |
1510 |
-KEYWORDS="~amd64 ~x86" |
1511 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
1512 |
- |
1513 |
-DEPEND=" |
1514 |
- dev-util/patchutils |
1515 |
- dev-vcs/git" |
1516 |
-RDEPEND=" |
1517 |
- sys-fs/aufs-util |
1518 |
- !sys-fs/aufs |
1519 |
- !sys-fs/aufs2 |
1520 |
- !sys-fs/aufs4" |
1521 |
- |
1522 |
-S="${WORKDIR}"/${PN}-standalone |
1523 |
- |
1524 |
-MODULE_NAMES="aufs(misc:${S})" |
1525 |
- |
1526 |
-pkg_setup() { |
1527 |
- CONFIG_CHECK+=" !AUFS_FS" |
1528 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
1529 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
1530 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
1531 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
1532 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
1533 |
- |
1534 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
1535 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
1536 |
- |
1537 |
- get_version |
1538 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
1539 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
1540 |
- |
1541 |
- linux-mod_pkg_setup |
1542 |
- |
1543 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
1544 |
- PATCH_BRANCH="x-rcN" |
1545 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
1546 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
1547 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
1548 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
1549 |
- else |
1550 |
- PATCH_BRANCH="${KV_MINOR}" |
1551 |
- fi |
1552 |
- |
1553 |
- case ${KV_EXTRA} in |
1554 |
- "") |
1555 |
- elog "It seems you are using vanilla-sources with aufs3" |
1556 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
1557 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1558 |
- ;; |
1559 |
- "-gentoo") |
1560 |
- elog "It seems you are using gentoo-sources with aufs3" |
1561 |
- elog "Please use sys-kernel/aufs-sources" |
1562 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1563 |
- ;; |
1564 |
- esac |
1565 |
- |
1566 |
- pushd "${T}" &> /dev/null |
1567 |
- unpack ${A} |
1568 |
- cd ${PN}-standalone || die |
1569 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1570 |
- einfo "Using ${module_branch} as patch source" |
1571 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
1572 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
1573 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
1574 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
1575 |
- if use kernel-patch; then |
1576 |
- cd ${KV_DIR} |
1577 |
- ewarn "Patching your kernel..." |
1578 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
1579 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1580 |
- ewarn "You need to compile your kernel with the applied patch" |
1581 |
- ewarn "to be able to load and use the aufs kernel module" |
1582 |
- else |
1583 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
1584 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
1585 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
1586 |
- die "missing kernel patch, please apply it first" |
1587 |
- fi |
1588 |
- fi |
1589 |
- popd &> /dev/null |
1590 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
1591 |
-} |
1592 |
- |
1593 |
-set_config() { |
1594 |
- for option in $*; do |
1595 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
1596 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
1597 |
- done |
1598 |
-} |
1599 |
- |
1600 |
-src_prepare() { |
1601 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1602 |
- |
1603 |
- einfo "Using for module creation branch ${module_branch}" |
1604 |
- git checkout -q -b local-gentoo ${module_branch} || die |
1605 |
- |
1606 |
- # All config options to off |
1607 |
- sed "s:= y:=:g" -i config.mk || die |
1608 |
- |
1609 |
- set_config RDU BRANCH_MAX_127 SBILIST |
1610 |
- |
1611 |
- use debug && set_config DEBUG |
1612 |
- use fuse && set_config BR_FUSE POLL |
1613 |
- use hfs && set_config BR_HFSPLUS |
1614 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
1615 |
- use nfs && set_config EXPORT |
1616 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
1617 |
- use ramfs && set_config BR_RAMFS |
1618 |
- |
1619 |
- if use pax_kernel; then |
1620 |
- if kernel_is ge 3 11; then |
1621 |
- epatch "${FILESDIR}"/pax-3.11.patch |
1622 |
- else |
1623 |
- epatch "${FILESDIR}"/pax-3.patch |
1624 |
- fi |
1625 |
- fi |
1626 |
- |
1627 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
1628 |
-} |
1629 |
- |
1630 |
-src_compile() { |
1631 |
- local ARCH=x86 |
1632 |
- |
1633 |
- emake \ |
1634 |
- CC=$(tc-getCC) \ |
1635 |
- LD=$(tc-getLD) \ |
1636 |
- LDFLAGS="$(raw-ldflags)" \ |
1637 |
- ARCH=$(tc-arch-kernel) \ |
1638 |
- CONFIG_AUFS_FS=m \ |
1639 |
- KDIR="${KV_OUT_DIR}" |
1640 |
-} |
1641 |
- |
1642 |
-src_install() { |
1643 |
- linux-mod_src_install |
1644 |
- |
1645 |
- insinto /usr/share/doc/${PF} |
1646 |
- |
1647 |
- use doc && doins -r Documentation |
1648 |
- |
1649 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1650 |
- |
1651 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
1652 |
- |
1653 |
- readme.gentoo_create_doc |
1654 |
-} |
1655 |
- |
1656 |
-pkg_postinst() { |
1657 |
- readme.gentoo_pkg_postinst |
1658 |
- linux-mod_pkg_postinst |
1659 |
-} |
1660 |
|
1661 |
diff --git a/sys-fs/aufs3/aufs3-3_p20151109.ebuild b/sys-fs/aufs3/aufs3-3_p20151109.ebuild |
1662 |
deleted file mode 100644 |
1663 |
index 9930d1e..0000000 |
1664 |
--- a/sys-fs/aufs3/aufs3-3_p20151109.ebuild |
1665 |
+++ /dev/null |
1666 |
@@ -1,172 +0,0 @@ |
1667 |
-# Copyright 1999-2015 Gentoo Foundation |
1668 |
-# Distributed under the terms of the GNU General Public License v2 |
1669 |
-# $Id$ |
1670 |
- |
1671 |
-EAPI=5 |
1672 |
- |
1673 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
1674 |
- |
1675 |
-AUFS_VERSION="${PV%%_p*}" |
1676 |
-# highest branch version |
1677 |
-PATCH_MAX_VER=19 |
1678 |
-# highest supported version |
1679 |
-KERN_MAX_VER=20 |
1680 |
-# lowest supported version |
1681 |
-KERN_MIN_VER=14 |
1682 |
- |
1683 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
1684 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
1685 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
1686 |
- |
1687 |
-LICENSE="GPL-2" |
1688 |
-SLOT="0" |
1689 |
-KEYWORDS="~amd64 ~x86" |
1690 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
1691 |
- |
1692 |
-DEPEND=" |
1693 |
- dev-util/patchutils |
1694 |
- dev-vcs/git" |
1695 |
-RDEPEND=" |
1696 |
- sys-fs/aufs-util |
1697 |
- !sys-fs/aufs |
1698 |
- !sys-fs/aufs2 |
1699 |
- !sys-fs/aufs4" |
1700 |
- |
1701 |
-S="${WORKDIR}"/${PN}-standalone |
1702 |
- |
1703 |
-MODULE_NAMES="aufs(misc:${S})" |
1704 |
- |
1705 |
-pkg_setup() { |
1706 |
- CONFIG_CHECK+=" !AUFS_FS" |
1707 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
1708 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
1709 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
1710 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
1711 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
1712 |
- |
1713 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
1714 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
1715 |
- |
1716 |
- get_version |
1717 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
1718 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
1719 |
- |
1720 |
- linux-mod_pkg_setup |
1721 |
- |
1722 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
1723 |
- PATCH_BRANCH="x-rcN" |
1724 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
1725 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
1726 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
1727 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
1728 |
- else |
1729 |
- PATCH_BRANCH="${KV_MINOR}" |
1730 |
- fi |
1731 |
- |
1732 |
- case ${KV_EXTRA} in |
1733 |
- "") |
1734 |
- elog "It seems you are using vanilla-sources with aufs3" |
1735 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
1736 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1737 |
- ;; |
1738 |
- "-gentoo") |
1739 |
- elog "It seems you are using gentoo-sources with aufs3" |
1740 |
- elog "Please use sys-kernel/aufs-sources" |
1741 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1742 |
- ;; |
1743 |
- esac |
1744 |
- |
1745 |
- pushd "${T}" &> /dev/null |
1746 |
- unpack ${A} |
1747 |
- cd ${PN}-standalone || die |
1748 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1749 |
- einfo "Using ${module_branch} as patch source" |
1750 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
1751 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
1752 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
1753 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
1754 |
- if use kernel-patch; then |
1755 |
- cd ${KV_DIR} |
1756 |
- ewarn "Patching your kernel..." |
1757 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
1758 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1759 |
- ewarn "You need to compile your kernel with the applied patch" |
1760 |
- ewarn "to be able to load and use the aufs kernel module" |
1761 |
- else |
1762 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
1763 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
1764 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
1765 |
- die "missing kernel patch, please apply it first" |
1766 |
- fi |
1767 |
- fi |
1768 |
- popd &> /dev/null |
1769 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
1770 |
-} |
1771 |
- |
1772 |
-set_config() { |
1773 |
- for option in $*; do |
1774 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
1775 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
1776 |
- done |
1777 |
-} |
1778 |
- |
1779 |
-src_prepare() { |
1780 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1781 |
- |
1782 |
- einfo "Using for module creation branch ${module_branch}" |
1783 |
- git checkout -q -b local-gentoo ${module_branch} || die |
1784 |
- |
1785 |
- # All config options to off |
1786 |
- sed "s:= y:=:g" -i config.mk || die |
1787 |
- |
1788 |
- set_config RDU BRANCH_MAX_127 SBILIST |
1789 |
- |
1790 |
- use debug && set_config DEBUG |
1791 |
- use fuse && set_config BR_FUSE POLL |
1792 |
- use hfs && set_config BR_HFSPLUS |
1793 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
1794 |
- use nfs && set_config EXPORT |
1795 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
1796 |
- use ramfs && set_config BR_RAMFS |
1797 |
- |
1798 |
- if use pax_kernel; then |
1799 |
- if kernel_is ge 3 11; then |
1800 |
- epatch "${FILESDIR}"/pax-3.11.patch |
1801 |
- else |
1802 |
- epatch "${FILESDIR}"/pax-3.patch |
1803 |
- fi |
1804 |
- fi |
1805 |
- |
1806 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
1807 |
-} |
1808 |
- |
1809 |
-src_compile() { |
1810 |
- local ARCH=x86 |
1811 |
- |
1812 |
- emake \ |
1813 |
- CC=$(tc-getCC) \ |
1814 |
- LD=$(tc-getLD) \ |
1815 |
- LDFLAGS="$(raw-ldflags)" \ |
1816 |
- ARCH=$(tc-arch-kernel) \ |
1817 |
- CONFIG_AUFS_FS=m \ |
1818 |
- KDIR="${KV_OUT_DIR}" |
1819 |
-} |
1820 |
- |
1821 |
-src_install() { |
1822 |
- linux-mod_src_install |
1823 |
- |
1824 |
- insinto /usr/share/doc/${PF} |
1825 |
- |
1826 |
- use doc && doins -r Documentation |
1827 |
- |
1828 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1829 |
- |
1830 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
1831 |
- |
1832 |
- readme.gentoo_create_doc |
1833 |
-} |
1834 |
- |
1835 |
-pkg_postinst() { |
1836 |
- readme.gentoo_pkg_postinst |
1837 |
- linux-mod_pkg_postinst |
1838 |
-} |
1839 |
|
1840 |
diff --git a/sys-fs/aufs3/aufs3-3_p20151116.ebuild b/sys-fs/aufs3/aufs3-3_p20151116.ebuild |
1841 |
deleted file mode 100644 |
1842 |
index 9930d1e..0000000 |
1843 |
--- a/sys-fs/aufs3/aufs3-3_p20151116.ebuild |
1844 |
+++ /dev/null |
1845 |
@@ -1,172 +0,0 @@ |
1846 |
-# Copyright 1999-2015 Gentoo Foundation |
1847 |
-# Distributed under the terms of the GNU General Public License v2 |
1848 |
-# $Id$ |
1849 |
- |
1850 |
-EAPI=5 |
1851 |
- |
1852 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
1853 |
- |
1854 |
-AUFS_VERSION="${PV%%_p*}" |
1855 |
-# highest branch version |
1856 |
-PATCH_MAX_VER=19 |
1857 |
-# highest supported version |
1858 |
-KERN_MAX_VER=20 |
1859 |
-# lowest supported version |
1860 |
-KERN_MIN_VER=14 |
1861 |
- |
1862 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
1863 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
1864 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
1865 |
- |
1866 |
-LICENSE="GPL-2" |
1867 |
-SLOT="0" |
1868 |
-KEYWORDS="~amd64 ~x86" |
1869 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
1870 |
- |
1871 |
-DEPEND=" |
1872 |
- dev-util/patchutils |
1873 |
- dev-vcs/git" |
1874 |
-RDEPEND=" |
1875 |
- sys-fs/aufs-util |
1876 |
- !sys-fs/aufs |
1877 |
- !sys-fs/aufs2 |
1878 |
- !sys-fs/aufs4" |
1879 |
- |
1880 |
-S="${WORKDIR}"/${PN}-standalone |
1881 |
- |
1882 |
-MODULE_NAMES="aufs(misc:${S})" |
1883 |
- |
1884 |
-pkg_setup() { |
1885 |
- CONFIG_CHECK+=" !AUFS_FS" |
1886 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
1887 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
1888 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
1889 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
1890 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
1891 |
- |
1892 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
1893 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
1894 |
- |
1895 |
- get_version |
1896 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
1897 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
1898 |
- |
1899 |
- linux-mod_pkg_setup |
1900 |
- |
1901 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
1902 |
- PATCH_BRANCH="x-rcN" |
1903 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
1904 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
1905 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
1906 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
1907 |
- else |
1908 |
- PATCH_BRANCH="${KV_MINOR}" |
1909 |
- fi |
1910 |
- |
1911 |
- case ${KV_EXTRA} in |
1912 |
- "") |
1913 |
- elog "It seems you are using vanilla-sources with aufs3" |
1914 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
1915 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1916 |
- ;; |
1917 |
- "-gentoo") |
1918 |
- elog "It seems you are using gentoo-sources with aufs3" |
1919 |
- elog "Please use sys-kernel/aufs-sources" |
1920 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
1921 |
- ;; |
1922 |
- esac |
1923 |
- |
1924 |
- pushd "${T}" &> /dev/null |
1925 |
- unpack ${A} |
1926 |
- cd ${PN}-standalone || die |
1927 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1928 |
- einfo "Using ${module_branch} as patch source" |
1929 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
1930 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
1931 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
1932 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
1933 |
- if use kernel-patch; then |
1934 |
- cd ${KV_DIR} |
1935 |
- ewarn "Patching your kernel..." |
1936 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
1937 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
1938 |
- ewarn "You need to compile your kernel with the applied patch" |
1939 |
- ewarn "to be able to load and use the aufs kernel module" |
1940 |
- else |
1941 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
1942 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
1943 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
1944 |
- die "missing kernel patch, please apply it first" |
1945 |
- fi |
1946 |
- fi |
1947 |
- popd &> /dev/null |
1948 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
1949 |
-} |
1950 |
- |
1951 |
-set_config() { |
1952 |
- for option in $*; do |
1953 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
1954 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
1955 |
- done |
1956 |
-} |
1957 |
- |
1958 |
-src_prepare() { |
1959 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
1960 |
- |
1961 |
- einfo "Using for module creation branch ${module_branch}" |
1962 |
- git checkout -q -b local-gentoo ${module_branch} || die |
1963 |
- |
1964 |
- # All config options to off |
1965 |
- sed "s:= y:=:g" -i config.mk || die |
1966 |
- |
1967 |
- set_config RDU BRANCH_MAX_127 SBILIST |
1968 |
- |
1969 |
- use debug && set_config DEBUG |
1970 |
- use fuse && set_config BR_FUSE POLL |
1971 |
- use hfs && set_config BR_HFSPLUS |
1972 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
1973 |
- use nfs && set_config EXPORT |
1974 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
1975 |
- use ramfs && set_config BR_RAMFS |
1976 |
- |
1977 |
- if use pax_kernel; then |
1978 |
- if kernel_is ge 3 11; then |
1979 |
- epatch "${FILESDIR}"/pax-3.11.patch |
1980 |
- else |
1981 |
- epatch "${FILESDIR}"/pax-3.patch |
1982 |
- fi |
1983 |
- fi |
1984 |
- |
1985 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
1986 |
-} |
1987 |
- |
1988 |
-src_compile() { |
1989 |
- local ARCH=x86 |
1990 |
- |
1991 |
- emake \ |
1992 |
- CC=$(tc-getCC) \ |
1993 |
- LD=$(tc-getLD) \ |
1994 |
- LDFLAGS="$(raw-ldflags)" \ |
1995 |
- ARCH=$(tc-arch-kernel) \ |
1996 |
- CONFIG_AUFS_FS=m \ |
1997 |
- KDIR="${KV_OUT_DIR}" |
1998 |
-} |
1999 |
- |
2000 |
-src_install() { |
2001 |
- linux-mod_src_install |
2002 |
- |
2003 |
- insinto /usr/share/doc/${PF} |
2004 |
- |
2005 |
- use doc && doins -r Documentation |
2006 |
- |
2007 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
2008 |
- |
2009 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
2010 |
- |
2011 |
- readme.gentoo_create_doc |
2012 |
-} |
2013 |
- |
2014 |
-pkg_postinst() { |
2015 |
- readme.gentoo_pkg_postinst |
2016 |
- linux-mod_pkg_postinst |
2017 |
-} |
2018 |
|
2019 |
diff --git a/sys-fs/aufs3/aufs3-3_p20151221.ebuild b/sys-fs/aufs3/aufs3-3_p20151221.ebuild |
2020 |
deleted file mode 100644 |
2021 |
index 9930d1e..0000000 |
2022 |
--- a/sys-fs/aufs3/aufs3-3_p20151221.ebuild |
2023 |
+++ /dev/null |
2024 |
@@ -1,172 +0,0 @@ |
2025 |
-# Copyright 1999-2015 Gentoo Foundation |
2026 |
-# Distributed under the terms of the GNU General Public License v2 |
2027 |
-# $Id$ |
2028 |
- |
2029 |
-EAPI=5 |
2030 |
- |
2031 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
2032 |
- |
2033 |
-AUFS_VERSION="${PV%%_p*}" |
2034 |
-# highest branch version |
2035 |
-PATCH_MAX_VER=19 |
2036 |
-# highest supported version |
2037 |
-KERN_MAX_VER=20 |
2038 |
-# lowest supported version |
2039 |
-KERN_MIN_VER=14 |
2040 |
- |
2041 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
2042 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
2043 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
2044 |
- |
2045 |
-LICENSE="GPL-2" |
2046 |
-SLOT="0" |
2047 |
-KEYWORDS="~amd64 ~x86" |
2048 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
2049 |
- |
2050 |
-DEPEND=" |
2051 |
- dev-util/patchutils |
2052 |
- dev-vcs/git" |
2053 |
-RDEPEND=" |
2054 |
- sys-fs/aufs-util |
2055 |
- !sys-fs/aufs |
2056 |
- !sys-fs/aufs2 |
2057 |
- !sys-fs/aufs4" |
2058 |
- |
2059 |
-S="${WORKDIR}"/${PN}-standalone |
2060 |
- |
2061 |
-MODULE_NAMES="aufs(misc:${S})" |
2062 |
- |
2063 |
-pkg_setup() { |
2064 |
- CONFIG_CHECK+=" !AUFS_FS" |
2065 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
2066 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
2067 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
2068 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
2069 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
2070 |
- |
2071 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
2072 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
2073 |
- |
2074 |
- get_version |
2075 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
2076 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
2077 |
- |
2078 |
- linux-mod_pkg_setup |
2079 |
- |
2080 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
2081 |
- PATCH_BRANCH="x-rcN" |
2082 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
2083 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
2084 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
2085 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
2086 |
- else |
2087 |
- PATCH_BRANCH="${KV_MINOR}" |
2088 |
- fi |
2089 |
- |
2090 |
- case ${KV_EXTRA} in |
2091 |
- "") |
2092 |
- elog "It seems you are using vanilla-sources with aufs3" |
2093 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
2094 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
2095 |
- ;; |
2096 |
- "-gentoo") |
2097 |
- elog "It seems you are using gentoo-sources with aufs3" |
2098 |
- elog "Please use sys-kernel/aufs-sources" |
2099 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
2100 |
- ;; |
2101 |
- esac |
2102 |
- |
2103 |
- pushd "${T}" &> /dev/null |
2104 |
- unpack ${A} |
2105 |
- cd ${PN}-standalone || die |
2106 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
2107 |
- einfo "Using ${module_branch} as patch source" |
2108 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
2109 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
2110 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
2111 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
2112 |
- if use kernel-patch; then |
2113 |
- cd ${KV_DIR} |
2114 |
- ewarn "Patching your kernel..." |
2115 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
2116 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
2117 |
- ewarn "You need to compile your kernel with the applied patch" |
2118 |
- ewarn "to be able to load and use the aufs kernel module" |
2119 |
- else |
2120 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
2121 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
2122 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
2123 |
- die "missing kernel patch, please apply it first" |
2124 |
- fi |
2125 |
- fi |
2126 |
- popd &> /dev/null |
2127 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
2128 |
-} |
2129 |
- |
2130 |
-set_config() { |
2131 |
- for option in $*; do |
2132 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
2133 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
2134 |
- done |
2135 |
-} |
2136 |
- |
2137 |
-src_prepare() { |
2138 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
2139 |
- |
2140 |
- einfo "Using for module creation branch ${module_branch}" |
2141 |
- git checkout -q -b local-gentoo ${module_branch} || die |
2142 |
- |
2143 |
- # All config options to off |
2144 |
- sed "s:= y:=:g" -i config.mk || die |
2145 |
- |
2146 |
- set_config RDU BRANCH_MAX_127 SBILIST |
2147 |
- |
2148 |
- use debug && set_config DEBUG |
2149 |
- use fuse && set_config BR_FUSE POLL |
2150 |
- use hfs && set_config BR_HFSPLUS |
2151 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
2152 |
- use nfs && set_config EXPORT |
2153 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
2154 |
- use ramfs && set_config BR_RAMFS |
2155 |
- |
2156 |
- if use pax_kernel; then |
2157 |
- if kernel_is ge 3 11; then |
2158 |
- epatch "${FILESDIR}"/pax-3.11.patch |
2159 |
- else |
2160 |
- epatch "${FILESDIR}"/pax-3.patch |
2161 |
- fi |
2162 |
- fi |
2163 |
- |
2164 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
2165 |
-} |
2166 |
- |
2167 |
-src_compile() { |
2168 |
- local ARCH=x86 |
2169 |
- |
2170 |
- emake \ |
2171 |
- CC=$(tc-getCC) \ |
2172 |
- LD=$(tc-getLD) \ |
2173 |
- LDFLAGS="$(raw-ldflags)" \ |
2174 |
- ARCH=$(tc-arch-kernel) \ |
2175 |
- CONFIG_AUFS_FS=m \ |
2176 |
- KDIR="${KV_OUT_DIR}" |
2177 |
-} |
2178 |
- |
2179 |
-src_install() { |
2180 |
- linux-mod_src_install |
2181 |
- |
2182 |
- insinto /usr/share/doc/${PF} |
2183 |
- |
2184 |
- use doc && doins -r Documentation |
2185 |
- |
2186 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
2187 |
- |
2188 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
2189 |
- |
2190 |
- readme.gentoo_create_doc |
2191 |
-} |
2192 |
- |
2193 |
-pkg_postinst() { |
2194 |
- readme.gentoo_pkg_postinst |
2195 |
- linux-mod_pkg_postinst |
2196 |
-} |
2197 |
|
2198 |
diff --git a/sys-fs/aufs3/aufs3-3_p20160118.ebuild b/sys-fs/aufs3/aufs3-3_p20160118.ebuild |
2199 |
deleted file mode 100644 |
2200 |
index e98fe7f..0000000 |
2201 |
--- a/sys-fs/aufs3/aufs3-3_p20160118.ebuild |
2202 |
+++ /dev/null |
2203 |
@@ -1,172 +0,0 @@ |
2204 |
-# Copyright 1999-2016 Gentoo Foundation |
2205 |
-# Distributed under the terms of the GNU General Public License v2 |
2206 |
-# $Id$ |
2207 |
- |
2208 |
-EAPI=5 |
2209 |
- |
2210 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
2211 |
- |
2212 |
-AUFS_VERSION="${PV%%_p*}" |
2213 |
-# highest branch version |
2214 |
-PATCH_MAX_VER=19 |
2215 |
-# highest supported version |
2216 |
-KERN_MAX_VER=20 |
2217 |
-# lowest supported version |
2218 |
-KERN_MIN_VER=14 |
2219 |
- |
2220 |
-DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
2221 |
-HOMEPAGE="http://aufs.sourceforge.net/" |
2222 |
-SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs3-standalone-${PV}.tar.xz" |
2223 |
- |
2224 |
-LICENSE="GPL-2" |
2225 |
-SLOT="0" |
2226 |
-KEYWORDS="~amd64 ~x86" |
2227 |
-IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
2228 |
- |
2229 |
-DEPEND=" |
2230 |
- dev-util/patchutils |
2231 |
- dev-vcs/git" |
2232 |
-RDEPEND=" |
2233 |
- sys-fs/aufs-util |
2234 |
- !sys-fs/aufs |
2235 |
- !sys-fs/aufs2 |
2236 |
- !sys-fs/aufs4" |
2237 |
- |
2238 |
-S="${WORKDIR}"/${PN}-standalone |
2239 |
- |
2240 |
-MODULE_NAMES="aufs(misc:${S})" |
2241 |
- |
2242 |
-pkg_setup() { |
2243 |
- CONFIG_CHECK+=" !AUFS_FS" |
2244 |
- use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
2245 |
- use nfs && CONFIG_CHECK+=" EXPORTFS" |
2246 |
- use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
2247 |
- use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
2248 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
2249 |
- |
2250 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
2251 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
2252 |
- |
2253 |
- get_version |
2254 |
- kernel_is lt 3 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
2255 |
- kernel_is gt 3 ${KERN_MAX_VER} 99 && die "kernel too new" |
2256 |
- |
2257 |
- linux-mod_pkg_setup |
2258 |
- |
2259 |
- if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
2260 |
- PATCH_BRANCH="x-rcN" |
2261 |
- elif [[ "${KV_MINOR}" == "14" ]] && [[ "${KV_PATCH}" -ge "21" ]]; then |
2262 |
- PATCH_BRANCH="${KV_MINOR}".21+ |
2263 |
- elif [[ "${KV_MINOR}" == "18" ]] && [[ "${KV_PATCH}" -ge "1" ]]; then |
2264 |
- PATCH_BRANCH="${KV_MINOR}".1+ |
2265 |
- else |
2266 |
- PATCH_BRANCH="${KV_MINOR}" |
2267 |
- fi |
2268 |
- |
2269 |
- case ${KV_EXTRA} in |
2270 |
- "") |
2271 |
- elog "It seems you are using vanilla-sources with aufs3" |
2272 |
- elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
2273 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
2274 |
- ;; |
2275 |
- "-gentoo") |
2276 |
- elog "It seems you are using gentoo-sources with aufs3" |
2277 |
- elog "Please use sys-kernel/aufs-sources" |
2278 |
- elog "This will save you the nasty reemerge of sys-fs/aufs3 on every kernel upgrade" |
2279 |
- ;; |
2280 |
- esac |
2281 |
- |
2282 |
- pushd "${T}" &> /dev/null |
2283 |
- unpack ${A} |
2284 |
- cd ${PN}-standalone || die |
2285 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
2286 |
- einfo "Using ${module_branch} as patch source" |
2287 |
- git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
2288 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
2289 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
2290 |
- if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
2291 |
- if use kernel-patch; then |
2292 |
- cd ${KV_DIR} |
2293 |
- ewarn "Patching your kernel..." |
2294 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
2295 |
- epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
2296 |
- ewarn "You need to compile your kernel with the applied patch" |
2297 |
- ewarn "to be able to load and use the aufs kernel module" |
2298 |
- else |
2299 |
- eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
2300 |
- eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
2301 |
- eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
2302 |
- die "missing kernel patch, please apply it first" |
2303 |
- fi |
2304 |
- fi |
2305 |
- popd &> /dev/null |
2306 |
- export PKG_SETUP_HAS_BEEN_RAN=1 |
2307 |
-} |
2308 |
- |
2309 |
-set_config() { |
2310 |
- for option in $*; do |
2311 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
2312 |
- sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
2313 |
- done |
2314 |
-} |
2315 |
- |
2316 |
-src_prepare() { |
2317 |
- local module_branch=origin/${PN}.${PATCH_BRANCH} |
2318 |
- |
2319 |
- einfo "Using for module creation branch ${module_branch}" |
2320 |
- git checkout -q -b local-gentoo ${module_branch} || die |
2321 |
- |
2322 |
- # All config options to off |
2323 |
- sed "s:= y:=:g" -i config.mk || die |
2324 |
- |
2325 |
- set_config RDU BRANCH_MAX_127 SBILIST |
2326 |
- |
2327 |
- use debug && set_config DEBUG |
2328 |
- use fuse && set_config BR_FUSE POLL |
2329 |
- use hfs && set_config BR_HFSPLUS |
2330 |
- use inotify && set_config HNOTIFY HFSNOTIFY |
2331 |
- use nfs && set_config EXPORT |
2332 |
- use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
2333 |
- use ramfs && set_config BR_RAMFS |
2334 |
- |
2335 |
- if use pax_kernel; then |
2336 |
- if kernel_is ge 3 11; then |
2337 |
- epatch "${FILESDIR}"/pax-3.11.patch |
2338 |
- else |
2339 |
- epatch "${FILESDIR}"/pax-3.patch |
2340 |
- fi |
2341 |
- fi |
2342 |
- |
2343 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
2344 |
-} |
2345 |
- |
2346 |
-src_compile() { |
2347 |
- local ARCH=x86 |
2348 |
- |
2349 |
- emake \ |
2350 |
- CC=$(tc-getCC) \ |
2351 |
- LD=$(tc-getLD) \ |
2352 |
- LDFLAGS="$(raw-ldflags)" \ |
2353 |
- ARCH=$(tc-arch-kernel) \ |
2354 |
- CONFIG_AUFS_FS=m \ |
2355 |
- KDIR="${KV_OUT_DIR}" |
2356 |
-} |
2357 |
- |
2358 |
-src_install() { |
2359 |
- linux-mod_src_install |
2360 |
- |
2361 |
- insinto /usr/share/doc/${PF} |
2362 |
- |
2363 |
- use doc && doins -r Documentation |
2364 |
- |
2365 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
2366 |
- |
2367 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs3-loopback,vfs-ino,tmpfs-idr}.patch |
2368 |
- |
2369 |
- readme.gentoo_create_doc |
2370 |
-} |
2371 |
- |
2372 |
-pkg_postinst() { |
2373 |
- readme.gentoo_pkg_postinst |
2374 |
- linux-mod_pkg_postinst |
2375 |
-} |