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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Sep 29 15:38:34 2012 UTC (23 months ago) by xarthisius
Branch: MAIN
Changes since 1.1: +5 -7 lines
Show upgrade info unconditionally as REPLACING_VERSIONS doesn't seem to work

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

  ViewVC Help
Powered by ViewVC 1.1.20