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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jun 14 10:00:48 2012 UTC (2 years, 2 months ago) by xarthisius
Branch: MAIN
Version bump wrt #420989 by Rodrigo Severo <rodrigo@fabricadeideias.com>, drop old

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

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

  ViewVC Help
Powered by ViewVC 1.1.20