1 |
commit: 7c70a7c78b4cdf958e038bb170e46adc5b308aef |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 1 07:01:08 2018 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Apr 1 20:51:32 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c70a7c7 |
7 |
|
8 |
sys-fs/aufs4: Bump to latest release |
9 |
|
10 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.27, Repoman-2.3.9 |
12 |
|
13 |
sys-fs/aufs4/Manifest | 1 + |
14 |
sys-fs/aufs4/aufs4-0_pre20180312.ebuild | 184 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 185 insertions(+) |
16 |
|
17 |
diff --git a/sys-fs/aufs4/Manifest b/sys-fs/aufs4/Manifest |
18 |
index 305539c56be..d3fb157ba6f 100644 |
19 |
--- a/sys-fs/aufs4/Manifest |
20 |
+++ b/sys-fs/aufs4/Manifest |
21 |
@@ -11,3 +11,4 @@ DIST aufs4-standalone-0_pre20170612.tar.xz 2017248 BLAKE2B 40fa98545d6ddd3685f9c |
22 |
DIST aufs4-standalone-0_pre20171002.tar.xz 2265048 BLAKE2B ae68812c547411bebd7e169e3bfa840536386a3cfdd876473f167372ec716c7df620329438c9024b185bb302d2053df5ded7026342a166d68187dc756a6e9560 SHA512 ee9d0e48fba6671fe4c5d3f533956c3eb0c6caa45fc4074be94f4427d84a5446cd4dc9f3ebf27fb56e697b24172ddd14a61c246f0414ebce8e372c204dfbb150 |
23 |
DIST aufs4-standalone-0_pre20171106.tar.xz 2351120 BLAKE2B e29209475da3c39188eb9ec88bf91cd50d7d882fdd234e32e28741b500aa85427e98a23528a297f35562f81dc4f8e4932783917644b2eda0b4f2744ac15b700e SHA512 9a8c6f59b737133e423613365bb46fd197f05a93d459b6206a70807ffaa6763b7095b2f4780deb6e7882a2b464aaa185cf1760febbf3a674e8d0cf71c7ba72ee |
24 |
DIST aufs4-standalone-0_pre20180219.tar.xz 2496676 BLAKE2B 61015534f74f9f2398b79643d9528c59f0069fefae3bf9382eea1f31db69fe22195ce8a929e2c25285b41fdc070d7f255effb6d408d3997d61dd83beda544452 SHA512 b667be0c2c2b9bcef66f81839364fa56871c2577b9b2389f0464b669a1404fd68928522bb5b3eb4c114b21b6e86201fb50eeaf167d194de187f305ebc0b75cb7 |
25 |
+DIST aufs4-standalone-0_pre20180312.tar.xz 2521856 BLAKE2B e226a6ba530fe9423d1671cee59501445cbc70419801420f6c5eb8c5fd3af3cce9301d9d32042ea8c4c704a847b4f46bd006c397871f7c9ee5dcb4e92c3ce7e9 SHA512 60e1dfb703706f21928645c51d1a4138187e7ea44d86ca5f2ee8a991a910974bc514340237a7c51397d658ca56e2cf32cfcf374eb8e060073266042e5ee42cee |
26 |
|
27 |
diff --git a/sys-fs/aufs4/aufs4-0_pre20180312.ebuild b/sys-fs/aufs4/aufs4-0_pre20180312.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..1917bdd71b8 |
30 |
--- /dev/null |
31 |
+++ b/sys-fs/aufs4/aufs4-0_pre20180312.ebuild |
32 |
@@ -0,0 +1,184 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo-r1 toolchain-funcs |
39 |
+ |
40 |
+AUFS_VERSION="${PV%%_p*}" |
41 |
+# highest branch version |
42 |
+PATCH_MAX_VER=13 |
43 |
+# highest supported version |
44 |
+KERN_MAX_VER=16 |
45 |
+# lowest supported version |
46 |
+KERN_MIN_VER=0 |
47 |
+ |
48 |
+DESCRIPTION="An entirely re-designed and re-implemented Unionfs" |
49 |
+HOMEPAGE="http://aufs.sourceforge.net/" |
50 |
+SRC_URI="https://dev.gentoo.org/~jlec/distfiles/aufs4-standalone-${PV}.tar.xz" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+IUSE="debug doc fuse hfs inotify kernel-patch nfs pax_kernel ramfs" |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ dev-util/patchutils |
59 |
+ dev-vcs/git" |
60 |
+RDEPEND=" |
61 |
+ sys-fs/aufs-util |
62 |
+ !sys-fs/aufs |
63 |
+ !sys-fs/aufs2 |
64 |
+ !sys-fs/aufs3" |
65 |
+ |
66 |
+S="${WORKDIR}"/${PN}-standalone |
67 |
+ |
68 |
+MODULE_NAMES="aufs(misc:${S})" |
69 |
+ |
70 |
+pkg_setup() { |
71 |
+ CONFIG_CHECK+=" !AUFS_FS" |
72 |
+ use inotify && CONFIG_CHECK+=" ~FSNOTIFY" |
73 |
+ use nfs && CONFIG_CHECK+=" EXPORTFS" |
74 |
+ use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
75 |
+ use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
76 |
+ use pax_kernel && CONFIG_CHECK+=" PAX" \ |
77 |
+ && ERROR_PAX="Please use hardened sources" |
78 |
+ |
79 |
+ # this is needed so merging a binpkg ${PN} is |
80 |
+ # possible w/out a kernel unpacked on the system |
81 |
+ [[ -n "$PKG_SETUP_HAS_BEEN_RAN" ]] && return |
82 |
+ |
83 |
+ get_version |
84 |
+ kernel_is lt 4 ${KERN_MIN_VER} 0 && \ |
85 |
+ die "the kernel version isn't supported by upstream anymore. Please upgrade." |
86 |
+ kernel_is gt 4 ${KERN_MAX_VER} 99 && die "kernel too new" |
87 |
+ |
88 |
+ linux-mod_pkg_setup |
89 |
+ |
90 |
+ if [[ "${KV_MINOR}" -gt "${PATCH_MAX_VER}" ]]; then |
91 |
+ PATCH_BRANCH="x-rcN" |
92 |
+ elif [[ "${KV_MINOR}" == "1" ]] && [[ "${KV_PATCH}" -ge "13" ]]; then |
93 |
+ PATCH_BRANCH="${KV_MINOR}".13+ |
94 |
+ else |
95 |
+ PATCH_BRANCH="${KV_MINOR}" |
96 |
+ fi |
97 |
+ |
98 |
+ case ${KV_EXTRA} in |
99 |
+ "") |
100 |
+ elog "It seems you are using vanilla-sources with aufs4" |
101 |
+ elog "Please use sys-kernel/aufs-sources with USE=vanilla" |
102 |
+ elog "This will save you the nasty reemerge of sys-fs/aufs4 on every kernel upgrade" |
103 |
+ ;; |
104 |
+ "-gentoo") |
105 |
+ elog "It seems you are using gentoo-sources with aufs4" |
106 |
+ elog "Please use sys-kernel/aufs-sources" |
107 |
+ elog "This will save you the nasty reemerge of sys-fs/aufs4 on every kernel upgrade" |
108 |
+ ;; |
109 |
+ esac |
110 |
+ |
111 |
+ pushd "${T}" &> /dev/null || die |
112 |
+ unpack ${A} |
113 |
+ |
114 |
+ cd ${PN}-standalone || die |
115 |
+ |
116 |
+ local module_branch=origin/${PN}.${PATCH_BRANCH} |
117 |
+ |
118 |
+ einfo "Using ${module_branch} as patch source" |
119 |
+ git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
120 |
+ |
121 |
+ combinediff \ |
122 |
+ ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
123 |
+ combinediff \ |
124 |
+ "${T}"/combined-1.patch ${PN}-mmap.patch \ |
125 |
+ > ${PN}-standalone-base-mmap-combined.patch |
126 |
+ |
127 |
+ if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
128 |
+ if use kernel-patch; then |
129 |
+ cd ${KV_DIR} |
130 |
+ ewarn "Patching your kernel..." |
131 |
+ patch \ |
132 |
+ --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} \ |
133 |
+ < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch \ |
134 |
+ > /dev/null |
135 |
+ epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
136 |
+ ewarn "You need to compile your kernel with the applied patch" |
137 |
+ ewarn "to be able to load and use the aufs kernel module" |
138 |
+ else |
139 |
+ eerror "You need to apply a patch to your kernel to compile and run the ${PN} module" |
140 |
+ eerror "Either enable the kernel-patch useflag to do it with this ebuild" |
141 |
+ eerror "or apply "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch by hand" |
142 |
+ die "missing kernel patch, please apply it first" |
143 |
+ fi |
144 |
+ fi |
145 |
+ |
146 |
+ popd &> /dev/null |
147 |
+ export PKG_SETUP_HAS_BEEN_RAN=1 |
148 |
+} |
149 |
+ |
150 |
+set_config() { |
151 |
+ for option in $*; do |
152 |
+ grep -q "^CONFIG_AUFS_${option} =" config.mk || \ |
153 |
+ die "${option} is not a valid config option" |
154 |
+ sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
155 |
+ done |
156 |
+} |
157 |
+ |
158 |
+src_prepare() { |
159 |
+ local module_branch=origin/${PN}.${PATCH_BRANCH} |
160 |
+ |
161 |
+ einfo "Using for module creation branch ${module_branch}" |
162 |
+ git checkout -q -b local-gentoo ${module_branch} || die |
163 |
+ |
164 |
+ # All config options to off |
165 |
+ sed "s:= y:=:g" -i config.mk || die |
166 |
+ |
167 |
+ set_config RDU BRANCH_MAX_127 SBILIST |
168 |
+ |
169 |
+ use debug && set_config DEBUG |
170 |
+ use fuse && set_config BR_FUSE POLL |
171 |
+ use hfs && set_config BR_HFSPLUS |
172 |
+ use inotify && set_config HNOTIFY HFSNOTIFY |
173 |
+ use nfs && set_config EXPORT |
174 |
+ use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
175 |
+ use ramfs && set_config BR_RAMFS |
176 |
+ |
177 |
+ use pax_kernel && epatch "${FILESDIR}"/pax-4.patch |
178 |
+ |
179 |
+ sed \ |
180 |
+ -e "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" \ |
181 |
+ -i Makefile || die |
182 |
+ |
183 |
+ eapply_user |
184 |
+} |
185 |
+ |
186 |
+src_compile() { |
187 |
+ local ARCH=x86 |
188 |
+ |
189 |
+ emake \ |
190 |
+ CC=$(tc-getCC) \ |
191 |
+ LD=$(tc-getLD) \ |
192 |
+ LDFLAGS="$(raw-ldflags)" \ |
193 |
+ ARCH=$(tc-arch-kernel) \ |
194 |
+ CONFIG_AUFS_FS=m \ |
195 |
+ KDIR="${KV_OUT_DIR}" |
196 |
+} |
197 |
+ |
198 |
+src_install() { |
199 |
+ linux-mod_src_install |
200 |
+ |
201 |
+ use doc && dodoc -r Documentation |
202 |
+ |
203 |
+ use kernel-patch || \ |
204 |
+ doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
205 |
+ |
206 |
+ dodoc \ |
207 |
+ Documentation/filesystems/aufs/README \ |
208 |
+ "${T}"/${PN}-standalone/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch |
209 |
+ |
210 |
+ readme.gentoo_create_doc |
211 |
+} |
212 |
+ |
213 |
+pkg_postinst() { |
214 |
+ readme.gentoo_print_elog |
215 |
+ linux-mod_pkg_postinst |
216 |
+} |