Merge pull request 'feature/cleanup' (#53) from feature/cleanup into master
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: #53
This commit is contained in:
Manuel Friedli 2020-09-27 13:41:35 +02:00
commit 5e9373cc0c
27 changed files with 9 additions and 848 deletions

View file

@ -1,11 +0,0 @@
*Finance-Quote-1.490.0-r1 (07 Mar 2020)
07 Mar 2020; Manuel Friedli <manuel@fritteli.ch>
+Finance-Quote-1.490.0-r1.ebuild, -Finance-Quote-1.490.0.ebuild:
dev-perl/Finance-Quote: Update/fix dependencies.
*Finance-Quote-1.490.0 (07 Mar 2020)
07 Mar 2020; Manuel Friedli <manuel@fritteli.ch>
+Finance-Quote-1.490.0.ebuild, +metadata.xml:
dev-perl/Finance-Quote: Add version 1.490 that contains MorningstarCH.

View file

@ -1,67 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=ECOCODE
DIST_VERSION=1.49
DIST_EXAMPLES=( "Examples/*" )
inherit perl-module
DESCRIPTION="Get stock and mutual fund quotes from various exchanges"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
# virtual/perl-Data-Dumper currently commented out in the code
RDEPEND="
dev-perl/CGI
virtual/perl-Carp
dev-perl/DateTime
virtual/perl-Encode
virtual/perl-Exporter
dev-perl/HTML-Parser
dev-perl/HTML-TableExtract
dev-perl/HTML-Tree
dev-perl/HTTP-Cookies
dev-perl/HTTP-Message
dev-perl/JSON
dev-perl/JSON-Parse
dev-perl/LWP-Protocol-https
dev-perl/String-Util
dev-perl/Text-Template
dev-perl/libwww-perl
dev-perl/Mozilla-CA
virtual/perl-Time-Piece
dev-perl/URI
"
DEPEND="${RDEPEND}
virtual/perl-ExtUtils-MakeMaker
test? (
virtual/perl-Data-Dumper
virtual/perl-File-Spec
virtual/perl-Test-Simple
)
"
src_test() {
perl_rm_files t/01-pod.t t/02-pod-coverage.t t/03-kwalitee.t \
t/04-critic.t t/author-pod-syntax.t
if ! has network ${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}}; then
einfo "Disabling network tests without DIST_TEST_OVERRIDE=~network"
else
export ONLINE_TEST=1
fi
perl-module_src_test
}
mydoc=("Documentation/*")
src_install() {
dodoc -r htdocs
perl-module_src_install
}

View file

@ -1,4 +0,0 @@
DIST Finance-Quote-1.49.tar.gz 274659 BLAKE2B 1fb4523a576960b48b855807945ef79bb18f68c82c5cf8eece8dcea910c3bc2669dd07e635d74cd0a85639d9eff27337687faf5a4fc213bedde4ee720d6e6149 SHA512 5b4b8836e1529409f1f6aa41345bf906ba2cc1c1b44e89b59765a883cf0db082cef9df91a4eaa671e494f5e9a842c4e1fbfcc31e57964d74f7895f3e25c4d91c
EBUILD Finance-Quote-1.490.0-r1.ebuild 1392 BLAKE2B 712f08d90c4518cc5a47421bfe448118798256609f5be4333c8c8b6548330bfbfd484b64c172d799a3461460030c752699137157406cb68bc53f6d5a8b5be3a1 SHA512 280a7a6e37a6290d206397e39e4a1a9f154fc474b272873170f70935b73619494ea466f8da854ef704b1f3a6f9b6805ec4cee9be0425afed232cad58c241e854
MISC ChangeLog 421 BLAKE2B 5b4044e0ff847cba22254f5f3c3988bdf5c8df5d639ce330b0c2da798f8f8fd490a0b6850d5e48de78f16eb46d6bd5190af248de5688a00e18db102be1af8bfc SHA512 c249441554f6bb7e1691db250f93ac124d415285ad3423871e6bb5d9454f5582666a6b0ca4c0dc623f62da00805a232c3ea248f25cc17da0a5509658b2a6b313
MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>manuel@fritteli.ch</email>
<name>Manuel Friedli</name>
</maintainer>
</pkgmetadata>

View file

@ -1,5 +0,0 @@
*String-Util-1.260.0 (07 Mar 2020)
07 Mar 2020; Manuel Friedli <manuel@fritteli.ch> +String-Util-1.260.0.ebuild,
+metadata.xml:
dev-perl/String-Util: Add ebuild It's a dependency of dev-perl/Finance-Quote.

View file

@ -1,4 +0,0 @@
DIST String-Util-1.26.tar.gz 19212 BLAKE2B ab886d30f73ce8db220ae7cb4ac714195086b8a9767d5bda6bc956acee102851908d3ca90764f39c371945f9782b744d9384ff77517c2479bd1e143f971d96dd SHA512 27f4d9a36814695ca2123473f073577cc4ab31c0c1f9feccff8b9af0324c697df45efde981d638ed407521bb8348cf5512ebe1c9a5bfd5149df17b12014ed808
EBUILD String-Util-1.260.0.ebuild 381 BLAKE2B 84cd774ca44916a901e22fbba596049e8f1d8087e774f81ca6e0128d3ce8c1573290f59754e76e1eb3619d35060884c307f9a14ee2d01b1306af0f28861055a9 SHA512 2291e1289a005823603a0bed7d3fba1c2f29cd9803643744d37e1f033c5b80d50dc077195f4fcb5e3dc33a95e6c4aee4a14a64cbaa357ca1fbe2760ff2bd6cf3
MISC ChangeLog 214 BLAKE2B 0cdcdd310b5f9c9321f832ef2cf08a0ee26910d0351fa2f0fa3cf4426ab9175d2ab69bc7ee3637209889c98a67a2fd5e92a1bea366f5c67570511ad351d5e775 SHA512 ec9ec7b4f1fcacf302e1084db4e6c2bbd6d3c5d36eb82a95a99e533403e9563d1b6527ccd518c804f3a871094c625eaef5745d3e28c69ba6e33c540319d82bbb
MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2

View file

@ -1,17 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DIST_AUTHOR=MIKO
DIST_VERSION=1.26
inherit perl-module
DESCRIPTION="String::Util -- String processing utilities"
SLOT="0"
LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )" # Artistic or GPL1+
KEYWORDS="~amd64 ~arm ~x86 ~x86-solaris"
IUSE=""
DEPEND="dev-perl/Module-Build
"

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>manuel@fritteli.ch</email>
<name>Manuel Friedli</name>
</maintainer>
</pkgmetadata>

View file

@ -1,3 +1,8 @@
27 Sep 2020; Manuel Friedli <manuel@gentoo.org> -drone-1.2.3.ebuild,
-drone-1.5.1.ebuild, -files/drone-1.2.3.confd, -files/drone-1.2.3.initd,
-files/drone-1.5.1.confd, -files/drone-1.5.1.initd:
dev-util/drone: Purge old ebuilds.
25 Sep 2020; Manuel Friedli <manuel@gentoo.org> drone-1.9.1.ebuild, 25 Sep 2020; Manuel Friedli <manuel@gentoo.org> drone-1.9.1.ebuild,
files/drone.sh: files/drone.sh:
dev-util/drone: Handle all variables in config file generically. dev-util/drone: Handle all variables in config file generically.

View file

@ -1,12 +1,6 @@
AUX app.ini 1553 BLAKE2B a4e9d0aecb76d6e0150f74f98454a28923f7b2cac5a6e5a8ffb0411bbfcaab883c77f83e115946d328104023706c33a4d9c673a4752d0a007a57be5e64c81e07 SHA512 52cc76b5af4cfe7cf0167b40560e026d5611aace93b8fdb69bf5bcb33536dbc4fe544d7dea51604ec85473b04f1d0252f7fff62f9d6e186927dc4dec1a1d4e17 AUX app.ini 1553 BLAKE2B a4e9d0aecb76d6e0150f74f98454a28923f7b2cac5a6e5a8ffb0411bbfcaab883c77f83e115946d328104023706c33a4d9c673a4752d0a007a57be5e64c81e07 SHA512 52cc76b5af4cfe7cf0167b40560e026d5611aace93b8fdb69bf5bcb33536dbc4fe544d7dea51604ec85473b04f1d0252f7fff62f9d6e186927dc4dec1a1d4e17
AUX drone-1.2.3.confd 1272 BLAKE2B 9722097b271e1b688559d2fbcd0e91decc03deaf868e91c62fe26c88b4f72806fc0fd628f4b47750ff707904bd88c5223ae58f0360a1c563ffe7bb11e08446fc SHA512 3960d26f6fa41eb3c6e9ccc719ac6c6ff7508f72c82507b2b2d5a6e7b88ce894933ee24ea73f2bc3c1a4460d12db78877805369def378f7d1d499c498a7a4f50
AUX drone-1.2.3.initd 1893 BLAKE2B 341983efd9f7e40f702d78782f9d0bc29ca4e919057dde742a4d49291fea61af82b0e474232f83b361894925608919674c7620447743e7b1c4b4bca70db52997 SHA512 887984ae903f2b162cb43b8fb5b5019f742a1891208a3f3f54ef6681a32aa279bcf4b9c758dc7652abbfd245bc2af38c0c199ff90b4a88c6bc00d55942592df2
AUX drone-1.5.1.confd 1272 BLAKE2B 9722097b271e1b688559d2fbcd0e91decc03deaf868e91c62fe26c88b4f72806fc0fd628f4b47750ff707904bd88c5223ae58f0360a1c563ffe7bb11e08446fc SHA512 3960d26f6fa41eb3c6e9ccc719ac6c6ff7508f72c82507b2b2d5a6e7b88ce894933ee24ea73f2bc3c1a4460d12db78877805369def378f7d1d499c498a7a4f50
AUX drone-1.5.1.initd 1851 BLAKE2B b7b865575537f2c867140451301e7eccf9a49b28025d4e64c22a1d3c121db0438702a5541782355722523cd21dbcb02d464a1d85c0bb48c32b10343be8095977 SHA512 203ddc0bbc7538d1ece8c1db61808b41f86bef338aad49ffaa9d385a85f5c1c5c48cae3a9be0c5b48ddea1ff30e96ec0dca25de66b2359ec0d246eb7f274a8b1
AUX drone.service 662 BLAKE2B 32db6b3a5709534e3635dff717ffe4c8612febfd053cdd5fd372a8b6a3fd48afb023839610dcdaed637cf6aa4e5a36dcc0fec452aba3896a04bfdea2d06b4df7 SHA512 2bc4e5c0e503b01f7109de5e487a9b63a528ee2a9d82faf8cbb0f89c1d033f8c2dc85dca70a97039c1989caa980c7b60255f9003ab781d80d660ff5f39821c42 AUX drone.service 662 BLAKE2B 32db6b3a5709534e3635dff717ffe4c8612febfd053cdd5fd372a8b6a3fd48afb023839610dcdaed637cf6aa4e5a36dcc0fec452aba3896a04bfdea2d06b4df7 SHA512 2bc4e5c0e503b01f7109de5e487a9b63a528ee2a9d82faf8cbb0f89c1d033f8c2dc85dca70a97039c1989caa980c7b60255f9003ab781d80d660ff5f39821c42
AUX drone.sh 591 BLAKE2B 81b437ab72793c3cbc82d4a49300eee45d8faffb6ad06ad3bfb194e07c7cc466875a7dcd08138e7ec9073a53885a3c3d94c862bcfac6d2e82639ca9d657581d0 SHA512 0772bbc0f92301d808e19d2a19f2169cb34ce30fb5253fb40db6d2b69a3ac8a050a3366280fb66ea520afbd16a2882949ebeec53662ee323f2f1058a1339ffc1 AUX drone.sh 591 BLAKE2B 81b437ab72793c3cbc82d4a49300eee45d8faffb6ad06ad3bfb194e07c7cc466875a7dcd08138e7ec9073a53885a3c3d94c862bcfac6d2e82639ca9d657581d0 SHA512 0772bbc0f92301d808e19d2a19f2169cb34ce30fb5253fb40db6d2b69a3ac8a050a3366280fb66ea520afbd16a2882949ebeec53662ee323f2f1058a1339ffc1
EBUILD drone-1.2.3.ebuild 523 BLAKE2B 20ec727b9488eab0e2c9c7eabc6845ec9705ad3bdfb70803cefc52a4e85ca87f81d9089272c60e3ace8860eb5260e6348aae9f8b719c478e69dca8207d8323bc SHA512 b3ba803d16f6cc8acffcd19c96c993f502551ff0388bf0e5dc6b8c87f7a9389e3da5390de0ec326db617aea96344a46fcb7095bac17280185b61cce06bc6905f
EBUILD drone-1.5.1.ebuild 523 BLAKE2B 20ec727b9488eab0e2c9c7eabc6845ec9705ad3bdfb70803cefc52a4e85ca87f81d9089272c60e3ace8860eb5260e6348aae9f8b719c478e69dca8207d8323bc SHA512 b3ba803d16f6cc8acffcd19c96c993f502551ff0388bf0e5dc6b8c87f7a9389e3da5390de0ec326db617aea96344a46fcb7095bac17280185b61cce06bc6905f
EBUILD drone-1.9.1.ebuild 928 BLAKE2B 4f3e750dfd90c7ddbdb3b95170e17ba93b9944e264066b9bf5714a13494ee9e2707de04c1adf5568adc44f52e9c2435cc7587908274f2ab2a96a2cd280d019ac SHA512 fd4eeed82bb2414eedcec9607faa5f566278922161cb751c15a7b13a270cb3d872386b7978e95de962939a3e9a21ba091616d94782c6de4e58ec60c9bb872ad9 EBUILD drone-1.9.1.ebuild 928 BLAKE2B 4f3e750dfd90c7ddbdb3b95170e17ba93b9944e264066b9bf5714a13494ee9e2707de04c1adf5568adc44f52e9c2435cc7587908274f2ab2a96a2cd280d019ac SHA512 fd4eeed82bb2414eedcec9607faa5f566278922161cb751c15a7b13a270cb3d872386b7978e95de962939a3e9a21ba091616d94782c6de4e58ec60c9bb872ad9
MISC ChangeLog 1181 BLAKE2B 859c5070401bb193f10a9ab9cbcba93994a61ed0897c0d1416b15605ff4f8a879630a0909f90fb16dcab472ffe9c3ef206f275aad31bcdfd5335090ddd5a3c2e SHA512 b36d542bae9266e7f749e41faf6e6c7ccc5a960bb0c67a8153645ae34f87a80fefce5141e7efc9d5e9e3ddb879543037af96359f0784b7f15ab9b28424e8ddc1 MISC ChangeLog 1419 BLAKE2B 6ca3726c46020d390e28333fe68156c919b2d1eaf48224cac563dd43710e3f6175821f105125bb70cc43db383ec3ea9f056a67d8628ee413069dca63c8e953f1 SHA512 d7d6c29fa995801cbdb687523927e329a1c1254fbd701b1250eade97e5204d895d3c33978854b1eaa3cc5a9115902a1d2f35c545e1f45d30a1b0ca65773d6f98
MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2

View file

@ -1,26 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
DESCRIPTION="Drone CI - Automate Software Testing and Delivery"
HOMEPAGE="https://drone.io/"
#SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="sqlite mysql"
RESTRICT="mirror"
DEPEND=""
RDEPEND="app-emulation/docker
sqlite? ( dev-db/sqlite:3 )
mysql? ( dev-db/mysql )"
S="${WORKDIR}"
src_install() {
newconfd "${FILESDIR}"/"${P}.confd" "${PN}"
newinitd "${FILESDIR}"/"${P}.initd" "${PN}"
}

View file

@ -1,26 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
DESCRIPTION="Drone CI - Automate Software Testing and Delivery"
HOMEPAGE="https://drone.io/"
#SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="sqlite mysql"
RESTRICT="mirror"
DEPEND=""
RDEPEND="app-emulation/docker
sqlite? ( dev-db/sqlite:3 )
mysql? ( dev-db/mysql )"
S="${WORKDIR}"
src_install() {
newconfd "${FILESDIR}"/"${P}.confd" "${PN}"
newinitd "${FILESDIR}"/"${P}.initd" "${PN}"
}

View file

@ -1,39 +0,0 @@
# set this to the full hostname (including scheme) of your Gitea instance
DRONE_GITEA_SERVER=http://gitea.example.com/
# set this to the bare hostname of your Drone instance
DRONE_SERVER_HOST=drone.example.com
# set this to http or https, depending whether you intend to serve Drone over SSL or not
DRONE_SERVER_PROTO=https
# These values are obtained when registering Drone as an OAuth2 application in your Gitea instance
DRONE_GITEA_CLIENT_ID=
DRONE_GITEA_CLIENT_SECRET=
# The path to the docker socket
DOCKER_SOCKET=/var/run/docker.sock
# The path to the MySQL socket
# FIXME this must be done better, in a more generic way
MYSQL_SOCKET=/var/run/mysqld/mysqld.sock
# The full datasource path to your Drone database
DRONE_DATABASE_DATASOURCE=/data/drone.sqlite
# The database driver Drone should use (sqlite, mysql, ...)
DRONE_DATABASE_DRIVER=sqlite
# Number of agents that should be started concurrently on your Drone instance
DRONE_RUNNER_CAPACITY=2
# If logging in doesn't work, try setting this to true
DRONE_GIT_ALWAYS_AUTH=false
# Leave this false if you don't intend to use ACME/Letsencrypt
# FIXME really??
DRONE_TLS_AUTOCERT=false
# What port to public from your container. Format:
# <hostport>:<containerport>, e.g. 8080:80
DRONE_PUBLISH_PORT=80:80

View file

@ -1,63 +0,0 @@
#!/sbin/openrc-run
# Copyright 2016-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Drone CI - Automate software testing and delivery"
container_name_file=/var/run/drone-container.name
drone_version=1.2.3
: ${DRONE_GITEA_SERVER:=http://localhost/
: ${DRONE_SERVER_HOST:=localhost}
: ${DRONE_SERVER_PROTO:=https}
: ${DRONE_GITEA_CLIENT_ID:=}
: ${DRONE_GITEA_CLIENT_SECRET:=}
: ${DOCKER_SOCKET:=/var/run/docker.sock}
# fixme this must be done better, in a more generic way
: ${MYSQL_SOCKET:=/var/run/mysqld/mysqld.sock}
: ${DRONE_DATABASE_DATASOURCE:=/data/drone.sqlite}
: ${DRONE_DATABASE_DRIVER:=sqlite}
: ${DRONE_RUNNER_CAPACITY:=2}
: ${DRONE_GIT_ALWAYS_AUTH:=false}
: ${DRONE_TLS_AUTOCERT:=false}
: ${DRONE_PUBLISH_PORT:=80:80}
depend() {
need docker
after mysql
}
pre_start() {
docker pull drone/drone:${drone_version}
}
start() {
docker run \
--volume=${DOCKER_SOCKET}:${DOCKER_SOCKET} \
--volume=${MYSQL_SOCKET}:${MYSQL_SOCKET} \
--env=DRONE_GITEA_SERVER=${DRONE_GITEA_SERVER} \
--env=DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID} \
--env=DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET} \
--env=DRONE_GIT_ALWAYS_AUTH=${DRONE_GIT_ALWAYS_AUTH} \
--env=DRONE_RUNNER_CAPACITY=${DRONE_RUNNER_CAPACITY} \
--env=DRONE_SERVER_HOST=${DRONE_SERVER_HOST} \
--env=DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO} \
--env=DRONE_TLS_AUTOCERT=${DRONE_TLS_AUTOCERT} \
--env=DRONE_DATABASE_DATASOURCE="${DRONE_DATABASE_DATASOURCE}" \
--env=DRONE_DATABASE_DRIVER=${DRONE_DATABASE_DRIVER} \
--publish=${DRONE_PUBLISH_PORT} \
--restart=always \
--detach=true \
--name=drone \
drone/drone:${drone_version} \
> ${container_name_file}
}
stop() {
docker container stop $(cat ${container_name_file})
}
stop_post() {
docker container rm $(cat ${container_name_file})
rm ${container_name_file}
}

View file

@ -1,39 +0,0 @@
# set this to the full hostname (including scheme) of your Gitea instance
DRONE_GITEA_SERVER=http://gitea.example.com/
# set this to the bare hostname of your Drone instance
DRONE_SERVER_HOST=drone.example.com
# set this to http or https, depending whether you intend to serve Drone over SSL or not
DRONE_SERVER_PROTO=https
# These values are obtained when registering Drone as an OAuth2 application in your Gitea instance
DRONE_GITEA_CLIENT_ID=
DRONE_GITEA_CLIENT_SECRET=
# The path to the docker socket
DOCKER_SOCKET=/var/run/docker.sock
# The path to the MySQL socket
# FIXME this must be done better, in a more generic way
MYSQL_SOCKET=/var/run/mysqld/mysqld.sock
# The full datasource path to your Drone database
DRONE_DATABASE_DATASOURCE=/data/drone.sqlite
# The database driver Drone should use (sqlite, mysql, ...)
DRONE_DATABASE_DRIVER=sqlite
# Number of agents that should be started concurrently on your Drone instance
DRONE_RUNNER_CAPACITY=2
# If logging in doesn't work, try setting this to true
DRONE_GIT_ALWAYS_AUTH=false
# Leave this false if you don't intend to use ACME/Letsencrypt
# FIXME really??
DRONE_TLS_AUTOCERT=false
# What port to public from your container. Format:
# <hostport>:<containerport>, e.g. 8080:80
DRONE_PUBLISH_PORT=80:80

View file

@ -1,62 +0,0 @@
#!/sbin/openrc-run
# Copyright 2016-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
description="Drone CI - Automate software testing and delivery"
container_name_file=/var/run/drone-container.name
: ${DRONE_GITEA_SERVER:=http://localhost/
: ${DRONE_SERVER_HOST:=localhost}
: ${DRONE_SERVER_PROTO:=https}
: ${DRONE_GITEA_CLIENT_ID:=}
: ${DRONE_GITEA_CLIENT_SECRET:=}
: ${DOCKER_SOCKET:=/var/run/docker.sock}
# fixme this must be done better, in a more generic way
: ${MYSQL_SOCKET:=/var/run/mysqld/mysqld.sock}
: ${DRONE_DATABASE_DATASOURCE:=/data/drone.sqlite}
: ${DRONE_DATABASE_DRIVER:=sqlite}
: ${DRONE_RUNNER_CAPACITY:=2}
: ${DRONE_GIT_ALWAYS_AUTH:=false}
: ${DRONE_TLS_AUTOCERT:=false}
: ${DRONE_PUBLISH_PORT:=80:80}
depend() {
need docker
after mysql
}
pre_start() {
docker pull drone/drone:1.5.1
}
start() {
docker run \
--volume=${DOCKER_SOCKET}:${DOCKER_SOCKET} \
--volume=${MYSQL_SOCKET}:${MYSQL_SOCKET} \
--env=DRONE_GITEA_SERVER=${DRONE_GITEA_SERVER} \
--env=DRONE_GITEA_CLIENT_ID=${DRONE_GITEA_CLIENT_ID} \
--env=DRONE_GITEA_CLIENT_SECRET=${DRONE_GITEA_CLIENT_SECRET} \
--env=DRONE_GIT_ALWAYS_AUTH=${DRONE_GIT_ALWAYS_AUTH} \
--env=DRONE_RUNNER_CAPACITY=${DRONE_RUNNER_CAPACITY} \
--env=DRONE_SERVER_HOST=${DRONE_SERVER_HOST} \
--env=DRONE_SERVER_PROTO=${DRONE_SERVER_PROTO} \
--env=DRONE_TLS_AUTOCERT=${DRONE_TLS_AUTOCERT} \
--env=DRONE_DATABASE_DATASOURCE="${DRONE_DATABASE_DATASOURCE}" \
--env=DRONE_DATABASE_DRIVER=${DRONE_DATABASE_DRIVER} \
--publish=${DRONE_PUBLISH_PORT} \
--restart=always \
--detach=true \
--name=drone \
drone/drone:1.5.1 \
> ${container_name_file}
}
stop() {
docker container stop $(cat ${container_name_file})
}
stop_post() {
docker container rm $(cat ${container_name_file})
rm ${container_name_file}
}

View file

@ -1,3 +1,3 @@
EBUILD ankh-1.0.ebuild 1927 SHA256 60b5d44e7302186ffb55c0dfdba11af2ff04b75504a9911267b581ac5bd11b25 SHA512 53d5bc412de7506645c92c18749d82199277425f8198d22bdb450a7bebae6082b48fba916b8c32de024efb336ecc1d5f4daea9557924c13ddab731bc8308c1b4 WHIRLPOOL 10b9eca02ca1c96d9476db99a0afad8245a9ad3bd8be59eee82b838b92158768d6a01a78bd5f398b4370032333e7774341802d3f5e42e863c1fef22abdd2655b EBUILD ankh-1.0.ebuild 1927 BLAKE2B 8b30afbd5a74e47fb067f96be4baaf20216f4a1c3376a7a5e5cc4bf40de8a839c19d3d2c612c8047ce88b04c73bcba88a586dea887b481278def20ae7dcef0f2 SHA512 53d5bc412de7506645c92c18749d82199277425f8198d22bdb450a7bebae6082b48fba916b8c32de024efb336ecc1d5f4daea9557924c13ddab731bc8308c1b4
MISC ChangeLog 189 SHA256 55e545c9256a3d6f477972e28fbeedd98fb9d21b62540241ed5a85c4758ecf2c SHA512 bfdf37b496e51ed0d0f3117dbac657c66f8a2ee70c8656b40f611c7dcfd8943b8065b21faf2c69875c72a81c6dbbb481f55215667bcb3c3bd8847681224b9c25 WHIRLPOOL e2d72bd006be6ca6a84bfad1eb59d35e10eb4542957b8e4660b43bc273be4ca6053c7a7f2c3266363b7fa2a31e622adaa5548132b58af4dbfba3434b2dd0cb0f MISC ChangeLog 189 BLAKE2B d0bc4ce33f780ea9c8cc9cc3dd2c96434ec65aa54b5ff7fa76e1f3308b1850beb2686be5d188b58e35ecb2386ddcac5ef560e3311ccf459f859175b770010118 SHA512 bfdf37b496e51ed0d0f3117dbac657c66f8a2ee70c8656b40f611c7dcfd8943b8065b21faf2c69875c72a81c6dbbb481f55215667bcb3c3bd8847681224b9c25
MISC metadata.xml 248 SHA256 7b43be15755627edf5c12cf1b50c607d781558640bf8375d685d51d7ade99a32 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2 WHIRLPOOL 993013c9878ead35469db13d3072f694a341ee654182e0c31d0678f5dd6de4bdc8d59a0b7bb6d685dc41ea6b55dac518cd8034131baea8002170c680e50304d1 MISC metadata.xml 248 BLAKE2B cb50cad2c614a99daa2e236f9e0d0fab1ab20a898c0b0f0c28a1387820ab1f2b9dd4d396a3b38f732b493824f96a29ee5894e80e09dbd08dff62c1aaba3feaa0 SHA512 29f9b96b0a77546cce6a8bffd82fae2fd0939d32a7a05ffd0d91f9250a019a3ddaa599b93988c82daabb9c4c4b284dd947e2c47f6ca7727b8539cffa91bcb8c2

View file

@ -1,3 +0,0 @@
13 Jul 2018; <manuel@gentoo.org> ganglia-3.7.2.ebuild:
sys-cluster/ganglia: Add ebuild for ganglia-3.7.2 with a patch to use tirpc
instead of Sun RPC.

View file

@ -1,10 +0,0 @@
AUX 01-3.7.2-use-tirpc-instead-of-sunrpc.patch 6217 BLAKE2B 76c63d93c077673dc5de60787b39ee7a8326073ba12364d8be7efb206bb93a7d215676745b5ca37165118f739a1ec03fa39654c14545d32e6dc0cf7d387b8d2c SHA512 22bde7bb27322203ad2dbce919fc29a57fc1edfb62ae2babc34900f342af42a5c8ad977ff2bcb404e85f34a96d446765b1487be7407846236d835f39dc95d989
AUX gmetad-python.rc 618 BLAKE2B 476915bff06395d3451d256f4fef3d4a2aa96c866b9cae5227d19f60ecbffce0dc2e7f4513726564bff808ea3b2bd109ee8daff10975e9b1043f97733accc608 SHA512 1b23e84c453b0cd0aca8b340c9764adb79bccbc0b4a9574a1e5c7299bc8d497d30a2a56e9b855d3cda2664a856b404f4f6941b3feddbec889e45a59c92c05389
AUX gmetad.rc 352 BLAKE2B 68629711870d52a198ae474b77ab7828987c2ac19551243063272ec50c61c3e0b2d32a08633ff878e3319a80f9bbc111ac5e7507c88164ea4ddb8244a0b9e41f SHA512 865e1f8622ebcf1103f0cb72ebc2d675af01e9ea0861fd43107ac2bca10d9e86f875741ae4cc1dabf0eb231fd3f907066974d82b245f2746acbad0f7eafb46af
AUX gmetad.rc-2 480 BLAKE2B 9ebf71eca6c80aa5f5c776e292cc0ceee58103a30a7aad29e7430f766a58e6c58222113bc12bc7ddc74c4c3f6f5aaccc95ff7470321bbd3ccb87af1e704be7ae SHA512 37678fe9b52ce7c6ef38bcc764189ed26e10410567ac9a8608460ac3eab380c70ac91453ed425ffef8d6e86ff6ef609e0167f5bb04a2aa9318725527d31391fa
AUX gmond.rc 346 BLAKE2B 8930fe96692c100de0feed00fbe1d5f39c3d6f9679f88ef0326b1c6b7cf6408ddba2d909027577299f5d063f765f9c9ddb26c96b0582b79b50f528ac2bffaba2 SHA512 0d1d4da1bfc2c20ae741fb9a7ee2e649780254029c50fee866f1fffdb55fddbd61ea3ead6670d7a65489d780990e24c6743c14bc1a4a7040b84972f4884629ca
AUX gmond.rc-2 473 BLAKE2B 461d0b481f2138dcab8f7202a880354740b71f91e41ad2152a3465daf8072e6243fcc5f27ee215aa079dad30546e06146c01be71e85f518974cd9c479549ff34 SHA512 bbb5e3c525137aa2072bd46d28473523498895eba70c8dad1209230ea5e7f44ddc09875b5b6065fd5351d89ed0ad574a94fe0debcbe1d3a51e2541715adb4240
DIST ganglia-3.7.2.tar.gz 1302320 BLAKE2B aee647d6ec4b2852536769773dd54d7a7e9ca33c05de4316172d530aee549207bdfa59f25e8fe456ae4c01a1af9eca3846f30242c64e7d9fe393687a7203eb12 SHA512 a88955e59421a447e5752a9bfe5f599d989a7a5a0141141ab3601d1ab250be4eebbede8bcef8baa151b2f9deaf3f56e30aef8ea709f3cc820a79fa3d3961e0df
EBUILD ganglia-3.7.2.ebuild 3041 BLAKE2B 0aa4dd49dcb9e10120717302ff4f9e09b2e8e9c0fd17021294ed5fcd163b9c69f4df99dd7d542819013d156c23dd40375f040acb6f71e9138f093731b73907ca SHA512 3717a4c024f1dfbb570a81a583c8dba91388abbffc5af82738739fcfeccc499b3448e335e1a313ca142cf8e9d02424fe8b8665454ea1d2b18bae8cbe6672bc85
MISC ChangeLog 160 BLAKE2B 02ff265a6eabc64f9d83e5c44245d2bd6bab4213db9dd94e13c4ec5a5ed6e56f5d52a876e68a680236cc23d35e6f232cd67a9d662f72262666965c93eca9f767 SHA512 a5cf7c24754de83ba6852ce6e4a603c137bb390c02118e9afa98305e6e50ab8287e27c1d202cf7da10e2daee01785fa552e83327fbef0d154617d7511bfabb4a
MISC metadata.xml 325 BLAKE2B 71ac60956aa877d76ec897fa1c07082c2b0d8d18db7e9d17248e3c730def736b5a70ffdf371d0d4d38aba338efc0689d5cb24dd08c084934e4d23914da48fc4f SHA512 c3cc85ba47cd58ccba2a511b1bcdac2de4cd40b69bc005935291c9394bde3ed55ce14d57d0c3ab0bc188b5116192f0851cb1be3e4eaeb190555e50920fcdb4fb

View file

@ -1,182 +0,0 @@
diff --git a/Makefile.am b/Makefile.am
index 95d0807..105222b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -9,7 +9,7 @@ GMETAD_SUBDIR =
endif
EXTRA_SUBDIRS = "gmetad-python contrib solaris"
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
AUTOMAKE_OPTIONS = dist-bzip2 dist-tarZ dist-zip
ACLOCAL_AMFLAGS = -I m4
diff --git a/configure.ac b/configure.ac
index fe7983b..597f0ca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -606,13 +606,12 @@ AC_CHECK_HEADER([sys/mount.h], [], [],
#endif
])
-AC_CHECK_HEADERS(rpc/types.h)
-AC_CHECK_HEADER([rpc/xdr.h], [],
- [AC_MSG_ERROR([your system is missing the Sun RPC (ONC/RPC) libraries])],
-[#ifdef HAVE_RPC_TYPES_H
-# include <rpc/types.h>
-#endif
-])
+dnl ##################################################################
+dnl Checks for TIRPC
+PKG_CHECK_MODULES([TIRPC],[libtirpc])
+LDFLAGS="$LDFLAGS $TIRPC_LIBS"
+TIRPC_INCLUDES="$TIRPC_CFLAGS"
+AC_SUBST(TIRPC_INCLUDES)
dnl ##################################################################
dnl Checks for typedefs.
diff --git a/gmetad/Makefile.am b/gmetad/Makefile.am
index 0a4e360..874d448 100644
--- a/gmetad/Makefile.am
+++ b/gmetad/Makefile.am
@@ -11,7 +11,7 @@ GLDADD =
GLDFLAGS =
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
AM_CFLAGS = -I$(top_builddir)/lib -I$(top_builddir)/gmond -I$(top_builddir)/libmetrics -I$(top_builddir)/include $(GCFLAGS) @PROTOBUF_C_CFLAGS@
sbin_PROGRAMS = gmetad
diff --git a/gmetric/Makefile.am b/gmetric/Makefile.am
index bc7807c..d9bf585 100644
--- a/gmetric/Makefile.am
+++ b/gmetric/Makefile.am
@@ -10,7 +10,7 @@ GLDADD =
GLDFLAGS =
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
AM_CFLAGS = -I../lib -I../include $(GCFLAGS)
diff --git a/gmond/Makefile.am b/gmond/Makefile.am
index 256fee3..d6f5f07 100644
--- a/gmond/Makefile.am
+++ b/gmond/Makefile.am
@@ -44,7 +44,7 @@ if BUILD_SFLOW
GCFLAGS += -DSFLOW
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
AM_CFLAGS = -I$(top_builddir)/lib -I$(top_builddir)/include/ -I$(top_builddir)/libmetrics $(GCFLAGS)
sbin_PROGRAMS = gmond
diff --git a/gmond/modules/cpu/Makefile.am b/gmond/modules/cpu/Makefile.am
index fd7457e..99ddb83 100644
--- a/gmond/modules/cpu/Makefile.am
+++ b/gmond/modules/cpu/Makefile.am
@@ -25,4 +25,4 @@ modload_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
diff --git a/gmond/modules/disk/Makefile.am b/gmond/modules/disk/Makefile.am
index 0c78689..2f5a2f0 100644
--- a/gmond/modules/disk/Makefile.am
+++ b/gmond/modules/disk/Makefile.am
@@ -11,4 +11,4 @@ moddisk_la_LDFLAGS = -module -avoid-version
moddisk_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
diff --git a/gmond/modules/example/Makefile.am b/gmond/modules/example/Makefile.am
index e3bff6a..18b4e3b 100644
--- a/gmond/modules/example/Makefile.am
+++ b/gmond/modules/example/Makefile.am
@@ -11,7 +11,7 @@ modexample_la_LDFLAGS = -module -avoid-version
EXTRA_DIST = ../conf.d/example.conf
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
install:
@echo
diff --git a/gmond/modules/memory/Makefile.am b/gmond/modules/memory/Makefile.am
index 82336db..06ad430 100644
--- a/gmond/modules/memory/Makefile.am
+++ b/gmond/modules/memory/Makefile.am
@@ -12,4 +12,4 @@ modmem_la_LDFLAGS = -module -avoid-version
modmem_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
diff --git a/gmond/modules/network/Makefile.am b/gmond/modules/network/Makefile.am
index 72a4faf..c370d88 100644
--- a/gmond/modules/network/Makefile.am
+++ b/gmond/modules/network/Makefile.am
@@ -12,4 +12,4 @@ modnet_la_LDFLAGS = -module -avoid-version
modnet_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
diff --git a/gmond/modules/perl/Makefile.am b/gmond/modules/perl/Makefile.am
index b7b095c..f1d0fb9 100644
--- a/gmond/modules/perl/Makefile.am
+++ b/gmond/modules/perl/Makefile.am
@@ -28,4 +28,4 @@ install-exec-hook: ../conf.d/modperl.conf README
mkdir -p $(DESTDIR)$(sysconfdir)/conf.d && \
$(INSTALL_DATA) ../conf.d/modperl.conf $(DESTDIR)$(sysconfdir)/conf.d/modperl.conf
-INCLUDES = @APR_INCLUDES@ @PERL_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @PERL_INCLUDES@ @TIRPC_INCLUDES@
diff --git a/gmond/modules/python/Makefile.am b/gmond/modules/python/Makefile.am
index f535b07..c8fcac0 100644
--- a/gmond/modules/python/Makefile.am
+++ b/gmond/modules/python/Makefile.am
@@ -27,4 +27,4 @@ install-exec-hook: ../conf.d/modpython.conf README
mkdir -p $(DESTDIR)$(sysconfdir)/conf.d && \
$(INSTALL_DATA) ../conf.d/modpython.conf $(DESTDIR)$(sysconfdir)/conf.d/modpython.conf
-INCLUDES = @APR_INCLUDES@ @PYTHON_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @PYTHON_INCLUDES@ @TIRPC_INCLUDES@
diff --git a/gmond/modules/status/Makefile.am b/gmond/modules/status/Makefile.am
index cd84069..53968fd 100644
--- a/gmond/modules/status/Makefile.am
+++ b/gmond/modules/status/Makefile.am
@@ -11,4 +11,4 @@ modgstatus_la_LDFLAGS = -module -avoid-version
EXTRA_DIST = ../conf.d/modgstatus.conf
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
diff --git a/gmond/modules/system/Makefile.am b/gmond/modules/system/Makefile.am
index 5fc7fb3..566469e 100644
--- a/gmond/modules/system/Makefile.am
+++ b/gmond/modules/system/Makefile.am
@@ -16,4 +16,4 @@ modsys_la_LDFLAGS = -module -avoid-version
modsys_la_LIBADD = $(top_builddir)/libmetrics/libmetrics.la
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 935c514..6e0499f 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -14,7 +14,7 @@ if BUILD_SFLOW
GCFLAGS += -DSFLOW
endif
-INCLUDES = @APR_INCLUDES@
+INCLUDES = @APR_INCLUDES@ @TIRPC_INCLUDES@
AM_CFLAGS = -I.. -I. -I$(top_builddir)/include/ $(GCFLAGS) -DSYSCONFDIR='"$(sysconfdir)"'
include_HEADERS = gm_protocol.h

View file

@ -1,30 +0,0 @@
#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
PIDFILE=/var/run/gmetad-python.pid
depend() {
need net
after ntp-client ntpd
}
start() {
ebegin "Starting GANGLIA gmetad-python: "
start-stop-daemon \
--start --quiet \
--exec /usr/bin/gmetad.py \
--pidfile ${PIDFILE} \
-- \
-p ${PIDFILE}
eend $? "Failed to start gmetad-python"
}
stop() {
ebegin "Shutting down GANGLIA gmetad-python: "
start-stop-daemon \
--stop --quiet \
--pidfile ${PIDFILE} \
--exec /usr/bin/gmetad.py
eend $? "Failed to stop gmetad-python"
}

View file

@ -1,18 +0,0 @@
#!/sbin/openrc-run
depend() {
need net
after ntp-client ntpd
}
start() {
ebegin "Starting GANGLIA gmetad: "
start-stop-daemon --start --quiet --exec /usr/sbin/gmetad
eend $? "Failed to start gmetad"
}
stop() {
ebegin "Shutting down GANGLIA gmetad: "
start-stop-daemon --stop --quiet --exec /usr/sbin/gmetad
eend $? "Failed to stop gmetad"
}

View file

@ -1,28 +0,0 @@
#!/sbin/openrc-run
PIDFILE=/var/run/gmetad.pid
depend() {
need net
after ntp-client ntpd
}
start() {
ebegin "Starting GANGLIA gmetad: "
start-stop-daemon \
--start --quiet \
--exec /usr/sbin/gmetad \
--pidfile ${PIDFILE} \
-- \
--pid-file=${PIDFILE}
eend $? "Failed to start gmetad"
}
stop() {
ebegin "Shutting down GANGLIA gmetad: "
start-stop-daemon \
--stop --quiet \
--pidfile ${PIDFILE} \
--exec /usr/sbin/gmetad
eend $? "Failed to stop gmetad"
}

View file

@ -1,18 +0,0 @@
#!/sbin/openrc-run
depend() {
need net
after ntp-client ntpd
}
start() {
ebegin "Starting GANGLIA gmond: "
start-stop-daemon --start --quiet --exec /usr/sbin/gmond
eend $? "Failed to start gmond"
}
stop() {
ebegin "Shutting down GANGLIA gmond: "
start-stop-daemon --stop --quiet --exec /usr/sbin/gmond
eend $? "Failed to stop gmond"
}

View file

@ -1,28 +0,0 @@
#!/sbin/openrc-run
PIDFILE=/var/run/gmond.pid
depend() {
need net
after ntp-client ntpd
}
start() {
ebegin "Starting GANGLIA gmond: "
start-stop-daemon \
--start --quiet \
--exec /usr/sbin/gmond \
--pidfile ${PIDFILE} \
-- \
--pid-file=${PIDFILE}
eend $? "Failed to start gmond"
}
stop() {
ebegin "Shutting down GANGLIA gmond: "
start-stop-daemon \
--stop --quiet \
--pidfile ${PIDFILE} \
--exec /usr/sbin/gmond
eend $? "Failed to stop gmond"
}

View file

@ -1,131 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
PYTHON_COMPAT=( python2_7 )
DISTUTILS_OPTIONAL=1
inherit autotools distutils-r1 eutils multilib systemd
DESCRIPTION="A scalable distributed monitoring system for clusters and grids"
HOMEPAGE="http://ganglia.sourceforge.net/"
SRC_URI="mirror://sourceforge/ganglia/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="minimal pcre python examples"
DEPEND="dev-libs/confuse
dev-libs/expat
>=dev-libs/apr-1.0
net-libs/libnsl:0=
net-libs/libtirpc
!dev-db/firebird
pcre? ( dev-libs/libpcre )
python? ( ${PYTHON_DEPS} )"
RDEPEND="
${DEPEND}
!minimal? ( net-analyzer/rrdtool )"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
src_prepare() {
epatch "${FILESDIR}/01-${PV}-use-tirpc-instead-of-sunrpc.patch"
if use python && ! use minimal; then
pushd gmetad-python >/dev/null || die
distutils-r1_src_prepare
popd >/dev/null || die
fi
eautoreconf
}
src_configure() {
if use python; then
python_setup
fi
econf \
--with-systemdsystemunitdir=$(systemd_get_unitdir) \
--enable-gexec \
--sysconfdir="${EPREFIX}"/etc/${PN} \
--enable-static=no \
$(use_enable python) \
$(use_with pcre libpcre) \
$(use_with !minimal gmetad)
}
src_compile() {
default_src_compile
if use python && ! use minimal; then
pushd gmetad-python >/dev/null || die
distutils-r1_src_compile
popd >/dev/null || die
fi
}
src_install() {
local exdir=/usr/share/doc/${P}
emake DESTDIR="${D}" install || die
newinitd "${FILESDIR}"/gmond.rc-2 gmond
doman {mans/*.1,gmond/*.5} || die "Failed to install manpages"
dodoc AUTHORS INSTALL NEWS README || die
dodir /etc/ganglia/conf.d
use python && dodir /usr/$(get_libdir)/ganglia/python_modules
gmond/gmond -t > "${ED}"/etc/ganglia/gmond.conf
if use examples; then
insinto ${exdir}/cmod-examples
doins gmond/modules/example/*.c
if use python; then
# Installing as an examples per upstream.
insinto ${exdir}/pymod-examples
doins gmond/python_modules/*/*.py
insinto ${exdir}/pymod-examples/conf.d
doins gmond/python_modules/conf.d/*.pyconf
fi
fi
if ! use minimal; then
insinto /etc/ganglia
doins gmetad/gmetad.conf
doman mans/gmetad.1
newinitd "${FILESDIR}"/gmetad.rc-2 gmetad
keepdir /var/lib/ganglia/rrds
fowners nobody:nobody /var/lib/ganglia/rrds
if use python; then
pushd gmetad-python >/dev/null || die
distutils-r1_src_install
popd >/dev/null || die
newinitd "${FILESDIR}"/gmetad-python.rc gmetad-python
fi
fi
}
src_test() {
default_src_test
if use python && ! use minimal; then
pushd gmetad-python >/dev/null || die
distutils-r1_src_test
popd >/dev/null || die
fi
}
pkg_postinst() {
elog "A default configuration file for gmond has been generated"
elog "for you as a template by running:"
elog " /usr/sbin/gmond -t > /etc/ganglia/gmond.conf"
elog "The web frontend for Ganglia has been split off. Emerge"
elog "sys-cluster/ganglia-web if you need it."
}

View file

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>manuel@fritteli.ch</email>
<name>Manuel Friedli</name>
</maintainer>
<upstream>
<remote-id type="sourceforge">ganglia</remote-id>
</upstream>
</pkgmetadata>