* [gentoo-commits] proj/sci:master commit in: sci-physics/xrootd/files/, sci-physics/xrootd/, licenses/
@ 2011-12-04 0:29 Andrew Savchenko
0 siblings, 0 replies; only message in thread
From: Andrew Savchenko @ 2011-12-04 0:29 UTC (permalink / raw
To: gentoo-commits
commit: 3cc3760632e9d976465085159a98b01b613b2fdc
Author: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
AuthorDate: Sat Dec 3 23:40:33 2011 +0000
Commit: Andrew Savchenko <bircoph <AT> gmail <DOT> com>
CommitDate: Sat Dec 3 23:40:33 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=3cc37606
sci-physics/xrootd: unbundled package from ROOT
This package was earlier bundled in sci-physics/root, it is
requeried for xrootd support in >=root-5.32.
It has free Standford license (saved as licenses/xrootd).
XRootD was tested to compile and work with very simple things on
~x86 and ~amd64. See ChangeLog for details.
---
licenses/xrootd | 28 +++++++++
sci-physics/xrootd/ChangeLog | 26 ++++++++
sci-physics/xrootd/files/cmsd.initd | 30 +++++++++
sci-physics/xrootd/files/frm_purged.initd | 30 +++++++++
sci-physics/xrootd/files/frm_xfrd.initd | 30 +++++++++
sci-physics/xrootd/files/xrootd.confd | 21 ++++++
sci-physics/xrootd/files/xrootd.initd | 28 +++++++++
sci-physics/xrootd/metadata.xml | 15 +++++
sci-physics/xrootd/xrootd-3.1.0.ebuild | 95 +++++++++++++++++++++++++++++
9 files changed, 303 insertions(+), 0 deletions(-)
diff --git a/licenses/xrootd b/licenses/xrootd
new file mode 100644
index 0000000..74566ee
--- /dev/null
+++ b/licenses/xrootd
@@ -0,0 +1,28 @@
+"Copyright (c) 2005-2010, Board of Trustees of the Leland Stanford, Jr. University.\n"
+"Produced under contract DE-AC02-76-SF00515 with the US Department of Energy. \n"
+"All rights reserved. \n"
+" Conditions of Use \n"
+"Redistribution and use in source and binary forms, with or without modification, \n"
+"are permitted provided that the following conditions are met: \n"
+"a. Redistributions of source code must retain the above copyright notice, this \n"
+" list of conditions and the following disclaimer. \n"
+"b. Redistributions in binary form must reproduce the above copyright notice, \n"
+" this list of conditions and the following disclaimer in the documentation \n"
+" and/or other materials provided with the distribution. \n"
+"c. Neither the name of the Leland Stanford, Jr. University nor the names of its \n"
+" contributors may be used to endorse or promote products derived from this \n"
+" software without specific prior written permission. \n"
+"d. Products derived from this software that do not adhere to the xrootd or cmsd \n"
+" protocol specifications may not use the acronyms 'cmsd', 'Scalla', 'xroot', \n"
+" and 'xrootd', regardless of capitalization, to describe such derivative works. \n"
+" DISCLAIMER \n"
+"THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS' AND \n"
+"ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \n"
+"WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n"
+"IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \n"
+"INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \n"
+"BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, \n"
+"DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF \n"
+"LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE \n"
+"OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED \n"
+"OF THE POSSIBILITY OF SUCH DAMAGE. \n"
diff --git a/sci-physics/xrootd/ChangeLog b/sci-physics/xrootd/ChangeLog
new file mode 100644
index 0000000..127144e
--- /dev/null
+++ b/sci-physics/xrootd/ChangeLog
@@ -0,0 +1,26 @@
+# ChangeLog for sci-physics/xrootd
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*xrootd-3.1.0 (03 Dec 2011)
+
+ 03 Dec 2011; Andrew Savchenko <bircoph@gmail.com> +xrootd-3.1.0.ebuild,
+ +files/cmsd.initd, +files/frm_purged.initd, +files/frm_xfrd.initd,
+ +files/xrootd.confd, +files/xrootd.initd, +metadata.xml:
+ XRootD isn't really a new program in this overlay. It was
+ previously bundled within sci-physics/root, but now it is unbundled
+ upstream and needs to be installed as a separate package in order
+ to be used from ROOT.
+
+ Aside from standard xrootd distribution, this ebuild may install
+ useful pdf documentation from the official web site.
+
+ Program was tested on ~x86 and ~amd64 with some basic setup, though
+ no real production tests were done. Please note, that xrootd and
+ accompany daemons do not work with root privileges any longer, so
+ special xrootd user was used.
+
+ Another note: all daemons MUST use the same config (-c
+ /etc/xrootd/your._config), that's why there is only one conf.d file
+ for all four daemons.
+
diff --git a/sci-physics/xrootd/files/cmsd.initd b/sci-physics/xrootd/files/cmsd.initd
new file mode 100644
index 0000000..105bd55
--- /dev/null
+++ b/sci-physics/xrootd/files/cmsd.initd
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+source /etc/conf.d/xrootd
+
+depend() {
+ need net
+ use logger dns
+ provide root-file-server
+}
+
+start() {
+ ebegin "Starting Cluster Management Service daemon"
+ start-stop-daemon --start --quiet --user ${XROOTD_USER} \
+ --make-pidfile --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME} --background -- \
+ -c ${XROOTD_CONF} -l ${XROOTD_LOGDIR}/${RC_SVCNAME}.log \
+ ${CMSD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Cluster Management Service daemon"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME}
+ eend $?
+}
diff --git a/sci-physics/xrootd/files/frm_purged.initd b/sci-physics/xrootd/files/frm_purged.initd
new file mode 100644
index 0000000..1e1f2c8
--- /dev/null
+++ b/sci-physics/xrootd/files/frm_purged.initd
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+source /etc/conf.d/xrootd
+
+depend() {
+ need net
+ use logger dns
+ provide root-file-server
+}
+
+start() {
+ ebegin "Starting File Residency Manager purge daemon"
+ start-stop-daemon --start --quiet --user ${XROOTD_USER} \
+ --make-pidfile --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME} --background -- \
+ -c ${XROOTD_CONF} -l ${XROOTD_LOGDIR}/${RC_SVCNAME}.log \
+ ${FRM_PURGED_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping File Residency Manager purge daemon"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME}
+ eend $?
+}
diff --git a/sci-physics/xrootd/files/frm_xfrd.initd b/sci-physics/xrootd/files/frm_xfrd.initd
new file mode 100644
index 0000000..68da1cb
--- /dev/null
+++ b/sci-physics/xrootd/files/frm_xfrd.initd
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+source /etc/conf.d/xrootd
+
+depend() {
+ need net
+ use logger dns
+ provide root-file-server
+}
+
+start() {
+ ebegin "Starting File Residency Manager transfer daemon"
+ start-stop-daemon --start --quiet --user ${XROOTD_USER} \
+ --make-pidfile --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME} --background -- \
+ -c ${XROOTD_CONF} -l ${XROOTD_LOGDIR}/${RC_SVCNAME}.log \
+ ${FRM_XFRD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping File Residency Manager transfer daemon"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME}
+ eend $?
+}
diff --git a/sci-physics/xrootd/files/xrootd.confd b/sci-physics/xrootd/files/xrootd.confd
new file mode 100644
index 0000000..0e847e5
--- /dev/null
+++ b/sci-physics/xrootd/files/xrootd.confd
@@ -0,0 +1,21 @@
+# conf.d file for xroot, cmsd, frm_purged, frm_xfrd daemons
+
+# User to run as, please note that:
+# 1) daemons will refuse to run as root;
+# 2) several dirs must be created with an appropriate permissions
+# and ownership, so be careful when changing default 'xrootd' user.
+XROOTD_USER="xrootd"
+
+# Configuration file MUST be the same for all four daemons.
+# See /etc/xrootd for available simple defaults.
+XROOTD_CONF="/etc/xrootd/xrootd-clustered.cfg"
+
+# Logdir for all daemons
+XROOTD_LOGDIR="/var/log/xrootd"
+
+# Additional options for each daemon, please refer to their
+# documentation for details
+XROOTD_OPTS=""
+CMSD_OPTS=""
+FRM_PURGED=""
+FRM_XFRD=""
diff --git a/sci-physics/xrootd/files/xrootd.initd b/sci-physics/xrootd/files/xrootd.initd
new file mode 100644
index 0000000..64992b7
--- /dev/null
+++ b/sci-physics/xrootd/files/xrootd.initd
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+depend() {
+ need net
+ use logger dns
+ provide root-file-server
+}
+
+start() {
+ ebegin "Starting extended ROOTD file server"
+ start-stop-daemon --start --quiet --user ${XROOTD_USER} \
+ --make-pidfile --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME} --background -- \
+ -c ${XROOTD_CONF} -l ${XROOTD_LOGDIR}/${RC_SVCNAME}.log \
+ ${XROOTD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping extended ROOTD file server"
+ start-stop-daemon --stop --quiet \
+ --pidfile /var/run/${RC_SVCNAME}.pid \
+ --exec /usr/bin/${RC_SVCNAME}
+ eend $?
+}
diff --git a/sci-physics/xrootd/metadata.xml b/sci-physics/xrootd/metadata.xml
new file mode 100644
index 0000000..fbfe13f
--- /dev/null
+++ b/sci-physics/xrootd/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-physics</herd>
+ <longdescription lang="en">
+ XROOTD software framework is a fully generic suite for fast, low latency and
+ scalable data access, which can serve natively any kind of data, organized as
+ a hierarchical filesystem-like namespace, based on the concept of directory.
+ It is usually used with <pkg>sci-physics/root</pkg> and its PROOF facilities
+ for cluster computing in high energy physics.
+ </longdescription>
+ <use>
+ <flag name="fuse">Enable the <pkg>sys-fs/fuse</pkg> filesystem driver</flag>
+ </use>
+</pkgmetadata>
diff --git a/sci-physics/xrootd/xrootd-3.1.0.ebuild b/sci-physics/xrootd/xrootd-3.1.0.ebuild
new file mode 100644
index 0000000..405697f
--- /dev/null
+++ b/sci-physics/xrootd/xrootd-3.1.0.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+inherit cmake-utils eutils
+
+DURI="http://xrootd.slac.stanford.edu/doc/prod"
+
+DESCRIPTION="XRootD is a scalable ROOT remote file server"
+HOMEPAGE="http://xrootd.slac.stanford.edu/index.html"
+SRC_URI="http://xrootd.slac.stanford.edu/download/v${PV}/${P}.tar.gz
+ doc? (
+ ${DURI}/Syntax_config.pdf
+ ${DURI}/xrd_config.pdf
+ ${DURI}/ofs_config.pdf
+ ${DURI}/cms_config.pdf
+ ${DURI}/sec_config.pdf
+ ${DURI}/xrd_monitoring.pdf
+ ${DURI}/frm_config.pdf
+ ${DURI}/XRdv297.pdf
+ )"
+
+LICENSE="xrootd"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc fuse kerberos perl readline ssl"
+
+RDEPEND="
+ !<sci-physics/root-5.32
+ sys-libs/zlib
+ fuse? ( sys-fs/fuse )
+ kerberos? ( virtual/krb5 )
+ perl? (
+ dev-lang/perl
+ readline? ( dev-perl/Term-ReadLine-Perl )
+ )
+ readline? ( sys-libs/readline )
+ ssl? ( dev-libs/openssl )
+"
+DEPEND="${RDEPEND}
+ perl? ( dev-lang/swig )"
+
+pkg_setup() {
+ enewgroup xrootd
+ enewuser xrootd -1 -1 "${EPREFIX}"/var/spool/xrootd xrootd
+}
+
+src_configure() {
+ mycmakeargs=(
+ "-DCMAKE_BUILD_TYPE=Release"
+ $(cmake-utils_use_enable fuse)
+ $(cmake-utils_use_enable kerberos KRB5)
+ $(cmake-utils_use_enable perl)
+ $(cmake-utils_use_enable readline)
+ $(cmake-utils_use_enable ssl CRYPTO)
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ # base configs
+ insinto /etc/xrootd
+ doins "${S}"/packaging/common/*.cfg
+
+ # create aux dirs and correct permissions so that xrootd
+ # will be happy as a non-priviledged user
+ fowners root:xrootd "${EPREFIX}"/etc/xrootd
+ keepdir "${EPREFIX}"/var/log/xrootd
+ keepdir "${EPREFIX}"/var/run/xrootd
+ keepdir "${EPREFIX}"/var/spool/xrootd
+ fowners xrootd:xrootd "${EPREFIX}"/var/{log,run,spool}/xrootd
+
+ 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 README docs/ReleaseNotes.txt
+ if use doc; then
+ dodoc \
+ "${DISTDIR}"/Syntax_config.pdf \
+ "${DISTDIR}"/xrd_config.pdf \
+ "${DISTDIR}"/ofs_config.pdf \
+ "${DISTDIR}"/cms_config.pdf \
+ "${DISTDIR}"/sec_config.pdf \
+ "${DISTDIR}"/xrd_monitoring.pdf \
+ "${DISTDIR}"/frm_config.pdf \
+ "${DISTDIR}"/XRdv297.pdf
+ fi
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-04 0:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-04 0:29 [gentoo-commits] proj/sci:master commit in: sci-physics/xrootd/files/, sci-physics/xrootd/, licenses/ Andrew Savchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox