1 |
ryao 12/08/22 07:28:13 |
2 |
|
3 |
Added: zfs-kmod-0.6.0_rc10.ebuild zfs-kmod-9999.ebuild |
4 |
metadata.xml Manifest ChangeLog |
5 |
Log: |
6 |
Ebuild to provide kernel module for sys-fs/zfs |
7 |
|
8 |
(Portage version: 2.1.11.9/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 sys-fs/zfs-kmod/zfs-kmod-0.6.0_rc10.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-0.6.0_rc10.ebuild?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-0.6.0_rc10.ebuild?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: zfs-kmod-0.6.0_rc10.ebuild |
17 |
=================================================================== |
18 |
# Copyright 1999-2012 Gentoo Foundation |
19 |
# Distributed under the terms of the GNU General Public License v2 |
20 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-0.6.0_rc10.ebuild,v 1.1 2012/08/22 07:28:13 ryao Exp $ |
21 |
|
22 |
EAPI="4" |
23 |
|
24 |
AT_M4DIR="config" |
25 |
AUTOTOOLS_AUTORECONF="1" |
26 |
AUTOTOOLS_IN_SOURCE_BUILD="1" |
27 |
|
28 |
inherit bash-completion-r1 flag-o-matic linux-mod toolchain-funcs autotools-utils |
29 |
|
30 |
if [ ${PV} == "9999" ] ; then |
31 |
inherit git-2 |
32 |
EGIT_REPO_URI="git://github.com/zfsonlinux/zfs.git" |
33 |
else |
34 |
inherit eutils versionator |
35 |
MY_PV=$(replace_version_separator 3 '-') |
36 |
SRC_URI="https://github.com/downloads/zfsonlinux/zfs/zfs-${MY_PV}.tar.gz" |
37 |
S="${WORKDIR}/zfs-${MY_PV}" |
38 |
KEYWORDS="~amd64" |
39 |
fi |
40 |
|
41 |
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs" |
42 |
HOMEPAGE="http://zfsonlinux.org/" |
43 |
|
44 |
LICENSE="BSD-2 CDDL MIT" |
45 |
SLOT="0" |
46 |
IUSE="custom-cflags debug +rootfs" |
47 |
RESTRICT="test" |
48 |
|
49 |
DEPEND=" |
50 |
=sys-kernel/spl-${PV}* |
51 |
" |
52 |
|
53 |
RDEPEND="${DEPEND} |
54 |
!sys-fs/zfs-fuse |
55 |
" |
56 |
|
57 |
pkg_setup() { |
58 |
CONFIG_CHECK="!DEBUG_LOCK_ALLOC |
59 |
!PREEMPT |
60 |
BLK_DEV_LOOP |
61 |
EFI_PARTITION |
62 |
MODULES |
63 |
!PAX_KERNEXEC_PLUGIN_METHOD_OR |
64 |
ZLIB_DEFLATE |
65 |
ZLIB_INFLATE" |
66 |
use rootfs && \ |
67 |
CONFIG_CHECK="${CONFIG_CHECK} BLK_DEV_INITRD |
68 |
DEVTMPFS" |
69 |
kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required" |
70 |
check_extra_config |
71 |
} |
72 |
|
73 |
src_prepare() { |
74 |
# Workaround for hard coded path |
75 |
sed -i "s|/sbin/lsmod|/bin/lsmod|" scripts/common.sh.in || die |
76 |
# Workaround rename |
77 |
sed -i "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" scripts/common.sh.in || die |
78 |
|
79 |
if [ ${PV} != "9999" ] |
80 |
then |
81 |
# Fix various deadlocks |
82 |
epatch "${FILESDIR}/${PN}-0.6.0_rc9-remove-pfmalloc-1-of-3.patch" |
83 |
epatch "${FILESDIR}/${PN}-0.6.0_rc9-remove-pfmalloc-2-of-3.patch" |
84 |
epatch "${FILESDIR}/${PN}-0.6.0_rc9-remove-pfmalloc-3-of-3.patch" |
85 |
fi |
86 |
|
87 |
autotools-utils_src_prepare |
88 |
} |
89 |
|
90 |
src_configure() { |
91 |
use custom-cflags || strip-flags |
92 |
set_arch_to_kernel |
93 |
local myeconfargs=( |
94 |
--bindir="${EPREFIX}/bin" |
95 |
--sbindir="${EPREFIX}/sbin" |
96 |
--with-config=kernel |
97 |
--with-linux="${KV_DIR}" |
98 |
--with-linux-obj="${KV_OUT_DIR}" |
99 |
$(use_enable debug) |
100 |
) |
101 |
autotools-utils_src_configure |
102 |
} |
103 |
|
104 |
src_test() { |
105 |
if [ $UID -ne 0 ] |
106 |
then |
107 |
ewarn "Cannot run make check tests with FEATURES=userpriv." |
108 |
ewarn "Skipping make check tests." |
109 |
else |
110 |
autotools-utils_src_test |
111 |
fi |
112 |
} |
113 |
|
114 |
src_install() { |
115 |
autotools-utils_src_install |
116 |
} |
117 |
|
118 |
pkg_postinst() { |
119 |
linux-mod_pkg_postinst |
120 |
|
121 |
use x86 && ewarn "32-bit kernels are unsupported by ZFSOnLinux upstream. Do not file bug reports." |
122 |
|
123 |
} |
124 |
|
125 |
|
126 |
|
127 |
1.1 sys-fs/zfs-kmod/zfs-kmod-9999.ebuild |
128 |
|
129 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild?rev=1.1&view=markup |
130 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild?rev=1.1&content-type=text/plain |
131 |
|
132 |
Index: zfs-kmod-9999.ebuild |
133 |
=================================================================== |
134 |
# Copyright 1999-2012 Gentoo Foundation |
135 |
# Distributed under the terms of the GNU General Public License v2 |
136 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/zfs-kmod-9999.ebuild,v 1.1 2012/08/22 07:28:13 ryao Exp $ |
137 |
|
138 |
EAPI="4" |
139 |
|
140 |
AT_M4DIR="config" |
141 |
AUTOTOOLS_AUTORECONF="1" |
142 |
AUTOTOOLS_IN_SOURCE_BUILD="1" |
143 |
|
144 |
inherit bash-completion-r1 flag-o-matic linux-mod toolchain-funcs autotools-utils |
145 |
|
146 |
if [ ${PV} == "9999" ] ; then |
147 |
inherit git-2 |
148 |
EGIT_REPO_URI="git://github.com/zfsonlinux/zfs.git" |
149 |
else |
150 |
inherit eutils versionator |
151 |
MY_PV=$(replace_version_separator 3 '-') |
152 |
SRC_URI="https://github.com/downloads/zfsonlinux/zfs/zfs-${MY_PV}.tar.gz" |
153 |
S="${WORKDIR}/zfs-${MY_PV}" |
154 |
KEYWORDS="~amd64" |
155 |
fi |
156 |
|
157 |
DESCRIPTION="Linux ZFS kernel module for sys-fs/zfs" |
158 |
HOMEPAGE="http://zfsonlinux.org/" |
159 |
|
160 |
LICENSE="BSD-2 CDDL MIT" |
161 |
SLOT="0" |
162 |
IUSE="custom-cflags debug +rootfs" |
163 |
RESTRICT="test" |
164 |
|
165 |
DEPEND=" |
166 |
=sys-kernel/spl-${PV}* |
167 |
" |
168 |
|
169 |
RDEPEND="${DEPEND} |
170 |
!sys-fs/zfs-fuse |
171 |
" |
172 |
|
173 |
pkg_setup() { |
174 |
CONFIG_CHECK="!DEBUG_LOCK_ALLOC |
175 |
!PREEMPT |
176 |
BLK_DEV_LOOP |
177 |
EFI_PARTITION |
178 |
MODULES |
179 |
!PAX_KERNEXEC_PLUGIN_METHOD_OR |
180 |
ZLIB_DEFLATE |
181 |
ZLIB_INFLATE" |
182 |
use rootfs && \ |
183 |
CONFIG_CHECK="${CONFIG_CHECK} BLK_DEV_INITRD |
184 |
DEVTMPFS" |
185 |
kernel_is ge 2 6 26 || die "Linux 2.6.26 or newer required" |
186 |
check_extra_config |
187 |
} |
188 |
|
189 |
src_prepare() { |
190 |
# Workaround for hard coded path |
191 |
sed -i "s|/sbin/lsmod|/bin/lsmod|" scripts/common.sh.in || die |
192 |
# Workaround rename |
193 |
sed -i "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" scripts/common.sh.in || die |
194 |
|
195 |
if [ ${PV} != "9999" ] |
196 |
then |
197 |
# Fix various deadlocks |
198 |
epatch "${FILESDIR}/${PN}-0.6.0_rc9-remove-pfmalloc-1-of-3.patch" |
199 |
epatch "${FILESDIR}/${PN}-0.6.0_rc9-remove-pfmalloc-2-of-3.patch" |
200 |
epatch "${FILESDIR}/${PN}-0.6.0_rc9-remove-pfmalloc-3-of-3.patch" |
201 |
fi |
202 |
|
203 |
autotools-utils_src_prepare |
204 |
} |
205 |
|
206 |
src_configure() { |
207 |
use custom-cflags || strip-flags |
208 |
set_arch_to_kernel |
209 |
local myeconfargs=( |
210 |
--bindir="${EPREFIX}/bin" |
211 |
--sbindir="${EPREFIX}/sbin" |
212 |
--with-config=kernel |
213 |
--with-linux="${KV_DIR}" |
214 |
--with-linux-obj="${KV_OUT_DIR}" |
215 |
$(use_enable debug) |
216 |
) |
217 |
autotools-utils_src_configure |
218 |
} |
219 |
|
220 |
src_test() { |
221 |
if [ $UID -ne 0 ] |
222 |
then |
223 |
ewarn "Cannot run make check tests with FEATURES=userpriv." |
224 |
ewarn "Skipping make check tests." |
225 |
else |
226 |
autotools-utils_src_test |
227 |
fi |
228 |
} |
229 |
|
230 |
src_install() { |
231 |
autotools-utils_src_install |
232 |
} |
233 |
|
234 |
pkg_postinst() { |
235 |
linux-mod_pkg_postinst |
236 |
|
237 |
use x86 && ewarn "32-bit kernels are unsupported by ZFSOnLinux upstream. Do not file bug reports." |
238 |
|
239 |
} |
240 |
|
241 |
|
242 |
|
243 |
1.1 sys-fs/zfs-kmod/metadata.xml |
244 |
|
245 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/metadata.xml?rev=1.1&view=markup |
246 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/metadata.xml?rev=1.1&content-type=text/plain |
247 |
|
248 |
Index: metadata.xml |
249 |
=================================================================== |
250 |
<?xml version="1.0" encoding="UTF-8"?> |
251 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
252 |
<pkgmetadata> |
253 |
<maintainer> |
254 |
<email>ryao@g.o</email> |
255 |
<name>Richard Yao</name> |
256 |
</maintainer> |
257 |
<use> |
258 |
<flag name="rootfs">Install zfs-shutdown script to support exporting a pool containing rootfs</flag> |
259 |
</use> |
260 |
</pkgmetadata> |
261 |
|
262 |
|
263 |
|
264 |
1.1 sys-fs/zfs-kmod/Manifest |
265 |
|
266 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/Manifest?rev=1.1&view=markup |
267 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/Manifest?rev=1.1&content-type=text/plain |
268 |
|
269 |
Index: Manifest |
270 |
=================================================================== |
271 |
AUX zfs-kmod-0.6.0_rc9-remove-pfmalloc-1-of-3.patch 1438 SHA256 d1f1b3f47e0ada27e43ac04576eb61a96b5abe3bc6a7bd7869fe72e1e08bb4df SHA512 f133fed7acea871bec4e08b9e24b358111877f8c8a481746639913ab162a3a85216ceb848f9461aa57ebaa1d90a61b7e5105938511f6a98dfd6c281592c5ab09 WHIRLPOOL c49ea43a12a8c9e4dca30df0dbbeba6f4fd07cf7c0271aa9c45d9bf3c5e8eef93efe9da600ec1b1c9bc782d55382674db68f07afd3f7c1083e0e1b85816d9416 |
272 |
AUX zfs-kmod-0.6.0_rc9-remove-pfmalloc-2-of-3.patch 1979 SHA256 6f61761703c4c71d8c91fb6e49b927069301698d78fea35c2bcdc603bfdce59d SHA512 dd4bfdd218791c6eef6120d95049860ba304ac474872357f3a5ff5b3783421a39035c732cd508f990145ff371bb8fcca2757152d41d963bcd559fa8f69fdedbe WHIRLPOOL 9bbd6479c22c905615ba6b4188aa332a9ec2685536cd6f784da28c081fdde430df15cb902b2ec1f7f9cdbfdcb20aabbc49460f5de09656686193001338c05a7a |
273 |
AUX zfs-kmod-0.6.0_rc9-remove-pfmalloc-3-of-3.patch 2593 SHA256 a51425a9d97dc7177be6bf05a14d1905d52be5b503ab27e570e1e7e254befcf8 SHA512 7579231f68a1d840a1d568b12bb5bc8bd78d15c379020618b061015cc4771655650157e993ee77731f9bdc6e7ee1a6dd3ead3f548724e72e398b0400a9eeb5e4 WHIRLPOOL 57787a873e5c0195060a3e146c34f465df3c8fcb8123263435fcc9180bebef19fbba911767f8e5131063c0e1199db34c40c062038bb1d9bed311a4d8ac2e85ce |
274 |
DIST zfs-0.6.0-rc10.tar.gz 2061969 SHA256 250978869fe4b0f3a5c4f7aa2ae2f584b311e9036064a4f2135b33fe3ce567d6 SHA512 e6634453b378c6cd8d8799ce0a1f7016f3607b80bd3c87cd80f36ee9330ca065a1678d489f49675481f7e7d630e5511ea30e421515444e60549f753c051ca52d WHIRLPOOL 24997422fe14226623f3d2f34fe92c22f6b8b0975d488d67198e53b744aa4e775a82e56b69be83ab593820320707348d611127f1a8719a100cc9fea108a85761 |
275 |
EBUILD zfs-kmod-0.6.0_rc10.ebuild 2440 SHA256 d083b1e78ea7b8ad2b60e7b1ccc0d2d98493257fe83c99bca1d0d3ffd7dc8c00 SHA512 e51e1619288e07ab6854d134e9918df0fd9148e217056331d0457b6c66b0045c5580295b27799ac5daf49714f599cdf9325c00de42b8e24dce01c0aff2fdc96d WHIRLPOOL 6c695fbc9a7e025e089327ac1472005027aa59c2a5e33f6d997cc32fd6da1937eb51b41761f71eb9e498062ed2a19fce55093914ca7d35dfbfbcf4a59859cef9 |
276 |
EBUILD zfs-kmod-9999.ebuild 2440 SHA256 d083b1e78ea7b8ad2b60e7b1ccc0d2d98493257fe83c99bca1d0d3ffd7dc8c00 SHA512 e51e1619288e07ab6854d134e9918df0fd9148e217056331d0457b6c66b0045c5580295b27799ac5daf49714f599cdf9325c00de42b8e24dce01c0aff2fdc96d WHIRLPOOL 6c695fbc9a7e025e089327ac1472005027aa59c2a5e33f6d997cc32fd6da1937eb51b41761f71eb9e498062ed2a19fce55093914ca7d35dfbfbcf4a59859cef9 |
277 |
MISC metadata.xml 346 SHA256 e4506ca3f73e0a7799675ddb48b546ce6e3754e912f77d7d32aefac860b3fb82 SHA512 13885781ec432fcaa913c6365b6101b899ba5cf72573b29eb56a0d567466f15edf43de61fd1cab357149c5ed2b73c8277d69a88589f5f3d8f9ae3ef671f9ad8a WHIRLPOOL 319e314874a770ba6ef2687056bb97d6aaf081b0014cf1f0d08c39d70f24adabd19f0b4b3ce61c00fb72dade7589c9821c4730508967e32ea32a2101f74a35d8 |
278 |
|
279 |
|
280 |
|
281 |
1.1 sys-fs/zfs-kmod/ChangeLog |
282 |
|
283 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/ChangeLog?rev=1.1&view=markup |
284 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs-kmod/ChangeLog?rev=1.1&content-type=text/plain |
285 |
|
286 |
Index: ChangeLog |
287 |
=================================================================== |
288 |
# ChangeLog for sys-fs/zfs-kmod |
289 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
290 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs-kmod/ChangeLog,v 1.1 2012/08/22 07:28:13 ryao Exp $ |
291 |
|
292 |
*zfs-kmod-9999 (22 Aug 2012) |
293 |
*zfs-kmod-0.6.0_rc10 (22 Aug 2012) |
294 |
|
295 |
22 Aug 2012; Richard Yao <ryao@g.o> |
296 |
+files/zfs-kmod-0.6.0_rc9-remove-pfmalloc-1-of-3.patch, |
297 |
+files/zfs-kmod-0.6.0_rc9-remove-pfmalloc-2-of-3.patch, |
298 |
+files/zfs-kmod-0.6.0_rc9-remove-pfmalloc-3-of-3.patch, +metadata.xml, |
299 |
+zfs-kmod-0.6.0_rc10.ebuild, +zfs-kmod-9999.ebuild: |
300 |
Ebuild to provide kernel module for sys-fs/zfs |