parent
f1ab97b1c5
commit
debe7fdb13
@ -1,4 +1,5 @@
|
||||
DIST aerospike-amc-community-3.6.10.1.all.x86_64.deb 1434334 SHA256 1f8424f64d2d3a609ec1a4ad30569ccbf13ac411eddb96f3e855efc396523b02 SHA512 2f9d208c501800d7a73d419347883ff9b4f8d65e76238c8676f1f04ad6c38aae2c9746ea65ed0d4ef36bcc9419a3a70b4d95f42aea72556935cdb3e82d943f05 WHIRLPOOL 5062770392f4ebe62ab616bb67b9848591cdaed334dc94476b88ede7691b6734c2fe0d91b2a7e1ca7f69c48931c194cbec630eee58281d3e8414ebf5072499e9
|
||||
DIST aerospike-amc-community-3.6.11.all.x86_64.deb 1434296 SHA256 435d68f20f9a98d2569c294d850bfac5d00eaca680dbe5c697955d6b6df82c9c SHA512 e6396d8328f1021bbe4505bd63d4b4835857f151d58e0bb089f18ad7b3115d4893e9b3aaac18321f26150e6d1d2f15eadcd39d2f361af145426dee0c8fd9e90d WHIRLPOOL 99fee74cf99ba081f7ad61fc839a3ddc150fe9580325cc5ab40f2aeb254348856bde554240c2f39ec49dd4979cae7f03fe2d9d5ad3c6af4d181caeaefb627ddf
|
||||
DIST aerospike-amc-community-3.6.8.2.all.x86_64.deb 1429424 SHA256 6509c10fa4af2c41aa9f2a17ad75e2f1383010bb9d12586e19858aa990b127d5 SHA512 ed1b82f825888ce2985b77d75e2e9988f87a241159fc0452af12892f66c37ec0d88f7edd2be6fce6d06184a5c09305f5e9727af48774e55b6290402fa406abc3 WHIRLPOOL 7c98bf26f9cd32461a015572fb3f7c9f6d17dff8fa28a13adbac47267db0f83d3d2139faceb1ebb89a259df20dbdd6f9b81c8cdd9f305597835e84c3f985805c
|
||||
DIST aerospike-amc-community-3.6.8.all.x86_64.deb 1429404 SHA256 7c29269746a806f04c3828188a249af6407135ebcf151fe55550d84d2e8dc464 SHA512 de44333471307410461bd53266b84fdc9fa92f7115012eb4b29b3ad415dd471ca3d9bf1a7c52bec7063df02a7e600dce9366910a089751dd19163cc212574d28 WHIRLPOOL 134a8f6dbd006b9918be787f090ca762b45b4c9083f43b6f039b3f33ab1a43ef38be30e3fa31c137185e35672620eace1a2cff7615091f9a9bfab955dfa1f914
|
||||
DIST aerospike-amc-community-3.6.9.all.x86_64.deb 1431182 SHA256 fb3a21ed712b134ae0fbe41bcc60ee3b62fddb1a08af660b7197528cb978d827 SHA512 67059ef2b96c4cf69b8a2edacb3edc711a18889b7eee16a038c63e8176d80e4b5ff23f126c0c16113a529e181b9c6f16601cbfa0251b0b12231ad7a23b8bc65e WHIRLPOOL c04a136ed27029503fd58c08a872fd86c9f3530b161183cb74a86db9f66150b817df05492f697214ecf8bbde3951d3b5091eea5c53787faf79888606670ddba5
|
||||
|
@ -0,0 +1,64 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Web UI based monitoring tool for Aerospike Community Edition Server"
|
||||
HOMEPAGE="http://www.aerospike.com"
|
||||
SRC_URI="http://www.aerospike.com/artifacts/${PN}/${PV}/${P}.all.x86_64.deb"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-crypt/gcr
|
||||
dev-python/eventlet
|
||||
dev-python/flask
|
||||
dev-python/greenlet
|
||||
dev-python/setproctitle
|
||||
www-servers/gunicorn"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
mkdir "${P}"
|
||||
tar -xf data.tar.xz -C "${S}" || die
|
||||
tar -xzf "${S}"/opt/amc.tar.gz -C "${S}"/opt/ || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
mv opt/amc/amc/* opt/amc/
|
||||
rm -rf opt/amc/amc
|
||||
rm -f opt/amc/install
|
||||
rm -f opt/amc/bin/uninstall
|
||||
rm -f opt/amc/bin/amc_*.sh
|
||||
rm -f opt/amc/bin/gunicorn
|
||||
rm -rf opt/amc/server/site-packages/
|
||||
rm -rf opt/amc/server/setups/
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins opt/amc/config/logrotate amc
|
||||
rm -f opt/amc/config/logrotate
|
||||
|
||||
insinto /etc/cron.daily
|
||||
newins opt/amc/config/logcron amc
|
||||
rm -f opt/amc/config/logcron
|
||||
|
||||
sed -e 's@/tmp/amc.pid@/run/amc.pid@g' -i opt/amc/config/gunicorn_config.py || die
|
||||
|
||||
insinto /etc/amc/config
|
||||
doins -r opt/amc/config/*
|
||||
rm -rf opt/amc/config/
|
||||
|
||||
echo "${PV}" > opt/amc/amc_version
|
||||
|
||||
insinto /opt/amc/
|
||||
doins -r opt/amc/*
|
||||
|
||||
keepdir /var/log/amc
|
||||
|
||||
newinitd "${FILESDIR}"/amc.init amc
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
DIST rsyslog-8.16.0.tar.gz 2132012 SHA256 4fe4f97c10899086d98b9401d7e8d2bcff61c7c3f7cde8627891e36fc6ec1b76 SHA512 e45acc16078d83937edd7e22f916fe050b62aa057ca4dd980823850f2195213c12db36f759c528b5fe6f1b061a61e2117fca6086245bc248392cc4e61b2383dc WHIRLPOOL 809035873565645cea5896fb19882239a0d70776ea0b948739440f7a28baf6df4bf4e958de7506d289355eadc26e1fba7e9cd8df315339f18f89acaecc462eaa
|
||||
DIST rsyslog-8.18.0.tar.gz 2261731 SHA256 94346237ecfa22c9f78cebc3f18d59056f5d9846eb906c75beaa7e486f02c695 SHA512 6b159ba23100b4675576f5b247d2bf482bab0beaa071c26c692c99e50f202b0b272b7a64ba2b7c726390d663677b7a6d68666b06f73825e35605b13ae0930fc7 WHIRLPOOL 8efa5d7639b2c5978bdbbcf9837ca87d91a1ccf37dfa5b66e5aa05221d4a31ff57093eb5d604d036f3fd7cafb394f25eaf9302cf2143402d2a9255f4fc53b196
|
||||
DIST rsyslog-8.19.0.tar.gz 2279714 SHA256 3379b30f2e6ef05a0f1c7327c73923fa5877a80b984506cdf48ed068c94a575e SHA512 77c40c9d76591ed3561ec76242be2c647848533df5599320ea988cbc200614c47930e0b63f190d31a0c1cec2443d57ca374f07e0909f11eba8a4bd4b8eee0e44 WHIRLPOOL 3f7d7134a0c6a475453828440a87d0fa68e7afc583ef12556f3b60f3e07621011b4f48e8c4dfbe46cef2bf2decee3827c42bd4ba481611e7cb76a695dcec5c7b
|
||||
DIST rsyslog-8.21.0.tar.gz 2290993 SHA256 bdb1fde87b75107b58d1cd5d00408822fb15b9f3efb8d9dbb93a1dee128339ab SHA512 f56b4227d535a6d354082e2c138feb1d1bb1010a3a780cf23d54e882cfaa893cd7d90f29da29b925957192d3e3c617cadede8938c3e1b162bfc4c6cf65a592a9 WHIRLPOOL f1ab94924e21a5dfa29d29f29b95e2bb9892e8a4ad23452753decfc69bffaef3bfd448edee8fd733f54858c189e2c6b9504da5f2dda8a6296f6a6a11d1b2a60e
|
||||
DIST rsyslog-doc-8.16.0.tar.gz 4174347 SHA256 03033d264b29fd791299d5d618bd061853c008ac8087f3b6c4870e1b8f6abc39 SHA512 746e4de102f15ea10085ca21eeed74dd8264742ba7029cb54caf87b72070ab6a73e79af46d97717323be1e68d9d1fa78807d5d4446d15524aa4c565650f7b0d0 WHIRLPOOL ff8dfcc3dd7e87a7316f94a3b8f199cd902cbf99772bb97147b9af37b8c6941f13341438450b3dbf3139d5518488e74df6b77c1eec3182e92a9476ccb951ec5b
|
||||
DIST rsyslog-docs-8.18.0.tar.gz 4269339 SHA256 8de82dece85a9a83d9c1feaf7fdfb883c2bfe5a82d84b846161bec0b9dba22c6 SHA512 c560f6a8c05f951d245b8bf96e3c58f9023761edf0e5e25b4a01dab934c1db8ad74baf7e90bd1139d3c6b5af396fca525a7818e87fcbf161317c21e005aae0b2 WHIRLPOOL 2d133a86d3a2abf5f4e3c57e0b65015ed3ad4770b4dfcd34420395fc11ab7d5752811afcb83a776bc51d665b75729bd76a0d94793d508e28aebeb815884dceff
|
||||
DIST rsyslog-docs-8.19.0.tar.gz 4271094 SHA256 f76958d2fbcbb3a2db531ec3878d6d9a8c4a622e457b9c97b7c7dcca0ddd6512 SHA512 120f229a641119649fc897948fb0934039a95d0ef63e68b10ab635620d84988d794fd5dc33617353028e786513a86b3a1cd0c4fef9c755dab5bedd8e0246532e WHIRLPOOL fc0642eef4e686fc653db6a654f96fd9037e083a02e06d64b7b2a2e0292d745ca6e24821df3b9825e0eba2c4808b2755dfaeb90b62a49662ab22a171ffe2e63b
|
||||
DIST rsyslog-docs-8.21.0.tar.gz 4289500 SHA256 0a98557083e5f9ce92dbd5ea3d6f4b7d1fa123e181c9597c344cc1be064c93af SHA512 ff1bfb5f3816ff30d8584d9afce0195b76adccb230c705be79b99f889e35bfd41d9079ff457866a474b023352108c67af85add1dad46ebc2e20be3a3c99ed907 WHIRLPOOL 5efa5561377cfc3d35958cb1b71c0b96e210b9f9bc6213774294d22714c1928d7e0bc0eac1f96632554011a6522b009bdfee440fe59fe1f8306f54f2006e1ce7
|
||||
|
@ -1,482 +0,0 @@
|
||||
From b81d6dd36545f79c46e0a3488a9b26d0db75646a Mon Sep 17 00:00:00 2001
|
||||
From: Thomas D.
|
||||
Date: Tue, 19 Apr 2016 02:09:18 +0200
|
||||
Subject: [PATCH 2/2] testbench: Use LD_PRELOAD=libfaketime.so instead of
|
||||
faketime binary
|
||||
|
||||
Fixes: https://github.com/rsyslog/rsyslog/issues/963
|
||||
---
|
||||
tests/faketime_common.sh | 20 +++++++-------------
|
||||
tests/now-utc-casecmp.sh | 2 +-
|
||||
tests/now-utc-ymd.sh | 2 +-
|
||||
tests/now-utc.sh | 2 +-
|
||||
tests/now_family_utc.sh | 2 +-
|
||||
tests/timegenerated-dateordinal-invld.sh | 8 ++++----
|
||||
tests/timegenerated-dateordinal.sh | 28 ++++++++++++++--------------
|
||||
tests/timegenerated-utc-legacy.sh | 2 +-
|
||||
tests/timegenerated-utc.sh | 2 +-
|
||||
tests/timegenerated-uxtimestamp-invld.sh | 8 ++++----
|
||||
tests/timegenerated-uxtimestamp.sh | 26 ++++++++++++--------------
|
||||
tests/timegenerated-ymd.sh | 2 +-
|
||||
12 files changed, 48 insertions(+), 56 deletions(-)
|
||||
|
||||
diff --git a/tests/faketime_common.sh b/tests/faketime_common.sh
|
||||
index 10e0128..432ade6 100644
|
||||
--- a/tests/faketime_common.sh
|
||||
+++ b/tests/faketime_common.sh
|
||||
@@ -4,26 +4,20 @@
|
||||
# faketime is missing or the system isn't year-2038 complaint.
|
||||
# This script can be sourced to prevent duplicated code.
|
||||
|
||||
-if ! hash faketime 2>/dev/null ; then
|
||||
- echo "faketime command missing, skipping test"
|
||||
+faketime_testtime=$(LD_PRELOAD=libfaketime.so FAKETIME="1991-08-25 20:57:08" TZ=GMT date +%s 2>/dev/null)
|
||||
+if [ ${faketime_testtime} -ne 683153828 ] ; then
|
||||
+ echo "libfaketime.so missing, skipping test"
|
||||
exit 77
|
||||
fi
|
||||
|
||||
-export TZ=UTC+01:00
|
||||
-
|
||||
-faketime -f '2016-03-11 16:00:00' date 1>/dev/null 2>&1
|
||||
-if [ $? -ne 0 ]; then
|
||||
- # Safe-guard -- should never happen!
|
||||
- echo "faketime command not working as expected. Check faketime binary in path!"
|
||||
- exit 1
|
||||
-fi
|
||||
-
|
||||
-faketime '2040-01-01 16:00:00' date 1>/dev/null 2>&1
|
||||
-if [ $? -ne 0 ]; then
|
||||
+# GMT-1 (POSIX TIME) is GMT+1 in "Human Time"
|
||||
+faketime_testtime=$(LD_PRELOAD=libfaketime.so FAKETIME="2040-01-01 16:00:00" TZ=GMT-1 date +%s 2>/dev/null)
|
||||
+if [ ${faketime_testtime} -eq -1 ]; then
|
||||
# System isn't year-2038 compatible
|
||||
RSYSLOG_TESTBENCH_Y2K38_INCOMPATIBLE="yes"
|
||||
fi
|
||||
|
||||
+export LD_PRELOAD=libfaketime.so
|
||||
|
||||
rsyslog_testbench_require_y2k38_support() {
|
||||
if [ -n "${RSYSLOG_TESTBENCH_Y2K38_INCOMPATIBLE}" ]; then
|
||||
diff --git a/tests/now-utc-casecmp.sh b/tests/now-utc-casecmp.sh
|
||||
index 8f8d6a0..26bb7ee 100755
|
||||
--- a/tests/now-utc-casecmp.sh
|
||||
+++ b/tests/now-utc-casecmp.sh
|
||||
@@ -19,7 +19,7 @@ template(name="outfmt" type="string"
|
||||
:msg, contains, "msgnum:" action(type="omfile" template="outfmt"
|
||||
file="rsyslog.out.log")
|
||||
'
|
||||
-faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup
|
||||
# what we send actually is irrelevant, as we just use system properties.
|
||||
# but we need to send one message in order to gain output!
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
diff --git a/tests/now-utc-ymd.sh b/tests/now-utc-ymd.sh
|
||||
index c327983..6e2d183 100755
|
||||
--- a/tests/now-utc-ymd.sh
|
||||
+++ b/tests/now-utc-ymd.sh
|
||||
@@ -19,7 +19,7 @@ template(name="outfmt" type="string"
|
||||
:msg, contains, "msgnum:" action(type="omfile" template="outfmt"
|
||||
file="rsyslog.out.log")
|
||||
'
|
||||
-faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup
|
||||
# what we send actually is irrelevant, as we just use system properties.
|
||||
# but we need to send one message in order to gain output!
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
diff --git a/tests/now-utc.sh b/tests/now-utc.sh
|
||||
index ed83948..69fd4fd 100755
|
||||
--- a/tests/now-utc.sh
|
||||
+++ b/tests/now-utc.sh
|
||||
@@ -9,7 +9,7 @@ echo \[now-utc\]: test \$NOW-UTC
|
||||
export TZ=TEST-02:00
|
||||
|
||||
. $srcdir/diag.sh init
|
||||
-faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup now-utc.conf
|
||||
+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup now-utc.conf
|
||||
# what we send actually is irrelevant, as we just use system properties.
|
||||
# but we need to send one message in order to gain output!
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
diff --git a/tests/now_family_utc.sh b/tests/now_family_utc.sh
|
||||
index caba0f9..e791cbf 100755
|
||||
--- a/tests/now_family_utc.sh
|
||||
+++ b/tests/now_family_utc.sh
|
||||
@@ -9,7 +9,7 @@ echo \[now_family_utc\]: test \$NOW family of system properties
|
||||
export TZ=TEST+06:30
|
||||
|
||||
. $srcdir/diag.sh init
|
||||
-faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup now_family_utc.conf
|
||||
+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup now_family_utc.conf
|
||||
# what we send actually is irrelevant, as we just use system properties.
|
||||
# but we need to send one message in order to gain output!
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
diff --git a/tests/timegenerated-dateordinal-invld.sh b/tests/timegenerated-dateordinal-invld.sh
|
||||
index bac5d4e..dc5e14c 100755
|
||||
--- a/tests/timegenerated-dateordinal-invld.sh
|
||||
+++ b/tests/timegenerated-dateordinal-invld.sh
|
||||
@@ -25,7 +25,7 @@ template(name="outfmt" type="string"
|
||||
|
||||
echo "***SUBTEST: check 1800-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '1800-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='1800-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -40,7 +40,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 1960-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '1960-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='1960-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -55,7 +55,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2101-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2101-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2101-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -70,7 +70,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2500-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2500-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2500-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
diff --git a/tests/timegenerated-dateordinal.sh b/tests/timegenerated-dateordinal.sh
|
||||
index ace1c16..1164e53 100755
|
||||
--- a/tests/timegenerated-dateordinal.sh
|
||||
+++ b/tests/timegenerated-dateordinal.sh
|
||||
@@ -25,7 +25,7 @@ template(name="outfmt" type="string"
|
||||
|
||||
echo "***SUBTEST: check 1970-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '1970-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='1970-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -39,7 +39,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2000-03-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2000-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2000-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -53,7 +53,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -67,7 +67,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-02-29"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-02-29 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-02-29 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -81,7 +81,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-03-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -95,7 +95,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-03-03"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-03-03 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-03-03 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -109,7 +109,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-12-31"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-12-31 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-12-31 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -123,7 +123,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2017-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2017-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2017-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -137,7 +137,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2020-03-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2020-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2020-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -151,7 +151,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2038-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2038-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2038-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -168,7 +168,7 @@ rsyslog_testbench_require_y2k38_support
|
||||
|
||||
echo "***SUBTEST: check 2038-12-31"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2038-12-31 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2038-12-31 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -182,7 +182,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2040-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2040-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2040-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -196,7 +196,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2040-12-31"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2040-12-31 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2040-12-31 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -210,7 +210,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2100-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2100-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2100-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
diff --git a/tests/timegenerated-utc-legacy.sh b/tests/timegenerated-utc-legacy.sh
|
||||
index f893377..60296d3 100755
|
||||
--- a/tests/timegenerated-utc-legacy.sh
|
||||
+++ b/tests/timegenerated-utc-legacy.sh
|
||||
@@ -26,7 +26,7 @@ template(name="outfmt" type="string"
|
||||
|
||||
echo "***SUBTEST: check 2016-03-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
diff --git a/tests/timegenerated-utc.sh b/tests/timegenerated-utc.sh
|
||||
index 651408c..5d32e36 100755
|
||||
--- a/tests/timegenerated-utc.sh
|
||||
+++ b/tests/timegenerated-utc.sh
|
||||
@@ -28,7 +28,7 @@ template(name="outfmt" type="list") {
|
||||
|
||||
echo "***SUBTEST: check 2016-03-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
diff --git a/tests/timegenerated-uxtimestamp-invld.sh b/tests/timegenerated-uxtimestamp-invld.sh
|
||||
index 90bcf74..76a353c 100755
|
||||
--- a/tests/timegenerated-uxtimestamp-invld.sh
|
||||
+++ b/tests/timegenerated-uxtimestamp-invld.sh
|
||||
@@ -25,7 +25,7 @@ template(name="outfmt" type="string"
|
||||
|
||||
echo "***SUBTEST: check 1800-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '1800-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='1800-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -40,7 +40,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 1960-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '1960-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='1960-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -55,7 +55,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2101-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2101-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2101-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -70,7 +70,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2500-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2500-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2500-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
diff --git a/tests/timegenerated-uxtimestamp.sh b/tests/timegenerated-uxtimestamp.sh
|
||||
index b24f9c7..0eb2812 100755
|
||||
--- a/tests/timegenerated-uxtimestamp.sh
|
||||
+++ b/tests/timegenerated-uxtimestamp.sh
|
||||
@@ -25,7 +25,7 @@ template(name="outfmt" type="string"
|
||||
|
||||
echo "***SUBTEST: check 1970-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '1970-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='1970-01-01 00:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -40,7 +40,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2000-03-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2000-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2000-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -55,7 +55,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -70,7 +70,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-02-29"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-02-29 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-02-29 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -85,7 +85,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-03-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -100,7 +100,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-03-03"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-03-03 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-03-03 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -115,7 +115,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2016-12-31"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2016-12-31 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-12-31 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -130,7 +130,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2017-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2017-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2017-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -145,7 +145,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2020-03-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2020-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2020-03-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -160,7 +160,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2038-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2038-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2038-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -172,13 +172,11 @@ if [ ! $? -eq 0 ]; then
|
||||
exit 1
|
||||
fi;
|
||||
|
||||
-
|
||||
rsyslog_testbench_require_y2k38_support
|
||||
|
||||
-
|
||||
echo "***SUBTEST: check 2040-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2040-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2040-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
@@ -193,7 +191,7 @@ fi;
|
||||
|
||||
echo "***SUBTEST: check 2100-01-01"
|
||||
rm -f rsyslog.out.log # do cleanup of previous subtest
|
||||
-faketime -f '2100-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2100-01-01 12:00:00' $srcdir/diag.sh startup
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
. $srcdir/diag.sh shutdown-when-empty
|
||||
. $srcdir/diag.sh wait-shutdown
|
||||
diff --git a/tests/timegenerated-ymd.sh b/tests/timegenerated-ymd.sh
|
||||
index 66b364b..f5f9213 100755
|
||||
--- a/tests/timegenerated-ymd.sh
|
||||
+++ b/tests/timegenerated-ymd.sh
|
||||
@@ -19,7 +19,7 @@ template(name="outfmt" type="string"
|
||||
:msg, contains, "msgnum:" action(type="omfile" template="outfmt"
|
||||
file="rsyslog.out.log")
|
||||
'
|
||||
-faketime '2016-01-01 01:00:00' $srcdir/diag.sh startup
|
||||
+FAKETIME='2016-01-01 01:00:00' $srcdir/diag.sh startup
|
||||
# what we send actually is irrelevant, as we just use system properties.
|
||||
# but we need to send one message in order to gain output!
|
||||
. $srcdir/diag.sh tcpflood -m1
|
||||
--
|
||||
2.8.1
|
||||
|
@ -1,46 +0,0 @@
|
||||
From 35b838b13e838cfe81bf565163bc892dd4347f68 Mon Sep 17 00:00:00 2001
|
||||
From: Thomas D.
|
||||
Date: Tue, 19 Apr 2016 00:00:00 +0200
|
||||
Subject: [PATCH 1/2] testbench: Add missing exit calls to
|
||||
{faketime,privdrop}_common.sh
|
||||
|
||||
"diag.sh exit" just cleans up so we still have to end the tests when skipping
|
||||
with a real exit on our own.
|
||||
---
|
||||
tests/faketime_common.sh | 9 +++++----
|
||||
tests/privdrop_common.sh | 1 +
|
||||
2 files changed, 6 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/tests/faketime_common.sh b/tests/faketime_common.sh
|
||||
index 5e868bc..10e0128 100644
|
||||
--- a/tests/faketime_common.sh
|
||||
+++ b/tests/faketime_common.sh
|
||||
@@ -26,8 +26,9 @@ fi
|
||||
|
||||
|
||||
rsyslog_testbench_require_y2k38_support() {
|
||||
- if [ -n "${RSYSLOG_TESTBENCH_Y2K38_INCOMPATIBLE}" ]; then
|
||||
- echo "Skipping further tests because system doesn't support year 2038 ..."
|
||||
- . $srcdir/diag.sh exit
|
||||
- fi
|
||||
+ if [ -n "${RSYSLOG_TESTBENCH_Y2K38_INCOMPATIBLE}" ]; then
|
||||
+ echo "Skipping further tests because system doesn't support year 2038 ..."
|
||||
+ . $srcdir/diag.sh exit
|
||||
+ exit 0
|
||||
+ fi
|
||||
}
|
||||
diff --git a/tests/privdrop_common.sh b/tests/privdrop_common.sh
|
||||
index a0994ec..203a23b 100755
|
||||
--- a/tests/privdrop_common.sh
|
||||
+++ b/tests/privdrop_common.sh
|
||||
@@ -52,6 +52,7 @@ rsyslog_testbench_setup_testuser() {
|
||||
if [ -z "${testgroupname}" ]; then
|
||||
echo "Skipping ... please set RSYSLOG_TESTUSER or make sure the user running the testbench has a primary group!"
|
||||
. $srcdir/diag.sh exit
|
||||
+ exit 0
|
||||
else
|
||||
has_testuser="${EUID}"
|
||||
fi
|
||||
--
|
||||
2.8.1
|
||||
|
@ -0,0 +1,19 @@
|
||||
# /etc/conf.d/tpacpi-bat: config file for /etc/init.d/tpacpi-bat
|
||||
|
||||
# use '/etc/init.d/tpacpi-bat info' at any time to check the thresholds
|
||||
# currently used by the driver
|
||||
|
||||
# list of batteries the script should manage
|
||||
# for example: BATS="1 2"
|
||||
BATS="1"
|
||||
|
||||
# default thresholds for '/etc/init.d/tpacpi-bat start'
|
||||
TPACPI_BAT_THRESH_START="30"
|
||||
TPACPI_BAT_THRESH_STOP="85"
|
||||
# values to be used for '/etc/init.d/tpacpi-bat low'
|
||||
TPACPI_BAT_LOW_THRESH_START="${TPACPI_BAT_THRESH_START}"
|
||||
TPACPI_BAT_LOW_THRESH_STOP="${TPACPI_BAT_THRESH_STOP}"
|
||||
|
||||
# values to be used for '/etc/init.d/tpacpi-bat high'
|
||||
TPACPI_BAT_HIGH_THRESH_START="95"
|
||||
TPACPI_BAT_HIGH_THRESH_STOP="99" #see bug #485526
|
@ -0,0 +1,76 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright (C) 2012-2013 Christoph Junghans <ottxor@gentoo.org>
|
||||
#
|
||||
# Distributed under the terms of the GNU General Public License, v2 or later
|
||||
|
||||
extra_started_commands="low high info"
|
||||
|
||||
depend() {
|
||||
after modules
|
||||
}
|
||||
|
||||
start() {
|
||||
local state1
|
||||
|
||||
ebegin "Making sure that module 'acpi_call' is loaded"
|
||||
modprobe acpi_call
|
||||
state1=$?
|
||||
eend ${state1}
|
||||
|
||||
[ "${state1}" -ne "0" ] && return 1
|
||||
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
set_all ${TPACPI_BAT_THRESH_START} ${TPACPI_BAT_THRESH_STOP}
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
einfo "Nothing required to be done to stop ${SVCNAME}"
|
||||
}
|
||||
|
||||
require_started() {
|
||||
if ! service_started; then
|
||||
"${RC_SERVICE}" start || return $?
|
||||
fi
|
||||
}
|
||||
|
||||
high() {
|
||||
require_started
|
||||
|
||||
einfo "Switching ${SVCNAME} to high thesholds"
|
||||
set_all ${TPACPI_BAT_HIGH_THRESH_START} ${TPACPI_BAT_HIGH_THRESH_STOP}
|
||||
}
|
||||
|
||||
low() {
|
||||
require_started
|
||||
|
||||
einfo "Switching ${SVCNAME} to low thesholds"
|
||||
set_all ${TPACPI_BAT_LOW_THRESH_START} ${TPACPI_BAT_LOW_THRESH_STOP}
|
||||
}
|
||||
|
||||
set_all() {
|
||||
local tstart=$1
|
||||
local tstop=$2
|
||||
local bat
|
||||
|
||||
for bat in ${BATS}; do
|
||||
ebegin " setting thresholds for ${bat}: $tstart $tstop"
|
||||
/usr/bin/tpacpi-bat -s startThreshold ${bat} ${tstart}
|
||||
/usr/bin/tpacpi-bat -s stopThreshold ${bat} ${tstop}
|
||||
eend $?
|
||||
done
|
||||
}
|
||||
|
||||
info() {
|
||||
local tstart
|
||||
local tstop
|
||||
local bat
|
||||
|
||||
require_started
|
||||
|
||||
for bat in ${BATS}; do
|
||||
tstart=$(/usr/bin/tpacpi-bat -g startThreshold ${bat})
|
||||
tstop=$(/usr/bin/tpacpi-bat -g stopThreshold ${bat})
|
||||
einfo "Battery ${bat}: ${tstart} ${tstop}"
|
||||
done
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit systemd
|
||||
|
||||
if [ "${PV}" = "9999" ]; then
|
||||
inherit git-2
|
||||
EGIT_REPO_URI="git://github.com/teleshoes/tpacpi-bat.git https://github.com/teleshoes/tpacpi-bat.git"
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/teleshoes/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
DESCRIPTION="Control battery thresholds of recent ThinkPads, which are not supported by tp_smapi"
|
||||
HOMEPAGE="https://github.com/teleshoes/tpacpi-bat"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="sys-power/acpi_call
|
||||
dev-lang/perl"
|
||||
|
||||
src_install() {
|
||||
dodoc README battery_asl
|
||||
dobin tpacpi-bat
|
||||
newinitd "${FILESDIR}"/${PN}.initd.2 ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}.confd.1 ${PN}
|
||||
systemd_newunit tpacpi.service ${PN}.service
|
||||
}
|
@ -0,0 +1,245 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="5"
|
||||
|
||||
inherit eutils flag-o-matic toolchain-funcs multilib
|
||||
|
||||
# Official patchlevel
|
||||
# See ftp://ftp.cwru.edu/pub/bash/bash-4.3-patches/
|
||||
PLEVEL=${PV##*_p}
|
||||
MY_PV=${PV/_p*}
|
||||
MY_PV=${MY_PV/_/-}
|
||||
MY_P=${PN}-${MY_PV}
|
||||
[[ ${PV} != *_p* ]] && PLEVEL=0
|
||||
patches() {
|
||||
local opt=$1 plevel=${2:-${PLEVEL}} pn=${3:-${PN}} pv=${4:-${MY_PV}}
|
||||
[[ ${plevel} -eq 0 ]] && return 1
|
||||
eval set -- {1..${plevel}}
|
||||
set -- $(printf "${pn}${pv/\.}-%03d " "$@")
|
||||
if [[ ${opt} == -s ]] ; then
|
||||
echo "${@/#/${DISTDIR}/}"
|
||||
else
|
||||
local u
|
||||
for u in ftp://ftp.cwru.edu/pub/bash mirror://gnu/${pn} ; do
|
||||
printf "${u}/${pn}-${pv}-patches/%s " "$@"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
# The version of readline this bash normally ships with.
|
||||
READLINE_VER="7.0_rc2"
|
||||
|
||||
DESCRIPTION="The standard GNU Bourne again shell"
|
||||
HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
|
||||
case ${PV} in
|
||||
*_alpha*|*_beta*|*_rc*) SRC_URI+=" ftp://ftp.cwru.edu/pub/bash/${MY_P}.tar.gz" ;;
|
||||
*) SRC_URI="mirror://gnu/bash/${MY_P}.tar.gz $(patches)" ;;
|
||||
esac
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
#KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd"
|
||||
IUSE="afs bashlogger examples mem-scramble +net nls plugins +readline vanilla"
|
||||
|
||||
DEPEND=">=sys-libs/ncurses-5.2-r2:0=
|
||||
readline? ( >=sys-libs/readline-${READLINE_VER}:0= )
|
||||
nls? ( virtual/libintl )"
|
||||
RDEPEND="${DEPEND}
|
||||
!<sys-apps/portage-2.1.6.7_p1
|
||||
!<sys-apps/paludis-0.26.0_alpha5"
|
||||
# we only need yacc when the .y files get patched (bash42-005)
|
||||
DEPEND+=" virtual/yacc"
|
||||
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
pkg_setup() {
|
||||
if is-flag -malign-double ; then #7332
|
||||
eerror "Detected bad CFLAGS '-malign-double'. Do not use this"
|
||||
eerror "as it breaks LFS (struct stat64) on x86."
|
||||
die "remove -malign-double from your CFLAGS mr ricer"
|
||||
fi
|
||||
if use bashlogger ; then
|
||||
ewarn "The logging patch should ONLY be used in restricted (i.e. honeypot) envs."
|
||||
ewarn "This will log ALL output you enter into the shell, you have been warned."
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack ${MY_P}.tar.gz
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Include official patches
|
||||
[[ ${PLEVEL} -gt 0 ]] && epatch $(patches -s)
|
||||
|
||||
# Clean out local libs so we know we use system ones w/releases.
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
rm -rf lib/{readline,termcap}/*
|
||||
touch lib/{readline,termcap}/Makefile.in # for config.status
|
||||
sed -ri -e 's:\$[(](RL|HIST)_LIBSRC[)]/[[:alpha:]]*.h::g' Makefile.in || die
|
||||
fi
|
||||
|
||||
# Avoid regenerating docs after patches #407985
|
||||
sed -i -r '/^(HS|RL)USER/s:=.*:=:' doc/Makefile.in || die
|
||||
touch -r . doc/*
|
||||
|
||||
epatch_user
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myconf=()
|
||||
|
||||
# For descriptions of these, see config-top.h
|
||||
# bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426
|
||||
append-cppflags \
|
||||
-DDEFAULT_PATH_VALUE=\'\"${EPREFIX}/usr/local/sbin:${EPREFIX}/usr/local/bin:${EPREFIX}/usr/sbin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/bin\"\' \
|
||||
-DSTANDARD_UTILS_PATH=\'\"${EPREFIX}/bin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/usr/sbin\"\' \
|
||||
-DSYS_BASHRC=\'\"${EPREFIX}/etc/bash/bashrc\"\' \
|
||||
-DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \
|
||||
-DNON_INTERACTIVE_LOGIN_SHELLS \
|
||||
-DSSH_SOURCE_BASHRC \
|
||||
$(use bashlogger && echo -DSYSLOG_HISTORY)
|
||||
|
||||
# Don't even think about building this statically without
|
||||
# reading Bug 7714 first. If you still build it statically,
|
||||
# don't come crying to us with bugs ;).
|
||||
#use static && export LDFLAGS="${LDFLAGS} -static"
|
||||
use nls || myconf+=( --disable-nls )
|
||||
|
||||
# Historically, we always used the builtin readline, but since
|
||||
# our handling of SONAME upgrades has gotten much more stable
|
||||
# in the PM (and the readline ebuild itself preserves the old
|
||||
# libs during upgrades), linking against the system copy should
|
||||
# be safe.
|
||||
# Exact cached version here doesn't really matter as long as it
|
||||
# is at least what's in the DEPEND up above.
|
||||
export ac_cv_rl_version=${READLINE_VER%%_*}
|
||||
|
||||
# Force linking with system curses ... the bundled termcap lib
|
||||
# sucks bad compared to ncurses. For the most part, ncurses
|
||||
# is here because readline needs it. But bash itself calls
|
||||
# ncurses in one or two small places :(.
|
||||
|
||||
if [[ ${PV} != *_rc* ]] ; then
|
||||
# Use system readline only with released versions.
|
||||
myconf+=( --with-installed-readline=. )
|
||||
fi
|
||||
|
||||
if use plugins; then
|
||||
append-ldflags -Wl,-rpath,/usr/$(get_libdir)/bash
|
||||
else
|
||||
# Disable the plugins logic by hand since bash doesn't
|
||||
# provide a way of doing it.
|
||||
export ac_cv_func_dl{close,open,sym}=no \
|
||||
ac_cv_lib_dl_dlopen=no ac_cv_header_dlfcn_h=no
|
||||
sed -i \
|
||||
-e '/LOCAL_LDFLAGS=/s:-rdynamic::' \
|
||||
configure || die
|
||||
fi
|
||||
tc-export AR #444070
|
||||
econf \
|
||||
--docdir='$(datarootdir)'/doc/${PF} \
|
||||
--htmldir='$(docdir)/html' \
|
||||
--with-curses \
|
||||
$(use_with afs) \
|
||||
$(use_enable net net-redirections) \
|
||||
--disable-profiling \
|
||||
$(use_enable mem-scramble) \
|
||||
$(use_with mem-scramble bash-malloc) \
|
||||
$(use_enable readline) \
|
||||
$(use_enable readline history) \
|
||||
$(use_enable readline bang-history) \
|
||||
"${myconf[@]}"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake
|
||||
|
||||
if use plugins ; then
|
||||
emake -C examples/loadables all others
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local d f
|
||||
|
||||
default
|
||||
|
||||
dodir /bin
|
||||
mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die
|
||||
dosym bash /bin/rbash
|
||||
|
||||
insinto /etc/bash
|
||||
doins "${FILESDIR}"/bash_logout
|
||||
doins "${FILESDIR}"/bashrc
|
||||
keepdir /etc/bash/bashrc.d
|
||||
insinto /etc/skel
|
||||
for f in bash{_logout,_profile,rc} ; do
|
||||
newins "${FILESDIR}"/dot-${f} .${f}
|
||||
done
|
||||
|
||||
local sed_args=(
|
||||
-e "s:#${USERLAND}#@::"
|
||||
-e '/#@/d'
|
||||
)
|
||||
if ! use readline ; then
|
||||
sed_args+=( #432338
|
||||
-e '/^shopt -s histappend/s:^:#:'
|
||||
-e 's:use_color=true:use_color=false:'
|
||||
)
|
||||
fi
|
||||
sed -i \
|
||||
"${sed_args[@]}" \
|
||||
"${ED}"/etc/skel/.bashrc \
|
||||
"${ED}"/etc/bash/bashrc || die
|
||||
|
||||
if use plugins ; then
|
||||
exeinto /usr/$(get_libdir)/bash
|
||||
doexe $(echo examples/loadables/*.o | sed 's:\.o::g')
|
||||
insinto /usr/include/bash-plugins
|
||||
doins *.h builtins/*.h include/*.h lib/{glob/glob.h,tilde/tilde.h}
|
||||
fi
|
||||
|
||||
if use examples ; then
|
||||
for d in examples/{functions,misc,scripts,startup-files} ; do
|
||||
exeinto /usr/share/doc/${PF}/${d}
|
||||
insinto /usr/share/doc/${PF}/${d}
|
||||
for f in ${d}/* ; do
|
||||
if [[ ${f##*/} != PERMISSION ]] && [[ ${f##*/} != *README ]] ; then
|
||||
doexe ${f}
|
||||
else
|
||||
doins ${f}
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
doman doc/*.1
|
||||
newdoc CWRU/changelog ChangeLog
|
||||
dosym bash.info /usr/share/info/bashref.info
|
||||
}
|
||||
|
||||
pkg_preinst() {
|
||||
if [[ -e ${EROOT}/etc/bashrc ]] && [[ ! -d ${EROOT}/etc/bash ]] ; then
|
||||
mkdir -p "${EROOT}"/etc/bash
|
||||
mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/
|
||||
fi
|
||||
|
||||
if [[ -L ${EROOT}/bin/sh ]] ; then
|
||||
# rewrite the symlink to ensure that its mtime changes. having /bin/sh
|
||||
# missing even temporarily causes a fatal error with paludis.
|
||||
local target=$(readlink "${EROOT}"/bin/sh)
|
||||
local tmp=$(emktemp "${EROOT}"/bin)
|
||||
ln -sf "${target}" "${tmp}"
|
||||
mv -f "${tmp}" "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# If /bin/sh does not exist, provide it
|
||||
if [[ ! -e ${EROOT}/bin/sh ]] ; then
|
||||
ln -sf bash "${EROOT}"/bin/sh
|
||||
fi
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST mksh-R52.tgz 383814 SHA256 45c2f5cdd2c63a6a831ffae65cea0afd021eabb983537aa21ff893ee38b3768f SHA512 83b478baa401dc6116c363043d9d6629028bbcdf19448db939738c5b98f8e4f7da92932296c2ee813b317151d31a1b6cd55d27f062f79e587e22991b018a0285 WHIRLPOOL 524524b950d5f7f21a2660235f955c45e645bcebf1e6120e71c183a0d50da5974840d7f70a18ab6d0766ad5345f62cd657f2fbcc1cd2d33976943f3bb28c243a
|
||||
DIST mksh-R52b.tgz 385085 SHA256 93231332a1df0a9c8d4a0d54a519d8b485989a52f7400f0e6451366a0c74b81f SHA512 d204f0d0e221a8592dc0efdb31b909ce522792708937ab1f3ec0a4b1098f2d5171c06cda029a9f7e63eb087a1acf53210f4701cee5564868c15c6294e6fe322f WHIRLPOOL 687eba233332ad7d4de53a57e53a5f851558190ea69daca21ea820a85fbeca00da8fa92e9d8a4dd833498d9adb80482c3394913a61251e9fe2a3cc9e962e74e4
|
||||
DIST mksh-R52c.tgz 386254 SHA256 c6341acea725103f782c14e994d6e12dabaee69e60fe1bc78603a41258d43ba6 SHA512 f2434f2e165da290cc3f5d78846fb4774115a6e35ef3299d0343b1797b3773921d614396b0da78f8e9a451d6029df9abff503575c5cdcb232e18df7731d18da0 WHIRLPOOL 86ed90260285180fc097296ea5ba90015222fc2733570dfd9a056a867dba9661e2083e863632bca3f771699dec60ca65b1e1dc8821b492269bcc095b8bad2f9e
|
||||
DIST mksh-R53a.tgz 393344 SHA256 3bb2453c8cb65abbda24f9bdd8b8371e30a6e1c2f7a0d5474a3efae438639635 SHA512 634e1cbdba7eaa3b6a7d75d9ade23e6465c8874ef616adb708867f6c46e5722bd2e4818f92350aeb7908872678fb446635224fff990d4dcdd4cf4f666cf2e91c WHIRLPOOL f35a34fb99df4a1b0e8284b17735bb0788355753114969bee328895afafa087e90d4e3c78eced242fcd44f827212f866c74602acf71f74556177a1f2fb87849b
|
||||
|
@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="MirBSD KSH Shell"
|
||||
HOMEPAGE="http://mirbsd.de/mksh"
|
||||
SRC_URI="http://www.mirbsd.org/MirOS/dist/mir/mksh/${PN}-R${PV}.tgz"
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE="static"
|
||||
DEPEND="static? ( dev-libs/klibc )"
|
||||
RDEPEND=""
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
# we want to build static with klibc
|
||||
if use static ; then
|
||||
unset CC
|
||||
export CC="/usr/bin/klcc"
|
||||
export LDSTATIC="-static"
|
||||
fi
|
||||
export CPPFLAGS="${CPPFLAGS} -DMKSH_DEFAULT_PROFILEDIR=\\\"${EPREFIX}/etc\\\""
|
||||
# we can't assume lto existing/enabled, so we add a fallback
|
||||
sh Build.sh -r -c lto || sh Build.sh -r || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /bin
|
||||
doexe mksh
|
||||
doman mksh.1
|
||||
dodoc dot.mkshrc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./test.sh || die
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ebegin "Updating /etc/shells"
|
||||
( grep -v "^/bin/mksh$" "${ROOT}"etc/shells; echo "/bin/mksh" ) > "${T}"/shells
|
||||
mv -f "${T}"/shells "${ROOT}"etc/shells
|
||||
eend $?
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
DESCRIPTION="vim plugin: open a file without supplying a path"
|
||||
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=858"
|
||||
|
||||
LICENSE="vim"
|
||||
KEYWORDS="alpha amd64 ia64 ~mips ppc sparc x86"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND} sys-apps/mlocate"
|
||||
|
||||
VIM_PLUGIN_HELPTEXT=\
|
||||
"This plugin provides commands that hook vim into mlocate:
|
||||
\ :LocateEdit filename
|
||||
\ :LocateSplit filename
|
||||
\ :LocateSource filename
|
||||
\ :LocateRead filename
|
||||
To configure:
|
||||
\ :let g:locateopen_ignorecase = 1 \" enable ignore case mode
|
||||
\ :let g:locateopen_smartcase = 0 \" disable smart case mode
|
||||
\ :let g:locateopen_alwaysprompt = 1 \" show menu for one match"
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2013 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
inherit vim-plugin
|
||||
|
||||
DESCRIPTION="vim plugin: XQuery syntax highlighting"
|
||||
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=803"
|
||||
|
||||
LICENSE="vim.org"
|
||||
KEYWORDS="alpha amd64 ia64 ~mips ppc ppc64 sparc x86"
|
||||
IUSE=""
|
||||
|
||||
VIM_PLUGIN_HELPTEXT=\
|
||||
"This plugin provides syntax highlighting for XQuery files."
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
# use hi def link. Bug #101788, bug #101804.
|
||||
sed -i -e 's,^hi\(ghlight\)\? link,hi def link,' syntax/xquery.vim \
|
||||
|| die "sed failed"
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
inherit eutils user
|
||||
|
||||
DESCRIPTION="Flash-optimized, in-memory, nosql database"
|
||||
HOMEPAGE="http://www.aerospike.com"
|
||||
SRC_URI="http://www.aerospike.com/artifacts/${PN}/${PV}/${P}-debian7.tgz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="app-crypt/gcr"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${P}-debian7"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup aerospike
|
||||
enewuser aerospike -1 /bin/bash /opt/aerospike aerospike
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
local server_deb="${P}.debian7.x86_64.deb"
|
||||
local tools_deb="aerospike-tools-3.9.1.debian7.x86_64.deb"
|
||||
|
||||
ar x "${server_deb}" || die
|
||||
tar xzf data.tar.gz && rm data.tar.gz || die
|
||||
|
||||
ar x "${tools_deb}" || die
|
||||
tar xzf data.tar.gz && rm data.tar.gz || die
|
||||
|
||||
rm *.deb asinstall control.tar.gz debian-binary LICENSE SHA256SUMS
|
||||
rm usr/bin/{asfixownership,asmigrate2to3}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /opt/
|
||||
doins -r opt/aerospike
|
||||
|
||||
fperms +x -R /opt/aerospike/bin/
|
||||
fperms +x -R /opt/aerospike/lib/python/
|
||||
|
||||
for dir in '/etc' '/var/log'; do
|
||||
keepdir "${dir}/aerospike"
|
||||
done
|
||||
|
||||
insinto /etc/aerospike
|
||||
for conf in 'aerospike.conf' 'aerospike_mesh.conf' 'aerospike_ssd.conf'; do
|
||||
doins "${FILESDIR}/${conf}"
|
||||
done
|
||||
|
||||
insinto /usr/bin
|
||||
doins usr/bin/*
|
||||
fperms +x -R /usr/bin/asd
|
||||
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}"/aerospike.logrotate aerospike
|
||||
|
||||
newinitd "${FILESDIR}"/aerospike.init aerospike
|
||||
|
||||
fowners -R aerospike:aerospike /opt/aerospike/
|
||||
fowners aerospike:aerospike /usr/bin/asd
|
||||
fowners -R aerospike:aerospike /var/log/aerospike
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit flag-o-matic
|
||||
|
||||
MY_PN="MoarVM"
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/${MY_PN}/${MY_PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
S="${WORKDIR}/${P}"
|
||||
else
|
||||
SRC_URI="http://moarvm.org/releases/${MY_PN}-${PV}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A 6model-based VM for NQP and Rakudo Perl 6"
|
||||
HOMEPAGE="http://moarvm.org"
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="asan clang debug doc +jit static-libs optimize ubsan"
|
||||
|
||||
RDEPEND="dev-libs/libatomic_ops
|
||||
dev-libs/libtommath
|
||||
dev-libs/libuv
|
||||
jit? ( dev-lang/lua:0[deprecated]
|
||||
dev-lua/LuaBitOp )
|
||||
virtual/libffi"
|
||||
DEPEND="${RDEPEND}
|
||||
clang? ( >=sys-devel/clang-3.1 )
|
||||
dev-lang/perl"
|
||||
|
||||
DOCS=( CREDITS README.markdown )
|
||||
|
||||
# Tests are conducted via nqp
|
||||
RESTRICT=test
|
||||
|
||||
src_configure() {
|
||||
use doc && DOCS+=( docs/* )
|
||||
local myconfigargs=(
|
||||
"--prefix=/usr"
|
||||
"--has-libtommath"
|
||||
"--has-libuv"
|
||||
"--has-libatomic_ops"
|
||||
"--has-libffi"
|
||||
"--libdir=$(get_libdir)"
|
||||
"--compiler=$(usex clang clang gcc)"
|
||||
"$(usex asan --asan)"
|
||||
"$(usex debug --debug --no-debug)"
|
||||
"$(usex jit --lua=/usr/bin/lua --no-jit)"
|
||||
"$(usex optimize --optimize= --no-optimize)"
|
||||
"$(usex static-libs --static)"
|
||||
"$(usex ubsan --ubsan)"
|
||||
)
|
||||
use optimize && filter-flags '-O*'
|
||||
|
||||
perl Configure.pl "${myconfigargs[@]}" || die
|
||||
}
|
@ -0,0 +1,160 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2 multibuild
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/perl6/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/perl6/${PN}/tarball/${PV} -> ${P}.tar.gz"
|
||||
inherit vcs-snapshot
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Not Quite Perl, a Perl 6 bootstrapping compiler"
|
||||
HOMEPAGE="http://rakudo.org/"
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
IUSE="doc clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="java? (
|
||||
dev-java/asm:4
|
||||
dev-java/jline:0
|
||||
dev-java/jna:4
|
||||
)
|
||||
moar? ( ~dev-lang/moarvm-2016.08[clang=] )"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
dev-lang/perl"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo || has_version dev-lang/nqp; then
|
||||
ewarn "NQP is known to fail compilation/installation with Rakudo and/or NQP"
|
||||
ewarn "already being installed. So if it fails, try uninstalling both"
|
||||
ewarn "dev-lang/nqp and dev-lang/rakudo, then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
java_prepare() {
|
||||
# Don't clean stage0 jars.
|
||||
einfo "Cleaning upstream jars"
|
||||
java-pkg_clean 3rdparty/
|
||||
|
||||
# Don't use jars we just deleted.
|
||||
sed -i -r 's/(:3rdparty[^:]*)+/:${THIRDPARTY_JARS}/g' \
|
||||
src/vm/jvm/runners/nqp-j || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
MULTIBUILD_VARIANTS=()
|
||||
use moar && MULTIBUILD_VARIANTS+=( moar )
|
||||
use java && MULTIBUILD_VARIANTS+=( jvm )
|
||||
|
||||
multibuild_copy_sources
|
||||
|
||||
# This will pull in conditional java_prepare
|
||||
default
|
||||
}
|
||||
|
||||
nqp_configure() {
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
local myconfargs=(
|
||||
"--backend=${MULTIBUILD_VARIANT}"
|
||||
"--prefix=/usr" )
|
||||
|
||||
perl Configure.pl "${myconfargs[@]}" || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
nqp_compile() {
|
||||
if [[ "${MULTIBUILD_VARIANT}" = jvm ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
THIRDPARTY_JARS=$(java-pkg_getjars --with-dependencies asm-4,jline,jna-4) \
|
||||
JAVAC="$(java-pkg_get-javac) $(java-pkg_javac-args)"
|
||||
elif [[ "${MULTIBUILD_VARIANT}" = moar ]]; then
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}"
|
||||
fi
|
||||
}
|
||||
|
||||
nqp_test() {
|
||||
emake -j1 \
|
||||
-C "${BUILD_DIR}" \
|
||||
test
|
||||
}
|
||||
|
||||
nqp_install() {
|
||||
# This is the actual reason we need multibuild.eclass.
|
||||
# We need to distinguish the install procedure for MoarVM and JVM backends.
|
||||
case "${MULTIBUILD_VARIANT}" in
|
||||
moar)
|
||||
emake \
|
||||
DESTDIR="${ED}" \
|
||||
-C "${BUILD_DIR}" \
|
||||
install
|
||||
;;
|
||||
jvm)
|
||||
pushd "${BUILD_DIR}" > /dev/null || die
|
||||
# Set JAVA_PKG_JARDEST early.
|
||||
java-pkg_init_paths_
|
||||
|
||||
# Upstream sets the classpath to this location. Perhaps it's
|
||||
# used to locate the additional libraries?
|
||||
java-pkg_addcp "${JAVA_PKG_JARDEST}"
|
||||
|
||||
insinto "${JAVA_PKG_JARDEST}"
|
||||
local jar
|
||||
|
||||
for jar in *.jar; do
|
||||
if has ${jar} ${PN}.jar ${PN}-runtime.jar; then
|
||||
# jars for NQP itself.
|
||||
java-pkg_dojar ${jar}
|
||||
else
|
||||
# jars used by NQP.
|
||||
doins ${jar}
|
||||
fi
|
||||
done
|
||||
|
||||
# Upstream uses -Xbootclasspath/a, which is faster due to lack
|
||||
# of verification, but gjl isn't flexible enough yet. :(
|
||||
java-pkg_dolauncher ${PN}-j --main ${PN}
|
||||
dosym ${PN}-j /usr/bin/${PN}
|
||||
dobin tools/jvm/eval-client.pl
|
||||
popd > /dev/null || die
|
||||
;;
|
||||
*)
|
||||
die "Unknown MULTIBUILD_VARIANT ${MULTIBUILD_VARIANT}."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
multibuild_foreach_variant nqp_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
multibuild_foreach_variant nqp_compile
|
||||
}
|
||||
|
||||
src_test() {
|
||||
multibuild_foreach_variant nqp_test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
multibuild_foreach_variant nqp_install
|
||||
|
||||
dodoc CREDITS README.pod
|
||||
use doc && dodoc -r docs/*
|
||||
}
|
@ -0,0 +1,73 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit java-pkg-opt-2
|
||||
|
||||
DESCRIPTION="A compiler for the Perl 6 programming language"
|
||||
HOMEPAGE="http://rakudo.org"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="https://github.com/rakudo/${PN}.git"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="${HOMEPAGE}/downloads/${PN}/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="Artistic-2"
|
||||
SLOT="0"
|
||||
# TODO: add USE="javascript" once that's usable in nqp
|
||||
IUSE="clang java +moar test"
|
||||
REQUIRED_USE="|| ( java moar )"
|
||||
|
||||
CDEPEND="~dev-lang/nqp-${PV}:${SLOT}=[java?,moar?,clang=]"
|
||||
RDEPEND="${CDEPEND}
|
||||
java? ( >=virtual/jre-1.7 )"
|
||||
DEPEND="${CDEPEND}
|
||||
clang? ( sys-devel/clang )
|
||||
java? ( >=virtual/jdk-1.7 )
|
||||
>=dev-lang/perl-5.10"
|
||||
|
||||
pkg_pretend() {
|
||||
if has_version dev-lang/rakudo; then
|
||||
ewarn "Rakudo is known to fail compilation/installation with Rakudo"
|
||||
ewarn "already being installed. So if it fails, try unmerging dev-lang/rakudo,"
|
||||
ewarn "then do a new installation."
|
||||
ewarn "(see Bug #584394)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local backends
|
||||
use moar && backends+="moar,"
|
||||
use java && backends+="jvm"
|
||||
|
||||
local myargs=(
|
||||
"--prefix=/usr"
|
||||
"--sysroot=/"
|
||||
"--sdkroot=/"
|
||||
"--backends=${backends}"
|
||||
)
|
||||
|
||||
perl Configure.pl "${myargs[@]}" || die
|
||||
|
||||
if use java; then
|
||||
NQP=$(java-pkg_getjars --with-dependencies nqp)
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" NQP_JARS="${NQP}" BLD_NQP_JARS="${NQP}" install
|
||||
}
|
||||
|
||||
src_test() {
|
||||
RAKUDO_PRECOMP_PREFIX=$(mktemp -d) default
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST hiredis-0.11.0.tar.gz 42137 SHA256 ff7b2849e55bf3589eecced7125934feb9645c36a4d490d001dc08c93553eafd SHA512 a506c3e09267bd431dea87fdb7f9a44fb1d4795cbecb31323fe2fb9d66c10351fbf6d931fdaf2731fc2d0a985234e5d6ba0c9e694374d2f414294d27b6f060b8 WHIRLPOOL 0d4d4385452b4fe3aabc7cbdbef95914fea685a65f44a6b2addaec8f0f7779ed7f72c50cfbb976e1838553746ae90f2ce8685c208727e450738ff2bb29cca144
|
||||
DIST hiredis-0.13.1.tar.gz 54912 SHA256 8865105e15331156a74b64aafbfd3f8c784a8375e003a55512dcca3d82168487 SHA512 70b533a6cfbc3ce2b64018978e4f4460ca9a204ede92b571638ed4f04960199be0704cff16fcaf368e5c997a01e3b2da98e3c556c2f05c8316381f989684fcf1 WHIRLPOOL 6b2884217544a78153b33d4bc758f8d5bfe2cf29a16c768df7ffefbe7def43c7ae1477f1826790fdc64999b272bd33f72e10a968e606324366cb2b5539a0df71
|
||||
DIST hiredis-0.13.3.tar.gz 58291 SHA256 717e6fc8dc2819bef522deaca516de9e51b9dfa68fe393b7db5c3b6079196f78 SHA512 0d8b71d5ee4105e8aaeeee308795afc2c1f60a04b0bfe8ae873d800a0c157882ec307efa04a8d0e63b538fd3fc3f88eedf4d46cb87c8937e2403927aeb7e434c WHIRLPOOL 511f86f680a005bd1fa75494707bf5a16670c3f2b7ac0fd61684546368868a2545fa7aa74b63e3865be8ec7cb301417c5a945fe090de398066f098bef01d664b
|
||||
|
@ -0,0 +1,36 @@
|
||||
diff --git test.c test.c
|
||||
index 8fde554..89ed6a0 100644
|
||||
--- a/test.c
|
||||
+++ b/test.c
|
||||
@@ -343,6 +343,7 @@ static void test_free_null(void) {
|
||||
static void test_blocking_connection_errors(void) {
|
||||
redisContext *c;
|
||||
|
||||
+#if 0
|
||||
test("Returns error when host cannot be resolved: ");
|
||||
c = redisConnect((char*)"idontexist.test", 6379);
|
||||
test_cond(c->err == REDIS_ERR_OTHER &&
|
||||
@@ -353,6 +354,7 @@ static void test_blocking_connection_errors(void) {
|
||||
strcmp(c->errstr,"Temporary failure in name resolution") == 0 ||
|
||||
strcmp(c->errstr,"no address associated with name") == 0));
|
||||
redisFree(c);
|
||||
+#endif
|
||||
|
||||
test("Returns error when the port is not open: ");
|
||||
c = redisConnect((char*)"localhost", 1);
|
||||
@@ -773,6 +775,7 @@ int main(int argc, char **argv) {
|
||||
test_blocking_connection_errors();
|
||||
test_free_null();
|
||||
|
||||
+#if 0
|
||||
printf("\nTesting against TCP connection (%s:%d):\n", cfg.tcp.host, cfg.tcp.port);
|
||||
cfg.type = CONN_TCP;
|
||||
test_blocking_connection(cfg);
|
||||
@@ -781,6 +784,7 @@ int main(int argc, char **argv) {
|
||||
test_invalid_timeout_errors(cfg);
|
||||
test_append_formatted_commands(cfg);
|
||||
if (throughput) test_throughput(cfg);
|
||||
+#endif
|
||||
|
||||
printf("\nTesting against Unix socket connection (%s):\n", cfg.unix.path);
|
||||
cfg.type = CONN_UNIX;
|
@ -0,0 +1,79 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Minimalistic C client library for the Redis database"
|
||||
HOMEPAGE="https://github.com/redis/hiredis"
|
||||
SRC_URI="https://github.com/redis/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/0.13"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc64 ~x86 ~x86-fbsd ~x64-solaris"
|
||||
IUSE="examples static-libs test"
|
||||
|
||||
DEPEND="test? ( dev-db/redis )"
|
||||
|
||||
src_prepare() {
|
||||
local PATCHES=( "${FILESDIR}/${PN}-0.13.3-disable-network-tests.patch" )
|
||||
default
|
||||
|
||||
# use GNU ld syntax on Solaris
|
||||
sed -i -e '/DYLIB_MAKE_CMD=.* -G/d' Makefile || die
|
||||
}
|
||||
|
||||
_build() {
|
||||
emake \
|
||||
AR="$(tc-getAR)" \
|
||||
CC="$(tc-getCC)" \
|
||||
PREFIX="${EPREFIX%/}/usr" \
|
||||
LIBRARY_PATH="$(get_libdir)" \
|
||||
ARCH= \
|
||||
DEBUG= \
|
||||
OPTIMIZATION="${CPPFLAGS}" \
|
||||
"$@"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The static lib re-uses the same objects as the shared lib, so
|
||||
# overhead is low w/creating it all the time. It's also needed
|
||||
# by the tests.
|
||||
_build dynamic static hiredis.pc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
local REDIS_PID="${T}"/hiredis.pid
|
||||
local REDIS_SOCK="${T}"/hiredis.sock
|
||||
local REDIS_PORT=56379
|
||||
local REDIS_TEST_CONFIG="daemonize yes
|
||||
pidfile ${REDIS_PID}
|
||||
port ${REDIS_PORT}
|
||||
bind 127.0.0.1
|
||||
unixsocket //${REDIS_SOCK}"
|
||||
|
||||
_build hiredis-test
|
||||
|
||||
/usr/sbin/redis-server - <<< "${REDIS_TEST_CONFIG}" || die
|
||||
./hiredis-test -h 127.0.0.1 -p ${REDIS_PID} -s ${REDIS_SOCK}
|
||||
local ret=$?
|
||||
|
||||
kill "$(<"${REDIS_PID}")" || die
|
||||
[ ${ret} != "0" ] && die "tests failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
_build PREFIX="${ED%/}/usr" install
|
||||
if use static-libs; then
|
||||
rm "${ED%/}/usr/$(get_libdir)/libhiredis.a" || die
|
||||
fi
|
||||
|
||||
insinto /usr/$(get_libdir)/pkgconfig
|
||||
doins ${PN}.pc
|
||||
|
||||
local DOCS=( CHANGELOG.md README.md )
|
||||
use examples && DOCS+=( examples )
|
||||
einstalldocs
|
||||
}
|
@ -1,2 +1 @@
|
||||
DIST libee-0.3.2.tar.gz 353750 SHA256 4e19bf297fb76f18fef773c651767152ebf65ecd4a1f4b06fe1c5f117fa4f81a SHA512 d692bd968ced62aa4a4a1ee02a2e0ff0c762966d4fccb321969f125b1d64363b12a8e346122711ffb23f8da4ce3c86a52bc24e15d2ee89f4b9466c4d6e36362b WHIRLPOOL 20cd79050cc5fde6346922146f62a1d1c6e0690dc3eda7cd153e7623416429adf984164ee935dbc1b72aeb162e5e123b3bb3a595f08870c8af9a746e9e31c6ca
|
||||
DIST libee-0.4.1.tar.gz 357116 SHA256 c0dac01938593deee06c3d161e4eda4ecc0fd7317e1321bd96e301aceb7fb027 SHA512 810cbca8077c975b045b6761de22642708b3555aa8959c17e6be3f3865612642176762ca4def09274a6291256608f11b5833bfaaa25ba0d66f71d0dee6f594d4 WHIRLPOOL 565824564930da7aa927ebb107a2821ac3aede217a3c8219dbd6222c32ab2705243ca771733627715efaf01f26e4f7959b662cfac39e939dbcf82aee381374ac
|
||||
|
@ -1,16 +0,0 @@
|
||||
diff -r fb643518cffc configure.ac
|
||||
--- a/configure.ac Sun Apr 22 18:45:47 2012 +0300
|
||||
+++ b/configure.ac Sun Apr 22 18:48:05 2012 +0300
|
||||
@@ -18,11 +18,8 @@
|
||||
AC_PROG_LIBTOOL
|
||||
|
||||
# Checks for libraries.
|
||||
-save_LIBS=$LIBS
|
||||
-LIBS=
|
||||
-#AC_SEARCH_LIBS(clock_gettime, rt)
|
||||
+AC_SEARCH_LIBS(pow, m)
|
||||
#rt_libs=$LIBS
|
||||
-LIBS=$save_LIBS
|
||||
|
||||
# We CURRENTLY do NOT need libxml, but this will change at a later stage.
|
||||
# If we need libxml, we need it for features which some may not find essential.
|
@ -1,10 +0,0 @@
|
||||
diff -r fb643518cffc libee.pc.in
|
||||
--- a/libee.pc.in Sun Apr 22 18:45:47 2012 +0300
|
||||
+++ b/libee.pc.in Sun Apr 22 18:53:55 2012 +0300
|
||||
@@ -6,5 +6,5 @@
|
||||
Name: libee
|
||||
Description: event expression library, based on CEE ideas
|
||||
Version: @VERSION@
|
||||
-Libs: -L${libdir} @rt_libs@ -lee
|
||||
+Libs: -L${libdir} -lee @rt_libs@
|
||||
Cflags: -I${includedir}
|
@ -1,35 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
inherit autotools-utils
|
||||
|
||||
DESCRIPTION="An Event Expression Library inspired by CEE"
|
||||
HOMEPAGE="http://www.libee.org"
|
||||
SRC_URI="http://www.libee.org/files/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86 ~amd64-linux"
|
||||
IUSE="debug static-libs"
|
||||
|
||||
DEPEND="dev-libs/libxml2
|
||||
dev-libs/libestr"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=(INSTALL ChangeLog)
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable debug)
|
||||
--enable-testbench
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-utils_src_compile -j1
|
||||
}
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=4
|
||||
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
|
||||
inherit autotools-utils
|
||||
|
||||
DESCRIPTION="An Event Expression Library inspired by CEE"
|
||||
HOMEPAGE="http://www.libee.org"
|
||||
SRC_URI="http://www.libee.org/files/download/${P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux"
|
||||
IUSE="debug static-libs"
|
||||
|
||||
DEPEND="dev-libs/libxml2
|
||||
dev-libs/libestr"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
DOCS=(INSTALL ChangeLog)
|
||||
PATCHES=("${FILESDIR}"/0.3.2-add_math_lib_configure.patch
|
||||
"${FILESDIR}"/0.3.2-add_math_lib_pc_in.patch)
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable debug)
|
||||
--enable-testbench
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
autotools-utils_src_compile -j1
|
||||
}
|
@ -1,14 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>whissi@gentoo.org</email>
|
||||
<name>Thomas Deutschmann</name>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>andreis.vinogradovs@gmail.com</email>
|
||||
</maintainer>
|
||||
<maintainer type="person">
|
||||
<email>maksbotan@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
@ -1 +1,2 @@
|
||||
DIST libfastjson-0.99.2.tar.gz 366602 SHA256 6ff053d455243a81014f37b4d81c746d9b8d40256a56326c3a7921c8bf458dfd SHA512 4b57697cbb901bc12a26d98c3d6df998aba373d4f38339189c9bd3e5a32777fa4796039fe82581337e576fa93c6deb87759eba04326134f587064c82e1b3daaf WHIRLPOOL 56010125b4ba905aba3fa7ad69faf38237426c1ef5cbaad90458fe31e96b86719d2766d2099928dc22aa7d98a64d079a3bd9de31702b28547d1f1d416170d487
|
||||
DIST libfastjson-0.99.4.tar.gz 424989 SHA256 6339a67e680a8f6a6a0c179971118489cc14ec73bb1542b591c38f58d760034c SHA512 b38f01469021093f21b43550e7574d2bad7b57a28b62f27cb1d2a57e33d2cb29208d20d978bdebe5a82a9736dfcfd7ec0a0fa945762702f4389d69850c2cfeb3 WHIRLPOOL 15898787b20b13648cfc19496da69e86223400fd9e62cb9ce4362364cf5f6d7df32f54a79e4d225bedcdf91cdb0c9231a3e2a6e63d7366b3290624aaf7854dc7
|
||||
|
@ -0,0 +1,41 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Fork of the json-c library, which is optimized for liblognorm processing"
|
||||
HOMEPAGE="http://www.rsyslog.com/tag/libfastjson/"
|
||||
SRC_URI="http://download.rsyslog.com/${PN}/${P}.tar.gz"
|
||||
LICENSE="MIT"
|
||||
SLOT="0/4.0.0"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~x86"
|
||||
IUSE="static-libs"
|
||||
|
||||
DEPEND=">=sys-devel/autoconf-archive-2015.02.24"
|
||||
RDEPEND=""
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
--enable-compile-warnings=yes
|
||||
$(use_enable static-libs static)
|
||||
--disable-rdrand
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DOCS=( AUTHORS ChangeLog )
|
||||
default
|
||||
|
||||
find "${ED}"usr/lib* -name '*.la' -delete || die
|
||||
}
|
@ -1,3 +1 @@
|
||||
DIST liblogging-1.0.2.tar.gz 285555 SHA256 bcadd9fc0253ee096df965d8d46bc3f27a95f4885d66e55e495e5dfddb16b0dd SHA512 bd2a78110f080e0531388bac372e5dac2c7f10973e59bc3c702d3c9ae3a5d21ae021df00b53092fabcbbde20f1eba108b22ea81156c2fcb6bc2053531385b9f9 WHIRLPOOL da2a6963e93527ea0d30fbffb5d9971cd62b36871d488a88b500848a7920b0416415480e2002529f7fa51d730f0f5a30946a34af4628eefb69dcc82349620731
|
||||
DIST liblogging-1.0.4.tar.gz 565078 SHA256 aceb5d2aa8bdc771ff66f407f9adf4176b654db63e34a8605795b68be537b81c SHA512 7d57a4d5d41ab2033dd57370c4511749f7965949a30eacaf36e7608acc64a32c42903dc1b5bb50c649dcb9a5ed91a2f0339d21aa0fc20a6a6144616dae556ccf WHIRLPOOL 76f9ba9ed7b8b7a050a29ca1be8e723c0b99f774416dd514b74b792bafafadd677533f38d77577b75ec6267b1025810a5262b763223c55a983efbf39a3f19085
|
||||
DIST liblogging-1.0.5.tar.gz 571051 SHA256 310dc1691279b7a669d383581fe4b0babdc7bf75c9b54a24e51e60428624890b SHA512 fd0c89b670bdf4d257d6a31b18b44940ba2edae84633ead6577f164e1ded93709445c35027a28f6e7fda4c984964c3446978eaf0abf843e31ecc11b979e2adde WHIRLPOOL 17c22802e9037aee69c6985a627b6eb24281311292543bc4d9e0383290f7181bcf959de07405a5783f09e8d3dcfb2c88ae5701cec97a3812815f40c6a36ea715
|
||||
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
AUTOTOOLS_AUTORECONF=yes
|
||||
|
||||
inherit autotools-utils eutils
|
||||
|
||||
DESCRIPTION="Liblogging is an easy to use, portable, open source library for system logging"
|
||||
HOMEPAGE="http://www.liblogging.org"
|
||||
SRC_URI="https://github.com/rsyslog/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0/0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~x86"
|
||||
IUSE="rfc3195 static-libs +stdlog systemd"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/docutils
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( ChangeLog )
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e 's|rst2man|rst2man.py|g' configure.ac || die
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable rfc3195)
|
||||
$(use_enable stdlog)
|
||||
$(use_enable systemd journal)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit autotools-utils eutils
|
||||
|
||||
DESCRIPTION="Liblogging is an easy to use, portable, open source library for system logging"
|
||||
HOMEPAGE="http://www.liblogging.org"
|
||||
SRC_URI="http://download.rsyslog.com/liblogging/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0/0"
|
||||
KEYWORDS="amd64 ~arm hppa x86"
|
||||
IUSE="rfc3195 static-libs +stdlog systemd"
|
||||
|
||||
RDEPEND="systemd? ( sys-apps/systemd )"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
virtual/pkgconfig
|
||||
"
|
||||
|
||||
DOCS=( ChangeLog )
|
||||
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable rfc3195)
|
||||
$(use_enable stdlog)
|
||||
$(use_enable systemd journal)
|
||||
)
|
||||
autotools-utils_src_configure
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST liblognorm-1.1.0.tar.gz 499355 SHA256 2ddff2ee893c9268e19868f19dc4d8037e3d266c0d001436c33c9429fcbb3030 SHA512 f694d47c8e60871f0f3ce1fe8092b2596850beea618760c289d9cec6068fb8e8e260f4abb3faf20b931864d91ed18f640c65235fd693f6c67ce232fa11006107 WHIRLPOOL b03347d89e86d858d98a2237b6319f1646c995b5a725b486a9288de9a1cfc243b826c822a22f9e5a2a6f3c13c68a2e408ee8d5a68f2c361aeb40bc1b7d8af644
|
||||
DIST liblognorm-1.1.2.tar.gz 547224 SHA256 935a112fb5310877aaa5046ac8bd2ec7d0e9fed03e2fffccb84b6f93b92a536c SHA512 d0dc206ac2f34174ec1a7e05ae4f84520ae67f49b5540bf9b957378418d6e32384fddd40aaa26dfbdec868a6e7d7a0b677af5201dcbf4f0d4b177934a260ff00 WHIRLPOOL 616fb1b951139576579389141253651b79dd215e742b14b0add81341c2cbeed5411544cf3c92221b4d3f4b459e51d55e59dd789b2cc3ad6fe19afb61ec02d0b6
|
||||
DIST liblognorm-1.1.3.tar.gz 553372 SHA256 8e370460a152057abc577d59acbe60b7846312897e56f8f9d3e74edf9c621951 SHA512 09c6ab434fcdd788df84341aaf426c51385a8f3cc9960f07b77e369c22b3a1b8d890ba8d4d0507928b235d2667ed7f7a2c935eed8214d698117c8cfecba75d5f WHIRLPOOL 00d86afa82a12145de8165141f44af9913826ddffe0515d4655103f89bb69285cd8ce88fdec31af23214e599b7ac7f572c29d0a829ab0e07f63f45860c936aa7
|
||||
DIST liblognorm-2.0.1.tar.gz 657390 SHA256 6a7fda0da2791a87c808fbfde1af20e6463e3ff73496aae7756e3440f3bc5b75 SHA512 557ba4180d764c04edabe6292a44f5340c5b1f7ac2390a4068711be4ad6da7429e651bc2230d6ff9cc6c58cd6a6c59149f20083de8cf4d8239d95f86db39565f WHIRLPOOL ae89d7f34b673f14103574966e72b508d69a00e7f8d13eb5e9665c83303606da729001d7bb0712f96de8c4df63b3c75df90f52ec937b793a503d0062912acd6a
|
||||
|
@ -0,0 +1,76 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="Fast samples-based log normalization library"
|
||||
HOMEPAGE="http://www.liblognorm.com"
|
||||
|
||||
if [[ ${PV} == "9999" ]]; then
|
||||
EGIT_REPO_URI="
|
||||
git://github.com/rsyslog/${PN}.git
|
||||
https://github.com/rsyslog/${PN}.git
|
||||
"
|
||||
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="http://www.liblognorm.com/files/download/${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~x86 ~amd64-linux"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2.1 Apache-2.0"
|
||||
SLOT="0/5.0.0"
|
||||
IUSE="debug doc static-libs test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libestr-0.1.3
|
||||
>=dev-libs/libfastjson-0.99.2:=
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
>=sys-devel/autoconf-archive-2015.02.04
|
||||
virtual/pkgconfig
|
||||
doc? ( >=dev-python/sphinx-1.2.2 )
|
||||
"
|
||||
|
||||
DOCS=( ChangeLog )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
# regexp disabled due to https://github.com/rsyslog/liblognorm/issues/143
|
||||
local myeconfargs=(
|
||||
--enable-compile-warnings=yes
|
||||
--disable-Werror
|
||||
$(use_enable doc docs)
|
||||
$(use_enable test testbench)
|
||||
$(use_enable debug)
|
||||
$(use_enable static-libs static)
|
||||
--disable-regexp
|
||||
)
|
||||
|
||||
econf "${myeconfargs[@]}"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# When adding new tests via patches we have to make them executable
|
||||
einfo "Adjusting permissions of test scripts ..."
|
||||
find "${S}"/tests -type f -name '*.sh' \! -perm -111 -exec chmod a+x '{}' \; || \
|
||||
die "Failed to adjust test scripts permission"
|
||||
|
||||
emake --jobs 1 check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
find "${ED}"usr/lib* -name '*.la' -delete || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST libmongo-client-0.1.7.tar.gz 122495 SHA256 820d98d1ee06070aa51861d1583dd5b3556b6dbca6fecdc1c91eb3c18360d2d9 SHA512 c8250ee04c01650b624641d8c3e0cb81e17bdc12d1d64ccb173c15db58d39953fec39dcf5b92ec91378b93574319ab47bb523d1c50594cbc89479c65d219b5ee WHIRLPOOL 8a7096b9ba6a43013307ea946edab483bf904794e3d61ab6dc4be4669cc284acabdc8d7bfe0bd5e6d4f3087123bbff9ddb787b90df54003febc1adf102f001bb
|
||||
DIST libmongo-client-0.1.8.tar.gz 127648 SHA256 571004930ffa7dd23b760f99e58119ce12effab1d7b21fa3ec73e70bd0ecb4f3 SHA512 b013898768306ef053f8010b14b353c42af6505ec33d4384602e690d97e9272d48ea134a84f79394073b01ecc05beab3e2e95dbfc0c3603b09fac4b0f72c1ae0 WHIRLPOOL f66c4a5cfb9075ebfebc549e6472f9628a3f761766dfcd24abfd0e82a575bddaf4b07f35b1871d34a903ee9cebb129efdd3a8719a931663f326beef0e92af5db
|
||||
|
@ -0,0 +1,42 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI="6"
|
||||
|
||||
inherit autotools
|
||||
|
||||
DESCRIPTION="The alternative C driver for MongoDB"
|
||||
HOMEPAGE="https://github.com/algernon/libmongo-client"
|
||||
SRC_URI="https://github.com/algernon/${PN}/archive/${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0/0.5.0"
|
||||
KEYWORDS="~amd64 ~arm ~hppa ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-doc/doxygen )
|
||||
virtual/pkgconfig"
|
||||
RDEPEND="dev-libs/glib"
|
||||
|
||||
S="${WORKDIR}/${PN}-${P}"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
|
||||
use doc && emake DESTDIR="${D%/}" doxygen
|
||||
}
|
||||
|
||||
src_install() {
|
||||
use doc && local HTML_DOCS=( docs/html/. )
|
||||
default
|
||||
|
||||
find "${ED}"usr/lib* -name '*.la' -delete || die
|
||||
}
|
@ -1,2 +1,3 @@
|
||||
DIST oasis-0.4.5.tar.gz 336502 SHA256 6623a603415c4718add6a6ebad80f6688164a2e9b28576c082548b17bf8b2e44 SHA512 97d5401762ffda6bf4d7a239d9c77f8647d58da1728925e6de6e8fdfded6f8e7bb69652a838b86ab7203cd68436b06f76921c76840b97db56a94bb87d74450d7 WHIRLPOOL 46f5c3f900baa3d3b6ada8c0cf90cc90cfddc70523510d5ba5541e5075c96360ebacdd23a1b0f8b28a90bda7fb1700b9a2e9d7989af650e9aa5d50f358795d92
|
||||
DIST oasis-0.4.6.tar.gz 337490 SHA256 1324becb9fbc181f7276936339f62db224d166f01e50ea19f8f62037271bbbfb SHA512 c85432c75de1814024b11f9aea89fc740016fc13f2fd16ad1a4819de406d26a698f33a43e64649cbc17fe194c5da336e83ad85af91d6b97d0b3f70db44f33d88 WHIRLPOOL 7a742e67dcab5468b57ae2e5c730508b07ff9380a584e75d4b269d84a09a73e826819511d9ebfbbc5748d57163104fc7ab93756e8bfcd56954a2ad411e9ab04c
|
||||
DIST oasis-0.4.7.tar.gz 371869 SHA256 54bc4b80e4a38719124e8fb0125c6f3404bda514b87b8749b51442e023de998d SHA512 f1ed31da03ec4245489d74589f8385af990191be16074b25f482a96fa916f87f99e314944bb0cb798269c6870ca85c59273d33a298a2ad3f239b7ae444c74ec2 WHIRLPOOL 6b744ea4e0953f1a350eb7a75458e4d5b4778143f14a2f88742600db3b1858479aadbb26ace70d7f2c9094a56a05f1c7adedca9f09a8d0588b3dd671cf7609dd
|
||||
|
@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
OASIS_BUILD_TESTS=1
|
||||
OASIS_BUILD_DOCS=1
|
||||
|
||||
inherit oasis
|
||||
|
||||
MY_P=${P/_/\~}
|
||||
DESCRIPTION="OASIS is a tool to integrate a configure, build and install system in OCaml project"
|
||||
HOMEPAGE="http://oasis.forge.ocamlcore.org/index.php"
|
||||
SRC_URI="http://forge.ocamlcore.org/frs/download.php/1635/${MY_P}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-2.1-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND=">=dev-ml/ocaml-data-notation-0.0.11:=
|
||||
dev-ml/ocamlbuild:=[ocamlopt]"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-ml/findlib-1.3.1
|
||||
dev-ml/ocamlify
|
||||
dev-ml/ocamlmod
|
||||
!<sci-chemistry/oasis-4.0-r3
|
||||
test? (
|
||||
>=dev-ml/ocaml-fileutils-0.4.2
|
||||
>=dev-ml/ounit-2.0.0
|
||||
>=dev-ml/ocaml-expect-0.0.4
|
||||
dev-ml/pcre-ocaml
|
||||
dev-ml/extlib
|
||||
)"
|
||||
|
||||
STRIP_MASK="*/bin/*"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
DOCS=( "README.txt" "TODO.txt" "AUTHORS.txt" "CHANGES.txt" )
|
@ -1 +1,2 @@
|
||||
DIST ocaml-containers-0.18.tar.gz 418480 SHA256 8bac90113e229a9dc55a2f54c20cf363df43c2e72ca349a5a811ad113a6d2909 SHA512 fa61039fc3bbfcd53117ae582689ffca645b42a811ebe0fc8aa5da93ba5373c2ac54896ecaddbe3eff7593b2be44f208abb625ad3354d2b089a0b811b9f77cff WHIRLPOOL 10795e812baab4525f6fdfbc101c7b14230ef87893ccf01702a6a75e373a12bf643f775f63cb27640f0dd398da541e6c185489dc27cd9fc7bd75a4a90f34baf2
|
||||
DIST ocaml-containers-0.19.tar.gz 419243 SHA256 e53472e009ea2699f39940844fc0ef9abb332234834c6963f8325aa7df0694f5 SHA512 1ed078121770d72ba685c116ddeebc848b086e371604c7fedf1bdb58ea5cb9685db8a3c7c4edcac69a9cd18ece1eb601d1675c25efe6ab61e2a511a8a857aff2 WHIRLPOOL 27df23c2b0196647f071089d2044dbb7cf4b2c710bdc066eda892e8e4ffe229d5bafc2ec29b5afc4cffd0513d69d16776342258e667e62613ff2c771762ea1d5
|
||||
|
@ -0,0 +1,33 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
#OASIS_BUILD_TESTS=1
|
||||
OASIS_BUILD_DOCS=1
|
||||
|
||||
inherit oasis
|
||||
|
||||
DESCRIPTION="A modular standard library focused on data structures"
|
||||
HOMEPAGE="https://github.com/c-cube/ocaml-containers"
|
||||
SRC_URI="https://github.com/c-cube/ocaml-containers/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="
|
||||
dev-ml/result:=
|
||||
dev-ml/sequence:=
|
||||
"
|
||||
DEPEND="${RDEPEND} dev-ml/cppo"
|
||||
PATCHES=( "${FILESDIR}/notests.patch" )
|
||||
|
||||
src_configure() {
|
||||
oasis_configure_opts="
|
||||
--enable-unix
|
||||
--disable-bench
|
||||
" oasis_src_configure
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit findlib
|
||||
|
||||
DESCRIPTION="Library for binding to C libraries using pure OCaml"
|
||||
HOMEPAGE="https://github.com/ocamllabs/ocaml-ctypes"
|
||||
SRC_URI="https://github.com/ocamllabs/ocaml-ctypes/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/ocaml-4.02:=[ocamlopt]
|
||||
virtual/libffi
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-ml/ounit )"
|
||||
|
||||
src_compile() {
|
||||
emake -j1
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake -j1 test
|
||||
}
|
||||
|
||||
src_install() {
|
||||
findlib_src_install
|
||||
dodoc CHANGES.md README.md
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST Arpeggio-1.5.tar.gz 18856 SHA256 56c3550852fa8a1d24806fe0ab60cae6649460c6194d0d5fd1382c5bf050859c SHA512 533c59635556a3446c04c8b14f53e8ad6a7a39869f39d958bdd52b5a55ad43c533bc42a41999cc149015b34470d8ff0eca295ff1942c75b33a58a403a604c449 WHIRLPOOL 137243048317eb3716ada2ebb2b51382d0e7fafe4d8895c6a1f8b0067060edc277fcffc38869c32174e07a9113a12a3bbd513887e3eeb62dea9c0f3751380467
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=Arpeggio
|
||||
MY_P=${MY_PN}-${PV}
|
||||
DESCRIPTION="Parser interpreter based on PEG grammars"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/${MY_PN} https://github.com/igordejanovic/${MY_PN}"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
# pypi tarball omits tests
|
||||
RESTRICT="test"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
python_test() {
|
||||
py.test -v tests || die "tests failed"
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zmedico@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">Arpeggio</remote-id>
|
||||
<remote-id type="github">igordejanovic/Arpeggio</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,12 +1,5 @@
|
||||
DIST elasticsearch-1.7.3.tar.gz 28510917 SHA256 af517611493374cfb2daa8897ae17e63e2efea4d0377d316baa351c1776a2bca SHA512 0cb6b2ebd77c3d1467f6a22f845bfbf9f4a7c9c9ddedae17aeb6bd2d2bc576171fc80e3a4963e7b890af574e9fd0b0faa152e7f2671a74254826e14fe2554c9f WHIRLPOOL c86de3076389a9b95cf4d424673edb3c3b1dae0b4470b18b15a5f2e9bde6669a61b8ffd5cc3f7fc3b52f99441915a84b0396a5673ebbc12fec0d83eb41a03c74
|
||||
DIST elasticsearch-2.0.0.tar.gz 28576708 SHA256 b25f13f615337c2072964fd9fc5c7250f8a2a983b22198daf93548285d5d16df SHA512 23473b658d68c07b65f66e04cdac07c0b88ac3a2a9ca1d5e700b5b17ebc1b23b77a5b0fa32959d30d8e0267ec186be42de0c11ce86864fe55d0e353c27d0003a WHIRLPOOL 22a7a274961999d5105ed9ba817d225deb8e46330e5774be8caecb34e6997c2a8debf348a5f6d58ac9d959a6b96957723a63944750155f37592278b8e6e590c6
|
||||
DIST elasticsearch-2.1.1.tar.gz 29007342 SHA256 ebd69c0483f20ba7e51caa9606d4e3ce5fe2667e1216c799f0cdbb815c317ce6 SHA512 eff12cd7342dc0036dc88f03ced9c7cc90d284222efeca86adfd9e4cf254cb8f96105c58673b239cfc9eb9764a2a669d2cd171ca73eb43b1ec1470a13c5e1776 WHIRLPOOL 2b0e069d162ee07eddc90d879d4ce5dd2cef9e4a804a9aaeb3d99e5d532f583589e2c6a36b5e856bf19a610f220eea6aaa75d28e7b6687b60eab7bf83b2def51
|
||||
DIST elasticsearch-2.2.1.tar.gz 29424648 SHA256 7d43d18a8ee8d715d827ed26b4ff3d939628f5a5b654c6e8de9d99bf3a9b2e03 SHA512 9254175afff5c002625465fb5f398e4e53d121925a656af13e65d90eb3b3ef7507ef094cf44002f104a84e5147a8677a05f4071248140d6b48179b9057867cb5 WHIRLPOOL a470a663b8ec1b8cb7a8daf6bfc02ed7d5d0f23caab063ac2e6c7456bda449bad3e81237699fa434f077d4f86ee09dac7d007b554acc6428f2b436cf8448b210
|
||||
DIST elasticsearch-2.3.5.tar.gz 27547995 SHA256 1119a8c18620b98c4b85261318663a1f26dea92a26f34dfeb7f813fb7cbb468a SHA512 9c0cc8a9ae0fa2b52db583a5c006b05a84c1f84e1b8dbbafa88bec111190d056a23bd384d4241ce00dc8b56a6840857b296e4c0d2bf911f352ef67f128a87ca7 WHIRLPOOL de2aee3773d14c9b4abc0f20c3c8df1fe374a91ea54493f2c1df59fb8c02c97d684fd94b6bfaf140eebcfea4913197b10469b5aef34f62db89d825ae508a5095
|
||||
DIST elasticsearch-py-1.4.0.tar.gz 74498 SHA256 7959787b47c3523e9c9aeffec441091fcd2b293d26c4fd5f576cf84cfb85ef63 SHA512 dbe51362f68d40e95a0cfefde4feb8d9d9c61b4f4795cbf69fd70bf981f290812ebac19a20ae8594cc39ac46a3c35ddfe450ff436fca0fada060736128478cf7 WHIRLPOOL a6730bcccc1201048f82aed6e63b7e73f38150002dd9889c575c9edf52834bc6f9a8256977ac27b092f3865074e4699729cc766564a4b731766d77d6a6de6324
|
||||
DIST elasticsearch-py-1.5.0.tar.gz 77037 SHA256 275eaeb2f64c8eba8691d953ac0d8a16e4f759d9cad797323b7cbd0ef87a69ce SHA512 10d473a221be3deb086dca0c5463324647e38f8be4f4bbea934079b002f1414d30c98976c56fd2fc55c97d24ed2338137a9983194e8bf82c95cc70321ee5ee86 WHIRLPOOL 3aa83b9bfd5363ea39baf58cc7bdaaa9606085e471e7e683518cf707642fc9a514264c51cf3e296db071a2a5333f58b8e1335bc4473477df9d085bea63c584ba
|
||||
DIST elasticsearch-py-1.6.0.tar.gz 77205 SHA256 59dd03284ab7314e5eb50d13ba92df65efb93778ca318906baad5776b152aff7 SHA512 09cdec0b3f50707b9a5e11534fe28507db669e4da44bbda1952d07b6ac8e3aea0c0c05297db26d9425c2247724681fa4e5485e9525571ff64f070e700a9a9b07 WHIRLPOOL 04f43a848cc811d1bee22d2bf7931a4348fb4a455172e381bedad5179d72313320009cb8b2dfdadb252aacc13cc1a4ef15b311488401d6b2bc23e242272bb74b
|
||||
DIST elasticsearch-py-1.8.0.tar.gz 73848 SHA256 9394a1eef66223f8292f005bbe0c2309df10f76e8065823966e045e5e0a76cb3 SHA512 c4ca91db0fd1094dd02b1a9e7ca94f11c4c528373a71f180c5e256efdf53515802fc854866dcb7077e2f5c6300ee88cb80fd6c766e22f1f76357a0b970e1444d WHIRLPOOL b3cfd3011e97cfe97690a784e896dc794ece747ed1b82e1a3b1731b9dda25f38011ef4e0dd8271a514f31a85fb35349877baa2ce66908f908c5c7470412a23ef
|
||||
DIST elasticsearch-py-1.9.0.tar.gz 74021 SHA256 bf00a6c7ecd965bf585199335d2619267ae0caabc356ee011dfc37e373edc023 SHA512 1a523867fd40534332a8b46e84ca3009dbaf86c9bf51e1487d76b90420e0c5371271f7956ebd2a416288bab57fa539377471386e23bcc03b1e7cdd4ab90a6027 WHIRLPOOL 9c5f4ffcdc97ce695845d8597d39aa41e71495de78f49fa2003d3665f683a04e32d5a5dabd4670ab9928a1ebc082564b4169b7e19f5c803146772b50598ae091
|
||||
DIST elasticsearch-py-2.1.0.tar.gz 72785 SHA256 faa04d251ba266c419bb45b644b984fc3028f558ff50d34ec92547f65db75652 SHA512 445ca902b9b1b0239f751174d812672a623a205bc22da679a61edcd88a29d86be2e1e35421579da1ae34b346476f951c24848015bbf2d437e2209b706044ec0b WHIRLPOOL e50ec6278a229f5129aa56693b761226ba11a453f1841dadec54a57998205246b8a95eb10365a79fb831ed47532d8b3c231f4134515e4f169b123e4d7bfcf8e4
|
||||
DIST elasticsearch-py-2.2.0.tar.gz 74228 SHA256 e0d252a8c1e9af2b7b89ae8aa8cb006bb1714e19e147418655baebd0c4f90e77 SHA512 fcdcb72064920aeaaaba644166184d6826d5bd26542824744cb9bc899d01b50f972bbee4e92dce2f24fc81d66201d807d89fb2b9ccda446986eb79c9c131171e WHIRLPOOL a92cbe1e959cef132901c60c31ec0cc30a437e049205b4475094a05112efdb58fb136c92e3e1507589e1c77d001679d1e083710accb9ee47c43d25d0a71c183c
|
||||
DIST elasticsearch-py-2.3.0.tar.gz 74954 SHA256 3610d3a2d2f4eb1906794276ac6fca1ad801067e0f36d71a8a11c2c9112ed120 SHA512 53ffc265dc2c42ef983bf12a6d6bfcb96a378da97c58b52ff872968e50f01936815f2d28d667d44a647174d90b55fbe6855ebeac6f86248adb4db4ba951facb1 WHIRLPOOL 836ea86fe64851eb1c8891f70ee8502bb2ff76c919536a3f57f06880dfed96626a658f3a722622ac49deb6d55ca9235755b56c771ed55d298b993c009c283b48
|
||||
DIST elasticsearch-py-2.4.0.tar.gz 77199 SHA256 0cab15c1a5c014f259703d982b074b3c6864fb152dd909fba60d23cde9133b76 SHA512 5a38419b4448850722c6af9181d5f00bed20796b645a336706040244c559893da7f57aa556251b8b2ee022c48f651b5f7646fc51f9f0f20ed3ab1449f244c096 WHIRLPOOL c28412a06b0a13329d8b4ad377cdfe3d88ac2afc130b872fcf51dadc148a6f17c4e3ea6b03982be8553d64c224841932aa8e1847fb225a001331219651c0d6dd
|
||||
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="official Python low-level client for Elasticsearch"
|
||||
HOMEPAGE="http://elasticsearch-py.rtfd.org/"
|
||||
SRC_URI="https://github.com/elasticsearch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~x86"
|
||||
IUSE="examples doc test"
|
||||
|
||||
RDEPEND=">=dev-python/urllib3-1.8[${PYTHON_USEDEP}]
|
||||
<dev-python/urllib3-2.0[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
|
||||
test? ( ${RDEPEND}
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/requests-3.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}] )"
|
||||
|
||||
python_prepare_all() {
|
||||
# Remove tests attempting to connect ot the network
|
||||
rm -rf test_elasticsearch/test_server/ || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test_all() {
|
||||
# For unknown reason the testsuite fails to iterate the set of impls of PYTHON_COMPAT
|
||||
# but they all pass on testing when run individually
|
||||
"${PYTHON}" test_elasticsearch/run_tests.py
|
||||
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( example/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="official Python low-level client for Elasticsearch"
|
||||
HOMEPAGE="http://elasticsearch-py.rtfd.org/"
|
||||
SRC_URI="https://github.com/elasticsearch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~x86"
|
||||
IUSE="examples doc test"
|
||||
|
||||
RDEPEND=">=dev-python/urllib3-1.8[${PYTHON_USEDEP}]
|
||||
<dev-python/urllib3-2.0[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
doc? (
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] )
|
||||
test? ( ${RDEPEND}
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/requests-3.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}] )"
|
||||
# nosexcover is listed for tests but is not essential
|
||||
|
||||
python_prepare_all() {
|
||||
# Remove tests attempting to connect ot the network
|
||||
rm -rf test_elasticsearch/test_server/ || die
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test_all() {
|
||||
# For unknown reason the testsuite fails to iterate the set of impls of PYTHON_COMPAT
|
||||
# but they all pass on testing when run individually
|
||||
"${PYTHON}" test_elasticsearch/run_tests.py
|
||||
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( example/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
|
||||
ES_VERSION="1.7.3"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="official Python low-level client for Elasticsearch"
|
||||
HOMEPAGE="http://elasticsearch-py.rtfd.org/"
|
||||
SRC_URI="https://github.com/elasticsearch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
test? ( https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~mips ~x86"
|
||||
IUSE="examples doc test"
|
||||
|
||||
RDEPEND=">=dev-python/urllib3-1.8[${PYTHON_USEDEP}]
|
||||
<dev-python/urllib3-2.0[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.3.1-r1[${PYTHON_USEDEP}]
|
||||
test? ( ${RDEPEND}
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/requests-3.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pretty-yaml[${PYTHON_USEDEP}]
|
||||
dev-python/nosexcover[${PYTHON_USEDEP}]
|
||||
|| ( virtual/jre:1.8 virtual/jre:1.7 ) )"
|
||||
|
||||
python_prepare_all() {
|
||||
# rename manpage to elasticsearch-py
|
||||
sed \
|
||||
-e "s@('index', 'elasticsearch'@('index', 'elasticsearch-py'@g" \
|
||||
-i docs/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
ES="${WORKDIR}/elasticsearch-${ES_VERSION}"
|
||||
ES_PORT="25124"
|
||||
ES_LOG="${ES}/logs/elasticsearch.log"
|
||||
PID="${ES}/elasticsearch.pid"
|
||||
|
||||
# run Elasticsearch instance on custom port
|
||||
sed -i "s/#http.port: 9200/http.port: ${ES_PORT}/g; \
|
||||
s/#cluster.name: elasticsearch/cluster.name: gentoo-es-py-test/g" \
|
||||
${ES}/config/elasticsearch.yml
|
||||
|
||||
# Elasticsearch 1.6+ needs to set path.repo
|
||||
echo "path.repo: /" >> ${ES}/config/elasticsearch.yml
|
||||
|
||||
# start local instance of elasticsearch
|
||||
${ES}/bin/elasticsearch -d -p ${PID}
|
||||
|
||||
for i in `seq 10`; do
|
||||
grep -q "started" ${ES_LOG} 2> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
einfo "Elasticsearch started"
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'BindException\[Address already in use\]' "${ES_LOG}" 2>/dev/null; then
|
||||
eend 1
|
||||
eerror "Elasticsearch already running"
|
||||
die "Cannot start Elasticsearch for tests"
|
||||
else
|
||||
einfo "Waiting for Elasticsearch"
|
||||
eend 1
|
||||
sleep 2
|
||||
continue
|
||||
fi
|
||||
done
|
||||
|
||||
export TEST_ES_SERVER="localhost:${ES_PORT}"
|
||||
esetup.py test
|
||||
|
||||
pkill -F ${PID}
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
cd docs || die
|
||||
emake man $(usex doc html "")
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( example/. )
|
||||
doman docs/_build/man/*
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,98 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} pypy )
|
||||
|
||||
ES_VERSION="1.7.3"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="official Python low-level client for Elasticsearch"
|
||||
HOMEPAGE="http://elasticsearch-py.rtfd.org/"
|
||||
SRC_URI="https://github.com/elasticsearch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
test? ( https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~mips ~x86"
|
||||
IUSE="examples doc test"
|
||||
|
||||
RDEPEND=">=dev-python/urllib3-1.8[${PYTHON_USEDEP}]
|
||||
<dev-python/urllib3-2.0[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.3.1-r1[${PYTHON_USEDEP}]
|
||||
test? ( ${RDEPEND}
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/requests-3.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pretty-yaml[${PYTHON_USEDEP}]
|
||||
dev-python/nosexcover[${PYTHON_USEDEP}]
|
||||
|| ( virtual/jre:1.8 virtual/jre:1.7 ) )"
|
||||
|
||||
python_prepare_all() {
|
||||
# rename manpage to elasticsearch-py
|
||||
sed \
|
||||
-e "s@('index', 'elasticsearch'@('index', 'elasticsearch-py'@g" \
|
||||
-i docs/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
ES="${WORKDIR}/elasticsearch-${ES_VERSION}"
|
||||
ES_PORT="25124"
|
||||
ES_LOG="${ES}/logs/elasticsearch.log"
|
||||
PID="${ES}/elasticsearch.pid"
|
||||
|
||||
# run Elasticsearch instance on custom port
|
||||
sed -i "s/#http.port: 9200/http.port: ${ES_PORT}/g; \
|
||||
s/#cluster.name: elasticsearch/cluster.name: gentoo-es-py-test/g" \
|
||||
${ES}/config/elasticsearch.yml
|
||||
|
||||
# Elasticsearch 1.6+ needs to set path.repo
|
||||
echo "path.repo: /" >> ${ES}/config/elasticsearch.yml
|
||||
|
||||
# start local instance of elasticsearch
|
||||
${ES}/bin/elasticsearch -d -p ${PID}
|
||||
|
||||
for i in `seq 10`; do
|
||||
grep -q "started" ${ES_LOG} 2> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
einfo "Elasticsearch started"
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'BindException\[Address already in use\]' "${ES_LOG}" 2>/dev/null; then
|
||||
eend 1
|
||||
eerror "Elasticsearch already running"
|
||||
die "Cannot start Elasticsearch for tests"
|
||||
else
|
||||
einfo "Waiting for Elasticsearch"
|
||||
eend 1
|
||||
sleep 2
|
||||
continue
|
||||
fi
|
||||
done
|
||||
|
||||
export TEST_ES_SERVER="localhost:${ES_PORT}"
|
||||
esetup.py test
|
||||
|
||||
pkill -F ${PID}
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
cd docs || die
|
||||
emake man $(usex doc html "")
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( example/. )
|
||||
doman docs/_build/man/*
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,95 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4,5} pypy )
|
||||
|
||||
ES_VERSION="2.0.0"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="official Python low-level client for Elasticsearch"
|
||||
HOMEPAGE="http://elasticsearch-py.rtfd.org/"
|
||||
SRC_URI="https://github.com/elasticsearch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
|
||||
test? ( https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.tar.gz )"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~mips ~x86"
|
||||
IUSE="examples doc test"
|
||||
|
||||
RDEPEND=">=dev-python/urllib3-1.8[${PYTHON_USEDEP}]
|
||||
<dev-python/urllib3-2.0[${PYTHON_USEDEP}]"
|
||||
|
||||
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
>=dev-python/sphinx-1.3.1-r1[${PYTHON_USEDEP}]
|
||||
test? ( ${RDEPEND}
|
||||
>=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
|
||||
<dev-python/requests-3.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pretty-yaml[${PYTHON_USEDEP}]
|
||||
dev-python/nosexcover[${PYTHON_USEDEP}]
|
||||
|| ( virtual/jre:1.8 virtual/jre:1.7 ) )"
|
||||
|
||||
python_prepare_all() {
|
||||
# rename manpage to elasticsearch-py
|
||||
sed \
|
||||
-e "s@('index', 'elasticsearch'@('index', 'elasticsearch-py'@g" \
|
||||
-i docs/conf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_test() {
|
||||
ES="${WORKDIR}/elasticsearch-${ES_VERSION}"
|
||||
ES_PORT="25124"
|
||||
ES_LOG="${ES}/logs/elasticsearch.log"
|
||||
PID="${ES}/elasticsearch.pid"
|
||||
|
||||
# run Elasticsearch instance on custom port
|
||||
sed -i "s/# http.port: 9200/http.port: ${ES_PORT}/g; \
|
||||
s/# cluster.name: my-application/cluster.name: gentoo-es-py-test/g" \
|
||||
${ES}/config/elasticsearch.yml
|
||||
|
||||
# start local instance of elasticsearch
|
||||
${ES}/bin/elasticsearch -d -p ${PID}
|
||||
|
||||
for i in `seq 10`; do
|
||||
grep -q "started" ${ES_LOG} 2> /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
einfo "Elasticsearch started"
|
||||
eend 0
|
||||
break
|
||||
elif grep -q 'BindException\[Address already in use\]' "${ES_LOG}" 2>/dev/null; then
|
||||
eend 1
|
||||
eerror "Elasticsearch already running"
|
||||
die "Cannot start Elasticsearch for tests"
|
||||
else
|
||||
einfo "Waiting for Elasticsearch"
|
||||
eend 1
|
||||
sleep 2
|
||||
continue
|
||||
fi
|
||||
done
|
||||
|
||||
export TEST_ES_SERVER="localhost:${ES_PORT}"
|
||||
esetup.py test
|
||||
|
||||
pkill -F ${PID}
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
cd docs || die
|
||||
emake man $(usex doc html "")
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
use examples && local EXAMPLES=( example/. )
|
||||
doman docs/_build/man/*
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,16 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>hydrapolic@gmail.com</email>
|
||||
<name>Tomas Mozes</name>
|
||||
<description>Proxy maintainer</description>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">elasticsearch/elasticsearch-py</remote-id>
|
||||
</upstream>
|
||||
<maintainer type="person">
|
||||
<email>hydrapolic@gmail.com</email>
|
||||
<name>Tomáš Mózes</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">elasticsearch/elasticsearch-py</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
|
@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||||
PYTHON_REQ_USE="threads(+)"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="IPython Kernel for Jupyter"
|
||||
HOMEPAGE="https://github.com/ipython/ipykernel"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/ipython-4.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/jupyter_client[${PYTHON_USEDEP}]
|
||||
>=www-servers/tornado-4.0[${PYTHON_USEDEP}]
|
||||
>=dev-python/traitlets-4.1.0[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
# nose_warnings_filters not available in portage
|
||||
RESTRICT="test"
|
||||
|
||||
python_test() {
|
||||
nosetests --verbose ipykernel || die
|
||||
}
|
@ -1 +1,2 @@
|
||||
DIST nbformat-4.0.1.tar.gz 105767 SHA256 5261c957589b9dfcd387c338d59375162ba9ca82c69e378961a1f4e641285db5 SHA512 f73e8cffc61825aa8b7b0ef3b842cba51baf2cdf0c5d0035e2e7cb51f71c6c819f09201367a3b342c2736492dee1e78c519961aaea8f2cc4b5e69a1545085d2a WHIRLPOOL 9b08003c456e00c529b7bf8e786d57a583e53e5a1e7e9eb4c3cc492c5b1d60e76579c9102e6c56749d546a9a124d475687d4ec1d71e0f3634698d5e30499db93
|
||||
DIST nbformat-4.1.0.tar.gz 108264 SHA256 dbf6c0ed0cb7c5a7184536368f1dd1ada2d48fd6f016e0f9e9b69236e28c0857 SHA512 606d8aa786fdbe8fe6d12d9a13886a49043b096a86ad180556f65f226d5031c98f6c80b4319de09292f2f17ed9e3a5038828c94a7306ed2abd78976e30fc08d4 WHIRLPOOL f01d3431fb007b12bbd892181781d87a700c01a28f1bf5308f4ae0f5c5dd63c768e926964848a3a21b6bd34e8d6d2b6c3d962b4dee1f034a387e45d2c3741a2e
|
||||
|
@ -0,0 +1,60 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||||
PYTHON_REQ_USE='sqlite'
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Reference implementation of the Jupyter Notebook format"
|
||||
HOMEPAGE="http://jupyter.org"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/jsonschema-2.4.0[${PYTHON_USEDEP}]
|
||||
dev-python/ipython_genutils[${PYTHON_USEDEP}]
|
||||
dev-python/traitlets[${PYTHON_USEDEP}]
|
||||
dev-python/jupyter_core[${PYTHON_USEDEP}]
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? (
|
||||
dev-python/sphinx[${PYTHON_USEDEP}]
|
||||
dev-python/numpydoc[${PYTHON_USEDEP}]
|
||||
)
|
||||
test? (
|
||||
dev-python/nose[${PYTHON_USEDEP}]
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
python_prepare_all() {
|
||||
# Prevent un-needed download during build
|
||||
if use doc; then
|
||||
sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die
|
||||
fi
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_compile_all() {
|
||||
use doc && emake -C docs html
|
||||
}
|
||||
|
||||
python_test() {
|
||||
distutils_install_for_testing
|
||||
cd "${TEST_DIR}"/lib || die
|
||||
nosetests --with-coverage --cover-package=nbformat nbformat || die
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/_build/html/. )
|
||||
distutils-r1_python_install_all
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST pycuda-2012.1.tar.gz 1473695 SHA256 d5b90467b926c73ceaf2dd2662fef2e21e106f00a0aa0d11f09a891aac3925dc SHA512 bb8889fa46de3d4ae57fb47883232953eba0e12a53431fffdefb12af3134540aec2671f0f2fbbe1d836dab354d407e078e773e84f8ee9a5345400a4a59da7937 WHIRLPOOL b35484ddc8d2c1808a0d706dcdcc9ebe49af153b0aaaf8fc2596f4068c5c2dbdb9fb4f84ac46512b314ef9383f70dfcefa4895191d7a9f6d78eee8ae8a56fe71
|
||||
DIST pycuda-2013.1.1.tar.gz 1586425 SHA256 4b541ff7ab4a867e9389b3b9b9456c6957000f39a20a46e872dd25dd3bece2da SHA512 7a7e95fcd4f76d10234558021064cc299e6d93ab9a428c9560e5a8a73b13304ba9ccc3c103674a25effdc01a14aac21981a62de881a9c990ad16d7689b75e502 WHIRLPOOL c1e958defbe4998c0af5a256df51daa3901f0bf2a45e5c5faed9abf5ba60ebd0dddab6fbb4caff41eac588fe7fc3cca1517c032d95d316492f99c307b6a260f3
|
||||
DIST pycuda-2014.1.tar.gz 1588986 SHA256 28e8f7425d0bac03a6c80346a4e150024ef0e4740ce11cb54e6aef351127d7af SHA512 57e333941c472feea6974e583f9d27f7f5083011bd8a7cc0bc31d27032885a130f1f57a16b0730696c607b9dca32ad84b96c984cd82351800ec854acdfa8fe9f WHIRLPOOL c71876c6f203a0a8a996a90976ad3f012ce1497ee84534c7fb8876e19293766d4641fbac00a538b1ddb074b29f8d8347f39caae613839b38cf5ee9eb15a86c09
|
||||
DIST pycuda-2016.1.2.tar.gz 1603373 SHA256 a7dbdac7e2f0c0d2ad98f5f281d5a9d29d6673b3c20210e261b96e9a2d0b6e37 SHA512 7a1a9d6723651bdc6f584de884c46bbaa17970e622b4d800c7f36ff57817807a51c7e4aa0a40872e46fc1243087af6dda07489bb60b6a33f52740a4d7a9e69a7 WHIRLPOOL f1c169d0bac25f625aa6609bf06fdc7fadce00fd291d27113b9ae92995801cfc2361cfb254bec836c2547ff4b96498c945f73a0ed76032b382e13f315222e711
|
||||
|
@ -0,0 +1,85 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||||
|
||||
inherit cuda distutils-r1
|
||||
|
||||
DESCRIPTION="Python wrapper for NVIDIA CUDA"
|
||||
HOMEPAGE="http://mathema.tician.de/software/pycuda/ https://pypi.python.org/pypi/pycuda"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="examples opengl test"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/boost[python,${PYTHON_USEDEP}]
|
||||
dev-python/decorator[${PYTHON_USEDEP}]
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
>=dev-python/pytools-2013[${PYTHON_USEDEP}]
|
||||
dev-util/nvidia-cuda-toolkit
|
||||
x11-drivers/nvidia-drivers
|
||||
opengl? ( virtual/opengl )"
|
||||
DEPEND="${RDEPEND}
|
||||
test? (
|
||||
dev-python/mako[${PYTHON_USEDEP}]
|
||||
dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
# We need write acccess /dev/nvidia0 and /dev/nvidiactl and the portage
|
||||
# user is (usually) not in the video group
|
||||
RESTRICT="userpriv"
|
||||
|
||||
python_prepare_all() {
|
||||
cuda_sanitize
|
||||
sed \
|
||||
-e "s:'--preprocess':\'--preprocess\', \'--compiler-bindir=$(cuda_gccdir)\':g" \
|
||||
-e "s:\"--cubin\":\'--cubin\', \'--compiler-bindir=$(cuda_gccdir)\':g" \
|
||||
-e "s:/usr/include/pycuda:${S}/src/cuda:g" \
|
||||
-i pycuda/compiler.py || die
|
||||
|
||||
touch siteconf.py || die
|
||||
|
||||
distutils-r1_python_prepare_all
|
||||
}
|
||||
|
||||
python_configure() {
|
||||
mkdir -p "${BUILD_DIR}" || die
|
||||
cd "${BUILD_DIR}" || die
|
||||
rm -f ./siteconf.py || die
|
||||
"${EPYTHON}" "${S}"/configure.py \
|
||||
--boost-inc-dir="${EPREFIX}/usr/include" \
|
||||
--boost-lib-dir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--boost-python-libname=boost_python-$(echo ${EPYTHON} | sed 's/python//')-mt \
|
||||
--boost-thread-libname=boost_thread-mt \
|
||||
--cuda-root="${EPREFIX}/opt/cuda" \
|
||||
--cudadrv-lib-dir="${EPREFIX}/usr/$(get_libdir)" \
|
||||
--cudart-lib-dir="${EPREFIX}/opt/cuda/$(get_libdir)" \
|
||||
--cuda-inc-dir="${EPREFIX}/opt/cuda/include" \
|
||||
--no-use-shipped-boost \
|
||||
$(usex opengl --cuda-enable-gl "") || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# we need write access to this to run the tests
|
||||
addwrite /dev/nvidia0
|
||||
addwrite /dev/nvidiactl
|
||||
python_test() {
|
||||
py.test --debug -v -v -v || die "Tests fail with ${EPYTHON}"
|
||||
}
|
||||
distutils-r1_src_test
|
||||
}
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
|
||||
if use examples; then
|
||||
insinto /usr/share/doc/${PF}
|
||||
doins -r examples
|
||||
fi
|
||||
}
|
@ -0,0 +1 @@
|
||||
DIST textX-1.4.tar.gz 21967 SHA256 6112b73b2c4713630824f7c57f14b3919a2c1e32a8246c37b009378b6079665c SHA512 7783f4dd1358d8e0df126f1be893c58e32f57015fd577bd20d00a17b63111d6e48222c9b78420a307fcd0833f6d9ac3a1398d55986681251f7c378cdcd68c8a4 WHIRLPOOL 8ef80f60e3a56322502912660e5296ad151b22692224c8cf04c83e2dc4e8700e78f0dae1d3f9db063f1e24e208a17d8c474a15ac57570221f9d9dedea29b9538
|
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zmedico@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="pypi">textX</remote-id>
|
||||
<remote-id type="github">igordejanovic/textX</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -0,0 +1,34 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{4,5} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
MY_PN=textX
|
||||
MY_P=${MY_PN}-${PV}
|
||||
DESCRIPTION="Meta-language for DSL implementation inspired by Xtext"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/${MY_PN} https://github.com/igordejanovic/${MY_PN}"
|
||||
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
|
||||
# pypi tarball omits tests
|
||||
RESTRICT="test"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="dev-python/arpeggio[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
test? (
|
||||
dev-python/pytest[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
S=${WORKDIR}/${MY_P}
|
||||
|
||||
python_test() {
|
||||
py.test -v tests/functional || die "tests failed"
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue