diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-01-13 06:19:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-01-13 06:19:51 +0000 |
commit | 8be70107efbb417f839292165ee39d07a062046f (patch) | |
tree | 013918887ec4a00f0cefdb4b4d1313cbc3054305 /net-analyzer | |
parent | 343a7272d559a21a0e0ed13cb743fabb2bfcc479 (diff) |
gentoo resync : 13.01.2018
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/Manifest.gz | bin | 49468 -> 49476 bytes | |||
-rw-r--r-- | net-analyzer/linkchecker/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/linkchecker/files/linkchecker-9.3.1-requests.patch | 46 | ||||
-rw-r--r-- | net-analyzer/linkchecker/linkchecker-9.3.1-r1.ebuild (renamed from net-analyzer/linkchecker/linkchecker-9.3.1.ebuild) | 5 | ||||
-rw-r--r-- | net-analyzer/netcat/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/netcat/netcat-110.20180111.ebuild | 52 | ||||
-rw-r--r-- | net-analyzer/prometheus/Manifest | 7 | ||||
-rw-r--r-- | net-analyzer/prometheus/files/prometheus-3.initd | 11 | ||||
-rw-r--r-- | net-analyzer/prometheus/files/prometheus.initd | 19 | ||||
-rw-r--r-- | net-analyzer/prometheus/prometheus-1.8.2.ebuild | 59 | ||||
-rw-r--r-- | net-analyzer/prometheus/prometheus-2.0.0-r1.ebuild (renamed from net-analyzer/prometheus/prometheus-2.0.0.ebuild) | 2 |
11 files changed, 118 insertions, 88 deletions
diff --git a/net-analyzer/Manifest.gz b/net-analyzer/Manifest.gz Binary files differindex 5673f1cd3c91..884da13749cf 100644 --- a/net-analyzer/Manifest.gz +++ b/net-analyzer/Manifest.gz diff --git a/net-analyzer/linkchecker/Manifest b/net-analyzer/linkchecker/Manifest index 94af727d4f47..172d94af3c6b 100644 --- a/net-analyzer/linkchecker/Manifest +++ b/net-analyzer/linkchecker/Manifest @@ -3,9 +3,10 @@ AUX linkchecker-9.3-bash-completion.patch 621 BLAKE2B bce120caf1cddcd11e49c06b5c AUX linkchecker-9.3-desktop.patch 1783 BLAKE2B 8735cdb6e486ad292cbbf397c59e57a33bd7fee4058250766deaf0c7039b76020e10aa7972a7e780726671c0346015a20ed502ac8a6a4172043d17d2e35fa313 SHA512 4100c7844548a7894157cf884ed3093e3cb4d11cad33bda605ce1328e7214fb40a229935716a1775978bfe96c87413b52fca4783d7a167027736a1284b8d39b0 AUX linkchecker-9.3-requests-check.patch 1538 BLAKE2B a24a8471d5b42c07afaf17611860b10c001cfb2a2282219f70389bbdb18111901feefc2c73683f4661aa80311565d0bb4c0b2239140c944b617beb86df164988 SHA512 3ba20f160aa27a611d92ad5b6a31f134b64f52644ad1ac73d41dd7ea77fa3b5d743f3fd51cf5f6d4f3229ec27cfb0758d1d4c87dd14c95ab83c0af54236d5d96 AUX linkchecker-9.3.1-build-fix.patch 450 BLAKE2B 176f2617c0e2285473d500b351a918d9a48ef631662f6ecbfe7abe8ac37a6a8fd0406838193f068c42a9baeb09d9630e70aa518f51e480dfc3dc0c8ae17d6e9a SHA512 47c30bb1e2724ec96ca0c5223dce4ab0c79e30752be799498e84ff5953f78d9495265f59635a337690d28e6d44740296d9771c342cee6a88b30fe46bf2c58952 +AUX linkchecker-9.3.1-requests.patch 1870 BLAKE2B 6ac551b151b805f373b2bccf6d47e08158e85c894721c640d8d1701e177e52a4bd780b0b195503bf0e8e3709175f1ec73c8f7e24dd578aa63846cfd17b851e47 SHA512 fbfd999cdb48628bb3ce14bca2f114e104a69c0355a00c9b81a543c5ac10a8bec0ab71dcbbefc81bc8f468a7e17a9a89dcd5d795ce565b9452131ac2ee6e5fe3 DIST LinkChecker-9.3.tar.gz 719896 BLAKE2B f0fb43d320c0d82d5cb8fdc277e74c820501d602fd5ea0004155db8fa9b27976c0fcd5af23eb2ceda21315b94c13ac1d5aed5507555889f16b6b47a92a8c18d8 SHA512 26686e5373aaa942b631b5184f8bda8fbe1410c8875bf8499a2b61dc18b7bdfa29a3c18edf98c28dc189a493a3f5794a0020a0211b7d5d3814b33994603dcc59 DIST linkchecker-9.3.1.tar.gz 779286 BLAKE2B eec374a3455b5348533b29b03ab14558dd19a20e1058947eed9d8027a8b1705b63525e6b8fcf2c4feb59a782ca0e0ad8567e321ca4679320e9d6f256e14df990 SHA512 355c9d262502e123732807b5aaabc17060d267de44a6dc1fee9dd6655c56320ded0c1ff638d985c2dbec366d15803cfb78fae4c1a9943de11c5b4292f5a99305 EBUILD linkchecker-9.3-r2.ebuild 2016 BLAKE2B 735b62d47111032c2a2e1530f542516588d17752381741124f52a22b83c55179119f3b7775effee058ff4ae01279f32ad74a49c298fc729d843b0b8799703631 SHA512 daba5c569f2be5f22df9a7c8330a47cdb8aade0329e90ac682aef133fa0b69e2315bb0aaa6470327595c4d9c61f586c65263279890c3f79d710fa9b3e962d3b5 -EBUILD linkchecker-9.3.1.ebuild 1907 BLAKE2B ded9b7c575996ad738102498ad0f2804b1953e46512113448c7fd61b541f8dd8d044ae815f7faa04f6820e3823f0309f6e7fa9a947629616f87e9b6f17718970 SHA512 6dbd7a7a64d5f7898ec1bd77be1e2c1cc804ae0b84e468e5b124271584d8e948ce57de9b6812f1965f48ffcc89c5b188c6a96d7b152b45ad5e0a3f44e32031b3 +EBUILD linkchecker-9.3.1-r1.ebuild 1942 BLAKE2B de9f519af202980a5d954d7a33301677594e4bcc183d0362b2ddef0eee830df433354d1000f827f68e0300034ab778bd56a3b7079a044cd46c6ee7d9dec1e994 SHA512 03d33e0203aeb0c36d39caab3456c599a281898acb3cb35e2a69723c39ae38bf2048f8e26643eb06b2b16443cdea3e9f26a1907190520537f79421af42643c88 EBUILD linkchecker-9999.ebuild 1873 BLAKE2B d1afdc7f039b7eb2ffb83138e3d20ad7ed88c3d71d5c8e6cd482d578ab45b8860ef97fca67a8a5500f7a28cebfdc61c372cdbd3b30931ea460bcf0e7be3d85c0 SHA512 7857c356f300001bb66978ec65a006f19f334047723b152f62a83c9a219f69120c5e23f285d8884948f57ac5289767b48f551b513aa01569a340988bb1804670 MISC metadata.xml 319 BLAKE2B dbf67b67a9a9a65ff108e9ee4c5881023a53533d9bbeee71e9ba1a55658f2a746b408859515f593ce2ef0fd93f938fbb17c5c7a70fa48eda4be977634d11e7c5 SHA512 2fbc3b85bcfd178e2614ef73d55c633e6e3b5ee59d39ca0a6099ffd7e8067e890f69252666d8d6d9a173371d95c4b1fbb8157cb94fd307ee20672fb9ff4182fb diff --git a/net-analyzer/linkchecker/files/linkchecker-9.3.1-requests.patch b/net-analyzer/linkchecker/files/linkchecker-9.3.1-requests.patch new file mode 100644 index 000000000000..56c57fa37997 --- /dev/null +++ b/net-analyzer/linkchecker/files/linkchecker-9.3.1-requests.patch @@ -0,0 +1,46 @@ +From 9b12b5d66fa9b832f4d9e19a0b9dcb92607ee3e5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Antoine=20Beaupr=C3=A9?= <anarcat@debian.org> +Date: Mon, 2 Oct 2017 20:18:54 -0400 +Subject: [PATCH] workaround new limitation in requests + +newer requests do not expose the internal SSL socket object so we +cannot verify certificates. there was work to allow custom +verification routines which we could use, but this never finished: + +https://github.com/shazow/urllib3/pull/257 + +so right now, just treat missing socket information as if the cert was +missing. + +Closes: #76 +--- + linkcheck/checker/httpurl.py | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/linkcheck/checker/httpurl.py b/linkcheck/checker/httpurl.py +index 161619c5..bde77c70 100644 +--- a/linkcheck/checker/httpurl.py ++++ b/linkcheck/checker/httpurl.py +@@ -194,6 +194,10 @@ def _get_ssl_sock(self): + """Get raw SSL socket.""" + assert self.scheme == u"https", self + raw_connection = self.url_connection.raw._connection ++ if not raw_connection: ++ # this happens with newer requests versions: ++ # https://github.com/linkcheck/linkchecker/issues/76 ++ return None + if raw_connection.sock is None: + # sometimes the socket is not yet connected + # see https://github.com/kennethreitz/requests/issues/1966 +@@ -204,7 +208,10 @@ def _add_ssl_info(self): + """Add SSL cipher info.""" + if self.scheme == u'https': + sock = self._get_ssl_sock() +- if hasattr(sock, 'cipher'): ++ if not sock: ++ log.debug(LOG_CHECK, "cannot extract SSL certificate from connection") ++ self.ssl_cert = None ++ elif hasattr(sock, 'cipher'): + self.ssl_cert = sock.getpeercert() + else: + # using pyopenssl diff --git a/net-analyzer/linkchecker/linkchecker-9.3.1.ebuild b/net-analyzer/linkchecker/linkchecker-9.3.1-r1.ebuild index 512db84e331a..109499f785bb 100644 --- a/net-analyzer/linkchecker/linkchecker-9.3.1.ebuild +++ b/net-analyzer/linkchecker/linkchecker-9.3.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -19,7 +19,7 @@ IUSE="gnome sqlite X" RDEPEND=" virtual/python-dnspython[${PYTHON_USEDEP}] - <dev-python/requests-2.15.0[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] gnome? ( dev-python/pygtk:2[${PYTHON_USEDEP}] ) X? ( dev-python/PyQt4[X,help,${PYTHON_USEDEP}] @@ -39,6 +39,7 @@ python_prepare_all() { "${FILESDIR}/${PN}-9.3-bash-completion.patch" "${FILESDIR}/${PN}-9.3-desktop.patch" "${FILESDIR}/${PN}-9.3.1-build-fix.patch" + "${FILESDIR}/${PN}-9.3.1-requests.patch" ) distutils-r1_python_prepare_all diff --git a/net-analyzer/netcat/Manifest b/net-analyzer/netcat/Manifest index 28a69785ebeb..d82e6b1c44da 100644 --- a/net-analyzer/netcat/Manifest +++ b/net-analyzer/netcat/Manifest @@ -1,5 +1,7 @@ DIST nc-v6-20000918.patch.gz 8740 BLAKE2B 56274ee32a77f335c31b5593ae92afdb1758ee02bec2b06eb8e06c2cdf856af26f568be7caf287f248909f9b519f9dc77c78623337024d8c1afc770307187cac SHA512 56326fc7c40ea676173f150842367ea1782e700de682d790bb0f2c0df86e72a30f4c3ea0d937deb9d92f5eed47d2d4cb53edaca7dd23eb394a498b2f424bb2fe +DIST nc110.20180111.tar.xz 69984 BLAKE2B cb345db31d8857fc1c3973eba45c7a45ec0c5721829a19c46f1ec91a792d9d6309930b3bba5df1180989025f7a04ec8c85cf4832ac6f4199d13f15764f000420 SHA512 4413849c07c6ec5aae07c6e2baa1ba9a99721fa6ac08cf9e7d15379937a207246eb4f4299dd8c049445a72eac9cfe0a3633a87e4e01e21036db1217ea7a1e330 DIST nc110.tgz 75267 BLAKE2B 203b5f54805ddef2c3e9627300dfb6d14f098e88433ca807c8db01f009dec1ccc329925025238dae00b5e82e91c0787ef25536d08310ac127cda1775cfb2afb3 SHA512 c9a7f5045f76d9ffef4e83fcc3e82f69ac4eb05e061686db51e9367949bfe0b90226b290a059dc68dcf3bf2040b95b5c78545199674da57a7c73e2f9145cf812 DIST netcat-110-patches-1.0.tar.bz2 25751 BLAKE2B c0be51a057981ad1df932f7317a1c317c8788efa670778a4f5bbf67c9d983754bd20188a15e7ced3d849a25244926afc54129e0a2df07bc34932d15a3efbf302 SHA512 b9e7e35aa7e26d30f0115d87aff34fd0cadfad99fdb77cc5aa3ba51bec331f632e180484927c4368172ee9cc6c996b8691bd19bad8806912d8820158a98eab46 EBUILD netcat-110-r9.ebuild 1647 BLAKE2B 1a79623b55b08d09c18a60000821479e5b8f08328be2f0b35b69664fa16d7344c4ab9dd022f70f9844ef636eb6883c08ac91177f248416d15b24e0a23b8c4eb6 SHA512 c6f41fc3890d7c7da89fab4597c99260de1160e5982732ddd57c090e04aef788e51dcac724ce78d1cc660c7d0a3459844ccf92dcd6c80c117a40dd842dab42d5 +EBUILD netcat-110.20180111.ebuild 1301 BLAKE2B 7219c5111c4647100d0e9d8b2800c985f9cb36be4faaa1294564ca5209a1a86768626c54878bd263e386bed443a5c3dcfb22a4f1fad22c883e4255ba99fe08af SHA512 e61641fd5b18a3c283c3db0b8087eb6373f0b9e7380bd73235fdca4288f8e690bdd9bb42a94a0056d1ef9d56266a96627630c3f03f27290c167073e6519e90cf MISC metadata.xml 420 BLAKE2B 2ecb5d0734634fa00dbe4aecc8353dcad2a6d76bfb6ff22522b52ca2e67298a0923e46fd2d32c31f48262b06c6f46b02e4e065853c56efc793186132b2e92570 SHA512 f6d0b317880cf10065aa552d4653f3338c89fc36b2175d64b6b17bcdafbea03e0c02608904ffca7a934f2bdcc794758f4132b7cd279fc91530ab077eb2115ccf diff --git a/net-analyzer/netcat/netcat-110.20180111.ebuild b/net-analyzer/netcat/netcat-110.20180111.ebuild new file mode 100644 index 000000000000..760fe86cdf9d --- /dev/null +++ b/net-analyzer/netcat/netcat-110.20180111.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +inherit toolchain-funcs flag-o-matic + +MY_P="nc${PV}" +DESCRIPTION="the network swiss army knife" +HOMEPAGE="http://nc110.sourceforge.net/" +SRC_URI="mirror://sourceforge/nc110/${MY_P}.tar.xz" + +LICENSE="netcat" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc64-solaris ~x64-solaris" +IUSE="ipv6 static" + +S=${WORKDIR}/nc110 + +src_prepare() { + sed -i \ + -e '/#define HAVE_BIND/s:#define:#undef:' \ + -e '/#define FD_SETSIZE 16/s:16:1024: #34250' \ + netcat.c || die + [[ ${CHOST} == *-solaris* ]] && \ + sed -i 's:gethostbyname2 *(\([^)]\+\)):getipnodebyname (\1, AI_DEFAULT, NULL):' netcat.c +} + +src_configure() { + use ipv6 || sed -i '/#define INET6/d' generic.h + append-cppflags -DTELNET -DGAPING_SECURITY_HOLE +} + +src_compile() { + local xlibs + [[ ${CHOST} == *-solaris* ]] && xlibs+=" -lnsl -lsocket" + emake \ + LD="$(tc-getCC) ${LDFLAGS}" \ + DFLAGS="${CPPFLAGS}" \ + XFLAGS="${CFLAGS}" \ + STATIC=$(usex static '-static' '') \ + XLIBS="${xlibs}" \ + nc +} + +src_install() { + dobin nc + dodoc README* netcat.blurb + doman nc.1 + docinto scripts + dodoc scripts/* +} diff --git a/net-analyzer/prometheus/Manifest b/net-analyzer/prometheus/Manifest index 9390f30b0bf5..2aae03d7e3fb 100644 --- a/net-analyzer/prometheus/Manifest +++ b/net-analyzer/prometheus/Manifest @@ -1,8 +1,5 @@ -AUX prometheus-3.initd 659 BLAKE2B 8f02de10267a5aeea4a902c75e65f8673f82a263bc81ea626e4a19c92d83601d69e1d0c1981149513747b1714029ffe2790fd33d4bd86914c5a691f229f612d4 SHA512 14321f0a0e39e4ed1b879ba956855046c21dff85770d3d269492a6d0b911af69ccbf047ec48b91c56bfb678da9390fb236ce165326dc2139b1255d448f2512fa +AUX prometheus-3.initd 851 BLAKE2B 600d9e541206f99c0ddddc0f5a1d37d9bea69d8f45ce6562a2d3c040a75c3665d9862829fc44134db2fbbbbf1d38b7dc4010c9c284f5af38f0dd2cf4be1f9d11 SHA512 7d3650ef5b632507ade4cfb00a167ec7c2d3d8e91551ef8f4550f9947038df0b22a3dd0a33e093296eeb0ca88f1d12ae40e73c7fec4df03e5dcc7630893ded59 AUX prometheus.confd 43 BLAKE2B c83afa8ad1133c9e93abd40c862ff5b3ac9a3b3c4447b915ae1482d92096dec9f200d089de2458a6cdb0e72d2bf0652d56e3afd6d5a3cd8a3ed7a6c9a0e3e42c SHA512 37468e897cd34b50b0edc65ada3f0c2e05459c3d96bb7f82d58b6de5bf10a127f1bf7912af93d83d94e3ea7287cfeb2311e36535f291d01a11d152a0b438591c -AUX prometheus.initd 664 BLAKE2B a6a40447e7215846569ffba183c479def8913bf98dad15b6e075213ac06c09b2276ad2e0ed4e9ca28e3b8de66157cbc0a26b9cbbb596480133bd0594d3d66785 SHA512 95e2ac4969c26f2e91330b521223e94912d68832ef29429e68930479c29b24027c138011bd1f480546c14a07ae15800967e9ff114cdec3cabd0c15bdca489665 -DIST prometheus-1.8.2.tar.gz 5238057 BLAKE2B 33b53fab08df985ec459150166494d46552b7815d8b68d2f8a63023a12c1017197f7043327b4182935231c86b0fb492f3d05d477b97c7e7cd233fbdb0211f1b6 SHA512 ed52ab494ae565d4787b29cf1800605ac3bfdacee25e833704131d57bad9759a3e2585b96316ad754e6612324e68079d7f670004a86aa12c768a2e03542966d2 DIST prometheus-2.0.0.tar.gz 5603884 BLAKE2B 0e2c7ee267f4f817fe84105b89fa2951c07212ca75bf540c67afe900c1df62641919f2ad9d2ce24932a946a0c3db8da6847184c56578ef9626db1f55c1ea3080 SHA512 9d23e10b3eb12755781b9edc5c32a0cb1e99055a8a905517619d992a174a8621ebc1e82999ce2412e7fc3e2e0af8a0dfe1eded8bcd2701a5aaaffce79c7fbcc5 -EBUILD prometheus-1.8.2.ebuild 1603 BLAKE2B cf1f071975df0a6b06d1a3196791e8ad0d3ea066c1a4514b3b3b9eeab03559127c728f409f8e4932030d66d5cfa4bd003a41c7ebb5ede4778b8dca4fdad08608 SHA512 4ee12d760b3138cb99e86052d0e32c2ad4ba47b42adf5f4582d3af32d48770f65d9baa7130065fd0af65860bddc501dcb87fa2814278050a38c154630119fdc6 -EBUILD prometheus-2.0.0.ebuild 2000 BLAKE2B 0008f75e521e628c90724b3b4d83ed3aad3960b624110b9081119eb8717dbfe3f054ee83cadac3bd1a09453a2738fe709ffd8102e73d62e88dca7a19264985d9 SHA512 35279a1fa0a51c6e677ded1e73374a046cb863a753e493608c04690c9a11be268b4b48a2204f61f44f8e02891334dafdc3264e52b1630d56d910e93210bfd420 +EBUILD prometheus-2.0.0-r1.ebuild 2000 BLAKE2B 13fbd2811ab3feefcb1018cdce480b0e1b663e42d631db5c27a003544399fdf99a3df1dd0ede40c8e552a47ab5a0e4f577121c5112c8e7ed43acd8d9892c7f81 SHA512 d08dd4d8056ea966a9b50e4faa21bd00804b8f6402ac8557f3a12a90451a6bda62731638488aaefb15de1250e360e10bbcd72c22f91f7f7a88f0645e4b7a2b77 MISC metadata.xml 331 BLAKE2B 80bf59233349fc1fdc6c102fb65ba146bcde2c5c2a6039ec9b9f50f21a36fb1e8c864cba422e721d01216c792ffcf0429a3a840540305442b5e516ac09c03850 SHA512 06fd0da413c0280a902bbdf50e1e0557375d2208021fda3c3081d8a25a4b17ad1ca647d994dd97ba2d838ea5c87148d3ffd13a8a54cb8dc007b45927df8de47a diff --git a/net-analyzer/prometheus/files/prometheus-3.initd b/net-analyzer/prometheus/files/prometheus-3.initd index 5f6d6fe14267..ae151ef91fbd 100644 --- a/net-analyzer/prometheus/files/prometheus-3.initd +++ b/net-analyzer/prometheus/files/prometheus-3.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 2016-2017 Gentoo Foundation +# Copyright 2016-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 description="Prometheus monitoring system and time series database" @@ -14,6 +14,15 @@ start_stop_daemon_args="--user ${user} --group ${group} \ --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" +extra_started_commands="reload" + depend() { after net } + +reload() { + ebegin "Reloading ${SVCNAME}" + start-stop-daemon --signal HUP --pidfile "${pidfile}" + eend $? "Failed to stop ${SVCNAME}" +} + diff --git a/net-analyzer/prometheus/files/prometheus.initd b/net-analyzer/prometheus/files/prometheus.initd deleted file mode 100644 index 245dcc85ae6d..000000000000 --- a/net-analyzer/prometheus/files/prometheus.initd +++ /dev/null @@ -1,19 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2016-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -description="Prometheus monitoring system and time series database" -pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} -user=${user:-${RC_SVCNAME}} -group=${group:-${RC_SVCNAME}} - -command="/usr/bin/prometheus" -command_args="${command_args:--config.file=/etc/prometheus/prometheus.yml -storage.local.path=/var/lib/prometheus/data}" -command_background="true" -start_stop_daemon_args="--user ${user} --group ${group} \ - --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ - --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" - -depend() { - after net -} diff --git a/net-analyzer/prometheus/prometheus-1.8.2.ebuild b/net-analyzer/prometheus/prometheus-1.8.2.ebuild deleted file mode 100644 index 1006108b0996..000000000000 --- a/net-analyzer/prometheus/prometheus-1.8.2.ebuild +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit user golang-build golang-vcs-snapshot - -EGO_PN="github.com/prometheus/prometheus" -EGIT_COMMIT="v${PV}" -PROMETHEUS_COMMIT="5211b96" -ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" -KEYWORDS="~amd64" - -DESCRIPTION="Prometheus monitoring system and time series database" -HOMEPAGE="https://github.com/prometheus/prometheus" -SRC_URI="${ARCHIVE_URI}" -LICENSE="Apache-2.0" -SLOT="0" -IUSE="" - -DEPEND=">=dev-lang/go-1.8 - dev-util/promu" - -PROMETHEUS_HOME="/var/lib/prometheus" - -RESTRICT="test" - -pkg_setup() { - enewgroup prometheus - enewuser prometheus -1 -1 "${PROMETHEUS_HOME}" prometheus -} - -src_prepare() { - default - sed -i -e "s/{{.Revision}}/${PROMETHEUS_COMMIT}/" src/${EGO_PN}/.promu.yml || die -} - -src_compile() { - pushd src/${EGO_PN} || die - GOPATH="${S}" promu build -v || die - popd || die -} - -src_install() { - pushd src/${EGO_PN} || die - dobin promtool prometheus - dodoc -r {documentation,{README,CHANGELOG,CONTRIBUTING}.md} - insinto /etc/prometheus - doins documentation/examples/prometheus.yml - insinto /usr/share/prometheus - doins -r console_libraries consoles - dosym ../../usr/share/prometheus/console_libraries /etc/prometheus/console_libraries - dosym ../../usr/share/prometheus/consoles /etc/prometheus/consoles - popd || die - - newinitd "${FILESDIR}"/prometheus.initd prometheus - newconfd "${FILESDIR}"/prometheus.confd prometheus - keepdir /var/log/prometheus /var/lib/prometheus - fowners prometheus:prometheus /var/log/prometheus /var/lib/prometheus -} diff --git a/net-analyzer/prometheus/prometheus-2.0.0.ebuild b/net-analyzer/prometheus/prometheus-2.0.0-r1.ebuild index f316f9e3f9c2..a51b71d9bb2e 100644 --- a/net-analyzer/prometheus/prometheus-2.0.0.ebuild +++ b/net-analyzer/prometheus/prometheus-2.0.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 |