diff options
author | Alexys Jacob <ultrabug@gentoo.org> | 2013-06-07 10:38:46 +0000 |
---|---|---|
committer | Alexys Jacob <ultrabug@gentoo.org> | 2013-06-07 10:38:46 +0000 |
commit | 69904209679a68298101fb555bcd1c058edb98e2 (patch) | |
tree | 3c8a27451a61095a02456fed2b988ce319ba51d3 /sys-cluster | |
parent | Set mccabe to PDEPEND, fixes Bug #472442 (diff) | |
download | gentoo-2-69904209679a68298101fb555bcd1c058edb98e2.tar.gz gentoo-2-69904209679a68298101fb555bcd1c058edb98e2.tar.bz2 gentoo-2-69904209679a68298101fb555bcd1c058edb98e2.zip |
version bump, fix #468742, drop old
(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key B658FA13)
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/moosefs/ChangeLog | 10 | ||||
-rw-r--r-- | sys-cluster/moosefs/files/mfs.initd | 79 | ||||
-rwxr-xr-x | sys-cluster/moosefs/files/mfscgiserver.initd | 21 | ||||
-rw-r--r-- | sys-cluster/moosefs/moosefs-1.6.26-r1.ebuild (renamed from sys-cluster/moosefs/moosefs-1.6.25.ebuild) | 20 | ||||
-rw-r--r-- | sys-cluster/moosefs/moosefs-1.6.27.ebuild (renamed from sys-cluster/moosefs/moosefs-1.6.26.ebuild) | 14 |
5 files changed, 32 insertions, 112 deletions
diff --git a/sys-cluster/moosefs/ChangeLog b/sys-cluster/moosefs/ChangeLog index 0142f20d9e06..6eb0d12e5b8b 100644 --- a/sys-cluster/moosefs/ChangeLog +++ b/sys-cluster/moosefs/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for sys-cluster/moosefs # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/ChangeLog,v 1.5 2013/01/21 12:56:41 ultrabug Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/ChangeLog,v 1.6 2013/06/07 10:38:45 ultrabug Exp $ + +*moosefs-1.6.27 (07 Jun 2013) +*moosefs-1.6.26-r1 (07 Jun 2013) + + 07 Jun 2013; Ultrabug <ultrabug@gentoo.org> -moosefs-1.6.25.ebuild, + -moosefs-1.6.26.ebuild, +moosefs-1.6.26-r1.ebuild, +moosefs-1.6.27.ebuild, + -files/mfs.initd, -files/mfscgiserver.initd: + version bump, fix #468742 thx to Marcin Grabowski, drop old *moosefs-1.6.26 (21 Jan 2013) diff --git a/sys-cluster/moosefs/files/mfs.initd b/sys-cluster/moosefs/files/mfs.initd deleted file mode 100644 index b08d50c5d5d1..000000000000 --- a/sys-cluster/moosefs/files/mfs.initd +++ /dev/null @@ -1,79 +0,0 @@ -#!/sbin/runscript - -depend() { - need net -} - -chkconfig() { - [ -z "${ROLES}" ] && { eerror "No role defined !"; return 1;} - for ROLE in ${ROLES}; do - if [ ! -f /etc/mfs/${ROLE}.cfg ]; then - eerror "Missing configuration file for role ${ROLE} !" - return 1 - fi - done - return 0 -} - -autorestore() { - einfo "AUTORESTORE set, trying to restore metadata files" - mfsmetarestore -a &>/dev/null - return $? -} - -start_role() { - local ROLE=$1 - local RETURN=0 - - ebegin "${ROLE}" - start-stop-daemon -q --start --exec "${ROLE}" -- start >/dev/null - RETURN=$? - eend ${RETURN} - - return ${RETURN} -} - -start_roles() { - local RETURN=0 - - eindent - for ROLE in ${ROLES}; do - - start_role ${ROLE} || RETURN=$? - eend ${RETURN} - - if [ "${RETURN}" != "0" ] && [ "${ROLE}" == "mfsmaster" ] && [ ${AUTORESTORE} -eq 1 ]; then - eindent - autorestore && start_role ${ROLE} - RETURN=$? - eoutdent - fi - - [ "${RETURN}" != "0" ] && break - done - eoutdent - - return ${RETURN} -} - -start() { - ebegin "Starting mfs node" - chkconfig && start_roles - eend $? -} - -stop() { - local RETURN=0 - - ebegin "Stopping mfs node" - eindent - local REVERSE=$(echo ${ROLES} | tac -s' ') - for ROLE in ${REVERSE}; do - ebegin "${ROLE}" - start-stop-daemon -q --stop -n ${ROLE} || RETURN=$? - eend ${RETURN} - done - eoutdent - - eend ${RETURN} -} diff --git a/sys-cluster/moosefs/files/mfscgiserver.initd b/sys-cluster/moosefs/files/mfscgiserver.initd deleted file mode 100755 index 13d033de7cd5..000000000000 --- a/sys-cluster/moosefs/files/mfscgiserver.initd +++ /dev/null @@ -1,21 +0,0 @@ -#!/sbin/runscript - -PIDFILE=/var/run/mfscgiserv.pid - -depend() { - need net -} - -start() { - ebegin "Starting mfs CGI server" - start-stop-daemon --start --quiet --exec /usr/sbin/mfscgiserv \ - --pidfile "${PIDFILE}" --make-pidfile --background \ - -- -H ${BIND_HOST} -P ${BIND_PORT} -f - eend $? -} - -stop() { - ebegin "Stopping mfs CGI server" - start-stop-daemon --stop -q --pidfile "${PIDFILE}" - eend $? -} diff --git a/sys-cluster/moosefs/moosefs-1.6.25.ebuild b/sys-cluster/moosefs/moosefs-1.6.26-r1.ebuild index adefb87c8068..5152eda7d069 100644 --- a/sys-cluster/moosefs/moosefs-1.6.25.ebuild +++ b/sys-cluster/moosefs/moosefs-1.6.26-r1.ebuild @@ -1,23 +1,27 @@ -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/moosefs-1.6.25.ebuild,v 1.1 2012/07/02 13:51:07 ultrabug Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/moosefs-1.6.26-r1.ebuild,v 1.1 2013/06/07 10:38:45 ultrabug Exp $ -EAPI=4 +EAPI="5" -inherit eutils +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit eutils python-single-r1 MY_P="mfs-${PV}" S="${WORKDIR}/${MY_P}" DESCRIPTION="A filesystem for highly reliable petabyte storage" HOMEPAGE="http://www.moosefs.org/" -SRC_URI="http://www.moosefs.org/tl_files/mfscode/${MY_P}.tar.gz" +SRC_URI="http://pro.hit.gemius.pl/hitredir/id=p4CVHPOzkVa0JJIK.m0Ee6dyHZEgoQb1KaiPmVK29EX.M7/url=moosefs.org/tl_files/mfscode/${MY_P}.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="cgi +fuse static-libs" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + RDEPEND=" cgi? ( dev-lang/python ) fuse? ( >=sys-fs/fuse-2.6 )" @@ -26,6 +30,7 @@ DEPEND="${RDEPEND}" pkg_setup() { enewgroup mfs enewuser mfs -1 -1 -1 mfs + python-single-r1_pkg_setup } src_prepare() { @@ -49,10 +54,11 @@ src_configure() { src_install() { emake DESTDIR="${D}" install - newinitd "${FILESDIR}/mfs.initd" mfs + newinitd "${FILESDIR}/mfs.initd-r1" mfs newconfd "${FILESDIR}/mfs.confd" mfs if use cgi; then - newinitd "${FILESDIR}/mfscgiserver.initd" mfscgiserver + python_fix_shebang "${D}"/usr/sbin/mfscgiserv + newinitd "${FILESDIR}/mfscgiserver.initd-r1" mfscgiserver newconfd "${FILESDIR}/mfscgiserver.confd" mfscgiserver fi diff --git a/sys-cluster/moosefs/moosefs-1.6.26.ebuild b/sys-cluster/moosefs/moosefs-1.6.27.ebuild index d666a7098cdd..86b455d2dc53 100644 --- a/sys-cluster/moosefs/moosefs-1.6.26.ebuild +++ b/sys-cluster/moosefs/moosefs-1.6.27.ebuild @@ -1,23 +1,27 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/moosefs-1.6.26.ebuild,v 1.1 2013/01/21 12:56:41 ultrabug Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/moosefs/moosefs-1.6.27.ebuild,v 1.1 2013/06/07 10:38:45 ultrabug Exp $ -EAPI=4 +EAPI="5" -inherit eutils +PYTHON_COMPAT=( python{2_6,2_7} ) + +inherit eutils python-single-r1 MY_P="mfs-${PV}" S="${WORKDIR}/${MY_P}" DESCRIPTION="A filesystem for highly reliable petabyte storage" HOMEPAGE="http://www.moosefs.org/" -SRC_URI="http://www.moosefs.org/tl_files/mfscode/${MY_P}.tar.gz" +SRC_URI="http://pro.hit.gemius.pl/hitredir/id=.WCbG2t.7Ln5k1s3Q9xPg8cPfX.wVMc5kyXfrKcJTDH.c7/url=moosefs.org/tl_files/mfscode/${MY_P}-1.tar.gz" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="cgi +fuse static-libs" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + RDEPEND=" cgi? ( dev-lang/python ) fuse? ( >=sys-fs/fuse-2.6 )" @@ -26,6 +30,7 @@ DEPEND="${RDEPEND}" pkg_setup() { enewgroup mfs enewuser mfs -1 -1 -1 mfs + python-single-r1_pkg_setup } src_prepare() { @@ -52,6 +57,7 @@ src_install() { newinitd "${FILESDIR}/mfs.initd-r1" mfs newconfd "${FILESDIR}/mfs.confd" mfs if use cgi; then + python_fix_shebang "${D}"/usr/sbin/mfscgiserv newinitd "${FILESDIR}/mfscgiserver.initd-r1" mfscgiserver newconfd "${FILESDIR}/mfscgiserver.confd" mfscgiserver fi |