|
|
|
# Copyright 1999-2015 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
|
|
|
inherit cmake-utils eutils user multilib
|
|
|
|
|
|
|
|
DURI="http://xrootd.slac.stanford.edu/doc/prod"
|
|
|
|
|
|
|
|
DESCRIPTION="Extended ROOT remote file server"
|
|
|
|
HOMEPAGE="http://xrootd.org/"
|
|
|
|
SRC_URI="${HOMEPAGE}/download/v${PV}/${P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
|
|
|
IUSE="doc fuse http kerberos libevent perl readline ssl test"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
!<sci-physics/root-5.32[xrootd]
|
|
|
|
sys-libs/zlib:0=
|
|
|
|
fuse? ( sys-fs/fuse:0= )
|
|
|
|
kerberos? ( virtual/krb5 )
|
|
|
|
libevent? ( dev-libs/libevent[threads] )
|
|
|
|
perl? (
|
|
|
|
dev-lang/perl
|
|
|
|
readline? ( dev-perl/Term-ReadLine-Perl )
|
|
|
|
)
|
|
|
|
readline? ( sys-libs/readline:0= )
|
|
|
|
ssl? ( dev-libs/openssl:0= )"
|
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
doc? ( app-doc/doxygen[dot] )
|
|
|
|
perl? ( dev-lang/swig )
|
|
|
|
test? ( dev-util/cppunit )"
|
|
|
|
|
|
|
|
REQUIRED_USE="
|
|
|
|
http? ( kerberos ssl )"
|
|
|
|
|
|
|
|
PATCHES=( "${FILESDIR}"/${PN}-no-werror.patch )
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
enewgroup xrootd
|
|
|
|
enewuser xrootd -1 -1 "${EPREFIX}"/var/spool/xrootd xrootd
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
$(cmake-utils_use_enable fuse)
|
|
|
|
$(cmake-utils_use_enable http)
|
|
|
|
$(cmake-utils_use_enable kerberos KRB5)
|
|
|
|
$(cmake-utils_use_enable libevent)
|
|
|
|
$(cmake-utils_use_enable perl)
|
|
|
|
$(cmake-utils_use_enable readline)
|
|
|
|
$(cmake-utils_use_enable ssl CRYPTO)
|
|
|
|
$(cmake-utils_use_enable test TESTS)
|
|
|
|
)
|
|
|
|
cmake-utils_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
cmake-utils_src_compile
|
|
|
|
use doc && doxygen Doxyfile
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cmake-utils_src_install
|
|
|
|
|
|
|
|
# base configs
|
|
|
|
insinto /etc/xrootd
|
|
|
|
doins packaging/common/*.cfg
|
|
|
|
|
|
|
|
fowners root:xrootd /etc/xrootd
|
|
|
|
keepdir /var/log/xrootd
|
|
|
|
fowners xrootd:xrootd /var/log/xrootd
|
|
|
|
|
|
|
|
local i
|
|
|
|
for i in cmsd frm_purged frm_xfrd xrootd; do
|
|
|
|
newinitd "${FILESDIR}"/${i}.initd ${i}
|
|
|
|
done
|
|
|
|
# all daemons MUST use single master config file
|
|
|
|
newconfd "${FILESDIR}"/xrootd.confd xrootd
|
|
|
|
|
|
|
|
dodoc docs/ReleaseNotes.txt
|
|
|
|
use doc && dohtml -r doxydoc/html/*
|
|
|
|
}
|