Initial import to the main tree
authorSebastien Fabbro <bicatali@gentoo.org>
Mon, 19 Dec 2011 19:36:35 +0000 (19:36 +0000)
committerSebastien Fabbro <bicatali@gentoo.org>
Mon, 19 Dec 2011 19:36:35 +0000 (19:36 +0000)
Package-Manager: portage-2.1.10.41/cvs/Linux x86_64

net-libs/xrootd/ChangeLog [new file with mode: 0644]
net-libs/xrootd/Manifest [new file with mode: 0644]
net-libs/xrootd/files/cmsd.confd [new file with mode: 0644]
net-libs/xrootd/files/cmsd.initd [new file with mode: 0644]
net-libs/xrootd/files/frm_purged.initd [new file with mode: 0644]
net-libs/xrootd/files/frm_xfrd.initd [new file with mode: 0644]
net-libs/xrootd/files/xrootd.confd [new file with mode: 0644]
net-libs/xrootd/files/xrootd.initd [new file with mode: 0644]
net-libs/xrootd/metadata.xml [new file with mode: 0644]
net-libs/xrootd/xrootd-3.1.0.ebuild [new file with mode: 0644]

diff --git a/net-libs/xrootd/ChangeLog b/net-libs/xrootd/ChangeLog
new file mode 100644 (file)
index 0000000..a04aedf
--- /dev/null
@@ -0,0 +1,32 @@
+# ChangeLog for net-libs/xrootd
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/ChangeLog,v 1.1 2011/12/19 19:36:35 bicatali Exp $
+
+  19 Dec 2011; Sébastien Fabbro <bicatali@gentoo.org> +xrootd-3.1.0.ebuild,
+  +files/cmsd.confd, +files/cmsd.initd, +files/frm_purged.initd,
+  +files/frm_xfrd.initd, +files/xrootd.confd, +files/xrootd.initd,
+  +metadata.xml:
+  Initial import to the main tree
+
+*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/net-libs/xrootd/Manifest b/net-libs/xrootd/Manifest
new file mode 100644 (file)
index 0000000..db8faae
--- /dev/null
@@ -0,0 +1,28 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX cmsd.confd 193 RMD160 dcf0455f631742b6826a3eafe74ac1072e476338 SHA1 23a4cb838aa9324b2cf16ab0d8b8964480427bf1 SHA256 50e9c05d9090498853f8d34a7676228a1670a8c8512254151139ae6de876bee3
+AUX cmsd.initd 860 RMD160 b1779364d1ef1cce93057e11f6e520c87ba83c4f SHA1 cd7ad72eac50a9ae11a1c539f2613ca1b30484ce SHA256 9526d4ac88ec126d1ee2f23585c7d01214262b40dbb04c448304eaa9405add12
+AUX frm_purged.initd 876 RMD160 be36457279e89adf39fe46552e8abfd1595e9491 SHA1 636380472d6b1e0dcec322d1438cce20ddccd788 SHA256 10de94ca01b756dcd4d7c07065f2c81b25cfa6ac6c6a7488b9ee634d5a497234
+AUX frm_xfrd.initd 878 RMD160 97bfe240df222a71c23c328af507abd210922d31 SHA1 0ec4db49ca24e13b4be374752248363000e66fa2 SHA256 302c51dd130ed25a793e4961b17d0ddbb07ef08a87800f14f0d9a4f4635cd6bc
+AUX xrootd.confd 651 RMD160 e988356b02650aadb475f4a7db31bbbaa03d474d SHA1 1919ed340c8e941168b59ae6b32836e7b271c98d SHA256 c0bec135fc63da3000a520ebe1cffec7e507f4f31e9038f7ef4350f973548785
+AUX xrootd.initd 830 RMD160 cdfc57f815d4e9a3923a1cd703bd2c48f02a7db1 SHA1 5cba4025399793cd8d35746eea6359e31bc731f2 SHA256 e742dcd84d9717692b9eef9ef1d9f4b4ef28fab425a18938b515cb0ba22d104f
+DIST Syntax_config.pdf 796156 RMD160 7a7dab383ed8bdfab86aa403c69b01cf2eb22952 SHA1 26cc625f5892eed7c150cd69e36239041c6618b7 SHA256 1378598028676377072dac9909716adfddc6361e08e1ce9de82e58a6edaa48dd
+DIST XRdv297.pdf 1282424 RMD160 8efeaa8f0cebad0dbd663bcc5d8086259ce8029c SHA1 a75cc6716bf83113152848cd63844665fbc32152 SHA256 b529de5b45c3ad7da54c90839120ae138bdb1fa9f6f00dd911a0dd84f954c745
+DIST cms_config.pdf 1496535 RMD160 fc55b68c859020fe70a326e8fa77bbc4691170e5 SHA1 b3bf31da9924590bb02ed4ddeb593c7c34c2bf1e SHA256 078440c655a965494b6c9e304851eb8e8b6d8a03d9af46392813e68b4d8f82e4
+DIST frm_config.pdf 1514689 RMD160 ac9e1f22211d94bd8a57b34055d3da0f02b132dc SHA1 0d2e402723c292ed83e832239abe5c5dd66c5679 SHA256 6e49a6de256bb9426c0a018dcf3ec06f07c6429d6b5eaa177a55c2846fd915e2
+DIST ofs_config.pdf 1447486 RMD160 45edf8ac6514a51f09ec8d0090989becd07c70c6 SHA1 7431908bc81125cd6dd3bb85260aaf646e5e311a SHA256 6f29c3096107d3817a1c7ab6ade55d343937dd75dfbc1566bcf379822d7bd961
+DIST sec_config.pdf 1220427 RMD160 68b104930d10b9dd55dd320d8cc7ff836efff63f SHA1 0aa96958ec780684b838dda0aaa362f75e3433be SHA256 33741eb94862190451f3b8f1bab5164edd8ca970c7bc86b039847ae307813e69
+DIST xrd_config.pdf 1230805 RMD160 1b44a68daf28f8be398f5903b4974af18409c128 SHA1 2a61472cfd412d5ebc40f138304a11f1249dfbed SHA256 4dae0a19a77b88522c7a0b357b304411ebd9c43e13e63ea495190d5e0458c069
+DIST xrd_monitoring.pdf 1320275 RMD160 2fc1e9771a25eefd4e22a0e256dd829c95c86829 SHA1 1b5903fc1765cec7413090f8ba36a5cee7816e8a SHA256 ae1b82d68c429171b04fb47a39b52215182be75e08b38c72693c610001b556af
+DIST xrootd-3.1.0.tar.gz 1496093 RMD160 d4cb7ac095edfbbf626b1a8751746ce7b690d4aa SHA1 edecff1fa16a0011e09bf88d2b0ba7da662a1512 SHA256 8f6b1d7a2f284f2f3bb319183900106d9e1d5ea9b349aa0b1c0f796e4657f7af
+EBUILD xrootd-3.1.0.ebuild 2364 RMD160 a91897554e71d53c7e64f3e3a38c9c4d36676581 SHA1 996285aab7b6df67a83af76458d4326c6a6cfa55 SHA256 3610348e8bc4273f9b2a1a511e1d50c1692ffa9ec2cf3b62a53672b151b2e023
+MISC ChangeLog 1433 RMD160 f6bee99c3901a4cb6db13cc444be7a3dbce721f5 SHA1 55b7a8a5d8b1275dddbac77a93eb3717df98185b SHA256 37bb5943a816c45621c682ffb9e5e5d2a0625972aad7a7b16e7e0d734992edd6
+MISC metadata.xml 668 RMD160 8439e807cc6bfacfa6326ff47190de5307843aa4 SHA1 64c70fd88a77a94d663e3feac90e0b61e2df6fbf SHA256 f4f46bb62efc9dd8fde7d6226d1cc9b11941cec08fed4efef3fb0432d44da58f
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iEYEARECAAYFAk7vkkwACgkQ1ycZbhPLE2ATFQCfTXBCkjeS2QlmWhwXe9gvoZar
+3s4AnisaK5OgLfXyfJewLR/dfm+oE7rK
+=UwNa
+-----END PGP SIGNATURE-----
diff --git a/net-libs/xrootd/files/cmsd.confd b/net-libs/xrootd/files/cmsd.confd
new file mode 100644 (file)
index 0000000..ab5aa8c
--- /dev/null
@@ -0,0 +1,9 @@
+# conf.d file for cmsd daemon
+
+# User to run as (default is root)
+CMSD_USER="root"
+
+#
+# Please refer to the cmsd(1) man(1) page for more
+# information on command line parameters. 
+CMSD_OPTS=""
diff --git a/net-libs/xrootd/files/cmsd.initd b/net-libs/xrootd/files/cmsd.initd
new file mode 100644 (file)
index 0000000..86b8e4b
--- /dev/null
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/cmsd.initd,v 1.1 2011/12/19 19:36:35 bicatali Exp $
+
+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/net-libs/xrootd/files/frm_purged.initd b/net-libs/xrootd/files/frm_purged.initd
new file mode 100644 (file)
index 0000000..daf4556
--- /dev/null
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/frm_purged.initd,v 1.1 2011/12/19 19:36:35 bicatali Exp $
+
+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/net-libs/xrootd/files/frm_xfrd.initd b/net-libs/xrootd/files/frm_xfrd.initd
new file mode 100644 (file)
index 0000000..5800422
--- /dev/null
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/frm_xfrd.initd,v 1.1 2011/12/19 19:36:35 bicatali Exp $
+
+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/net-libs/xrootd/files/xrootd.confd b/net-libs/xrootd/files/xrootd.confd
new file mode 100644 (file)
index 0000000..0e847e5
--- /dev/null
@@ -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/net-libs/xrootd/files/xrootd.initd b/net-libs/xrootd/files/xrootd.initd
new file mode 100644 (file)
index 0000000..cbc9122
--- /dev/null
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/files/xrootd.initd,v 1.1 2011/12/19 19:36:35 bicatali Exp $
+
+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/net-libs/xrootd/metadata.xml b/net-libs/xrootd/metadata.xml
new file mode 100644 (file)
index 0000000..b629e53
--- /dev/null
@@ -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/net-libs/xrootd/xrootd-3.1.0.ebuild b/net-libs/xrootd/xrootd-3.1.0.ebuild
new file mode 100644 (file)
index 0000000..f8f1fed
--- /dev/null
@@ -0,0 +1,93 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-libs/xrootd/xrootd-3.1.0.ebuild,v 1.1 2011/12/19 19:36:35 bicatali Exp $
+
+EAPI=4
+
+inherit cmake-utils eutils
+
+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
+                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="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc fuse kerberos perl readline ssl"
+
+RDEPEND="!<sci-physics/root-5.32[xrootd]
+       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() {
+#              "-DCMAKE_BUILD_TYPE=Release"
+       mycmakeargs=(
+               $(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 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
+
+       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 && \
+               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
+}