Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/libres3/
Date: Fri, 30 Oct 2015 00:04:52
Message-Id: 1446046711.8d7cd07d8a73c440139b1d0e16b8cc387b1102e2.aballier@gentoo
1 commit: 8d7cd07d8a73c440139b1d0e16b8cc387b1102e2
2 Author: Matthew Brewer <tomboy64 <AT> sina <DOT> cn>
3 AuthorDate: Fri Oct 16 13:25:24 2015 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 28 15:38:31 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d7cd07d
7
8 net-misc/libres3: new ebuild
9
10 net-misc/libres3/Manifest | 1 +
11 net-misc/libres3/libres3-1.1.ebuild | 79 +++++++++++++++++++++++++++++++++++++
12 net-misc/libres3/metadata.xml | 12 ++++++
13 3 files changed, 92 insertions(+)
14
15 diff --git a/net-misc/libres3/Manifest b/net-misc/libres3/Manifest
16 new file mode 100644
17 index 0000000..b18552b
18 --- /dev/null
19 +++ b/net-misc/libres3/Manifest
20 @@ -0,0 +1 @@
21 +DIST libres3-1.1.tar.gz 7025033 SHA256 d4b3199db31844811290e8e9674bccd82c05e204537c499ac7d10d385b1cea13 SHA512 cdbefef90076f9f94f3b1635639a4b64e7666532ae6f51434d344e5c4ef1d4dce2787c52903ee5f0d6630ff84d8e79e14c843ac84d9e1affd2c1f16a41ffcfa3 WHIRLPOOL 015f7af705a58a21e8392661ca3ac9c0373803f4b588140af27f2d7706a8e0948fffeed26201ee9bd58f8e71bc0cde4557aaedbfc54f769c9564ebf7c6115a8d
22
23 diff --git a/net-misc/libres3/libres3-1.1.ebuild b/net-misc/libres3/libres3-1.1.ebuild
24 new file mode 100644
25 index 0000000..66adbcf
26 --- /dev/null
27 +++ b/net-misc/libres3/libres3-1.1.ebuild
28 @@ -0,0 +1,79 @@
29 +# Copyright 1999-2015 Gentoo Foundation
30 +# Distributed under the terms of the GNU General Public License v2
31 +# $Id$
32 +
33 +EAPI=5
34 +
35 +OASIS_BUILD_TESTS=1
36 +inherit oasis findlib
37 +
38 +DESCRIPTION="Skylable LibreS3 - Amazon S3 open source replacement"
39 +HOMEPAGE="http://www.skylable.com/products/libres3"
40 +SRC_URI="http://cdn.skylable.com/source/${P}.tar.gz"
41 +
42 +LICENSE="GPL-2 LGPL-2.1"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +IUSE=""
46 +OASIS_DOC_DIR="/usr/share/doc/${PF}"
47 +
48 +RDEPEND="
49 + >=dev-lang/ocaml-4:=
50 + dev-ml/camlp4:=
51 + dev-ml/jsonm:=
52 + dev-ml/lwt:=[react,ssl]
53 + dev-ml/ocaml-base64:=
54 + dev-ml/ocaml-dns:=[lwt(-)]
55 + dev-ml/ocaml-ipaddr:=
56 + dev-ml/ocaml-re:=
57 + dev-ml/ocaml-ssl:=
58 + >=dev-ml/ocamlnet-3.7.4:=[pcre]
59 + <dev-ml/ocamlnet-4:=[pcre]
60 + dev-ml/optcomp:=
61 + dev-ml/ounit:=
62 + dev-ml/pcre-ocaml:=
63 + dev-ml/tyxml:=
64 + dev-ml/uutf:=
65 + dev-ml/xmlm:=
66 + www-servers/ocsigenserver:=[sqlite]
67 +"
68 +DEPEND="
69 + dev-ml/oasis
70 + virtual/pkgconfig
71 + ${RDEPEND}
72 +"
73 +
74 +S="${WORKDIR}/${P}/libres3"
75 +
76 +src_prepare() {
77 + sed -e '/..\/..\/COPYING/d' -i _oasis || die
78 + rm setup.ml || die
79 + emake update
80 +}
81 +
82 +src_configure() {
83 + oasis_configure_opts="
84 + --sysconfdir ${EPREFIX}/etc/${PN}
85 + --localstatedir ${EPREFIX}/var" oasis_src_configure
86 +}
87 +
88 +src_install() {
89 + emake DESTDIR="${D}" install
90 +
91 + if [[ -d /etc/logrotate.d ]]; then
92 + insinto /etc/logrotate.d
93 + doins src/files/conf/logrotate.d/libres3
94 + fi
95 +}
96 +
97 +pkg_postinst() {
98 + elog "*******************************************************************************"
99 + elog "Just as a heads-up: LibreS3 requires a working SX cluster (net-misc/sx) to be"
100 + elog "of any use. Since LibreS3 is capable of connecting to a remote SX cluster it"
101 + elog "doesn't depend on it. Hence you will likely want to install it."
102 + elog ""
103 + elog "Standard S3 client libraries and tools (for example s3cmd, python-boto,"
104 + elog "ocaml-aws, etc.) can be used to access it."
105 + elog "Enjoy."
106 + elog "*******************************************************************************"
107 +}
108
109 diff --git a/net-misc/libres3/metadata.xml b/net-misc/libres3/metadata.xml
110 new file mode 100644
111 index 0000000..d41c60d
112 --- /dev/null
113 +++ b/net-misc/libres3/metadata.xml
114 @@ -0,0 +1,12 @@
115 +<?xml version="1.0" encoding="UTF-8"?>
116 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
117 +<pkgmetadata>
118 + <herd>ml</herd>
119 + <herd>proxy-maintainers</herd>
120 + <maintainer>
121 + <email>tomboy64@××××.cn</email>
122 + </maintainer>
123 + <longdescription lang="en">
124 + LibreS3 adds an S3-compatibility layer over SX Cluster. With LibreS3 you access the data stored in your storage cluster using any existing S3 client.
125 + </longdescription>
126 +</pkgmetadata>