1 |
ryao 13/11/21 16:21:24 |
2 |
|
3 |
Modified: zfs-9999.ebuild ChangeLog |
4 |
Added: zfs-0.6.2-r3.ebuild |
5 |
Log: |
6 |
Python 3 support; Fix memory leak in libzfs; Import updated bash completion script from Ubuntu (with silent sudo functionality commented out) |
7 |
|
8 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.50 sys-fs/zfs/zfs-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild?rev=1.50&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild?rev=1.50&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild?r1=1.49&r2=1.50 |
16 |
|
17 |
Index: zfs-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild,v |
20 |
retrieving revision 1.49 |
21 |
retrieving revision 1.50 |
22 |
diff -u -r1.49 -r1.50 |
23 |
--- zfs-9999.ebuild 11 Oct 2013 23:17:02 -0000 1.49 |
24 |
+++ zfs-9999.ebuild 21 Nov 2013 16:21:23 -0000 1.50 |
25 |
@@ -1,11 +1,11 @@ |
26 |
# Copyright 1999-2013 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild,v 1.49 2013/10/11 23:17:02 ryao Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-9999.ebuild,v 1.50 2013/11/21 16:21:23 ryao Exp $ |
30 |
|
31 |
EAPI="5" |
32 |
-PYTHON_COMPAT=( python{2_6,2_7} ) |
33 |
+PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} ) |
34 |
|
35 |
-inherit python-single-r1 |
36 |
+inherit python-r1 |
37 |
|
38 |
AT_M4DIR="config" |
39 |
AUTOTOOLS_AUTORECONF="1" |
40 |
@@ -17,7 +17,8 @@ |
41 |
else |
42 |
inherit eutils versionator |
43 |
MY_PV=$(replace_version_separator 3 '-') |
44 |
- SRC_URI="https://github.com/zfsonlinux/${PN}/archive/${PN}-${MY_PV}.tar.gz" |
45 |
+ SRC_URI="https://github.com/zfsonlinux/${PN}/archive/${PN}-${MY_PV}.tar.gz |
46 |
+ http://dev.gentoo.org/~ryao/dist/${PN}-kmod-${MY_PV}-p2.tar.xz" |
47 |
S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
48 |
KEYWORDS="~amd64" |
49 |
fi |
50 |
@@ -27,7 +28,7 @@ |
51 |
DESCRIPTION="Userland utilities for ZFS Linux kernel module" |
52 |
HOMEPAGE="http://zfsonlinux.org/" |
53 |
|
54 |
-LICENSE="BSD-2 CDDL MIT" |
55 |
+LICENSE="BSD-2 CDDL bash-completion? ( MIT )" |
56 |
SLOT="0" |
57 |
IUSE="bash-completion custom-cflags kernel-builtin +rootfs selinux test-suite static-libs" |
58 |
RESTRICT="test" |
59 |
@@ -68,6 +69,14 @@ |
60 |
} |
61 |
|
62 |
src_prepare() { |
63 |
+ if [ ${PV} != "9999" ] |
64 |
+ then |
65 |
+ # Apply patch set |
66 |
+ EPATCH_SUFFIX="patch" \ |
67 |
+ EPATCH_FORCE="yes" \ |
68 |
+ epatch "${WORKDIR}/${PN}-kmod-${MY_PV}-patches" |
69 |
+ fi |
70 |
+ |
71 |
# Update paths |
72 |
sed -e "s|/sbin/lsmod|/bin/lsmod|" \ |
73 |
-e "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" \ |
74 |
@@ -108,7 +117,7 @@ |
75 |
rm -rf "${ED}usr/lib/dracut" |
76 |
use test-suite || rm -rf "${ED}usr/share/zfs" |
77 |
|
78 |
- use bash-completion && newbashcomp "${FILESDIR}/bash-completion" zfs |
79 |
+ use bash-completion && newbashcomp "${FILESDIR}/bash-completion-r1" zfs |
80 |
|
81 |
exeinto /usr/libexec |
82 |
doexe "${T}/zfs-init.sh" |
83 |
|
84 |
|
85 |
|
86 |
1.77 sys-fs/zfs/ChangeLog |
87 |
|
88 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.77&view=markup |
89 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.77&content-type=text/plain |
90 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?r1=1.76&r2=1.77 |
91 |
|
92 |
Index: ChangeLog |
93 |
=================================================================== |
94 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v |
95 |
retrieving revision 1.76 |
96 |
retrieving revision 1.77 |
97 |
diff -u -r1.76 -r1.77 |
98 |
--- ChangeLog 18 Oct 2013 16:26:04 -0000 1.76 |
99 |
+++ ChangeLog 21 Nov 2013 16:21:23 -0000 1.77 |
100 |
@@ -1,6 +1,13 @@ |
101 |
# ChangeLog for sys-fs/zfs |
102 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
103 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.76 2013/10/18 16:26:04 ryao Exp $ |
104 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.77 2013/11/21 16:21:23 ryao Exp $ |
105 |
+ |
106 |
+*zfs-0.6.2-r3 (21 Nov 2013) |
107 |
+ |
108 |
+ 21 Nov 2013; Richard Yao <ryao@g.o> +files/bash-completion-r1, |
109 |
+ +zfs-0.6.2-r3.ebuild, zfs-9999.ebuild: |
110 |
+ Python 3 support; Fix memory leak in libzfs; Import updated bash completion |
111 |
+ script from Ubuntu (with silent sudo functionality commented out) |
112 |
|
113 |
*zfs-0.6.2-r2 (18 Oct 2013) |
114 |
|
115 |
|
116 |
|
117 |
|
118 |
1.1 sys-fs/zfs/zfs-0.6.2-r3.ebuild |
119 |
|
120 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.2-r3.ebuild?rev=1.1&view=markup |
121 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.2-r3.ebuild?rev=1.1&content-type=text/plain |
122 |
|
123 |
Index: zfs-0.6.2-r3.ebuild |
124 |
=================================================================== |
125 |
# Copyright 1999-2013 Gentoo Foundation |
126 |
# Distributed under the terms of the GNU General Public License v2 |
127 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-0.6.2-r3.ebuild,v 1.1 2013/11/21 16:21:23 ryao Exp $ |
128 |
|
129 |
EAPI="5" |
130 |
PYTHON_COMPAT=( python{2_6,2_7,3_1,3_2,3_3} ) |
131 |
|
132 |
inherit python-r1 |
133 |
|
134 |
AT_M4DIR="config" |
135 |
AUTOTOOLS_AUTORECONF="1" |
136 |
AUTOTOOLS_IN_SOURCE_BUILD="1" |
137 |
|
138 |
if [ ${PV} == "9999" ] ; then |
139 |
inherit git-2 linux-mod |
140 |
EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git" |
141 |
else |
142 |
inherit eutils versionator |
143 |
MY_PV=$(replace_version_separator 3 '-') |
144 |
SRC_URI="https://github.com/zfsonlinux/${PN}/archive/${PN}-${MY_PV}.tar.gz |
145 |
http://dev.gentoo.org/~ryao/dist/${PN}-kmod-${MY_PV}-p2.tar.xz" |
146 |
S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
147 |
KEYWORDS="~amd64" |
148 |
fi |
149 |
|
150 |
inherit bash-completion-r1 flag-o-matic toolchain-funcs autotools-utils udev systemd |
151 |
|
152 |
DESCRIPTION="Userland utilities for ZFS Linux kernel module" |
153 |
HOMEPAGE="http://zfsonlinux.org/" |
154 |
|
155 |
LICENSE="BSD-2 CDDL bash-completion? ( MIT )" |
156 |
SLOT="0" |
157 |
IUSE="bash-completion custom-cflags kernel-builtin +rootfs selinux test-suite static-libs" |
158 |
RESTRICT="test" |
159 |
|
160 |
COMMON_DEPEND=" |
161 |
selinux? ( sys-libs/libselinux ) |
162 |
sys-apps/util-linux[static-libs?] |
163 |
sys-libs/zlib[static-libs(+)?] |
164 |
virtual/awk |
165 |
" |
166 |
DEPEND="${COMMON_DEPEND} |
167 |
virtual/pkgconfig |
168 |
" |
169 |
|
170 |
RDEPEND="${COMMON_DEPEND} |
171 |
!=sys-apps/grep-2.13* |
172 |
!kernel-builtin? ( =sys-fs/zfs-kmod-${PV}* ) |
173 |
!sys-fs/zfs-fuse |
174 |
!prefix? ( virtual/udev ) |
175 |
test-suite? ( |
176 |
sys-apps/util-linux |
177 |
sys-devel/bc |
178 |
sys-block/parted |
179 |
sys-fs/lsscsi |
180 |
sys-fs/mdadm |
181 |
sys-process/procps |
182 |
virtual/modutils |
183 |
) |
184 |
rootfs? ( |
185 |
app-arch/cpio |
186 |
app-misc/pax-utils |
187 |
!<sys-boot/grub-2.00-r2:2 |
188 |
) |
189 |
" |
190 |
|
191 |
pkg_setup() { |
192 |
: |
193 |
} |
194 |
|
195 |
src_prepare() { |
196 |
if [ ${PV} != "9999" ] |
197 |
then |
198 |
# Apply patch set |
199 |
EPATCH_SUFFIX="patch" \ |
200 |
EPATCH_FORCE="yes" \ |
201 |
epatch "${WORKDIR}/${PN}-kmod-${MY_PV}-patches" |
202 |
fi |
203 |
|
204 |
# Update paths |
205 |
sed -e "s|/sbin/lsmod|/bin/lsmod|" \ |
206 |
-e "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" \ |
207 |
-e "s|/sbin/parted|/usr/sbin/parted|" \ |
208 |
-i scripts/common.sh.in |
209 |
|
210 |
autotools-utils_src_prepare |
211 |
} |
212 |
|
213 |
src_configure() { |
214 |
use custom-cflags || strip-flags |
215 |
local myeconfargs=( |
216 |
--bindir="${EPREFIX}/bin" |
217 |
--sbindir="${EPREFIX}/sbin" |
218 |
--with-config=user |
219 |
--with-linux="${KV_DIR}" |
220 |
--with-linux-obj="${KV_OUT_DIR}" |
221 |
--with-udevdir="$(udev_get_udevdir)" |
222 |
--with-blkid |
223 |
$(use_with selinux) |
224 |
) |
225 |
autotools-utils_src_configure |
226 |
|
227 |
# prepare systemd unit and helper script |
228 |
cat "${FILESDIR}/zfs.service.in" | \ |
229 |
sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \ |
230 |
-e "s:@sysconfdir@:${EPREFIX}/etc:g" \ |
231 |
> "${T}/zfs.service" || die |
232 |
cat "${FILESDIR}/zfs-init.sh.in" | \ |
233 |
sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \ |
234 |
-e "s:@sysconfdir@:${EPREFIX}/etc:g" \ |
235 |
> "${T}/zfs-init.sh" || die |
236 |
} |
237 |
|
238 |
src_install() { |
239 |
autotools-utils_src_install |
240 |
gen_usr_ldscript -a uutil nvpair zpool zfs |
241 |
rm -rf "${ED}usr/lib/dracut" |
242 |
use test-suite || rm -rf "${ED}usr/share/zfs" |
243 |
|
244 |
use bash-completion && newbashcomp "${FILESDIR}/bash-completion-r1" zfs |
245 |
|
246 |
exeinto /usr/libexec |
247 |
doexe "${T}/zfs-init.sh" |
248 |
systemd_dounit "${T}/zfs.service" |
249 |
} |
250 |
|
251 |
pkg_postinst() { |
252 |
|
253 |
if ! use kernel-builtin && [ ${PV} = "9999" ] |
254 |
then |
255 |
einfo "Adding ${P} to the module database to ensure that the" |
256 |
einfo "kernel modules and userland utilities stay in sync." |
257 |
update_moduledb |
258 |
fi |
259 |
|
260 |
[ -e "${EROOT}/etc/runlevels/boot/zfs" ] \ |
261 |
|| ewarn 'You should add zfs to the boot runlevel.' |
262 |
|
263 |
if [ -e "${EROOT}/etc/runlevels/shutdown/zfs-shutdown" ] |
264 |
then |
265 |
einfo "The zfs-shutdown script is obsolete. Removing it from runlevel." |
266 |
rm "${EROOT}/etc/runlevels/shutdown/zfs-shutdown" |
267 |
fi |
268 |
|
269 |
} |
270 |
|
271 |
pkg_postrm() { |
272 |
if ! use kernel-builtin && [ ${PV} = "9999" ] |
273 |
then |
274 |
remove_moduledb |
275 |
fi |
276 |
} |