/[gentoo-x86]/sys-cluster/glusterfs/glusterfs-3.1.2.ebuild
Gentoo

Contents of /sys-cluster/glusterfs/glusterfs-3.1.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri May 4 07:20:30 2012 UTC (2 years, 7 months ago) by jdhore
Branch: MAIN
Changes since 1.5: +3 -3 lines
dev-util/pkgconfig -> virtual/pkgconfig

(Portage version: 2.2.0_alpha101/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-cluster/glusterfs/glusterfs-3.1.2.ebuild,v 1.5 2011/11/28 17:39:11 xarthisius Exp $
4
5 EAPI="3"
6
7 inherit autotools elisp-common eutils multilib versionator
8
9 DESCRIPTION="GlusterFS is a powerful network/cluster filesystem"
10 HOMEPAGE="http://www.gluster.org/"
11 SRC_URI="http://ftp.gluster.com/pub/gluster/${PN}/$(get_version_component_range '1-2')/${PV}/${P}.tar.gz"
12
13 LICENSE="AGPL-3"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="emacs extras +fuse infiniband static-libs vim-syntax"
17
18 RDEPEND="emacs? ( virtual/emacs )
19 fuse? ( >=sys-fs/fuse-2.7.0 )
20 infiniband? ( sys-infiniband/libibverbs )"
21 DEPEND="${RDEPEND}
22 virtual/pkgconfig
23 sys-devel/bison
24 sys-devel/flex"
25
26 SITEFILE="50${PN}-mode-gentoo.el"
27
28 src_prepare() {
29 epatch "${FILESDIR}/${PN}-3.1.0-parallel-build.patch" \
30 "${FILESDIR}/${PN}-docdir.patch" \
31 "${FILESDIR}/glusterd-workdir.patch"
32 sed -i -e "s/ -ggdb3//g" argp-standalone/configure.ac || die
33 eautoreconf
34 }
35
36 src_configure() {
37 econf \
38 $(use_enable fuse fuse-client) \
39 $(use_enable infiniband ibverbs) \
40 $(use_enable static-libs static) \
41 --disable-bdb \
42 --docdir=/usr/share/doc/${PF} \
43 --localstatedir=/var
44 }
45
46 src_compile() {
47 emake || die
48 if use emacs ; then
49 elisp-compile extras/glusterfs-mode.el || die
50 fi
51 }
52
53 src_install() {
54 emake DESTDIR="${D}" install || die
55
56 if use emacs ; then
57 elisp-install ${PN} extras/glusterfs-mode.el* || die
58 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
59 fi
60
61 if use vim-syntax ; then
62 insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}/glusterfs.vim" || die
63 insinto /usr/share/vim/vimfiles/syntax; doins extras/glusterfs.vim || die
64 fi
65
66 if use extras ; then
67 newbin extras/volgen/glusterfs-volgen glusterfs-volgen || die
68 newbin extras/backend-xattr-sanitize.sh glusterfs-backend-xattr-sanitize || die
69 newbin extras/migrate-unify-to-distribute.sh glusterfs-migrate-unify-to-distribute || die
70 fi
71
72 dodoc AUTHORS ChangeLog NEWS README THANKS || die
73
74 newinitd "${FILESDIR}/${PN}.initd" glusterfsd || die
75 newinitd "${FILESDIR}/glusterd.initd" glusterd || die
76 newconfd "${FILESDIR}/${PN}.confd" glusterfsd || die
77
78 keepdir /var/log/${PN} || die
79 keepdir /var/lib/glusterd || die
80 }
81
82 pkg_postinst() {
83 elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your"
84 elog "volumes dynamically. To do so, simply use the gluster CLI after running:"
85 elog " /etc/init.d/glusterd start"
86 elog
87 elog "For static configurations, the glusterfsd startup script can be multiplexed."
88 elog "The default startup script uses /etc/conf.d/glusterfsd to configure the"
89 elog "separate service. To create additional instances of the glusterfsd service"
90 elog "simply create a symlink to the glusterfsd startup script."
91 elog
92 elog "Example:"
93 elog " # ln -s glusterfsd /etc/init.d/glusterfsd2"
94 elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol"
95 elog "You can now treat glusterfsd2 like any other service"
96 elog
97 elog "For more information on how to mount exported GlusterFS filesystems visit:"
98 elog "http://www.gluster.org/docs/index.php/Mounting_a_GlusterFS_Volume"
99 elog
100 elog "If you are upgrading from glusterfs 3.0.x please read:"
101 elog "http://www.gluster.com/community/documentation/index.php/Gluster_3.0_to_3.1_Upgrade_Guide"
102 elog
103 ewarn "You need to use a ntp client to keep the clocks synchronized across all"
104 ewarn "of your servers. Setup a NTP synchronizing service before attempting to"
105 ewarn "run GlusterFS."
106
107 use emacs && elisp-site-regen
108 }
109
110 pkg_postrm() {
111 use emacs && elisp-site-regen
112 }

  ViewVC Help
Powered by ViewVC 1.1.20