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.1.2.ebuild
Date: Fri, 04 Feb 2011 11:44:44
Message-Id: 20110204114434.272CC20054@flycatcher.gentoo.org
1 ultrabug 11/02/04 11:44:34
2
3 Modified: ChangeLog
4 Added: glusterfs-3.1.2.ebuild
5 Log:
6 Version bump wrt #353413
7
8 (Portage version: 2.1.9.35/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.18 sys-cluster/glusterfs/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.18&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.18&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/ChangeLog?r1=1.17&r2=1.18
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v
20 retrieving revision 1.17
21 retrieving revision 1.18
22 diff -u -r1.17 -r1.18
23 --- ChangeLog 31 Dec 2010 20:43:50 -0000 1.17
24 +++ ChangeLog 4 Feb 2011 11:44:33 -0000 1.18
25 @@ -1,6 +1,11 @@
26 # ChangeLog for sys-cluster/glusterfs
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.17 2010/12/31 20:43:50 phajdan.jr Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.18 2011/02/04 11:44:33 ultrabug Exp $
31 +
32 +*glusterfs-3.1.2 (04 Feb 2011)
33 +
34 + 04 Feb 2011; Ultrabug <ultrabug@g.o> +glusterfs-3.1.2.ebuild:
35 + Version bump wrt #353413
36
37 31 Dec 2010; Pawel Hajdan jr <phajdan.jr@g.o>
38 glusterfs-3.1.1.ebuild:
39
40
41
42 1.1 sys-cluster/glusterfs/glusterfs-3.1.2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.1.2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.1.2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: glusterfs-3.1.2.ebuild
48 ===================================================================
49 # Copyright 1999-2011 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.1.2.ebuild,v 1.1 2011/02/04 11:44:33 ultrabug Exp $
52
53 EAPI="3"
54
55 inherit autotools elisp-common eutils multilib versionator
56
57 DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
58 HOMEPAGE="http://www.gluster.org/"
59 SRC_URI="http://ftp.gluster.com/pub/gluster/${PN}/$(get_version_component_range '1-2')/${PV}/${P}.tar.gz"
60
61 LICENSE="AGPL-3"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="emacs extras +fuse infiniband static-libs vim-syntax"
65
66 DEPEND="emacs? ( virtual/emacs )
67 fuse? ( >=sys-fs/fuse-2.7.0 )
68 infiniband? ( sys-infiniband/libibverbs )"
69 RDEPEND="${DEPEND}"
70
71 SITEFILE="50${PN}-mode-gentoo.el"
72
73 src_prepare() {
74 epatch "${FILESDIR}/${PN}-3.1.0-parallel-build.patch" \
75 "${FILESDIR}/${PN}-docdir.patch" \
76 "${FILESDIR}/glusterd-workdir.patch"
77 eautoreconf
78 }
79
80 src_configure() {
81 econf \
82 $(use_enable fuse fuse-client) \
83 $(use_enable infiniband ibverbs) \
84 $(use_enable static-libs static) \
85 --disable-bdb \
86 --docdir=/usr/share/doc/${PF} \
87 --localstatedir=/var
88 }
89
90 src_compile() {
91 emake || die
92 if use emacs ; then
93 elisp-compile extras/glusterfs-mode.el || die
94 fi
95 }
96
97 src_install() {
98 emake DESTDIR="${D}" install || die
99
100 if use emacs ; then
101 elisp-install ${PN} extras/glusterfs-mode.el* || die
102 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
103 fi
104
105 if use vim-syntax ; then
106 insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}/glusterfs.vim" || die
107 insinto /usr/share/vim/vimfiles/syntax; doins extras/glusterfs.vim || die
108 fi
109
110 if use extras ; then
111 newbin extras/volgen/glusterfs-volgen glusterfs-volgen || die
112 newbin extras/backend-xattr-sanitize.sh glusterfs-backend-xattr-sanitize || die
113 newbin extras/migrate-unify-to-distribute.sh glusterfs-migrate-unify-to-distribute || die
114 fi
115
116 dodoc AUTHORS ChangeLog NEWS README THANKS || die
117
118 newinitd "${FILESDIR}/${PN}.initd" glusterfsd || die
119 newinitd "${FILESDIR}/glusterd.initd" glusterd || die
120 newconfd "${FILESDIR}/${PN}.confd" glusterfsd || die
121
122 keepdir /var/log/${PN} || die
123 keepdir /var/lib/glusterd || die
124 }
125
126 pkg_postinst() {
127 elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
128 elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
129 elog " /etc/init.d/glusterd start"
130 elog
131 elog "For static configurations, the glusterfsd startup script can be multiplexed."
132 elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
133 elog "separate service. To create additional instances of the glusterfsd service"
134 elog "simply create a symlink to the glusterfsd startup script."
135 elog
136 elog "Example:"
137 elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
138 elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
139 elog "You can now treat glusterfsd2 like any other service"
140 elog
141 elog "For more information on how to mount exported GlusterFS filesystems visit:"
142 elog "http://www.gluster.org/docs/index.php/Mounting_a_GlusterFS_Volume"
143 elog
144 elog "If you are upgrading from glusterfs 3.0.x please read:"
145 elog "http://www.gluster.com/community/documentation/index.php/Gluster_3.0_to_3.1_Upgrade_Guide"
146 elog
147 ewarn "You need to use a ntp client to keep the clocks synchronized across all"
148 ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
149 ewarn "run GlusterFS."
150
151 use emacs && elisp-site-regen
152 }
153
154 pkg_postrm() {
155 use emacs && elisp-site-regen
156 }