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: glusterfs-3.2.2.ebuild ChangeLog glusterfs-3.2.0.ebuild
Date: Thu, 28 Jul 2011 08:15:26
Message-Id: 20110728081514.21C5E2004B@flycatcher.gentoo.org
1 ultrabug 11/07/28 08:15:14
2
3 Modified: ChangeLog
4 Added: glusterfs-3.2.2.ebuild
5 Removed: glusterfs-3.2.0.ebuild
6 Log:
7 Version bump wrt #376495, drop old.
8
9 (Portage version: 2.1.10.7/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.30 sys-cluster/glusterfs/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.30&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.30&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?r1=1.29&r2=1.30
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v
21 retrieving revision 1.29
22 retrieving revision 1.30
23 diff -u -r1.29 -r1.30
24 --- ChangeLog 4 Jul 2011 16:52:23 -0000 1.29
25 +++ ChangeLog 28 Jul 2011 08:15:14 -0000 1.30
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.29 2011/07/04 16:52:23 ultrabug Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.30 2011/07/28 08:15:14 ultrabug Exp $
31 +
32 +*glusterfs-3.2.2 (28 Jul 2011)
33 +
34 + 28 Jul 2011; Ultrabug <ultrabug@g.o> -glusterfs-3.2.0.ebuild,
35 + +glusterfs-3.2.2.ebuild:
36 + Version bump wrt #376495, drop old.
37
38 *glusterfs-3.2.1 (04 Jul 2011)
39
40
41
42
43 1.1 sys-cluster/glusterfs/glusterfs-3.2.2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.2.2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.2.2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: glusterfs-3.2.2.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.2.ebuild,v 1.1 2011/07/28 08:15:14 ultrabug 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 }