public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas K. Hüttel" <dilfridge@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/MogileFS-Server/
Date: Sun,  9 May 2021 12:31:45 +0000 (UTC)	[thread overview]
Message-ID: <1620563494.8731a7e9ada9b79f31cbf8ca0db1fb83dbc3bbec.dilfridge@gentoo> (raw)

commit:     8731a7e9ada9b79f31cbf8ca0db1fb83dbc3bbec
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun May  9 11:50:40 2021 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun May  9 12:31:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8731a7e9

dev-perl/MogileFS-Server: EAPI=7, GLEP 81

Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 .../MogileFS-Server-2.730.0-r1.ebuild              | 84 ++++++++++++++++++++++
 1 file changed, 84 insertions(+)

diff --git a/dev-perl/MogileFS-Server/MogileFS-Server-2.730.0-r1.ebuild b/dev-perl/MogileFS-Server/MogileFS-Server-2.730.0-r1.ebuild
new file mode 100644
index 00000000000..02edca56803
--- /dev/null
+++ b/dev-perl/MogileFS-Server/MogileFS-Server-2.730.0-r1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=DORMANDO
+DIST_VERSION=${PV%0.0}
+inherit perl-module
+
+DESCRIPTION="Server for the MogileFS distributed file system"
+HOMEPAGE="http://www.danga.com/mogilefs/ https://metacpan.org/release/MogileFS-Server"
+
+IUSE="mysql +sqlite test postgres"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( sqlite ) || ( mysql sqlite postgres )"
+
+SLOT="0"
+LICENSE="|| ( Artistic GPL-2 )"
+#KEYWORDS="~amd64 ~ppc ~x86"
+
+# Upstream site recommends this,
+# but it breaks Perlbal
+# dev-perl/Perlbal-XS-HTTPHeaders
+RDEPEND="
+	acct-group/mogile
+	acct-user/mogile
+	dev-perl/Net-Netmask
+	>=dev-perl/Danga-Socket-1.610.0
+	>=dev-perl/Sys-Syscall-0.220.0
+	>=dev-perl/Perlbal-1.790
+	>=dev-perl/IO-AIO-4
+	dev-perl/libwww-perl
+	>=dev-perl/MogileFS-Client-1.170.0
+	>=dev-perl/MogileFS-Utils-2.280.0
+	dev-perl/Cache-Memcached
+	dev-perl/DBI
+	mysql? ( dev-perl/DBD-mysql )
+	postgres? ( dev-perl/DBD-Pg )
+	sqlite? ( dev-perl/DBD-SQLite )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="${RDEPEND}"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-2.720.0-gentoo-init-conf.patch"
+)
+
+DIST_TEST="never verbose"
+
+src_install() {
+	perl-module_src_install || die "perl-module_src_install failed"
+	cd "${S}" || die
+
+	newconfd "${S}"/gentoo/conf.d/mogilefsd mogilefsd
+	newinitd "${S}"/gentoo/init.d/mogilefsd mogilefsd
+
+	newconfd "${S}"/gentoo/conf.d/mogstored mogstored
+	newinitd "${S}"/gentoo/init.d/mogstored mogstored
+
+	newinitd "${S}"/gentoo/init.d/mogautomount mogautomount
+
+	diropts -m 700 -o mogile
+	keepdir /var/mogdata
+
+	diropts -m 755 -o root
+	dodir /etc/mogilefs
+
+	insinto /etc/mogilefs
+	insopts -m 600 -o root -g mogile
+	newins "${S}"/gentoo/conf/mogilefsd.conf mogilefsd.conf
+	newins "${S}"/gentoo/conf/mogstored.conf mogstored.conf
+}
+
+pkg_postinst() {
+	chmod 640 "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
+	chown root:mogile "${ROOT}"/etc/mogilefs/{mogilefsd,mogstored}.conf
+}
+
+src_test() {
+	# these need to be in the env and the makeopts
+	export MOGTEST_DBUSER=mogile MOGTEST_DBNAME=tmp_mogiletest MOGTEST_DBTYPE=SQLite TMPDIR="${T}/mogile"
+	#perl-module_src_test
+	make -j1 test TEST_VERBOSE=1 MOGTEST_DBUSER=${MOGTEST_DBUSER} MOGTEST_DBNAME=${MOGTEST_DBNAME} MOGTEST_DBTYPE=${MOGTEST_DBTYPE} TMPDIR="${TMPDIR}"
+}


             reply	other threads:[~2021-05-09 12:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-09 12:31 Andreas K. Hüttel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-07-08 19:33 [gentoo-commits] repo/gentoo:master commit in: dev-perl/MogileFS-Server/ Andreas K. Hüttel
2021-05-12 21:38 Andreas K. Hüttel
2021-05-12 21:33 Andreas K. Hüttel
2019-11-08 21:29 Robin H. Johnson
2019-11-08 14:23 Robin H. Johnson
2019-11-08 14:23 Robin H. Johnson
2018-02-11 10:36 Michał Górny
2017-11-27  7:26 Kent Fredric

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=1620563494.8731a7e9ada9b79f31cbf8ca0db1fb83dbc3bbec.dilfridge@gentoo \
    --to=dilfridge@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