/[gentoo-x86]/net-libs/xrootd/xrootd-3.1.1.ebuild
Gentoo

Contents of /net-libs/xrootd/xrootd-3.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Jul 9 06:20:15 2012 UTC (10 months, 2 weeks ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
net-libs/xrootd: Cleaned old, add missing eclass

(Portage version: 2.2.0_alpha116/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/net-libs/xrootd/xrootd-3.1.1.ebuild,v 1.1 2012/03/06 17:04:22 bicatali Exp $
4
5 EAPI=4
6
7 inherit cmake-utils eutils
8
9 DURI="http://xrootd.slac.stanford.edu/doc/prod"
10
11 DESCRIPTION="Extended ROOT remote file server"
12 HOMEPAGE="http://xrootd.org/"
13 SRC_URI="${HOMEPAGE}/download/v${PV}/${P}.tar.gz
14 doc? (
15 ${DURI}/Syntax_config.pdf
16 ${DURI}/xrd_config.pdf
17 ${DURI}/ofs_config.pdf
18 ${DURI}/cms_config.pdf
19 ${DURI}/sec_config.pdf
20 ${DURI}/xrd_monitoring.pdf
21 ${DURI}/frm_config.pdf
22 ${DURI}/XRdv297.pdf
23 )"
24
25 LICENSE="BSD"
26 SLOT="0"
27 KEYWORDS="~amd64 ~x86"
28 IUSE="doc fuse kerberos perl readline ssl"
29
30 RDEPEND="!<sci-physics/root-5.32[xrootd]
31 sys-libs/zlib
32 fuse? ( sys-fs/fuse )
33 kerberos? ( virtual/krb5 )
34 perl? (
35 dev-lang/perl
36 readline? ( dev-perl/Term-ReadLine-Perl )
37 )
38 readline? ( sys-libs/readline )
39 ssl? ( dev-libs/openssl )"
40 DEPEND="${RDEPEND}
41 perl? ( dev-lang/swig )"
42
43 pkg_setup() {
44 enewgroup xrootd
45 enewuser xrootd -1 -1 "${EPREFIX}"/var/spool/xrootd xrootd
46 }
47
48 src_configure() {
49 # "-DCMAKE_BUILD_TYPE=Release"
50 mycmakeargs=(
51 $(cmake-utils_use_enable fuse)
52 $(cmake-utils_use_enable kerberos KRB5)
53 $(cmake-utils_use_enable perl)
54 $(cmake-utils_use_enable readline)
55 $(cmake-utils_use_enable ssl CRYPTO)
56 )
57 cmake-utils_src_configure
58 }
59
60 src_install() {
61 cmake-utils_src_install
62
63 # base configs
64 insinto /etc/xrootd
65 doins packaging/common/*.cfg
66
67 # create aux dirs and correct permissions so that xrootd
68 # will be happy as a non-priviledged user
69 fowners root:xrootd "${EPREFIX}"/etc/xrootd
70 keepdir "${EPREFIX}"/var/log/xrootd
71 keepdir "${EPREFIX}"/var/run/xrootd
72 keepdir "${EPREFIX}"/var/spool/xrootd
73 fowners xrootd:xrootd "${EPREFIX}"/var/{log,run,spool}/xrootd
74
75 local i
76 for i in cmsd frm_purged frm_xfrd xrootd; do
77 newinitd "${FILESDIR}"/${i}.initd ${i}
78 done
79 # all daemons MUST use single master config file
80 newconfd "${FILESDIR}"/xrootd.confd xrootd
81
82 dodoc docs/ReleaseNotes.txt
83 use doc && \
84 dodoc \
85 "${DISTDIR}"/Syntax_config.pdf \
86 "${DISTDIR}"/xrd_config.pdf \
87 "${DISTDIR}"/ofs_config.pdf \
88 "${DISTDIR}"/cms_config.pdf \
89 "${DISTDIR}"/sec_config.pdf \
90 "${DISTDIR}"/xrd_monitoring.pdf \
91 "${DISTDIR}"/frm_config.pdf \
92 "${DISTDIR}"/XRdv297.pdf
93 }

  ViewVC Help
Powered by ViewVC 1.1.13