1 |
ryao 13/05/29 00:39:51 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: zfs-0.6.1-r1.ebuild |
5 |
Log: |
6 |
Introduce bash-completion USE flag, fix test-suite and dracut USE flags, correct description for rootfs USE flag and improve zfs OpenRC script for systems with a ZFS rootfs. |
7 |
|
8 |
(Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.7 sys-fs/zfs/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/metadata.xml?rev=1.7&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/metadata.xml?rev=1.7&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/metadata.xml?r1=1.6&r2=1.7 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs/metadata.xml,v |
20 |
retrieving revision 1.6 |
21 |
retrieving revision 1.7 |
22 |
diff -u -r1.6 -r1.7 |
23 |
--- metadata.xml 22 Aug 2012 07:31:11 -0000 1.6 |
24 |
+++ metadata.xml 29 May 2013 00:39:51 -0000 1.7 |
25 |
@@ -7,7 +7,7 @@ |
26 |
</maintainer> |
27 |
<use> |
28 |
<flag name="kernel-builtin">Disable dependency on sys-fs/zfs-kmod under the assumption that ZFS is part of the kernel source tree</flag> |
29 |
- <flag name="rootfs">Install zfs-shutdown script to support exporting a pool containing rootfs</flag> |
30 |
+ <flag name="rootfs">Enable dependencies required for booting off a pool containing a rootfs</flag> |
31 |
<flag name="test-suite">Install regression test suite</flag> |
32 |
</use> |
33 |
</pkgmetadata> |
34 |
|
35 |
|
36 |
|
37 |
1.64 sys-fs/zfs/ChangeLog |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.64&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.64&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?r1=1.63&r2=1.64 |
42 |
|
43 |
Index: ChangeLog |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v |
46 |
retrieving revision 1.63 |
47 |
retrieving revision 1.64 |
48 |
diff -u -r1.63 -r1.64 |
49 |
--- ChangeLog 28 Mar 2013 22:19:57 -0000 1.63 |
50 |
+++ ChangeLog 29 May 2013 00:39:51 -0000 1.64 |
51 |
@@ -1,6 +1,15 @@ |
52 |
# ChangeLog for sys-fs/zfs |
53 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.63 2013/03/28 22:19:57 ryao Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.64 2013/05/29 00:39:51 ryao Exp $ |
56 |
+ |
57 |
+*zfs-0.6.1-r1 (29 May 2013) |
58 |
+ |
59 |
+ 29 May 2013; Richard Yao <ryao@g.o> |
60 |
+ +files/zfs-0.6.1-gentoo-openrc-dependencies.patch, +zfs-0.6.1-r1.ebuild, |
61 |
+ metadata.xml: |
62 |
+ Introduce bash-completion USE flag, fix test-suite and dracut USE flags, |
63 |
+ correct description for rootfs USE flag and improve zfs OpenRC script for |
64 |
+ systems with a ZFS rootfs. |
65 |
|
66 |
*zfs-0.6.1 (28 Mar 2013) |
67 |
|
68 |
|
69 |
|
70 |
|
71 |
1.1 sys-fs/zfs/zfs-0.6.1-r1.ebuild |
72 |
|
73 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.1-r1.ebuild?rev=1.1&view=markup |
74 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.1-r1.ebuild?rev=1.1&content-type=text/plain |
75 |
|
76 |
Index: zfs-0.6.1-r1.ebuild |
77 |
=================================================================== |
78 |
# Copyright 1999-2013 Gentoo Foundation |
79 |
# Distributed under the terms of the GNU General Public License v2 |
80 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-0.6.1-r1.ebuild,v 1.1 2013/05/29 00:39:51 ryao Exp $ |
81 |
|
82 |
EAPI="4" |
83 |
|
84 |
AT_M4DIR="config" |
85 |
AUTOTOOLS_AUTORECONF="1" |
86 |
AUTOTOOLS_IN_SOURCE_BUILD="1" |
87 |
|
88 |
if [ ${PV} == "9999" ] ; then |
89 |
inherit git-2 linux-mod |
90 |
EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git" |
91 |
else |
92 |
inherit eutils versionator |
93 |
MY_PV=$(replace_version_separator 3 '-') |
94 |
SRC_URI="https://github.com/zfsonlinux/${PN}/archive/${PN}-${MY_PV}.tar.gz" |
95 |
S="${WORKDIR}/${PN}-${PN}-${MY_PV}" |
96 |
KEYWORDS="~amd64" |
97 |
fi |
98 |
|
99 |
inherit bash-completion-r1 flag-o-matic toolchain-funcs autotools-utils udev |
100 |
|
101 |
DESCRIPTION="Userland utilities for ZFS Linux kernel module" |
102 |
HOMEPAGE="http://zfsonlinux.org/" |
103 |
|
104 |
LICENSE="BSD-2 CDDL MIT" |
105 |
SLOT="0" |
106 |
IUSE="bash-completion custom-cflags kernel-builtin +rootfs test-suite static-libs" |
107 |
RESTRICT="test" |
108 |
|
109 |
COMMON_DEPEND=" |
110 |
sys-apps/util-linux[static-libs?] |
111 |
sys-libs/zlib[static-libs(+)?] |
112 |
virtual/awk |
113 |
" |
114 |
DEPEND="${COMMON_DEPEND} |
115 |
virtual/pkgconfig |
116 |
" |
117 |
|
118 |
RDEPEND="${COMMON_DEPEND} |
119 |
!=sys-apps/grep-2.13* |
120 |
!kernel-builtin? ( =sys-fs/zfs-kmod-${PV}* ) |
121 |
!sys-fs/zfs-fuse |
122 |
!prefix? ( virtual/udev ) |
123 |
test-suite? ( |
124 |
sys-apps/util-linux |
125 |
sys-devel/bc |
126 |
sys-block/parted |
127 |
sys-fs/lsscsi |
128 |
sys-fs/mdadm |
129 |
sys-process/procps |
130 |
virtual/modutils |
131 |
) |
132 |
rootfs? ( |
133 |
app-arch/cpio |
134 |
app-misc/pax-utils |
135 |
!<sys-boot/grub-2.00-r2:2 |
136 |
) |
137 |
" |
138 |
|
139 |
pkg_setup() { |
140 |
: |
141 |
} |
142 |
|
143 |
src_prepare() { |
144 |
if [ ${PV} != "9999" ] |
145 |
then |
146 |
# Fix OpenRC dependencies |
147 |
epatch "${FILESDIR}/${P}-gentoo-openrc-dependencies.patch" |
148 |
fi |
149 |
|
150 |
# Update paths |
151 |
sed -e "s|/sbin/lsmod|/bin/lsmod|" \ |
152 |
-e "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" \ |
153 |
-e "s|/sbin/parted|/usr/sbin/parted|" \ |
154 |
-i scripts/common.sh.in |
155 |
|
156 |
autotools-utils_src_prepare |
157 |
} |
158 |
|
159 |
src_configure() { |
160 |
use custom-cflags || strip-flags |
161 |
local myeconfargs=( |
162 |
--bindir="${EPREFIX}/bin" |
163 |
--sbindir="${EPREFIX}/sbin" |
164 |
--with-config=user |
165 |
--with-linux="${KV_DIR}" |
166 |
--with-linux-obj="${KV_OUT_DIR}" |
167 |
--with-udevdir="$(udev_get_udevdir)" |
168 |
) |
169 |
autotools-utils_src_configure |
170 |
} |
171 |
|
172 |
src_install() { |
173 |
autotools-utils_src_install |
174 |
gen_usr_ldscript -a uutil nvpair zpool zfs |
175 |
rm -rf "${ED}usr/lib/dracut" |
176 |
use test-suite || rm -rf "${ED}usr/share/zfs" |
177 |
|
178 |
use bash-completion && newbashcomp "${FILESDIR}/bash-completion" zfs |
179 |
|
180 |
} |
181 |
|
182 |
pkg_postinst() { |
183 |
|
184 |
if ! use kernel-builtin && [ ${PV} = "9999" ] |
185 |
then |
186 |
einfo "Adding ${P} to the module database to ensure that the" |
187 |
einfo "kernel modules and userland utilities stay in sync." |
188 |
update_moduledb |
189 |
fi |
190 |
|
191 |
[ -e "${EROOT}/etc/runlevels/boot/zfs" ] \ |
192 |
|| ewarn 'You should add zfs to the boot runlevel.' |
193 |
|
194 |
if [ -e "${EROOT}/etc/runlevels/shutdown/zfs-shutdown" ] |
195 |
then |
196 |
einfo "The zfs-shutdown script is obsolete. Removing it from runlevel." |
197 |
rm "${EROOT}/etc/runlevels/shutdown/zfs-shutdown" |
198 |
fi |
199 |
|
200 |
} |
201 |
|
202 |
pkg_postrm() { |
203 |
if ! use kernel-builtin && [ ${PV} = "9999" ] |
204 |
then |
205 |
remove_moduledb |
206 |
fi |
207 |
} |