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.0.4.ebuild
Date: Sat, 08 May 2010 16:03:56
Message-Id: 20100508160353.5A3D92C3FA@corvid.gentoo.org
1 alexxy 10/05/08 16:03:53
2
3 Modified: ChangeLog
4 Added: glusterfs-3.0.4.ebuild
5 Log:
6 [sys-cluster/glusterfs] Version bump per bug #311467
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.10 sys-cluster/glusterfs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.10&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/glusterfs/ChangeLog?rev=1.10&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/glusterfs/ChangeLog?r1=1.9&r2=1.10
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v
19 retrieving revision 1.9
20 retrieving revision 1.10
21 diff -u -r1.9 -r1.10
22 --- ChangeLog 22 Feb 2010 22:31:39 -0000 1.9
23 +++ ChangeLog 8 May 2010 16:03:53 -0000 1.10
24 @@ -1,6 +1,11 @@
25 # ChangeLog for sys-cluster/glusterfs
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.9 2010/02/22 22:31:39 alexxy Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/ChangeLog,v 1.10 2010/05/08 16:03:53 alexxy Exp $
29 +
30 +*glusterfs-3.0.4 (08 May 2010)
31 +
32 + 08 May 2010; Alexey Shvetsov <alexxy@g.o> +glusterfs-3.0.4.ebuild:
33 + Version bump per bug #311467
34
35 *glusterfs-3.0.2 (22 Feb 2010)
36
37
38
39
40 1.1 sys-cluster/glusterfs/glusterfs-3.0.4.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.0.4.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.0.4.ebuild?rev=1.1&content-type=text/plain
44
45 Index: glusterfs-3.0.4.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.0.4.ebuild,v 1.1 2010/05/08 16:03:53 alexxy Exp $
50
51 EAPI="2"
52
53 inherit autotools elisp-common eutils multilib versionator
54
55 DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
56 HOMEPAGE="http://www.gluster.org/"
57 SRC_URI="http://ftp.gluster.com/pub/gluster/${PN}/$(get_version_component_range '1-2')/${PV}/${P}.tar.gz"
58
59 LICENSE="GPL-3"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="emacs +fuse infiniband static vim-syntax extras"
63
64 DEPEND="emacs? ( virtual/emacs )
65 fuse? ( >=sys-fs/fuse-2.7.0 )
66 infiniband? ( sys-infiniband/libibverbs )"
67 RDEPEND="${DEPEND}
68 !net-fs/glusterfs"
69
70 SITEFILE="50${PN}-mode-gentoo.el"
71
72 src_prepare() {
73 epatch "${FILESDIR}/${PN}-2.0.8-parallel-make.patch"
74 epatch "${FILESDIR}/${PN}-2.0.8-docdir.patch"
75 eautoreconf || die "eautoreconf failed"
76 }
77
78 src_configure() {
79 econf \
80 $(use_enable fuse fuse-client) \
81 $(use_enable infiniband ibverbs) \
82 $(use_enable static) \
83 --disable-bdb \
84 --docdir=/usr/share/doc/${PF} \
85 --localstatedir=/var || die
86 # $(use_enable berkdb bdb) \
87 }
88
89 src_compile() {
90 emake || die "Emake failed"
91 if use emacs ; then
92 elisp-compile extras/glusterfs-mode.el || die "elisp-compile failed"
93 fi
94 }
95
96 src_install() {
97 emake DESTDIR="${D}" install || die
98
99 if use emacs ; then
100 elisp-install ${PN} extras/glusterfs-mode.el* || die "elisp-install failed"
101 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
102 fi
103
104 if use vim-syntax ; then
105 insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}/glusterfs.vim" || die
106 insinto /usr/share/vim/vimfiles/syntax; doins extras/glusterfs.vim || die
107 fi
108
109 if use extras ; then
110 newbin extras/volgen/glusterfs-volgen glusterfs-volgen || die "Failed to install bins"
111 newbin extras/backend-xattr-sanitize.sh glusterfs-backend-xattr-sanitize || die "Failed to install bins"
112 newbin extras/migrate-unify-to-distribute.sh glusterfs-migrate-unify-to-distribute || die "Failed to install bins"
113 fi
114
115 dodoc AUTHORS ChangeLog NEWS README THANKS || die "dodoc failed"
116
117 newinitd "${FILESDIR}/${PN}.initd" glusterfsd || die "newinitd failed"
118 newconfd "${FILESDIR}/${PN}.confd" glusterfsd || die "newconfd failed"
119
120 keepdir /var/log/${PN} || die "keepdir failed"
121 }
122
123 pkg_postinst() {
124 elog "The glusterfs startup script can be multiplexed."
125 elog "The default startup script uses /etc/conf.d/glusterfs to configure the"
126 elog "separate service. To create additional instances of the glusterfs service"
127 elog "simply create a symlink to the glusterfs startup script."
128 elog
129 elog "Example:"
130 elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
131 elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
132 elog "You can now treat glusterfsd2 like any other service"
133 echo
134 elog "You can mount exported GlusterFS filesystems through /etc/fstab instead of"
135 elog "through a startup script instance. For more information visit:"
136 elog "http://www.gluster.org/docs/index.php/Mounting_a_GlusterFS_Volume"
137 echo
138 ewarn "You need to use a ntp client to keep the clocks synchronized across all"
139 ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
140 ewarn "run GlusterFS."
141
142 use emacs && elisp-site-regen
143 }
144
145 pkg_postrm() {
146 use emacs && elisp-site-regen
147 }