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