/[gentoo-x86]/dev-perl/mogilefs-server/mogilefs-server-2.650.0.ebuild
Gentoo

Contents of /dev-perl/mogilefs-server/mogilefs-server-2.650.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Thu Aug 16 21:48:54 2012 UTC (23 months ago) by robbat2
Branch: MAIN
CVS Tags: HEAD
Bump.

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

1 robbat2 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /var/cvsroot/gentoo-x86/dev-perl/mogilefs-server/mogilefs-server-2.640.0.ebuild,v 1.1 2012/06/29 17:18:03 robbat2 Exp $
4    
5     EAPI=4
6    
7     MY_PN=MogileFS-Server
8     MODULE_AUTHOR=DORMANDO
9     MODULE_VERSION=${PV%0.0}
10     inherit user perl-module
11    
12     DESCRIPTION="Server for the MogileFS distributed file system"
13     HOMEPAGE="http://www.danga.com/mogilefs/ ${HOMEPAGE}"
14    
15     IUSE="mysql sqlite postgres"
16    
17     SLOT="0"
18     LICENSE="|| ( Artistic GPL-2 )"
19     KEYWORDS="~amd64 ~ppc ~x86"
20    
21     # Upstream site recommends this,
22     # but it breaks Perlbal
23     # dev-perl/Perlbal-XS-HTTPHeaders
24     RDEPEND="dev-perl/Net-Netmask
25     >=dev-perl/Danga-Socket-1.610.0
26     >=dev-perl/Sys-Syscall-0.220.0
27     >=dev-perl/Perlbal-1.790
28     >=dev-perl/IO-AIO-4
29     dev-perl/libwww-perl
30     >=dev-perl/MogileFS-Client-1.160.0
31     >=dev-perl/MogileFS-Utils-2.250.0
32     dev-perl/Cache-Memcached
33     mysql? ( dev-perl/DBD-mysql )
34     postgres? ( dev-perl/DBD-Pg )
35     sqlite? ( dev-perl/DBD-SQLite )"
36     DEPEND="${RDEPEND}"
37    
38     # You need a local MySQL or Postgresql server for this
39     #SRC_TEST="do"
40    
41     #PATCHES=( )
42    
43     MOGILE_USER="mogile"
44    
45     pkg_setup() {
46     # Warning! It is important that the uid is constant over Gentoo machines
47     # As mogilefs may be used with non-local block devices that move!
48     enewuser ${MOGILE_USER} 460 -1 -1
49     }
50    
51     src_prepare() {
52     for f in Makefile.PL MANIFEST ; do
53     if [ -f "${S}"/${f}.orig ]; then
54     cp -f "${S}"/${f}{.orig,}
55     else
56     cp -f "${S}"/${f}{,.orig}
57     fi
58     done
59     # If we are not in a cutting edge Git source, we would prefer to not install
60     # duplicates of these.
61     sed -i -e '/directory.*mogdeps/d' "${S}"/Makefile.PL
62     sed -i -e '/^lib\/mogdeps/d' "${S}"/MANIFEST
63     mv -f "${S}/lib/mogdeps" "${S}"
64     }
65    
66     src_compile() {
67     export MOGILE_NO_BUILTIN_DEPS=1
68     perl-module_src_compile || die "perl-module_src_compile failed"
69     }
70    
71     src_install() {
72     export MOGILE_NO_BUILTIN_DEPS=1
73     perl-module_src_install || die "perl-module_src_install failed"
74     cd "${S}"
75    
76     newconfd "${FILESDIR}"/mogilefsd-conf.d-2.16 mogilefsd
77     newinitd "${FILESDIR}"/mogilefsd-init.d-2.16 mogilefsd
78    
79     newconfd "${FILESDIR}"/mogstored-conf.d-2.30 mogstored
80     newinitd "${FILESDIR}"/mogstored-init.d-2.50 mogstored
81    
82     newinitd "${FILESDIR}"/mogautomount-init.d-2.50 mogautomount
83    
84     diropts -m 700 -o ${MOGILE_USER}
85     keepdir /var/run/mogile
86     keepdir /var/mogdata
87     diropts -m 755 -o root
88    
89     dodir /etc/mogilefs
90     insinto /etc/mogilefs
91     insopts -m 600 -o root -g ${MOGILE_USER}
92     newins "${FILESDIR}"/mogilefsd.conf-2.30 mogilefsd.conf
93     newins "${FILESDIR}"/mogstored.conf-2.16 mogstored.conf
94     }
95    
96     pkg_postinst() {
97     chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
98     chown root:${MOGILE_USER} "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
99     }

  ViewVC Help
Powered by ViewVC 1.1.20