Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/glusterfs: glusterfs-3.4.4-r1.ebuild ChangeLog
Date: Wed, 25 Jun 2014 09:54:35
Message-Id: 20140625095431.948EE2004F@flycatcher.gentoo.org
1 dev-zero 14/06/25 09:54:31
2
3 Modified: ChangeLog
4 Added: glusterfs-3.4.4-r1.ebuild
5 Log:
6 Revision bump to pull in backported bugfix for memory leak in FUSE client.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x1A5D023975B0583D!)
9
10 Revision Changes Path
11 1.56 sys-cluster/glusterfs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.56&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.56&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?r1=1.55&r2=1.56
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v
20 retrieving revision 1.55
21 retrieving revision 1.56
22 diff -u -r1.55 -r1.56
23 --- ChangeLog 16 Jun 2014 17:20:45 -0000 1.55
24 +++ ChangeLog 25 Jun 2014 09:54:31 -0000 1.56
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sys-cluster/glusterfs
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.55 2014/06/16 17:20:45 ultrabug Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.56 2014/06/25 09:54:31 dev-zero Exp $
30 +
31 +*glusterfs-3.4.4-r1 (25 Jun 2014)
32 +
33 + 25 Jun 2014; Tiziano Müller <dev-zero@g.o>
34 + +files/glusterfs-3.4.4-fuse-fix-memory-leak-in-fuse_getxattr.patch,
35 + +glusterfs-3.4.4-r1.ebuild:
36 + Revision bump to pull in backported bugfix for memory leak in FUSE client.
37
38 *glusterfs-3.4.4 (16 Jun 2014)
39
40
41
42
43 1.1 sys-cluster/glusterfs/glusterfs-3.4.4-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.4.4-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.4.4-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: glusterfs-3.4.4-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.4.4-r1.ebuild,v 1.1 2014/06/25 09:54:31 dev-zero Exp $
53
54 EAPI=5
55
56 PYTHON_COMPAT=( python{2_6,2_7} )
57 AUTOTOOLS_AUTORECONF=1
58
59 inherit autotools-utils elisp-common eutils multilib python-single-r1 versionator
60
61 DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
62 HOMEPAGE="http://www.gluster.org/"
63 SRC_URI="http://download.gluster.org/pub/gluster/${PN}/$(get_version_component_range '1-2')/${PV}/${P}.tar.gz"
64
65 LICENSE="|| ( GPL-2 LGPL-3+ )"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="bd-xlator debug emacs extras +fuse +georeplication infiniband static-libs systemtap vim-syntax"
69
70 REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} )"
71
72 RDEPEND="bd-xlator? ( sys-fs/lvm2 )
73 emacs? ( virtual/emacs )
74 fuse? ( >=sys-fs/fuse-2.7.0 )
75 georeplication? ( ${PYTHON_DEPS} )
76 infiniband? ( sys-infiniband/libibverbs sys-infiniband/librdmacm )
77 systemtap? ( dev-util/systemtap )
78 sys-libs/readline
79 dev-libs/libaio
80 dev-libs/libxml2
81 dev-libs/openssl
82 || ( sys-libs/glibc sys-libs/argp-standalone )"
83 DEPEND="${RDEPEND}
84 virtual/pkgconfig
85 sys-devel/bison
86 sys-devel/flex"
87
88 SITEFILE="50${PN}-mode-gentoo.el"
89
90 PATCHES=(
91 "${FILESDIR}/${PN}-3.4.0-silent_rules.patch"
92 "${FILESDIR}/${PN}-3.4.0-build-shared-only.patch"
93 "${FILESDIR}/${PN}-3.4.4-fuse-fix-memory-leak-in-fuse_getxattr.patch"
94 )
95
96 DOCS=( AUTHORS ChangeLog NEWS README THANKS )
97
98 # Maintainer notes:
99 # * The build system will always configure & build argp-standalone but it'll never use it
100 # if the argp.h header is found in the system. Which should be the case with
101 # glibc or if argp-standalone is installed.
102
103 pkg_setup() {
104 use georeplication && python-single-r1_pkg_setup
105 }
106
107 src_configure() {
108 local myeconfargs=(
109 --disable-dependency-tracking
110 --disable-silent-rules
111 --disable-fusermount
112 $(use_enable debug)
113 $(use_enable bd-xlator )
114 $(use_enable fuse fuse-client)
115 $(use_enable georeplication)
116 $(use_enable infiniband ibverbs)
117 $(use_enable static-libs static)
118 $(use_enable systemtap)
119 --docdir=/usr/share/doc/${PF}
120 --localstatedir=/var
121 )
122 autotools-utils_src_configure
123 }
124
125 src_compile() {
126 autotools-utils_src_compile
127
128 use emacs && elisp-compile extras/glusterfs-mode.el
129 }
130
131 src_install() {
132 autotools-utils_src_install
133
134 rm "${D}/etc/glusterfs/glusterfs-logrotate" || die "removing false logrotate failed"
135 insinto /etc/logrotate.d
136 newins "${FILESDIR}"/glusterfs.logrotate glusterfs
137
138 if use emacs ; then
139 elisp-install ${PN} extras/glusterfs-mode.el*
140 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
141 fi
142
143 if use vim-syntax ; then
144 insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim
145 insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim
146 fi
147
148 if use extras ; then
149 sed -i -e "s|quota-remove-xattr.sh|${PN}-quota-remove-xattr|" extras/quota-metadata-cleanup.sh || die "sed failed"
150 for e in backend-xattr-sanitize backend-cleanup migrate-unify-to-distribute quota-metadata-cleanup quota-remove-xattr ; do
151 newbin extras/${e}.sh ${PN}-${e}
152 done
153 newbin extras/disk_usage_sync.sh ${PN}-disk-usage-sync
154 fi
155
156 newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd
157 newinitd "${FILESDIR}/glusterd-r1.initd" glusterd
158 newconfd "${FILESDIR}/${PN}.confd" glusterfsd
159
160 keepdir /var/log/${PN}
161 keepdir /var/lib/glusterd
162
163 # QA
164 rm -rf "${ED}/var/run/"
165
166 use georeplication && python_fix_shebang "${ED}"
167 }
168
169 pkg_postinst() {
170 elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
171 elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
172 elog " /etc/init.d/glusterd start"
173 elog
174 elog "For static configurations, the glusterfsd startup script can be multiplexed."
175 elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
176 elog "separate service. To create additional instances of the glusterfsd service"
177 elog "simply create a symlink to the glusterfsd startup script."
178 elog
179 elog "Example:"
180 elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
181 elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
182 elog "You can now treat glusterfsd2 like any other service"
183 elog
184 ewarn "You need to use a ntp client to keep the clocks synchronized across all"
185 ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
186 ewarn "run GlusterFS."
187
188 elog
189 elog "If you are upgrading from a previous version of ${PN}, please read:"
190 elog " https://vbellur.wordpress.com/2013/07/15/upgrading-to-glusterfs-3-4/"
191
192 use emacs && elisp-site-regen
193 }
194
195 pkg_postrm() {
196 use emacs && elisp-site-regen
197 }