diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/2ping |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/2ping')
-rw-r--r-- | net-analyzer/2ping/2ping-4.0.1.ebuild | 27 | ||||
-rw-r--r-- | net-analyzer/2ping/2ping-4.1.ebuild | 27 | ||||
-rw-r--r-- | net-analyzer/2ping/Manifest | 9 | ||||
-rw-r--r-- | net-analyzer/2ping/files/2pingd | 35 | ||||
-rw-r--r-- | net-analyzer/2ping/files/2pingd.conf | 2 | ||||
-rw-r--r-- | net-analyzer/2ping/metadata.xml | 14 |
6 files changed, 114 insertions, 0 deletions
diff --git a/net-analyzer/2ping/2ping-4.0.1.ebuild b/net-analyzer/2ping/2ping-4.0.1.ebuild new file mode 100644 index 000000000000..0d7959a2a340 --- /dev/null +++ b/net-analyzer/2ping/2ping-4.0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python2_7 python3_4 ) + +inherit distutils-r1 + +DESCRIPTION="A bi-directional ping utility" +HOMEPAGE="https://www.finnie.org/software/2ping/" +SRC_URI="https://www.finnie.org/software/2ping/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="server" + +src_install() { + distutils-r1_src_install + doman doc/2ping.1 + dodoc doc/{2ping-protocol-examples.py,2ping-protocol.md} + use server && { + doinitd "${FILESDIR}"/2pingd + newconfd "${FILESDIR}"/2pingd.conf 2pingd + } +} diff --git a/net-analyzer/2ping/2ping-4.1.ebuild b/net-analyzer/2ping/2ping-4.1.ebuild new file mode 100644 index 000000000000..c99ba3938765 --- /dev/null +++ b/net-analyzer/2ping/2ping-4.1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +PYTHON_COMPAT=( python3_{4,5,6} ) + +inherit distutils-r1 + +DESCRIPTION="A bi-directional ping utility" +HOMEPAGE="https://www.finnie.org/software/2ping/" +SRC_URI="https://www.finnie.org/software/2ping/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="server" + +src_install() { + distutils-r1_src_install + doman doc/2ping.1 + dodoc doc/{2ping-protocol-examples.py,2ping-protocol.md} + use server && { + doinitd "${FILESDIR}"/2pingd + newconfd "${FILESDIR}"/2pingd.conf 2pingd + } +} diff --git a/net-analyzer/2ping/Manifest b/net-analyzer/2ping/Manifest new file mode 100644 index 000000000000..bca375269bb8 --- /dev/null +++ b/net-analyzer/2ping/Manifest @@ -0,0 +1,9 @@ +AUX 2pingd 692 SHA256 c4265bd80fb4d88107fe2808105882de512b6d9ccda107a7c26023f92291de0c SHA512 7d898b96e6888233b7628af7a9a0641a4ce2f6ebe38192b88bb7f479d99067f6d34843f1b43746eed03b7512782496534e35240abf8b866a4e8f00ee9421deb1 WHIRLPOOL 0f50770861552a46cc3a86f1cf33c91c8908128b0c52ed70eb86fcf0f64df29d885aca0ca943b434b1c697fa538be7aeaf208ffaa20e9bf833218191d9a25169 +AUX 2pingd.conf 57 SHA256 b1ede8d386e74ff05cd992f5bb860910790402cb958338ff7f029aa3e1cdeeae SHA512 c8c666116e841b86a1f17a891453e6ea25976ad485b8299062971b45395420dd46ecc9ac36cb1de5000207372f8586850f62c6178ece5f70732bf17ae9ab4af9 WHIRLPOOL c9e304f73afa889bc9c26c35f20305c95dea942a7fd616c932e8bfc3668056ef9751c47be611cbbd816d2ce613af7eb9144e154e3ca1e8eda2a52280eaeada5e +DIST 2ping-4.0.1.tar.gz 67347 SHA256 95aa1a694da402cee7fefd1da61a08828bf11d82b012824802098a3d5e380567 SHA512 21d3f9f8833d10f7d9f692e0d3a8dbe524ee5ad064122d808aad99f295389efc51c3979ff0dc9533705363be21e0457a886ba0d8a4532705791a4fdf24050eb7 WHIRLPOOL ec4abc9cba2018addaa1a82323cf78e60d266ebe6a16b60639a7d4c0fc21ff2381ecc1d35b0db3c50b7cc54f84edcf9bf82dc8f62021e197854125da39d9a26f +DIST 2ping-4.1.tar.gz 69510 SHA256 85331ae57f445bc8895ba4e61da4c7300b67fde55642f5e42ea02f2daf07b1ed SHA512 926a515156bf0b9e7c09e72f0e557571f3905646eaec2e8c4702a7dd7ed77b9ab298323028beb02c844d719839458f9d056fb5d29443e908b0d927754f856553 WHIRLPOOL 2e2c2c56dbe203569460be3862e1ca4b0c22ca88fe705bf86f6ffb4e85b15511b521e78b80c382c3ab833da64f3ac6efa0890f33dc4f7fa8a3151c16d49a5964 +EBUILD 2ping-4.0.1.ebuild 637 SHA256 ade810458522609c1a141891cd2a038518e6fc038e23c6ba680c3d9e4a773323 SHA512 f9269a4595ff43bb30cb45e64f9113fa0ec39ed3665fc22b283356a79e6c0e4b48048815747af5cb57914c5414210357e5e101fb59a6bfa951a513c8fb0bc475 WHIRLPOOL b2a9635681c920bce9d4d685907f609575815a0860ef9e916594b71eead72466244603d45302b03973e11116d7726778c0f10dd53de3e6a6e57e7d951af23b58 +EBUILD 2ping-4.1.ebuild 633 SHA256 ffd0ddd8de9f3160195096f494314b238eb0345929301c6e29aa8f895bb66c58 SHA512 f31e0a9f1e9ffaa3a4b3a1d1360a5038fa479250414e641d04dcf29b798ca05a98a78e18665d850d2d746e554d6ef265b68ae7340a1153f8ac7aa9171dbdeeb2 WHIRLPOOL bfe8be9ded2c1c4ad7cba7e7e933c700bf56773b15f467fd2c68a707b252e23f8b2be34e751ed220e5a27cb2983c33783fd35d06c5d6d04608a1632ad0a868de +MISC ChangeLog 4039 SHA256 3c37aa03c46f2a6a8390a068698ca3f6335f6328fd284f20ace0a99aaffe8fd3 SHA512 417ce5a60db922809b6012da5f4db14b10e52c1dc3d1ae87fce70d0681e972a453e2a167fb275e37fe7ffd57fe81ec96720954fb5bf3bc9d1baae0788146af2b WHIRLPOOL 39e0138f8065fea6d27bbf2a7ae75f154b78dbdb24a31ab08ef7f19a54e6da56fb76e12e34a8ac6cd6e3e090f983210caacc90119296592635c6b5aa1c4c42e8 +MISC ChangeLog-2015 1006 SHA256 0395876d87f783065d1880cbfdbb0d9e30485184f63c1e0328fd60d9f80a5b14 SHA512 fd0505d5290ad8d3c136906efcaff625bc78c6be51543f56a3fed3ebc6bea7f2e46c179885c872aefde30e0ae9a0cf1f16025fc98ca6d8e0a13fc76e914815b3 WHIRLPOOL c064a343cafebe741356511f3c05ab47139b45d7951023b333bbb3920b66dad908fba5649fab49939a59fbfdbf780b550982f2ebeffc899e69f744eb75fb2e05 +MISC metadata.xml 400 SHA256 45606d9543632fd285aff0478cdb730986f604d2547b8d5a2845d9f13bbd6e40 SHA512 9d35147319cbab8e826a2f0a8badee2169e70b8a52065d8639f2326ff0bfe1717a5e8b5422072f71677e2e4a99ec14a7d6e688662f2342d7917499c35a686154 WHIRLPOOL b39dd2f2f35ee80d946e1c70ed9e6638ceda7c3841e6b45d52d11ba8c9ce844030f74e460ad3117ce8571fbb37ac7d172f4f0249aeebe7bce71d7e3c8da7c9c7 diff --git a/net-analyzer/2ping/files/2pingd b/net-analyzer/2ping/files/2pingd new file mode 100644 index 000000000000..b558de2d18f6 --- /dev/null +++ b/net-analyzer/2ping/files/2pingd @@ -0,0 +1,35 @@ +#!/sbin/openrc-run +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +DAEMON="/usr/bin/2ping" +PIDFILE="/run/2ping.pid" + +depend() { + need net +} + +start() { + ebegin "Starting 2ping server" + start-stop-daemon --start \ + --background --make-pidfile \ + --pidfile "${PIDFILE}" \ + --exec "${DAEMON}" -- \ + --listen -q ${OPTS} \ + >/dev/null + eend $? +} + +stop() { + ebegin "Stopping 2ping server" + start-stop-daemon --stop --pidfile "${PIDFILE}" + eend $? +} + +restart() { + ebegin "Restarting 2ping server" + start-stop-daemon --stop --pidfile "${PIDFILE}" + sleep 1 + start-stop-daemon --start --exec "${DAEMON}" --pidfile "${PIDFILE}" + eend $? +} diff --git a/net-analyzer/2ping/files/2pingd.conf b/net-analyzer/2ping/files/2pingd.conf new file mode 100644 index 000000000000..12c263d3d054 --- /dev/null +++ b/net-analyzer/2ping/files/2pingd.conf @@ -0,0 +1,2 @@ +#Pass any extra 2ping server options here +#OPTS="--ipv6" diff --git a/net-analyzer/2ping/metadata.xml b/net-analyzer/2ping/metadata.xml new file mode 100644 index 000000000000..94525d10a811 --- /dev/null +++ b/net-analyzer/2ping/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>blueness@gentoo.org</email> + <name>Anthony G. Basile</name> + </maintainer> + <longdescription> + A bi-directional ping utility + </longdescription> + <use> + <flag name="server">Install the server init scripts.</flag> + </use> +</pkgmetadata> |