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.1.4.ebuild glusterfs-3.1.1.ebuild glusterfs-3.1.3-r1.ebuild
Date: Wed, 27 Apr 2011 12:07:12
Message-Id: 20110427120700.3DBF420054@flycatcher.gentoo.org
1 alexxy 11/04/27 12:06:59
2
3 Modified: ChangeLog
4 Added: glusterfs-3.1.4.ebuild
5 Removed: glusterfs-3.1.1.ebuild glusterfs-3.1.3-r1.ebuild
6 Log:
7 [sys-cluster/glusterfs] Version bump & clean up
8
9 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.25 sys-cluster/glusterfs/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.25&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.25&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?r1=1.24&r2=1.25
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v
21 retrieving revision 1.24
22 retrieving revision 1.25
23 diff -u -r1.24 -r1.25
24 --- ChangeLog 17 Apr 2011 14:57:06 -0000 1.24
25 +++ ChangeLog 27 Apr 2011 12:06:59 -0000 1.25
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.24 2011/04/17 14:57:06 fauli Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.25 2011/04/27 12:06:59 alexxy Exp $
31 +
32 +*glusterfs-3.1.4 (27 Apr 2011)
33 +
34 + 27 Apr 2011; Alexey Shvetsov <alexxy@g.o> -glusterfs-3.1.1.ebuild,
35 + -glusterfs-3.1.3-r1.ebuild, +glusterfs-3.1.4.ebuild:
36 + Version bump & clean up
37
38 17 Apr 2011; Christian Faulhammer <fauli@g.o>
39 glusterfs-3.1.2.ebuild:
40
41
42
43 1.1 sys-cluster/glusterfs/glusterfs-3.1.4.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.1.4.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.1.4.ebuild?rev=1.1&content-type=text/plain
47
48 Index: glusterfs-3.1.4.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.1.4.ebuild,v 1.1 2011/04/27 12:06:59 alexxy Exp $
53
54 EAPI="3"
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-workdir.patch"
78 sed -i -e "s/ -ggdb3//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 --disable-bdb \
88 --docdir=/usr/share/doc/${PF} \
89 --localstatedir=/var
90 }
91
92 src_compile() {
93 emake || die
94 if use emacs ; then
95 elisp-compile extras/glusterfs-mode.el || die
96 fi
97 }
98
99 src_install() {
100 emake DESTDIR="${D}" install || die
101
102 if use emacs ; then
103 elisp-install ${PN} extras/glusterfs-mode.el* || die
104 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
105 fi
106
107 if use vim-syntax ; then
108 insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}/glusterfs.vim" || die
109 insinto /usr/share/vim/vimfiles/syntax; doins extras/glusterfs.vim || die
110 fi
111
112 if use extras ; then
113 newbin extras/backend-xattr-sanitize.sh glusterfs-backend-xattr-sanitize || die
114 newbin extras/backend-cleanup.sh glusterfs-backend-cleanup || die
115 newbin extras/migrate-unify-to-distribute.sh glusterfs-migrate-unify-to-distribute || die
116 newbin extras/disk_usage_sync.sh glusterfs-disk-usage-sync || die
117 fi
118
119 dodoc AUTHORS ChangeLog NEWS README THANKS || die
120
121 newinitd "${FILESDIR}/${PN}.initd" glusterfsd || die
122 newinitd "${FILESDIR}/glusterd.initd" glusterd || die
123 newconfd "${FILESDIR}/${PN}.confd" glusterfsd || die
124
125 keepdir /var/log/${PN} || die
126 keepdir /var/lib/glusterd || die
127 }
128
129 pkg_postinst() {
130 elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
131 elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
132 elog " /etc/init.d/glusterd start"
133 elog
134 elog "For static configurations, the glusterfsd startup script can be multiplexed."
135 elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
136 elog "separate service. To create additional instances of the glusterfsd service"
137 elog "simply create a symlink to the glusterfsd startup script."
138 elog
139 elog "Example:"
140 elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
141 elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
142 elog "You can now treat glusterfsd2 like any other service"
143 elog
144 elog "For more information on how to mount exported GlusterFS filesystems visit:"
145 elog "http://www.gluster.org/docs/index.php/Mounting_a_GlusterFS_Volume"
146 elog
147 elog "If you are upgrading from glusterfs 3.0.x please read:"
148 elog "http://www.gluster.com/community/documentation/index.php/Gluster_3.0_to_3.1_Upgrade_Guide"
149 elog
150 ewarn "You need to use a ntp client to keep the clocks synchronized across all"
151 ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
152 ewarn "run GlusterFS."
153
154 use emacs && elisp-site-regen
155 }
156
157 pkg_postrm() {
158 use emacs && elisp-site-regen
159 }