Gentoo Archives: gentoo-commits

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