1 |
commit: ab81478518387f44bab656eb34acf656f6f028a5 |
2 |
Author: Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 12 13:37:05 2017 +0000 |
4 |
Commit: Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 12 14:12:43 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab814785 |
7 |
|
8 |
sys-fs/zfs: version bump to 0.7.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
sys-fs/zfs/Manifest | 1 + |
13 |
sys-fs/zfs/zfs-0.7.1.ebuild | 199 ++++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 200 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/zfs/Manifest b/sys-fs/zfs/Manifest |
17 |
index 38d65b65c32..560fadd15c1 100644 |
18 |
--- a/sys-fs/zfs/Manifest |
19 |
+++ b/sys-fs/zfs/Manifest |
20 |
@@ -21,4 +21,5 @@ DIST zfs-0.6.5.7.tar.gz 2537816 SHA256 4a9e271bb9a6af8d564e4d5800e4fff36224f1697 |
21 |
DIST zfs-0.6.5.8.tar.gz 2521921 SHA256 d77f43f7dc38381773e2c34531954c52f3de80361b7bb10c933a7482f89cfe84 SHA512 e5b53a9531b865e7c650892c0deb1ee81db086a33538cd667a087a8a8d33a0ad93a30ae5e800096abfc4dc8ed00843da924230082e204fb7543dd401ef41fcde WHIRLPOOL 623bf8ee51d59dcd1842bf41ccf19c2eb6813fb1e88dea1ea1c6f1388c11484b798546bdcb94500735a0e9e5f9099a4df43308760b353b5b62ff56af035f88bd |
22 |
DIST zfs-0.6.5.9.tar.gz 2610650 SHA256 b724b57dbddae59246fdc15f88f1224061c712945bb36412a2087e0c7760d77f SHA512 6e175f32421cf0f9e13429f12f0fac0564dc7059ab076831d0ebc4f6a17412160ca3526ebdf894bc7666e82580355b08701dd01c411d3177f82e7330b4529a37 WHIRLPOOL 149d730a26363b50691363b314669756d218c4a16e6d06e319c2b0866c5f8ed6e2da2396a516297c127d3343d51d78072d8b7371e3f4d327d30fa43c90be5cd3 |
23 |
DIST zfs-0.7.0.tar.gz 6714094 SHA256 6907524f5ca4149b799fe65cd31b552b0ae90dba5dc20524e1a24fc708d807d2 SHA512 6e6cbf54399fc85b74b76a6ceb3f30e94903f755fe6386fccc56b5e6d307a907759e4b62acec5d32e8383ef1083423eaff8dee2b0ef01a99459171a42b47d217 WHIRLPOOL 74687be4220bab51f18fdd3c047400c4261acf16f38086c2485f5cb9d79af87f5adfafced92860b021814aece7446cb18e9ca310a363b90c6bac39343b72a4b6 |
24 |
+DIST zfs-0.7.1.tar.gz 6376234 SHA256 231b104979ddacfeb1889e1dec175337276e7b3b109d40656089744b5caf3ef6 SHA512 64b0a3b5eeaf09ce824e3e029880a8e5dcb3e4567d1fb2fa24c89d8e55fee1ebe2d2f3a9f77d5468cc5637074e27d5ba7696b566829c93fd69c610b288200a37 WHIRLPOOL 700c83aadca96578ae8d6a9795f91c0c25b69afcc6ec6c02141daafcbcd550ae413438e96c4821c5c90816e0e29366ecfc3e7289623f14c255722c37d9f9a7f6 |
25 |
DIST zfs-kmod-0.6.2-p4.tar.xz 63984 SHA256 9167edc4be86e3fcda6b3c198e51f92ab0c95ac5baca11666c28029a628cdac9 SHA512 13e4ec415c35d2f268d89565745f5898c0943423577a2ba6714b3a069c5a80f244cd06dff91464f38dd4ed60673d1145ead080bb03a56d4be33e328f948ffa64 WHIRLPOOL 8c399ec67119ed4fbebb5599d00f888918678bc4e4ea369b4bdc5c75bfc90fc76396087624c8011de370a54ff103bccaa8922d05ac7ccebb2b3481bbbcf44b19 |
26 |
|
27 |
diff --git a/sys-fs/zfs/zfs-0.7.1.ebuild b/sys-fs/zfs/zfs-0.7.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..3a17f1b2eec |
30 |
--- /dev/null |
31 |
+++ b/sys-fs/zfs/zfs-0.7.1.ebuild |
32 |
@@ -0,0 +1,199 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI="5" |
37 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5} ) |
38 |
+ |
39 |
+if [ ${PV} == "9999" ] ; then |
40 |
+ inherit git-r3 linux-mod |
41 |
+ AUTOTOOLS_AUTORECONF="1" |
42 |
+ EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git" |
43 |
+else |
44 |
+ SRC_URI="https://github.com/zfsonlinux/${PN}/releases/download/${P}/${P}.tar.gz" |
45 |
+ KEYWORDS=" ~amd64" |
46 |
+fi |
47 |
+ |
48 |
+inherit autotools-utils bash-completion-r1 flag-o-matic linux-info python-r1 systemd toolchain-funcs udev |
49 |
+ |
50 |
+DESCRIPTION="Userland utilities for ZFS Linux kernel module" |
51 |
+HOMEPAGE="http://zfsonlinux.org/" |
52 |
+ |
53 |
+LICENSE="BSD-2 CDDL MIT" |
54 |
+SLOT="0" |
55 |
+IUSE="custom-cflags debug kernel-builtin +rootfs test-suite static-libs" |
56 |
+RESTRICT="test" |
57 |
+ |
58 |
+COMMON_DEPEND=" |
59 |
+ sys-apps/util-linux[static-libs?] |
60 |
+ sys-libs/zlib[static-libs(+)?] |
61 |
+ virtual/awk |
62 |
+" |
63 |
+DEPEND="${COMMON_DEPEND} |
64 |
+ virtual/pkgconfig |
65 |
+" |
66 |
+ |
67 |
+RDEPEND="${COMMON_DEPEND} |
68 |
+ !=sys-apps/grep-2.13* |
69 |
+ !kernel-builtin? ( =sys-fs/zfs-kmod-${PV}* ) |
70 |
+ !sys-fs/zfs-fuse |
71 |
+ !prefix? ( virtual/udev ) |
72 |
+ test-suite? ( |
73 |
+ sys-apps/util-linux |
74 |
+ sys-devel/bc |
75 |
+ sys-block/parted |
76 |
+ sys-fs/lsscsi |
77 |
+ sys-fs/mdadm |
78 |
+ sys-process/procps |
79 |
+ virtual/modutils |
80 |
+ ) |
81 |
+ rootfs? ( |
82 |
+ app-arch/cpio |
83 |
+ app-misc/pax-utils |
84 |
+ !<sys-boot/grub-2.00-r2:2 |
85 |
+ || ( =sys-kernel/genkernel-3.5.1.1 |
86 |
+ =sys-kernel/bliss-initramfs-7.1.0 ) |
87 |
+ ) |
88 |
+ sys-fs/udev-init-scripts |
89 |
+" |
90 |
+ |
91 |
+AT_M4DIR="config" |
92 |
+AUTOTOOLS_IN_SOURCE_BUILD="1" |
93 |
+ |
94 |
+pkg_setup() { |
95 |
+ if use kernel_linux && use test-suite; then |
96 |
+ linux-info_pkg_setup |
97 |
+ if ! linux_config_exists; then |
98 |
+ ewarn "Cannot check the linux kernel configuration." |
99 |
+ else |
100 |
+ # recheck that we don't have usblp to collide with libusb |
101 |
+ if use test-suite; then |
102 |
+ if linux_chkconfig_present BLK_DEV_LOOP; then |
103 |
+ eerror "The ZFS test suite requires loop device support enabled." |
104 |
+ eerror "Please enable it:" |
105 |
+ eerror " CONFIG_BLK_DEV_LOOP=y" |
106 |
+ eerror "in /usr/src/linux/.config or" |
107 |
+ eerror " Device Drivers --->" |
108 |
+ eerror " Block devices --->" |
109 |
+ eerror " [ ] Loopback device support" |
110 |
+ fi |
111 |
+ fi |
112 |
+ fi |
113 |
+ fi |
114 |
+ |
115 |
+} |
116 |
+ |
117 |
+src_prepare() { |
118 |
+ # Update paths |
119 |
+ sed -e "s|/sbin/lsmod|/bin/lsmod|" \ |
120 |
+ -e "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" \ |
121 |
+ -e "s|/sbin/parted|/usr/sbin/parted|" \ |
122 |
+ -i scripts/common.sh.in |
123 |
+ |
124 |
+ autotools-utils_src_prepare |
125 |
+} |
126 |
+ |
127 |
+src_configure() { |
128 |
+ use custom-cflags || strip-flags |
129 |
+ local myeconfargs=( |
130 |
+ --bindir="${EPREFIX}/bin" |
131 |
+ --sbindir="${EPREFIX}/sbin" |
132 |
+ --with-config=user |
133 |
+ --with-dracutdir="/usr/$(get_libdir)/dracut" |
134 |
+ --with-linux="${KV_DIR}" |
135 |
+ --with-linux-obj="${KV_OUT_DIR}" |
136 |
+ --with-udevdir="$(get_udevdir)" |
137 |
+ --with-blkid |
138 |
+ $(use_enable debug) |
139 |
+ ) |
140 |
+ autotools-utils_src_configure |
141 |
+ |
142 |
+ # prepare systemd unit and helper script |
143 |
+ cat "${FILESDIR}/zfs.service.in" | \ |
144 |
+ sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \ |
145 |
+ -e "s:@sysconfdir@:${EPREFIX}/etc:g" \ |
146 |
+ > "${T}/zfs.service" || die |
147 |
+ cat "${FILESDIR}/zfs-init.sh.in" | \ |
148 |
+ sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \ |
149 |
+ -e "s:@sysconfdir@:${EPREFIX}/etc:g" \ |
150 |
+ > "${T}/zfs-init.sh" || die |
151 |
+} |
152 |
+ |
153 |
+src_install() { |
154 |
+ autotools-utils_src_install |
155 |
+ gen_usr_ldscript -a uutil nvpair zpool zfs zfs_core |
156 |
+ use test-suite || rm -rf "${ED}usr/share/zfs" |
157 |
+ |
158 |
+ newbashcomp "${FILESDIR}/bash-completion-r1" zfs |
159 |
+ bashcomp_alias zfs zpool |
160 |
+ |
161 |
+ exeinto /usr/libexec |
162 |
+ doexe "${T}/zfs-init.sh" |
163 |
+ systemd_dounit "${T}/zfs.service" |
164 |
+} |
165 |
+ |
166 |
+pkg_postinst() { |
167 |
+ if ! use kernel-builtin && [ ${PV} = "9999" ] |
168 |
+ then |
169 |
+ einfo "Adding ${P} to the module database to ensure that the" |
170 |
+ einfo "kernel modules and userland utilities stay in sync." |
171 |
+ update_moduledb |
172 |
+ fi |
173 |
+ |
174 |
+ if [ -e "${EROOT}etc/runlevels/boot/zfs" ] |
175 |
+ then |
176 |
+ einfo 'The zfs boot script has been split into the zfs-import,' |
177 |
+ einfo 'zfs-mount and zfs-share scripts.' |
178 |
+ einfo |
179 |
+ einfo 'You had the zfs script in your boot runlevel. For your' |
180 |
+ einfo 'convenience, it has been automatically removed and the three' |
181 |
+ einfo 'scripts that replace it have been configured to start.' |
182 |
+ einfo 'The zfs-import and zfs-mount scripts have been added to the boot' |
183 |
+ einfo 'runlevel while the zfs-share script is in the default runlevel.' |
184 |
+ |
185 |
+ rm "${EROOT}etc/runlevels/boot/zfs" |
186 |
+ ln -snf "${EROOT}etc/init.d/zfs-import" \ |
187 |
+ "${EROOT}etc/runlevels/boot/zfs-import" |
188 |
+ ln -snf "${EROOT}etc/init.d/zfs-mount" \ |
189 |
+ "${EROOT}etc/runlevels/boot/zfs-mount" |
190 |
+ ln -snf "${EROOT}etc/init.d/zfs-share" \ |
191 |
+ "${EROOT}etc/runlevels/default/zfs-share" |
192 |
+ else |
193 |
+ [ -e "${EROOT}etc/runlevels/boot/zfs-import" ] || \ |
194 |
+ einfo "You should add zfs-import to the boot runlevel." |
195 |
+ [ -e "${EROOT}etc/runlevels/boot/zfs-mount" ] || \ |
196 |
+ einfo "You should add zfs-mount to the boot runlevel." |
197 |
+ [ -e "${EROOT}etc/runlevels/default/zfs-share" ] || \ |
198 |
+ einfo "You should add zfs-share to the default runlevel." |
199 |
+ fi |
200 |
+ |
201 |
+ if [ -e "${EROOT}etc/runlevels/default/zed" ] |
202 |
+ then |
203 |
+ einfo 'The downstream OpenRC zed script has replaced by the upstream' |
204 |
+ einfo 'OpenRC zfs-zed script.' |
205 |
+ einfo |
206 |
+ einfo 'You had the zed script in your default runlevel. For your' |
207 |
+ einfo 'convenience, it has been automatically removed and the zfs-zed' |
208 |
+ einfo 'script that replaced it has been configured to start.' |
209 |
+ |
210 |
+ rm "${EROOT}etc/runlevels/boot/zed" |
211 |
+ ln -snf "${EROOT}etc/init.d/zfs-sed" \ |
212 |
+ "${EROOT}etc/runlevels/default/zfs-zed" |
213 |
+ else |
214 |
+ [ -e "${EROOT}etc/runlevels/default/zfs-zed" ] || \ |
215 |
+ einfo "You should add zfs-zed to the default runlevel." |
216 |
+ fi |
217 |
+ |
218 |
+ if [ -e "${EROOT}etc/runlevels/shutdown/zfs-shutdown" ] |
219 |
+ then |
220 |
+ einfo "The zfs-shutdown script is obsolete. Removing it from runlevel." |
221 |
+ rm "${EROOT}etc/runlevels/shutdown/zfs-shutdown" |
222 |
+ fi |
223 |
+ |
224 |
+} |
225 |
+ |
226 |
+pkg_postrm() { |
227 |
+ if ! use kernel-builtin && [ ${PV} = "9999" ] |
228 |
+ then |
229 |
+ remove_moduledb |
230 |
+ fi |
231 |
+} |