Gentoo Archives: gentoo-commits

From: "Richard Yao (ryao)" <ryao@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-fs/zfs: zfs-0.6.4.ebuild ChangeLog
Date: Tue, 28 Apr 2015 14:46:54
Message-Id: 20150427135826.4AAA199C@oystercatcher.gentoo.org
1 ryao 15/04/27 13:58:25
2
3 Modified: ChangeLog
4 Added: zfs-0.6.4.ebuild
5 Log:
6 Version bump to 0.6.4
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xBEE84C64)
9
10 Revision Changes Path
11 1.91 sys-fs/zfs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.91&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?rev=1.91&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/ChangeLog?r1=1.90&r2=1.91
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v
20 retrieving revision 1.90
21 retrieving revision 1.91
22 diff -u -r1.90 -r1.91
23 --- ChangeLog 8 Apr 2015 18:27:24 -0000 1.90
24 +++ ChangeLog 27 Apr 2015 13:58:25 -0000 1.91
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-fs/zfs
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.90 2015/04/08 18:27:24 mgorny Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/ChangeLog,v 1.91 2015/04/27 13:58:25 ryao Exp $
30 +
31 +*zfs-0.6.4 (27 Apr 2015)
32 +
33 + 27 Apr 2015; Richard Yao <ryao@g.o> +files/zed, +zfs-0.6.4.ebuild:
34 + Version bump to 0.6.4
35
36 08 Apr 2015; Michał Górny <mgorny@g.o> zfs-0.6.2-r1.ebuild,
37 zfs-0.6.2-r2.ebuild, zfs-0.6.2-r3.ebuild, zfs-0.6.2-r4.ebuild,
38
39
40
41 1.1 sys-fs/zfs/zfs-0.6.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/zfs/zfs-0.6.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: zfs-0.6.4.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/sys-fs/zfs/zfs-0.6.4.ebuild,v 1.1 2015/04/27 13:58:25 ryao Exp $
51
52 EAPI="5"
53 PYTHON_COMPAT=( python{2_7,3_3,3_4} )
54
55 inherit python-r1
56
57 AT_M4DIR="config"
58 AUTOTOOLS_AUTORECONF="1"
59 AUTOTOOLS_IN_SOURCE_BUILD="1"
60
61 if [ ${PV} == "9999" ] ; then
62 inherit git-2 linux-mod
63 EGIT_REPO_URI="git://github.com/zfsonlinux/${PN}.git"
64 else
65 inherit eutils versionator
66 MY_PV=$(replace_version_separator 3 '-')
67 SRC_URI="https://github.com/zfsonlinux/${PN}/archive/${PN}-${MY_PV}.tar.gz"
68 S="${WORKDIR}/${PN}-${PN}-${MY_PV}"
69 KEYWORDS="~amd64"
70 fi
71
72 inherit bash-completion-r1 flag-o-matic toolchain-funcs autotools-utils udev systemd
73
74 DESCRIPTION="Userland utilities for ZFS Linux kernel module"
75 HOMEPAGE="http://zfsonlinux.org/"
76
77 LICENSE="BSD-2 CDDL bash-completion? ( MIT )"
78 SLOT="0"
79 IUSE="bash-completion custom-cflags debug kernel-builtin +rootfs test-suite static-libs"
80 RESTRICT="test"
81
82 COMMON_DEPEND="
83 sys-apps/util-linux[static-libs?]
84 sys-libs/zlib[static-libs(+)?]
85 virtual/awk
86 "
87 DEPEND="${COMMON_DEPEND}
88 virtual/pkgconfig
89 "
90
91 RDEPEND="${COMMON_DEPEND}
92 !=sys-apps/grep-2.13*
93 !kernel-builtin? ( =sys-fs/zfs-kmod-${PV}* )
94 !sys-fs/zfs-fuse
95 !prefix? ( virtual/udev )
96 test-suite? (
97 sys-apps/util-linux
98 sys-devel/bc
99 sys-block/parted
100 sys-fs/lsscsi
101 sys-fs/mdadm
102 sys-process/procps
103 virtual/modutils
104 )
105 rootfs? (
106 app-arch/cpio
107 app-misc/pax-utils
108 !<sys-boot/grub-2.00-r2:2
109 )
110 "
111
112 pkg_setup() {
113 :
114 }
115
116 src_prepare() {
117 # Update paths
118 sed -e "s|/sbin/lsmod|/bin/lsmod|" \
119 -e "s|/usr/bin/scsi-rescan|/usr/sbin/rescan-scsi-bus|" \
120 -e "s|/sbin/parted|/usr/sbin/parted|" \
121 -i scripts/common.sh.in
122
123 autotools-utils_src_prepare
124 }
125
126 src_configure() {
127 use custom-cflags || strip-flags
128 local myeconfargs=(
129 --bindir="${EPREFIX}/bin"
130 --sbindir="${EPREFIX}/sbin"
131 --with-config=user
132 --with-linux="${KV_DIR}"
133 --with-linux-obj="${KV_OUT_DIR}"
134 --with-udevdir="$(get_udevdir)"
135 --with-blkid
136 $(use_enable debug)
137 )
138 autotools-utils_src_configure
139
140 # prepare systemd unit and helper script
141 cat "${FILESDIR}/zfs.service.in" | \
142 sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \
143 -e "s:@sysconfdir@:${EPREFIX}/etc:g" \
144 > "${T}/zfs.service" || die
145 cat "${FILESDIR}/zfs-init.sh.in" | \
146 sed -e "s:@sbindir@:${EPREFIX}/sbin:g" \
147 -e "s:@sysconfdir@:${EPREFIX}/etc:g" \
148 > "${T}/zfs-init.sh" || die
149 }
150
151 src_install() {
152 autotools-utils_src_install
153 gen_usr_ldscript -a uutil nvpair zpool zfs zfs_core
154 rm -rf "${ED}usr/lib/dracut"
155 use test-suite || rm -rf "${ED}usr/share/zfs"
156
157 use bash-completion && newbashcomp "${FILESDIR}/bash-completion-r1" zfs
158
159 exeinto /usr/libexec
160 doexe "${T}/zfs-init.sh"
161 systemd_dounit "${T}/zfs.service"
162 doinitd "${FILESDIR}/zed"
163 }
164
165 pkg_postinst() {
166
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 [ -e "${EROOT}/etc/runlevels/boot/zfs" ] \
175 || ewarn 'You should add zfs to the boot runlevel.'
176
177 if [ -e "${EROOT}/etc/runlevels/shutdown/zfs-shutdown" ]
178 then
179 einfo "The zfs-shutdown script is obsolete. Removing it from runlevel."
180 rm "${EROOT}/etc/runlevels/shutdown/zfs-shutdown"
181 fi
182
183 }
184
185 pkg_postrm() {
186 if ! use kernel-builtin && [ ${PV} = "9999" ]
187 then
188 remove_moduledb
189 fi
190 }