1 |
commit: f590842e38dd1fbbc9cb63c68176c07c7495ba6a |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 27 19:46:23 2020 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 27 20:12:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f590842e |
7 |
|
8 |
sys-fs/zfs: drop old rc |
9 |
|
10 |
Package-Manager: Portage-3.0.4, Repoman-3.0.1 |
11 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
12 |
|
13 |
sys-fs/zfs/zfs-2.0.0_rc1.ebuild | 217 ---------------------------------------- |
14 |
1 file changed, 217 deletions(-) |
15 |
|
16 |
diff --git a/sys-fs/zfs/zfs-2.0.0_rc1.ebuild b/sys-fs/zfs/zfs-2.0.0_rc1.ebuild |
17 |
deleted file mode 100644 |
18 |
index e5be95e979c..00000000000 |
19 |
--- a/sys-fs/zfs/zfs-2.0.0_rc1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,217 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-DISTUTILS_OPTIONAL=1 |
28 |
-PYTHON_COMPAT=( python3_{6,7} ) |
29 |
-MY_P="${P/_rc/-rc}" |
30 |
- |
31 |
-inherit autotools bash-completion-r1 distutils-r1 flag-o-matic linux-info pam systemd toolchain-funcs udev usr-ldscript |
32 |
- |
33 |
-DESCRIPTION="Userland utilities for ZFS Linux kernel module" |
34 |
-HOMEPAGE="https://github.com/openzfs/zfs" |
35 |
- |
36 |
-if [[ ${PV} == "9999" ]] ; then |
37 |
- inherit git-r3 linux-mod |
38 |
- EGIT_REPO_URI="https://github.com/openzfs/zfs.git" |
39 |
-else |
40 |
- SRC_URI="https://github.com/openzfs/${PN}/releases/download/${MY_P}/${MY_P}.tar.gz" |
41 |
- KEYWORDS="~amd64 ~arm64 ~ppc64" |
42 |
- S="${WORKDIR}/${P%_rc?}" |
43 |
-fi |
44 |
- |
45 |
-LICENSE="BSD-2 CDDL MIT" |
46 |
-SLOT="0" |
47 |
-IUSE="custom-cflags debug kernel-builtin libressl pam python +rootfs test-suite static-libs" |
48 |
- |
49 |
-DEPEND=" |
50 |
- ${PYTHON_DEPS} |
51 |
- net-libs/libtirpc[static-libs?] |
52 |
- sys-apps/util-linux[static-libs?] |
53 |
- sys-libs/zlib[static-libs(+)?] |
54 |
- virtual/awk |
55 |
- virtual/libudev[static-libs(-)?] |
56 |
- libressl? ( dev-libs/libressl:0=[static-libs?] ) |
57 |
- !libressl? ( dev-libs/openssl:0=[static-libs?] ) |
58 |
- pam? ( sys-libs/pam ) |
59 |
- python? ( |
60 |
- virtual/python-cffi[${PYTHON_USEDEP}] |
61 |
- ) |
62 |
-" |
63 |
- |
64 |
-BDEPEND="virtual/awk |
65 |
- virtual/pkgconfig |
66 |
- python? ( |
67 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
68 |
- ) |
69 |
-" |
70 |
- |
71 |
-RDEPEND="${DEPEND} |
72 |
- !kernel-builtin? ( ~sys-fs/zfs-kmod-${PV} ) |
73 |
- !prefix? ( virtual/udev ) |
74 |
- sys-fs/udev-init-scripts |
75 |
- rootfs? ( |
76 |
- app-arch/cpio |
77 |
- app-misc/pax-utils |
78 |
- !<sys-kernel/genkernel-3.5.1.1 |
79 |
- ) |
80 |
- test-suite? ( |
81 |
- sys-apps/kmod[tools] |
82 |
- sys-apps/util-linux |
83 |
- sys-devel/bc |
84 |
- sys-block/parted |
85 |
- sys-fs/lsscsi |
86 |
- sys-fs/mdadm |
87 |
- sys-process/procps |
88 |
- ) |
89 |
-" |
90 |
- |
91 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
92 |
- |
93 |
-RESTRICT="test" |
94 |
- |
95 |
-PATCHES=( "${FILESDIR}/bash-completion-sudo.patch" ) |
96 |
- |
97 |
-pkg_setup() { |
98 |
- if use kernel_linux && use test-suite; then |
99 |
- linux-info_pkg_setup |
100 |
- |
101 |
- if ! linux_config_exists; then |
102 |
- ewarn "Cannot check the linux kernel configuration." |
103 |
- else |
104 |
- if use test-suite; then |
105 |
- if linux_chkconfig_present BLK_DEV_LOOP; then |
106 |
- eerror "The ZFS test suite requires loop device support enabled." |
107 |
- eerror "Please enable it:" |
108 |
- eerror " CONFIG_BLK_DEV_LOOP=y" |
109 |
- eerror "in /usr/src/linux/.config or" |
110 |
- eerror " Device Drivers --->" |
111 |
- eerror " Block devices --->" |
112 |
- eerror " [X] Loopback device support" |
113 |
- fi |
114 |
- fi |
115 |
- fi |
116 |
- fi |
117 |
-} |
118 |
- |
119 |
-src_prepare() { |
120 |
- default |
121 |
- |
122 |
- if [[ ${PV} == "9999" ]]; then |
123 |
- eautoreconf |
124 |
- else |
125 |
- # Set revision number |
126 |
- sed -i "s/\(Release:\)\(.*\)1/\1\2${PR}-gentoo/" META || die "Could not set Gentoo release" |
127 |
- fi |
128 |
- |
129 |
- if use python; then |
130 |
- pushd contrib/pyzfs >/dev/null || die |
131 |
- distutils-r1_src_prepare |
132 |
- popd >/dev/null || die |
133 |
- fi |
134 |
- |
135 |
- # prevent errors showing up on zfs-mount stop, #647688 |
136 |
- # openrc will unmount all filesystems anyway. |
137 |
- sed -i "/^ZFS_UNMOUNT=/ s/yes/no/" "etc/default/zfs.in" || die |
138 |
-} |
139 |
- |
140 |
-src_configure() { |
141 |
- use custom-cflags || strip-flags |
142 |
- python_setup |
143 |
- |
144 |
- local myconf=( |
145 |
- --bindir="${EPREFIX}/bin" |
146 |
- --enable-shared |
147 |
- --enable-systemd |
148 |
- --enable-sysvinit |
149 |
- --localstatedir="${EPREFIX}/var" |
150 |
- --sbindir="${EPREFIX}/sbin" |
151 |
- --with-config=user |
152 |
- --with-dracutdir="${EPREFIX}/usr/lib/dracut" |
153 |
- --with-linux="${KV_DIR}" |
154 |
- --with-linux-obj="${KV_OUT_DIR}" |
155 |
- --with-udevdir="$(get_udevdir)" |
156 |
- --with-pamconfigsdir="${EPREFIX}/unwanted_debian_files" |
157 |
- --with-pammoduledir="$(getpam_mod_dir)" |
158 |
- --with-python="${EPYTHON}" |
159 |
- --with-systemdunitdir="$(systemd_get_systemunitdir)" |
160 |
- --with-systemdpresetdir="${EPREFIX}/lib/systemd/system-preset" |
161 |
- $(use_enable debug) |
162 |
- $(use_enable pam) |
163 |
- $(use_enable python pyzfs) |
164 |
- $(use_enable static-libs static) |
165 |
- ) |
166 |
- |
167 |
- econf "${myconf[@]}" |
168 |
-} |
169 |
- |
170 |
-src_compile() { |
171 |
- default |
172 |
- if use python; then |
173 |
- pushd contrib/pyzfs >/dev/null || die |
174 |
- distutils-r1_src_compile |
175 |
- popd >/dev/null || die |
176 |
- fi |
177 |
-} |
178 |
- |
179 |
-src_install() { |
180 |
- default |
181 |
- |
182 |
- gen_usr_ldscript -a uutil nvpair zpool zfs zfs_core |
183 |
- |
184 |
- use pam && { rm -rv "${ED}/unwanted_debian_files" || die ; } |
185 |
- |
186 |
- use test-suite || { rm -r "${ED}/usr/share/zfs" || die ; } |
187 |
- |
188 |
- if ! use static-libs; then |
189 |
- find "${ED}/" -name '*.la' -delete || die |
190 |
- fi |
191 |
- |
192 |
- dobashcomp contrib/bash_completion.d/zfs |
193 |
- bashcomp_alias zfs zpool |
194 |
- |
195 |
- # strip executable bit from conf.d file |
196 |
- fperms 0644 /etc/conf.d/zfs |
197 |
- |
198 |
- if use python; then |
199 |
- pushd contrib/pyzfs >/dev/null || die |
200 |
- distutils-r1_src_install |
201 |
- popd >/dev/null || die |
202 |
- fi |
203 |
- |
204 |
- # enforce best available python implementation |
205 |
- python_fix_shebang "${ED}/bin" |
206 |
-} |
207 |
- |
208 |
-pkg_postinst() { |
209 |
- if use rootfs; then |
210 |
- if ! has_version sys-kernel/genkernel && ! has_version sys-kernel/dracut; then |
211 |
- elog "root on zfs requires initramfs to boot" |
212 |
- elog "the following packages known to provide one and tested on regular basis:" |
213 |
- elog " sys-kernel/dracut" |
214 |
- elog " sys-kernel/genkernel" |
215 |
- fi |
216 |
- fi |
217 |
- |
218 |
- if ! use kernel-builtin && [[ ${PV} = "9999" ]]; then |
219 |
- einfo "Adding ${P} to the module database to ensure that the" |
220 |
- einfo "kernel modules and userland utilities stay in sync." |
221 |
- update_moduledb |
222 |
- fi |
223 |
- |
224 |
- [[ -e "${EROOT}/etc/runlevels/boot/zfs-import" ]] || \ |
225 |
- einfo "You should add zfs-import to the boot runlevel." |
226 |
- [[ -e "${EROOT}/etc/runlevels/boot/zfs-mount" ]]|| \ |
227 |
- einfo "You should add zfs-mount to the boot runlevel." |
228 |
- [[ -e "${EROOT}/etc/runlevels/default/zfs-share" ]] || \ |
229 |
- einfo "You should add zfs-share to the default runlevel." |
230 |
- [[ -e "${EROOT}/etc/runlevels/default/zfs-zed" ]] || \ |
231 |
- einfo "You should add zfs-zed to the default runlevel." |
232 |
-} |
233 |
- |
234 |
-pkg_postrm() { |
235 |
- if ! use kernel-builtin && [[ ${PV} == "9999" ]]; then |
236 |
- remove_moduledb |
237 |
- fi |
238 |
-} |