public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sebastien Fabbro" <bicatali@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: net-fs/cvmfs/files/, net-fs/cvmfs/
Date: Wed, 25 Jul 2012 18:09:46 +0000 (UTC)	[thread overview]
Message-ID: <1343239759.b43872551e20fd5c15948f5c51bb3feae41df080.bicatali@gentoo> (raw)

commit:     b43872551e20fd5c15948f5c51bb3feae41df080
Author:     Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
AuthorDate: Wed Jul 25 18:09:19 2012 +0000
Commit:     Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
CommitDate: Wed Jul 25 18:09:19 2012 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=b4387255

net-fs/cvmfs: fixed client init and setup, added config stage

(Portage version: 2.2.0_alpha120/git/Linux x86_64, RepoMan options: --force, unsigned Manifest commit)

---
 net-fs/cvmfs/ChangeLog                       |    4 ++++
 net-fs/cvmfs/cvmfs-2.0.18.ebuild             |   24 ++++++++++++++++++++++--
 net-fs/cvmfs/files/cvmfs-2.0.18-openrc.patch |    2 +-
 net-fs/cvmfs/files/cvmfs.initd               |    2 +-
 4 files changed, 28 insertions(+), 4 deletions(-)

diff --git a/net-fs/cvmfs/ChangeLog b/net-fs/cvmfs/ChangeLog
index 3dc9d74..30b13a0 100644
--- a/net-fs/cvmfs/ChangeLog
+++ b/net-fs/cvmfs/ChangeLog
@@ -2,6 +2,10 @@
 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+  25 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org> cvmfs-2.0.18.ebuild,
+  files/cvmfs-2.0.18-openrc.patch, files/cvmfs.initd:
+  net-fs/cvmfs: fixed client init and setup, added config stage
+
 *cvmfs-2.0.18 (25 Jul 2012)
 
   25 Jul 2012; Sébastien Fabbro <bicatali@gentoo.org> +cvmfs-2.0.18.ebuild,

diff --git a/net-fs/cvmfs/cvmfs-2.0.18.ebuild b/net-fs/cvmfs/cvmfs-2.0.18.ebuild
index 0ce39f4..c84a8ff 100644
--- a/net-fs/cvmfs/cvmfs-2.0.18.ebuild
+++ b/net-fs/cvmfs/cvmfs-2.0.18.ebuild
@@ -32,8 +32,9 @@ DEPEND="${CDEPEND}
 	virtual/pkgconfig
 	doc? ( app-doc/doxygen[dot] )"
 
-# needs to be either client or server
-REQUIRED_USE="!server? ( client )"
+
+# either client or server is required and are mutually exclusive
+REQUIRED_USE="^^ ( client server )"
 
 pkg_setup() {
 	if use server && use openmp && [[ $(tc-getCC) == *gcc* ]] && ! tc-has-openmp
@@ -102,3 +103,22 @@ pkg_postinst() {
 pkg_postrm() {
 	use server && linux-mod_pkg_postrm
 }
+
+pkg_config() {
+	if use client; then
+		einfo "Setting up CernVM-FS client"
+		cvmfs_config setup
+		cat > ${EROOT}/etc/cvmfs/default.local <<-EOF
+			# Repositories to fetch example is for ATLAS
+			CVMFS_REPOSITORIES=atlas.cern.ch,atlas-condb.cern.ch,grid.cern.ch
+			# Local proxy settings, ex: http://cernvm.cern.ch/config/proxy.cgi
+			CVMFS_HTTP_PROXY="DIRECT"
+			# Where to keep the cvmfs cache
+			CVMFS_CACHE_BASE=${EROOT}/var/scratch/cvmfs
+			# Quota limit in Mb
+			CVMFS_QUOTA_LIMIT=10000
+		EOF
+		einfo "Now edit ${EROOT}/etc/cvmfs/default.local and run"
+		einfo "  ${EROOT}/usr/init.d/cvmfs restart"
+	fi
+}

diff --git a/net-fs/cvmfs/files/cvmfs-2.0.18-openrc.patch b/net-fs/cvmfs/files/cvmfs-2.0.18-openrc.patch
index bf6eb9a..df1f5e6 100644
--- a/net-fs/cvmfs/files/cvmfs-2.0.18-openrc.patch
+++ b/net-fs/cvmfs/files/cvmfs-2.0.18-openrc.patch
@@ -11,7 +11,7 @@ diff -Nur cvmfs-2.0.18.orig/cvmfs/src/cvmfs_config cvmfs-2.0.18/cvmfs/src/cvmfs_
    # Ubuntu
    service="/usr/sbin/service"
 +  chkconfig="/usr/sbin/chkconfig"
-+elif [ -x /usr/sbin/rc-service ]; then
++elif [ -x /sbin/rc-service ]; then
 +  # OpenRC
 +  service="/sbin/rc-service"
 +  chkconfig="/usr/bin/rc-config"

diff --git a/net-fs/cvmfs/files/cvmfs.initd b/net-fs/cvmfs/files/cvmfs.initd
index 80cf374..75f45b7 100644
--- a/net-fs/cvmfs/files/cvmfs.initd
+++ b/net-fs/cvmfs/files/cvmfs.initd
@@ -110,7 +110,7 @@ start() {
 }
 
 stop() {
-    local m ret
+    local m ret=0
     # FIXME: do we need to unmount here or?
     for m in $(list_mounts | awk '{print $3}');  do	
 	ebegin "Unmounting ${m}"


             reply	other threads:[~2012-07-25 18:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-25 18:09 Sebastien Fabbro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-10-30 14:45 [gentoo-commits] proj/sci:master commit in: net-fs/cvmfs/files/, net-fs/cvmfs/ Sebastien Fabbro
2012-07-25  0:34 Sebastien Fabbro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1343239759.b43872551e20fd5c15948f5c51bb3feae41df080.bicatali@gentoo \
    --to=bicatali@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox