Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-cluster/glusterfs: ChangeLog glusterfs-3.2.3.ebuild glusterfs-3.2.1.ebuild glusterfs-3.2.2.ebuild
Date: Wed, 31 Aug 2011 15:16:49
Message-Id: 20110831151639.208ED2004C@flycatcher.gentoo.org
1 alexxy 11/08/31 15:16:39
2
3 Modified: ChangeLog
4 Added: glusterfs-3.2.3.ebuild
5 Removed: glusterfs-3.2.1.ebuild glusterfs-3.2.2.ebuild
6 Log:
7 [sys-cluster/glusterfs] Version bump
8
9 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.31 sys-cluster/glusterfs/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.31&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.31&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?r1=1.30&r2=1.31
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v
21 retrieving revision 1.30
22 retrieving revision 1.31
23 diff -u -r1.30 -r1.31
24 --- ChangeLog 28 Jul 2011 08:15:14 -0000 1.30
25 +++ ChangeLog 31 Aug 2011 15:16:39 -0000 1.31
26 @@ -1,6 +1,12 @@
27 # ChangeLog for sys-cluster/glusterfs
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.30 2011/07/28 08:15:14 ultrabug Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.31 2011/08/31 15:16:39 alexxy Exp $
31 +
32 +*glusterfs-3.2.3 (31 Aug 2011)
33 +
34 + 31 Aug 2011; Alexey Shvetsov <alexxy@g.o> -glusterfs-3.2.1.ebuild,
35 + -glusterfs-3.2.2.ebuild, +glusterfs-3.2.3.ebuild:
36 + Version bump
37
38 *glusterfs-3.2.2 (28 Jul 2011)
39
40
41
42
43 1.1 sys-cluster/glusterfs/glusterfs-3.2.3.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.2.3.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.2.3.ebuild?rev=1.1&content-type=text/plain
47
48 Index: glusterfs-3.2.3.ebuild
49 ===================================================================
50 # Copyright 1999-2011 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.2.3.ebuild,v 1.1 2011/08/31 15:16:39 alexxy Exp $
53
54 EAPI=4
55
56 inherit autotools elisp-common eutils multilib 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 DEPEND="emacs? ( virtual/emacs )
68 fuse? ( >=sys-fs/fuse-2.7.0 )
69 infiniband? ( sys-infiniband/libibverbs )"
70 RDEPEND="${DEPEND}"
71
72 SITEFILE="50${PN}-mode-gentoo.el"
73
74 src_prepare() {
75 epatch "${FILESDIR}/${PN}-3.1.0-parallel-build.patch" \
76 "${FILESDIR}/${PN}-docdir.patch" \
77 "${FILESDIR}/glusterd-3.2.0-workdir.patch"
78 sed -i -e "s/ -ggdb3//g" -e "s/ -m64//g" argp-standalone/configure.ac || die
79 eautoreconf
80 }
81
82 src_configure() {
83 econf \
84 $(use_enable fuse fuse-client) \
85 $(use_enable infiniband ibverbs) \
86 $(use_enable static-libs static) \
87 --enable-georeplication \
88 --disable-bdb \
89 --docdir=/usr/share/doc/${PF} \
90 --localstatedir=/var
91 }
92
93 src_compile() {
94 emake
95 if use emacs ; then
96 elisp-compile extras/glusterfs-mode.el || die
97 fi
98 }
99
100 src_install() {
101 emake DESTDIR="${D}" install
102
103 if use emacs ; then
104 elisp-install ${PN} extras/glusterfs-mode.el* || die
105 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
106 fi
107
108 if use vim-syntax ; then
109 insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}/glusterfs.vim"
110 insinto /usr/share/vim/vimfiles/syntax; doins extras/glusterfs.vim
111 fi
112
113 if use extras ; then
114 newbin extras/backend-xattr-sanitize.sh glusterfs-backend-xattr-sanitize
115 newbin extras/backend-cleanup.sh glusterfs-backend-cleanup
116 newbin extras/migrate-unify-to-distribute.sh glusterfs-migrate-unify-to-distribute
117 newbin extras/disk_usage_sync.sh glusterfs-disk-usage-sync
118 fi
119
120 dodoc AUTHORS ChangeLog NEWS README THANKS
121
122 newinitd "${FILESDIR}/${PN}.initd" glusterfsd
123 newinitd "${FILESDIR}/glusterd.initd" glusterd
124 newconfd "${FILESDIR}/${PN}.confd" glusterfsd
125
126 keepdir /var/log/${PN}
127 keepdir /var/lib/glusterd
128 }
129
130 pkg_postinst() {
131 elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
132 elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
133 elog " /etc/init.d/glusterd start"
134 elog
135 elog "For static configurations, the glusterfsd startup script can be multiplexed."
136 elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
137 elog "separate service. To create additional instances of the glusterfsd service"
138 elog "simply create a symlink to the glusterfsd startup script."
139 elog
140 elog "Example:"
141 elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
142 elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
143 elog "You can now treat glusterfsd2 like any other service"
144 elog
145 ewarn "You need to use a ntp client to keep the clocks synchronized across all"
146 ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
147 ewarn "run GlusterFS."
148
149 if [[ ${REPLACING_VERSIONS} < 3.1 ]]; then
150 elog
151 elog "You are upgrading from a previous version of ${PN}, please read:"
152 elog "http://www.gluster.com/community/documentation/index.php/Gluster_3.0_to_3.2_Upgrade_Guide"
153 fi
154
155 use emacs && elisp-site-regen
156 }
157
158 pkg_postrm() {
159 use emacs && elisp-site-regen
160 }