diff options
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/Manifest.gz | bin | 49786 -> 49959 bytes | |||
-rw-r--r-- | net-analyzer/nmap/Manifest | 3 | ||||
-rw-r--r-- | net-analyzer/nmap/files/nmap-9999-zlib.patch | 11 | ||||
-rw-r--r-- | net-analyzer/nmap/nmap-9999.ebuild | 1 | ||||
-rw-r--r-- | net-analyzer/prometheus-pushgateway/Manifest | 7 | ||||
-rw-r--r-- | net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.confd | 14 | ||||
-rw-r--r-- | net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.initd | 19 | ||||
-rw-r--r-- | net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated | 7 | ||||
-rw-r--r-- | net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service | 16 | ||||
-rw-r--r-- | net-analyzer/prometheus-pushgateway/metadata.xml | 15 | ||||
-rw-r--r-- | net-analyzer/prometheus-pushgateway/prometheus-pushgateway-0.4.0.ebuild | 51 | ||||
-rw-r--r-- | net-analyzer/vnstat/Manifest | 2 | ||||
-rw-r--r-- | net-analyzer/vnstat/vnstat-1.18.ebuild | 67 |
13 files changed, 199 insertions, 14 deletions
diff --git a/net-analyzer/Manifest.gz b/net-analyzer/Manifest.gz Binary files differindex 1b794f403c60..f084d33d796f 100644 --- a/net-analyzer/Manifest.gz +++ b/net-analyzer/Manifest.gz diff --git a/net-analyzer/nmap/Manifest b/net-analyzer/nmap/Manifest index da7ced79a000..a657047e868d 100644 --- a/net-analyzer/nmap/Manifest +++ b/net-analyzer/nmap/Manifest @@ -7,7 +7,6 @@ AUX nmap-7.25-CXXFLAGS.patch 302 BLAKE2B 3a6689beb9750dbb2d35a779089c4f8dd772add AUX nmap-7.25-libpcre.patch 291 BLAKE2B f63a80d6e25309d4706f7f428cd70f5926df99f7dc7b98f6991c75f13f2cdc0ca14e2527bd55cc88e33837012d4b1b24433a9f63b614cffedbf3da40ab73d9b6 SHA512 75963ed6eb156475a8e928f6fd6ad18cdc61ed658a3e0a82a7719bbc4998b186981fa93c2b39b8bc92e10cc0ad19f5097224a9a68bc4b35e1b771d4a27532b1d AUX nmap-7.25-no-FORTIFY_SOURCE.patch 2258 BLAKE2B 28e3dbd2d2ccac4d01fc640377fd8ca016f196bb59eaaa42ebe7ef31f473f9bf9db893c7b4330b1a2aa723b5268640b5edba4519b94ee094d63605600bffd9e6 SHA512 29b19e8cedc5e9edf66e728d89b71c4c0ada29fdbb9c167bec84b5aad2c9d52fe111a902c32b247106ace0154734f2a3b4eeae119887dc7203ad2271c8c240a3 AUX nmap-7.31-libnl.patch 498 BLAKE2B 15ba0015ce0c5f266adf1f6b53ad99db82521a3ef8b226f040acc4f0f7759af762fafbce2a1820675e55e04d6b4dfbe04f67711d3fdd1e9dabd750b200ef9d3a SHA512 e7047faaac2bec6c8e0aaae04cbc6e97a8da7999fbb1a8ff015a78ffafe3ce645b71746fd6da826e3ad9baa8d8a917d3791836e67a346dc9c1ca6678cd04e7c8 -AUX nmap-9999-zlib.patch 226 BLAKE2B 1b168e86f6f45251fc37741a9580729b47e9c3c863a2f620c466b42acfdef45012b10c6bf1f4336efe976a82080d0f2c62f6114ed2ebdd29bf8e35618adf381f SHA512 ea36e9e16660b960bad457ec29c1654f1b940088e56011deb58b6e4d9f1ac81e7b0434f6847e0c5a857527132b3fbefe2fdd68ff4cd3d0da100a4d23f56b9345 DIST nmap-7.40.tar.bz2 9043221 BLAKE2B ddbc2f9d8b96aa2ddd53bb250acb5b0829dd79caf04d599ed2257f89cc1e419a9dbf94101a5b1d5ad6815e1a94974b3c02ad81354897ba3bb032a5e3d616468d SHA512 98e37bf1c29789ea19ee4542d719ed6970c8bcc1bf92af4948a52a75273c2403329149f6b5df6368c23840d1bb3f47af9e5ce543f7a36596a33896609574f02d DIST nmap-7.50.tar.bz2 9309616 BLAKE2B 79f257f4c19762729ddfe7bb950263253d98b0902d22f0bf87ff64b7400c5e0c8e8c1a6b5a8c75e3f835dedbf7087808b1bd8444126655138382ea2db1ccb748 SHA512 b74c5711f03bae363164cdb7e62923ab938c81c7bbcd080eaa2d1acc89f09eb0a7e0f5deb9628b81057c7a35ecd487a2d09dfe3b58b0db6c84cf0b39f526e5f2 DIST nmap-7.60.tar.bz2 10394925 BLAKE2B bb3a392292adeebe60dc9716ee61ee09a2f86703a1370ffd6a6c63969a75733660046279d122b1b529a3ea25083bde9334d5e13496ad6a9bd9d6562031b8ae09 SHA512 74ba8f6de026ade9ee6bb2252bee18a57210f8207977df7f1c04556629dcdc1e6127f33febc8a52ef88a1dac876116d590564dee4f1c23798c3ac37529991aa4 @@ -15,5 +14,5 @@ DIST nmap-logo-64.png 3289 BLAKE2B 9563f57d126e6fa38dc777391c2887112836b4f5b5213 EBUILD nmap-7.40.ebuild 4322 BLAKE2B fa5c7e0f84dc27f65047a3522244199a7a7024fb76177a36a77a224ca46b5e15d9e5b3f2201d19c8a7550ef637a3713d3fc493d419ad929af4b229fa8eb4899a SHA512 24f62b8cc52020de46f5274d870a65a4e87be189d07d08deaed7d5767e0be7f44e3841e5edfc19bdbec48f11b236ef564cf870ec7068672cebbefb05673e5295 EBUILD nmap-7.50.ebuild 4323 BLAKE2B 315c5b796f862503099e3ae86048d7f2dff5dcbcade10cbcc9aa9c3ea513d042f5ef5f2f780478528009cc74d6130c34f138e6ba597ba927dbb0123e4bc72a34 SHA512 b6f783ca346ffb478d66f45bd5826905f0d9c90ed8934b80165bfb23356fd8dc9e3a35fbdf38a452c37e505c1a218ef3e5bf0254dad3a6756a604014494bf4fa EBUILD nmap-7.60.ebuild 4537 BLAKE2B 275c3f81635adf2dd291fb0691dcc8b20b1eacd3bc028622b484a17365f1f0f67e6e1ae7b236955d9adc1b1ce44e5901c017364c96e66fd9edb56c1bd8369230 SHA512 9a6b99b3d513c9af4e90c7a6e95cabd22ac866cc192cc1b21072997bf68df11ef6ff9a99756fab57b747ed9375969b4197252bccb9382500c062a02a4f0ea233 -EBUILD nmap-9999.ebuild 4352 BLAKE2B 09ee3d9ad21b7d8288c67c49757ad8b8d7fc9f674c0d1248c101c6a61407ef89644045711d84ede6bffeb2f0d7d89e2b68d53df082fc7fd5b236e4be7eada5f3 SHA512 038764569c9d1b64a9cec6a40e8ef028812ebd2508c8e85b6b9c763bf0d88fdd591c5ce79df3d1875494a0970885f0eed07bef83d961938113d34c23d1f77b13 +EBUILD nmap-9999.ebuild 4315 BLAKE2B 7d83887400200359844f202b29e30cb358a6c35a35f23754c69455f1807fdb9e1e6739f856d5e575058a01b9f0a4686a83602e53f3d202d80fcd33e636264141 SHA512 c9b708642cf84cc3caa3555085779ae3f3d93a575f07b033f5e562ed2dd3bc4f94f17f27244a4baf5b15b98ebafa1432df292d11c991a357fed65d21af2def18 MISC metadata.xml 920 BLAKE2B c07add545e072588022e15d9de0595f1924fe10fdbec7a11cd401429a76a56ee0a53e4675b3e784f5e2e44372f531073cbdc3da717e4a7f3f906b5c1987530d8 SHA512 56d44c71139e48b75a89140bedd2c4a1bc20c8fe99e16ee8b71fb490cb606997571de95d6ac93147bdee81bbcbb736588c87c43b9cd4f9fac71280416a499185 diff --git a/net-analyzer/nmap/files/nmap-9999-zlib.patch b/net-analyzer/nmap/files/nmap-9999-zlib.patch deleted file mode 100644 index 3f260ae48f41..000000000000 --- a/net-analyzer/nmap/files/nmap-9999-zlib.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- a/Makefile.in -+++ b/Makefile.in -@@ -105,7 +105,7 @@ - NSE_HDRS+=nse_libssh2.h - NSE_OBJS+=nse_libssh2.o - endif --ifneq (@LIBZLIB_LIBS@,) -+ifneq (@ZLIB_LIBS@,) - NSE_SRC+=nse_zlib.cc - NSE_HDRS+=nse_zlib.h - NSE_OBJS+=nse_zlib.o diff --git a/net-analyzer/nmap/nmap-9999.ebuild b/net-analyzer/nmap/nmap-9999.ebuild index ad91a6386b53..a54dd5819b11 100644 --- a/net-analyzer/nmap/nmap-9999.ebuild +++ b/net-analyzer/nmap/nmap-9999.ebuild @@ -65,7 +65,6 @@ PATCHES=( "${FILESDIR}"/${PN}-7.25-CXXFLAGS.patch "${FILESDIR}"/${PN}-7.25-libpcre.patch "${FILESDIR}"/${PN}-7.31-libnl.patch - "${FILESDIR}"/${PN}-9999-zlib.patch ) S="${WORKDIR}/${MY_P}" diff --git a/net-analyzer/prometheus-pushgateway/Manifest b/net-analyzer/prometheus-pushgateway/Manifest new file mode 100644 index 000000000000..24152e1786d9 --- /dev/null +++ b/net-analyzer/prometheus-pushgateway/Manifest @@ -0,0 +1,7 @@ +AUX prometheus-pushgateway.confd 819 BLAKE2B 9c42a6d012f70a2ac03d4b90999d94683bc62f6d203ef8d2bf59019e30aea59c3beceae34f2579a2958acfaf882c275453aa5e46e488c5afebaebfc3f17b896b SHA512 c941bc2350bbda14d49effbc0a7988869fc38ccf2236951a88721bd15397c9e5b5d5a98d58285610b33eedc7a26f6cca51e3ec6f4909bdabf0658afd51b99feb +AUX prometheus-pushgateway.initd 662 BLAKE2B 652c58309ce31f7a37cb92beb128848ef28118b9b05278e79765b8c6555b6020266c062ef58463488dd39389f6bf0e2d1e0a9b5371ec4b5c26b821d6fac8877e SHA512 7bb32a7848607d939f3343c8d3fc88454b9ffc9d8d89f2af992d9f6f9fafe266c965b068cc466adbcf0ab014f1e5ca9214b567feacce09b73c8c2212e12aab00 +AUX prometheus-pushgateway.logrotated 117 BLAKE2B b296783f46625672ed7ada814a11b0fd763f6bbbe28b7750e33c7d0a3a1f9f6698776562c5ccc0e1210c5e72c40caadc65dc915d427a9c96267cf7b28396fd4c SHA512 4b104316bf512f9a59181b1db14a7d21e0771213553681b5575f3c637897c0c3ee649a8972b3ab5bb3159275eb501fcc2f9b9bbafa4855bb0c5382fbd3c46f5a +AUX prometheus-pushgateway.service 498 BLAKE2B 59d1f49d39ed86057cef678216487a4181baa002874cf61d67ccbe090dd8c3cfbb0b38f169cae232d8a8f833010c3d2759e5aee3e49d126b96b2eb16655f7df3 SHA512 a631057a3aad30957c2f41ff674bc9c3449758b75455e9f95a73d1114056be574300f99a5bd1c4c76a876e79cd1b36bc6cae32206d5520878a4e7b139fa43977 +DIST prometheus-pushgateway-0.4.0.tar.gz 1140644 BLAKE2B ea82e2e7f6fd817de02044e5aafde724a4089e4f2961f0b581f90df7e04e65af5a3c3e044ef94bd600a92468a8aed791c838a8fdc64b05b7a91d6288e7e96fb3 SHA512 67f25e5f7fdc54143c5d10720f27bd256f22695ced93088cf2b72fe3197e45324d4353357ae40d7d3e92019480c0bec009e38ed3f583724d46411d76adbdc927 +EBUILD prometheus-pushgateway-0.4.0.ebuild 1317 BLAKE2B bd02c4ce881a2d09342d65b1356447157a4f3a2150dfd0082d3c3b212f92ea9afc3e28434ea94bbd60f885dd4714e73db25fbd49bdee2c8228b19590bd6c2fd3 SHA512 d0f3e4fe75c870a4e329503673bdf5f3db9f30f9e6b26544ae13b69839c4c272da719e9ad7d6d71a7cb764493438f819d4b5c5dbbbe983c16909b363c071a093 +MISC metadata.xml 437 BLAKE2B 904f35ea9287d25e5708e450715f8719004a5349ea871e9730fe36a98257cd0ba2417ec572f0d26a8d5d2de5629bca2d1b81f3e344bb8e4a52653175e8df2f3e SHA512 09284843912bc08aef77485911289fe1050f7d42e726e555650ad73b3ca51bcb62af90ccd69c3529bbdb7373b9ec317e0afd74687b84b123ac4fbbf2a3de9d7f diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.confd b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.confd new file mode 100644 index 000000000000..de9ef483723f --- /dev/null +++ b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.confd @@ -0,0 +1,14 @@ +# -log.format value +# If set use a syslog logger or JSON logging. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true. Defaults to stderr. +# -log.level value +# Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]. +# -persistence.file string +# File to persist metrics. If empty, metrics are only kept in memory. +# -persistence.interval duration +# The minimum interval at which to write out the persistence file. (default 5m0s) +# -web.listen-address string +# Address to listen on for the web interface, API, and telemetry. (default ":9091") +# -web.telemetry-path string +# Path under which to expose metrics. (default "/metrics") + +#command_args="-web.listen-address localhost:9091 -persistence.file=/var/lib/${RC_SVCNAME}/persistence.gob" diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.initd b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.initd new file mode 100644 index 000000000000..a187e57897ed --- /dev/null +++ b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Prometheus push acceptor for ephemeral and batch jobs" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/pushgateway" +command_args="${command_args:--web.listen-address localhost:9091 -persistence.file=/var/lib/${RC_SVCNAME}/persistence.gob}" +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() { + need net +} diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated new file mode 100644 index 000000000000..3645c9be1762 --- /dev/null +++ b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.logrotated @@ -0,0 +1,7 @@ +/var/log/prometheus-pushgateway/prometheus-pushgateway.log { + missingok + size 5M + rotate 3 + compress + copytruncate +} diff --git a/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service new file mode 100644 index 000000000000..4377850f2c5c --- /dev/null +++ b/net-analyzer/prometheus-pushgateway/files/prometheus-pushgateway.service @@ -0,0 +1,16 @@ +[Unit] +Description=Prometheus exporter for ephemereal jobs +Documentation=https://prometheus.io/docs/instrumenting/pushing/ +After=network-online.target + +[Service] +User=prometheus-pushgateway +Restart=on-failure +Environment=PUSHGATEWAY_ARGS="-web.listen-address localhost:9091 --persistence.file=/var/lib/prometheus-pushgateway/persistence.gob" +ExecStart=/usr/bin/pushgateway $PUSHGATEWAY_ARGS +ExecReload=/bin/kill -HUP $MAINPID +TimeoutStopSec=20s +SendSIGKILL=no + +[Install] +WantedBy=multi-user.target diff --git a/net-analyzer/prometheus-pushgateway/metadata.xml b/net-analyzer/prometheus-pushgateway/metadata.xml new file mode 100644 index 000000000000..f233ac35e254 --- /dev/null +++ b/net-analyzer/prometheus-pushgateway/metadata.xml @@ -0,0 +1,15 @@ +<?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> + <name>Zac Medico</name> + </maintainer> + <maintainer type="person"> + <email>mrueg@gentoo.org</email> + <name>Manuel RĂ¼ger</name> + </maintainer> + <upstream> + <remote-id type="github">prometheus/pushgateway</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-analyzer/prometheus-pushgateway/prometheus-pushgateway-0.4.0.ebuild b/net-analyzer/prometheus-pushgateway/prometheus-pushgateway-0.4.0.ebuild new file mode 100644 index 000000000000..848c8d3c334e --- /dev/null +++ b/net-analyzer/prometheus-pushgateway/prometheus-pushgateway-0.4.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit user golang-build golang-vcs-snapshot systemd + +EGO_PN="github.com/prometheus/pushgateway" +EGIT_COMMIT="v${PV/_rc/-rc.}" +pushgateway_COMMIT="6ceb4a1" +ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus push acceptor for ephemeral and batch jobs" +HOMEPAGE="https://github.com/prometheus/pushgateway" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +DEPEND="dev-util/promu" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} +} + +src_prepare() { + default + sed -i -e "s/{{.Revision}}/${pushgateway_COMMIT}/" src/${EGO_PN}/.promu.yml || die +} + +src_compile() { + pushd src/${EGO_PN} || die + mkdir -p bin || die + GOPATH="${S}" promu build -v --prefix pushgateway || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dobin pushgateway/pushgateway + dodoc {README,CHANGELOG,CONTRIBUTING}.md + popd || die + keepdir /var/lib/${PN} /var/log/${PN} + fowners ${PN}:${PN} /var/lib/${PN} /var/log/${PN} + newinitd "${FILESDIR}"/${PN}.initd ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + insinto /etc/logrotate.d + newins "${FILESDIR}/${PN}.logrotated" "${PN}" + systemd_dounit "${FILESDIR}/${PN}.service" +} diff --git a/net-analyzer/vnstat/Manifest b/net-analyzer/vnstat/Manifest index a6c1ad4a5ba4..bf807e5390c4 100644 --- a/net-analyzer/vnstat/Manifest +++ b/net-analyzer/vnstat/Manifest @@ -10,7 +10,9 @@ AUX vnstatd.initd-r2 874 BLAKE2B 4ce5936af3a375d30bc8ab1b5ea1ddf1c2b4910394b8a9e AUX vnstatd.systemd 262 BLAKE2B e54c30a1bfa6c7a8bba32fa93c3d2417506c55e9499754419b24179147a5b35f0c51cf61a3f7c4840c88f81d09101c427ba64b41f0922303b8c353caafb883db SHA512 35f9714641d1b3288bed659bd010ef1b8f0316f915622dcf5d3250e1acdd3b438762ae934fab2f6cd350274c7ec0f70a7d8946448bbc6db67be6f91cd86aa47c AUX vnstatd.tmpfile 35 BLAKE2B c56373ebe1abe1111f6927839d79094b6ffd11527ce4e21016c31fc227f9564218ca479455b7cf4eb697d18d8389ba65266b91d71c5bf22c83a9337ae1d861d9 SHA512 e13b52e3c4fe8743074ab2704b6a6cbe0c855589fe19e05bba98f0193473437f350dfdc9675689172c54ed83491d9caef0cbb842f6c2533b98366cd78a4f0bac DIST vnstat-1.17.tar.gz 238397 BLAKE2B 73aaffda3c91a1146b1d6a21f637272be227a15a7964aad90fb76c407c5f7fb0085e6f9f54408e8ebc667475c15f260d701c5924737f20921ebc0a35affd52be SHA512 c9c119a89054dacdc15026c766a20d88336d7689dd4264530d0347fcc58f3cbfc806b271e0f83e76c3b4a31ab793a628ee7d7b696943da919ee4cd2fdb481cc3 +DIST vnstat-1.18.tar.gz 242502 BLAKE2B 2190c33ddf1c0a573e638234a94a86eb44fcc39e106ce8ece1f5ee5314dcc1efee237376ec109eb0873b9cf27ac3fe663526512f98a130114d417380bcb82a31 SHA512 4f9f08a57586bc57ede3d66802ee977c69b5f76ab42aa36e942e8d827dfce806dfc04916646fac01f57b026742a639fc5f7395b141a1c03ad11a1f977d02aa68 EBUILD vnstat-1.17-r3.ebuild 1514 BLAKE2B 609cca6607b5203051618320b15e6eb6f8b180dce93793b8ec60de06bfab0b58d9719b5674c99f819ebc020026d0de0fa6a19495e37d8fbb394c004f3a15655a SHA512 0c8d1fbd7285ac41d74c77554c97eac98b4649be0d60dc1e2725e112ab38940970f96b81ba79cfa99222d959fbf0de046212c782453e93dc92d5667566fa9459 EBUILD vnstat-1.17.ebuild 1430 BLAKE2B 743017615dfe78edc9ae251a5ed1be34e9f8c90dd72f1fffda9f4f53e2fe6b662694b6e0839f41f35eb15b1b60a7140b9fd49ea8659ed7debfee31b055c66e81 SHA512 14d709e9ba19b7707d62fd5a82dc483f50b76efa884015a14600dd1489132a1c0a687444b802bbd917252acbfa84c291210cd2078778a16796d0bacb576b360d +EBUILD vnstat-1.18.ebuild 1514 BLAKE2B 38bf9109a404c5fb9bcc8c6f348eb1838a215778593269825bbf5144841dfb15d22c1692effacf0939f393ad9a6a4e0fd88531f49e3a1a1e1ea73715c695dad3 SHA512 2f4ed24c352476da84b26bd75078976ec996c8862a31f05d1bf7f324117a60e97300877a7102fce66fa9749b7e9b1667dabb2d022e40db598c2afd849be7199a EBUILD vnstat-9999.ebuild 1483 BLAKE2B e25091b47b331c18bf5262bc4d6d30475be9225535cc43e6b1659af3c33ba2e3f36aca11358732c207bd654791eead769db5d5ed0f8ddf6e50b0e88ee97b4ebd SHA512 dbde03f06ba362c36878ecd15698aa264020ca342d023e19448b2326967def7ed357a0ce07975520043e6d5a16d6fd6ef252b54848f4f50a2b9137cd4c0082b6 MISC metadata.xml 603 BLAKE2B 6cd01f8334d5768e057d6866f9c8d739af3680787d9159638a504eeeb74b2f01a36775bfa3e2afeb169d2948e290e8995b2100d572603eaa5ffa44c96b15b385 SHA512 7dbda5d3a317201c8eb0000f2b55af6b2de6fd44368ab39b08c60ee8eb1355264a8886d9a484ab75d47c0c0ce3f41059a8f354f7d6480ae20e469e4c29ca31e2 diff --git a/net-analyzer/vnstat/vnstat-1.18.ebuild b/net-analyzer/vnstat/vnstat-1.18.ebuild new file mode 100644 index 000000000000..b30be708452a --- /dev/null +++ b/net-analyzer/vnstat/vnstat-1.18.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit systemd user + +DESCRIPTION="Console-based network traffic monitor that keeps statistics of network usage" +HOMEPAGE="http://humdi.net/vnstat/" +SRC_URI="http://humdi.net/vnstat/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="gd selinux test" + +COMMON_DEPEND=" + gd? ( media-libs/gd[png] ) +" +DEPEND=" + ${COMMON_DEPEND} + test? ( dev-libs/check ) +" +RDEPEND=" + ${COMMON_DEPEND} + selinux? ( sec-policy/selinux-vnstatd ) +" +PATCHES=( + "${FILESDIR}"/${PN}-1.17-conf.patch + "${FILESDIR}"/${PN}-1.17-drop-root.patch + "${FILESDIR}"/${PN}-1.17-run.patch +) + +pkg_setup() { + enewgroup vnstat + enewuser vnstat -1 -1 /var/lib/vnstat vnstat +} + +src_compile() { + emake ${PN} ${PN}d $(usex gd ${PN}i '') +} + +src_install() { + use gd && dobin vnstati + dobin vnstat vnstatd + + exeinto /usr/share/${PN} + newexe "${FILESDIR}"/vnstat.cron-r1 vnstat.cron + + insinto /etc + doins cfg/vnstat.conf + fowners root:vnstat /etc/vnstat.conf + + keepdir /var/lib/vnstat + fowners vnstat:vnstat /var/lib/vnstat + + newconfd "${FILESDIR}"/vnstatd.confd-r1 vnstatd + newinitd "${FILESDIR}"/vnstatd.initd-r2 vnstatd + + systemd_newunit "${FILESDIR}"/vnstatd.systemd vnstatd.service + systemd_newtmpfilesd "${FILESDIR}"/vnstatd.tmpfile vnstatd.conf + + use gd && doman man/vnstati.1 + doman man/vnstat.1 man/vnstatd.1 + + newdoc INSTALL README.setup + dodoc CHANGES README UPGRADE FAQ examples/vnstat.cgi +} |