Gentoo Archives: gentoo-commits

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