Gentoo Archives: gentoo-commits

From: "Kacper Kowalik (xarthisius)" <xarthisius@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/glusterfs: glusterfs-3.2.5.ebuild ChangeLog
Date: Tue, 07 Feb 2012 16:27:44
Message-Id: 20120207162731.C56692004B@flycatcher.gentoo.org
1 xarthisius 12/02/07 16:27:31
2
3 Modified: ChangeLog
4 Added: glusterfs-3.2.5.ebuild
5 Log:
6 Version bump, fixes bug 402543 by Bernd Feige <Bernd.Feige@×××.net>
7
8 (Portage version: 2.2.0_alpha85/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.35 sys-cluster/glusterfs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.35&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.35&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?r1=1.34&r2=1.35
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v
20 retrieving revision 1.34
21 retrieving revision 1.35
22 diff -u -r1.34 -r1.35
23 --- ChangeLog 21 Dec 2011 08:44:17 -0000 1.34
24 +++ ChangeLog 7 Feb 2012 16:27:31 -0000 1.35
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-cluster/glusterfs
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.34 2011/12/21 08:44:17 floppym Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.35 2012/02/07 16:27:31 xarthisius Exp $
31 +
32 +*glusterfs-3.2.5 (07 Feb 2012)
33 +
34 + 07 Feb 2012; Kacper Kowalik <xarthisius@g.o> +glusterfs-3.2.5.ebuild:
35 + Version bump, fixes bug 402543 by Bernd Feige <Bernd.Feige@×××.net>
36
37 21 Dec 2011; Mike Gilbert <floppym@g.o> glusterfs-3.2.4.ebuild:
38 Force python2 usage. Should resolve bug 372689. Patch by Ian Delaney.
39
40
41
42 1.1 sys-cluster/glusterfs/glusterfs-3.2.5.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.2.5.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.2.5.ebuild?rev=1.1&content-type=text/plain
46
47 Index: glusterfs-3.2.5.ebuild
48 ===================================================================
49 # Copyright 1999-2012 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.2.5.ebuild,v 1.1 2012/02/07 16:27:31 xarthisius Exp $
52
53 EAPI=4
54
55 PYTHON_DEPEND="2"
56 inherit autotools elisp-common eutils multilib python versionator
57
58 DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
59 HOMEPAGE="http://www.gluster.org/"
60 SRC_URI="http://ftp.gluster.com/pub/gluster/${PN}/$(get_version_component_range '1-2')/${PV}/${P}.tar.gz"
61
62 LICENSE="AGPL-3"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="emacs extras +fuse infiniband static-libs vim-syntax"
66
67 RDEPEND="emacs? ( virtual/emacs )
68 fuse? ( >=sys-fs/fuse-2.7.0 )
69 infiniband? ( sys-infiniband/libibverbs )"
70 DEPEND="${RDEPEND}
71 dev-util/pkgconfig
72 sys-devel/bison
73 sys-devel/flex"
74
75 SITEFILE="50${PN}-mode-gentoo.el"
76
77 pkg_setup() {
78 python_set_active_version 2
79 python_pkg_setup
80 }
81
82 src_prepare() {
83 epatch "${FILESDIR}/${PN}-3.1.0-parallel-build.patch" \
84 "${FILESDIR}/${PN}-docdir.patch" \
85 "${FILESDIR}/glusterd-3.2.0-workdir.patch"
86 sed -i -e "s/ -ggdb3//g" -e "s/ -m64//g" argp-standalone/configure.ac || die
87 eautoreconf
88 }
89
90 src_configure() {
91 econf \
92 $(use_enable fuse fuse-client) \
93 $(use_enable infiniband ibverbs) \
94 $(use_enable static-libs static) \
95 --enable-georeplication \
96 --disable-bdb \
97 --docdir=/usr/share/doc/${PF} \
98 --localstatedir=/var
99 }
100
101 src_compile() {
102 emake
103 if use emacs ; then
104 elisp-compile extras/glusterfs-mode.el || die
105 fi
106 }
107
108 src_install() {
109 emake DESTDIR="${D}" install
110
111 if use emacs ; then
112 elisp-install ${PN} extras/glusterfs-mode.el* || die
113 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
114 fi
115
116 if use vim-syntax ; then
117 insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}/glusterfs.vim"
118 insinto /usr/share/vim/vimfiles/syntax; doins extras/glusterfs.vim
119 fi
120
121 if use extras ; then
122 newbin extras/backend-xattr-sanitize.sh glusterfs-backend-xattr-sanitize
123 newbin extras/backend-cleanup.sh glusterfs-backend-cleanup
124 newbin extras/migrate-unify-to-distribute.sh glusterfs-migrate-unify-to-distribute
125 newbin extras/disk_usage_sync.sh glusterfs-disk-usage-sync
126 fi
127
128 dodoc AUTHORS ChangeLog NEWS README THANKS
129
130 newinitd "${FILESDIR}/${PN}.initd" glusterfsd
131 newinitd "${FILESDIR}/glusterd.initd" glusterd
132 newconfd "${FILESDIR}/${PN}.confd" glusterfsd
133
134 keepdir /var/log/${PN}
135 keepdir /var/lib/glusterd
136
137 python_convert_shebangs -r 2 "${ED}"
138 }
139
140 pkg_postinst() {
141 elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
142 elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
143 elog " /etc/init.d/glusterd start"
144 elog
145 elog "For static configurations, the glusterfsd startup script can be multiplexed."
146 elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
147 elog "separate service. To create additional instances of the glusterfsd service"
148 elog "simply create a symlink to the glusterfsd startup script."
149 elog
150 elog "Example:"
151 elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
152 elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
153 elog "You can now treat glusterfsd2 like any other service"
154 elog
155 ewarn "You need to use a ntp client to keep the clocks synchronized across all"
156 ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
157 ewarn "run GlusterFS."
158
159 if [[ ${REPLACING_VERSIONS} < 3.1 ]]; then
160 elog
161 elog "You are upgrading from a previous version of ${PN}, please read:"
162 elog "http://www.gluster.com/community/documentation/index.php/Gluster_3.0_to_3.2_Upgrade_Guide"
163 fi
164
165 use emacs && elisp-site-regen
166 }
167
168 pkg_postrm() {
169 use emacs && elisp-site-regen
170 }