1 |
commit: 37b6efdafc262d8f17f97fc4f3c96fe08fff0326 |
2 |
Author: Justin Lecher <jlec <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 19 08:08:51 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=37b6efda |
7 |
|
8 |
sys-fs/aufs4: Bump to latest aufs release |
9 |
|
10 |
* Bump to EAPI=6 |
11 |
* Bump to nextgen readme.gentoo eclass |
12 |
* Try to break lines at 80 chars |
13 |
|
14 |
Package-Manager: portage-2.2.27 |
15 |
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org> |
16 |
|
17 |
sys-fs/aufs4/Manifest | 2 +- |
18 |
...e20160215.ebuild => aufs4-0_pre20160219.ebuild} | 63 ++++++++++++++-------- |
19 |
2 files changed, 41 insertions(+), 24 deletions(-) |
20 |
|
21 |
diff --git a/sys-fs/aufs4/Manifest b/sys-fs/aufs4/Manifest |
22 |
index 9b1c5a3..e8b933e 100644 |
23 |
--- a/sys-fs/aufs4/Manifest |
24 |
+++ b/sys-fs/aufs4/Manifest |
25 |
@@ -1 +1 @@ |
26 |
-DIST aufs4-standalone-0_pre20160215.tar.xz 931276 SHA256 2303db1f8116762baf0aeadb8191c0bf9ed00380a5855b2297c92716a50fc2aa SHA512 e07dee042700edb6c4aafc995910181b59067e5a62d8bdcbb8992efdd1f5afcb0d38322e85a0efe57dfee465c0e74bb597928fb3bbf5db86c4d2007a9fd88c46 WHIRLPOOL ef611cbf47204b9691bd432a83898e5543754dcdf5597a18fb0327f3b269f3c7cfcfc2e0a46bc0ec0952eee114508d81decfa59c03a683a74292d123c24bea3d |
27 |
+DIST aufs4-standalone-0_pre20160219.tar.xz 1049884 SHA256 22d0f723ff52190670da0e3dc4a3f0b81ba0b3b6f287484cf81165c6cd4b2040 SHA512 95999199ac0d430a6ab2dbda75f34d9640179865d5be3b1db119c1e613f5bd167193dd7cf662ebcea9d81ad8008d9dbd8dd835d5a7a297456f8587364e7f16b1 WHIRLPOOL a8b7a9c80c7715d0f75c9ee15e78bfbef2db11d4d9fea6ac1e8163f86b735c57b7e6a5612ac269fbcc2c483537a06c1e7704b9c3db2c7dff09b08d228ba607a1 |
28 |
|
29 |
diff --git a/sys-fs/aufs4/aufs4-0_pre20160215.ebuild b/sys-fs/aufs4/aufs4-0_pre20160219.ebuild |
30 |
similarity index 73% |
31 |
rename from sys-fs/aufs4/aufs4-0_pre20160215.ebuild |
32 |
rename to sys-fs/aufs4/aufs4-0_pre20160219.ebuild |
33 |
index 08283b5..ada0147 100644 |
34 |
--- a/sys-fs/aufs4/aufs4-0_pre20160215.ebuild |
35 |
+++ b/sys-fs/aufs4/aufs4-0_pre20160219.ebuild |
36 |
@@ -2,15 +2,15 @@ |
37 |
# Distributed under the terms of the GNU General Public License v2 |
38 |
# $Id$ |
39 |
|
40 |
-EAPI=5 |
41 |
+EAPI=6 |
42 |
|
43 |
-inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo toolchain-funcs |
44 |
+inherit eutils flag-o-matic linux-info linux-mod multilib readme.gentoo-r1 toolchain-funcs |
45 |
|
46 |
AUFS_VERSION="${PV%%_p*}" |
47 |
# highest branch version |
48 |
-PATCH_MAX_VER=3 |
49 |
+PATCH_MAX_VER=4 |
50 |
# highest supported version |
51 |
-KERN_MAX_VER=4 |
52 |
+KERN_MAX_VER=5 |
53 |
# lowest supported version |
54 |
KERN_MIN_VER=0 |
55 |
|
56 |
@@ -42,13 +42,16 @@ pkg_setup() { |
57 |
use nfs && CONFIG_CHECK+=" EXPORTFS" |
58 |
use fuse && CONFIG_CHECK+=" ~FUSE_FS" |
59 |
use hfs && CONFIG_CHECK+=" ~HFSPLUS_FS" |
60 |
- use pax_kernel && CONFIG_CHECK+=" PAX" && ERROR_PAX="Please use hardened sources" |
61 |
+ use pax_kernel && CONFIG_CHECK+=" PAX" \ |
62 |
+ && ERROR_PAX="Please use hardened sources" |
63 |
|
64 |
- # this is needed so merging a binpkg ${PN} is possible w/out a kernel unpacked on the system |
65 |
- [ -n "$PKG_SETUP_HAS_BEEN_RAN" ] && return |
66 |
+ # this is needed so merging a binpkg ${PN} is |
67 |
+ # possible w/out a kernel unpacked on the system |
68 |
+ [[ -n "$PKG_SETUP_HAS_BEEN_RAN" ]] && return |
69 |
|
70 |
get_version |
71 |
- kernel_is lt 4 ${KERN_MIN_VER} 0 && die "the kernel version isn't supported by upstream anymore. Please upgrade." |
72 |
+ kernel_is lt 4 ${KERN_MIN_VER} 0 && \ |
73 |
+ die "the kernel version isn't supported by upstream anymore. Please upgrade." |
74 |
kernel_is gt 4 ${KERN_MAX_VER} 99 && die "kernel too new" |
75 |
|
76 |
linux-mod_pkg_setup |
77 |
@@ -72,19 +75,30 @@ pkg_setup() { |
78 |
;; |
79 |
esac |
80 |
|
81 |
- pushd "${T}" &> /dev/null |
82 |
+ pushd "${T}" &> /dev/null || die |
83 |
unpack ${A} |
84 |
+ |
85 |
cd ${PN}-standalone || die |
86 |
+ |
87 |
local module_branch=origin/${PN}.${PATCH_BRANCH} |
88 |
+ |
89 |
einfo "Using ${module_branch} as patch source" |
90 |
git checkout -q -b local-${PN}.${PATCH_BRANCH} ${module_branch} || die |
91 |
- combinediff ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
92 |
- combinediff "${T}"/combined-1.patch ${PN}-mmap.patch > ${PN}-standalone-base-mmap-combined.patch |
93 |
+ |
94 |
+ combinediff \ |
95 |
+ ${PN}-base.patch ${PN}-standalone.patch > "${T}"/combined-1.patch |
96 |
+ combinediff \ |
97 |
+ "${T}"/combined-1.patch ${PN}-mmap.patch \ |
98 |
+ > ${PN}-standalone-base-mmap-combined.patch |
99 |
+ |
100 |
if ! ( patch -p1 --dry-run --force -R -d ${KV_DIR} < ${PN}-standalone-base-mmap-combined.patch > /dev/null ); then |
101 |
if use kernel-patch; then |
102 |
cd ${KV_DIR} |
103 |
ewarn "Patching your kernel..." |
104 |
- patch --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch >/dev/null |
105 |
+ patch \ |
106 |
+ --no-backup-if-mismatch --force -p1 -R -d ${KV_DIR} \ |
107 |
+ < "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch \ |
108 |
+ > /dev/null |
109 |
epatch "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
110 |
ewarn "You need to compile your kernel with the applied patch" |
111 |
ewarn "to be able to load and use the aufs kernel module" |
112 |
@@ -95,13 +109,15 @@ pkg_setup() { |
113 |
die "missing kernel patch, please apply it first" |
114 |
fi |
115 |
fi |
116 |
+ |
117 |
popd &> /dev/null |
118 |
export PKG_SETUP_HAS_BEEN_RAN=1 |
119 |
} |
120 |
|
121 |
set_config() { |
122 |
for option in $*; do |
123 |
- grep -q "^CONFIG_AUFS_${option} =" config.mk || die "${option} is not a valid config option" |
124 |
+ grep -q "^CONFIG_AUFS_${option} =" config.mk || \ |
125 |
+ die "${option} is not a valid config option" |
126 |
sed "/^CONFIG_AUFS_${option}/s:=:= y:g" -i config.mk || die |
127 |
done |
128 |
} |
129 |
@@ -125,11 +141,11 @@ src_prepare() { |
130 |
use nfs && ( use amd64 || use ppc64 ) && set_config INO_T_64 |
131 |
use ramfs && set_config BR_RAMFS |
132 |
|
133 |
- if use pax_kernel; then |
134 |
- epatch "${FILESDIR}"/pax-4.patch |
135 |
- fi |
136 |
+ use pax_kernel && epatch "${FILESDIR}"/pax-4.patch |
137 |
|
138 |
- sed -i "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" Makefile || die |
139 |
+ sed \ |
140 |
+ -e "s:aufs.ko usr/include/linux/aufs_type.h:aufs.ko:g" \ |
141 |
+ -i Makefile || die |
142 |
} |
143 |
|
144 |
src_compile() { |
145 |
@@ -147,18 +163,19 @@ src_compile() { |
146 |
src_install() { |
147 |
linux-mod_src_install |
148 |
|
149 |
- insinto /usr/share/doc/${PF} |
150 |
- |
151 |
- use doc && doins -r Documentation |
152 |
+ use doc && dodoc -r Documentation |
153 |
|
154 |
- use kernel-patch || doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
155 |
+ use kernel-patch || \ |
156 |
+ doins "${T}"/${PN}-standalone/${PN}-standalone-base-mmap-combined.patch |
157 |
|
158 |
- dodoc Documentation/filesystems/aufs/README "${T}"/${PN}-standalone/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch |
159 |
+ dodoc \ |
160 |
+ Documentation/filesystems/aufs/README \ |
161 |
+ "${T}"/${PN}-standalone/{aufs4-loopback,vfs-ino,tmpfs-idr}.patch |
162 |
|
163 |
readme.gentoo_create_doc |
164 |
} |
165 |
|
166 |
pkg_postinst() { |
167 |
- readme.gentoo_pkg_postinst |
168 |
+ readme.gentoo_print_elog |
169 |
linux-mod_pkg_postinst |
170 |
} |