Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-metrics/nginx-lua-prometheus/
Date: Wed, 09 Jan 2019 22:57:50
Message-Id: 1547074653.98fac23725eaa9eedda6749d55405a6352b4c37c.williamh@gentoo
1 commit: 98fac23725eaa9eedda6749d55405a6352b4c37c
2 Author: William Hubbs <william.hubbs <AT> sony <DOT> com>
3 AuthorDate: Wed Jan 9 22:56:20 2019 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 9 22:57:33 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=98fac237
7
8 app-metrics/nginx-lua-prometheus: library to export nginx metrics to prometheus
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.51, Repoman-2.3.12
12 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
13
14 app-metrics/nginx-lua-prometheus/Manifest | 1 +
15 app-metrics/nginx-lua-prometheus/metadata.xml | 8 ++++++
16 .../nginx-lua-prometheus-0.1_pre20170610.ebuild | 33 ++++++++++++++++++++++
17 3 files changed, 42 insertions(+)
18
19 diff --git a/app-metrics/nginx-lua-prometheus/Manifest b/app-metrics/nginx-lua-prometheus/Manifest
20 new file mode 100644
21 index 00000000000..71476dd467f
22 --- /dev/null
23 +++ b/app-metrics/nginx-lua-prometheus/Manifest
24 @@ -0,0 +1 @@
25 +DIST nginx-lua-prometheus-0.1_pre20170610.tar.gz 10307 BLAKE2B b08fcb126a6d7034c143c7e96709f3f2751d90f60f6b9225f55ed46f7f211ebcf5f1688bd8b2c82286e329dd23e09a5163ad316ba6568755936253e8e55590f1 SHA512 df1022a88e82e388e68146f81e51a53f9b0c1a14a43d58e468d258ac0ca9875c1c88af44c46c91d89dc7fc1fef0ffebdb9163f886d85fde995e61e2cac3b5c81
26
27 diff --git a/app-metrics/nginx-lua-prometheus/metadata.xml b/app-metrics/nginx-lua-prometheus/metadata.xml
28 new file mode 100644
29 index 00000000000..c36c37139fa
30 --- /dev/null
31 +++ b/app-metrics/nginx-lua-prometheus/metadata.xml
32 @@ -0,0 +1,8 @@
33 +<?xml version="1.0" encoding="UTF-8"?>
34 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
35 +<pkgmetadata>
36 + <maintainer type="person">
37 + <email>williamh@g.o</email>
38 + <name>William Hubbs</name>
39 + </maintainer>
40 +</pkgmetadata>
41
42 diff --git a/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610.ebuild b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610.ebuild
43 new file mode 100644
44 index 00000000000..b8af9afe146
45 --- /dev/null
46 +++ b/app-metrics/nginx-lua-prometheus/nginx-lua-prometheus-0.1_pre20170610.ebuild
47 @@ -0,0 +1,33 @@
48 +# Copyright 2019 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +EAPI=7
52 +
53 +# This is the upstream tag which corresponds to this release.
54 +# It needs to be updated with every bump.
55 +TAG="0.1-20170610"
56 +
57 +inherit toolchain-funcs
58 +
59 +DESCRIPTION="Library that exports Nginx metrics to Prometheus"
60 +HOMEPAGE="https://github.com/knyar/nginx-lua-prometheus"
61 +SRC_URI="https://github.com/knyar/${PN}/archive/${TAG}.tar.gz -> ${P}.tar.gz"
62 +
63 +LICENSE="MIT"
64 +SLOT="0"
65 +KEYWORDS="~amd64"
66 +
67 +COMMON_DEPEND=">=dev-lang/lua-5.1:="
68 +DEPEND="${COMMON_DEPEND}"
69 +RDEPEND="${COMMON_DEPEND}
70 + www-servers/nginx[nginx_modules_http_lua]"
71 +BDEPEND="${COMMON_DEPEND}
72 + virtual/pkgconfig"
73 +
74 + S="${WORKDIR}/${PN}-${TAG}"
75 +
76 +src_install() {
77 + insinto "$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)"/${PN}
78 + doins prometheus.lua
79 + dodoc *.md
80 +}