summaryrefslogtreecommitdiff
path: root/net-misc/spiped
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-misc/spiped
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/spiped')
-rw-r--r--net-misc/spiped/Manifest7
-rw-r--r--net-misc/spiped/files/spiped.confd21
-rw-r--r--net-misc/spiped/files/spiped.initd32
-rw-r--r--net-misc/spiped/metadata.xml15
-rw-r--r--net-misc/spiped/spiped-1.6.0-r1.ebuild45
5 files changed, 120 insertions, 0 deletions
diff --git a/net-misc/spiped/Manifest b/net-misc/spiped/Manifest
new file mode 100644
index 000000000000..e346711d9d3e
--- /dev/null
+++ b/net-misc/spiped/Manifest
@@ -0,0 +1,7 @@
+AUX spiped.confd 639 SHA256 0cc43294119709525605c0dbc8bcb1676a6b1d4c95a054eb575565c008fa8edd SHA512 ce2b2f4025ce69ec639e452ed4f4760600e2acd41c29b7ab9c75a7e72bc66cf29c60d417a19f08bd7f7f1cfc7d8582ad6de62738251be3964bcf16ca872887ac WHIRLPOOL 83c01d407ce5fe1a47ec468a5b7c8978a0164d6d621affcb57fbafab7c819e449a35bada64627b7e19b0f19b3cc486a4192201acedd84f8304c1a741eb486922
+AUX spiped.initd 649 SHA256 353a176a4f142ec881941ef88131b529dcb9ac52bb2a7012a0bef9ba684d3759 SHA512 6acdf82ca2ed469e3b69813e59628d3148b7c3600b5af74a82d6c715d812b74ed1effd43d7e644d872f1faea4a553e365f36cf054c4727fdc902446f0b89f52a WHIRLPOOL 7581f0de55beb0bb47a310d11f55800f6e08e33111acfd52c1fefd01ad22154f4266678525a876386b11546ac57994f1046c8db8f80e097ec3b1dcd4df1c122f
+DIST spiped-1.6.0.tgz 94431 SHA256 e6f7f8f912172c3ad55638af8346ae7c4ecaa92aed6d3fb60f2bda4359cba1e4 SHA512 9bca8e7da31b86f956a653279f9346d8270a7e28a07d30b4a7104b21fbfbd1a81410e6a7dc0827127331a8f10226d5b8d2ddaacb94c9f76ecc6d15d728ead27a WHIRLPOOL 7fa1b30ba031b8214ae8fa64ac0d7b4586a9551869f76b16cc5b0d9b043abb79a12905802c34d87ef519183e940735cfdf8e8b7d2ed1bab144d013b2aa28aae9
+EBUILD spiped-1.6.0-r1.ebuild 912 SHA256 e4b88db90660945e172bdab500e693dd6b5cf9db051bdc3d79b0b1fecf2d66ac SHA512 f78d65f7360c4291c8c3cb7c8f3d19858c56de144ef5af9e5c75d27773ad1f514604e8b7dfa5c2ec3abc463a1dd0f28c2e16d98b211c8a3335db667b9c8b12bb WHIRLPOOL 190cf964abe656f64434b91efa47be56b1a482acb9c7c2f685a657283cbd77576eb5e0548a1dbd1a14939249b2ad7b611530256365722949727a6a478f9cbca6
+MISC ChangeLog 3187 SHA256 66e2362781a485ab49c65c14e3720646ec5208c7b81b79c139e9d8a530e68996 SHA512 cb1a64a89cc37a02c959ade38e40534d8511bb12ffd1f60298c2789a5e146eb78555b3513fbab8556106751f59173fad920fbab4a1642119ba528d970dade69e WHIRLPOOL 683fde36e37b27bb7f20b27727120317d4d87273f638d96dfc811e221c9ae8a9cb852113e1025f3b1c200f58b8f48c33294da8308348a9c71c42589682736a35
+MISC ChangeLog-2015 566 SHA256 96783b93a0ee4b464770cfc1cfaa8bb9e85d3b1c4db685d1eb7bff0e3d99d687 SHA512 fd26908d0fd7961b1fee06b725bf13bba1afbe266ef0c67d990e56ac55d11a172885145c50644b75bc369b942d43d8b9e4b28cfc8093e82705bdf294b66247dd WHIRLPOOL 4c59f9893146030de4e9fc0b848fda80fee62706d6281be3d6c8b3bc6e7cfee2821e11d3e046a54dd585369ded2fa67b7ecb3301e8c5d7104d2ead2981ad0dad
+MISC metadata.xml 698 SHA256 6c779060f3e96cdb0c030f960703b916e1c0d777d993c885540e52bf1c4679aa SHA512 26f7bb3fc9a8fd2f2ecc9a6b249b777bc9761f2058f3aa01a700d745e17a8e1f6aba16a8b013576b6bbb4cad951e7a4e01975c22c1cec9217307723ecaebbb63 WHIRLPOOL 0d6a6174ecb9b3b1aeb60565840e5fd7955601c606fa48f3f39e015d1788734c68a9b31d14716f33428f1046955e3aba6155522d0b41a249bcf6a3fc0aa0f212
diff --git a/net-misc/spiped/files/spiped.confd b/net-misc/spiped/files/spiped.confd
new file mode 100644
index 000000000000..117be90309c3
--- /dev/null
+++ b/net-misc/spiped/files/spiped.confd
@@ -0,0 +1,21 @@
+# /etc/conf.d/spiped
+
+# Once you're happy with your settings,
+# set IS_CONFIGURED to "yes".
+IS_CONFIGURED="no"
+
+# spiped is shipped with plenty of options.
+# Please see the man page for the complete list.
+# -e : encrypt communication
+# -d : decrypt communication
+OPTS="-e"
+
+# Address and port on which spiped should listen for incoming connections.
+# If you want it to listen on the loopback interface, do not specify "localhost"
+# but the localhost IP address instead. spiped won't start if you do so.
+SRCHOST="127.0.0.1"
+SRCPORT="12345"
+
+# Address and port to which spiped should connect
+TARGETHOST="some.domain.tld"
+TARGETPORT="1337"
diff --git a/net-misc/spiped/files/spiped.initd b/net-misc/spiped/files/spiped.initd
new file mode 100644
index 000000000000..80a164c64999
--- /dev/null
+++ b/net-misc/spiped/files/spiped.initd
@@ -0,0 +1,32 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+: ${KEYFILE:="/etc/spiped/keyfile"}
+: ${SPIPED_USER:="nobody"}
+
+command="/usr/sbin/spiped"
+command_args="${OPTS}
+ -s [${SRCHOST}]:${SRCPORT}
+ -t ${TARGETHOST}:${TARGETPORT}
+ -k ${KEYFILE}
+ -F"
+command_background="true"
+command_user="${SPIPED_USER}"
+pidfile="/run/${RC_SVCNAME}.pid"
+
+depend() {
+ use net
+ before logger
+}
+
+checkconfig() {
+ if [[ ! "$IS_CONFIGURED" == "yes" ]]; then
+ eerror "You need to setup /etc/conf.d/spiped first!"
+ return 1
+ fi
+}
+
+start_pre() {
+ checkconfig || return 1
+}
diff --git a/net-misc/spiped/metadata.xml b/net-misc/spiped/metadata.xml
new file mode 100644
index 000000000000..31619e764b4f
--- /dev/null
+++ b/net-misc/spiped/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>monsieurp@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Spiped (pronounced "ess-pipe-dee") is a utility for creating symmetrically
+ encrypted and authenticated pipes between socket addresses, so that one may
+ connect to one address (e.g., a UNIX socket on localhost) and transparently
+ have a connection established to another address (e.g., a UNIX socket on a
+ different system). This is similar to 'ssh -L' functionality, but does not
+ use SSH and requires a pre-shared symmetric key.
+ </longdescription>
+</pkgmetadata>
diff --git a/net-misc/spiped/spiped-1.6.0-r1.ebuild b/net-misc/spiped/spiped-1.6.0-r1.ebuild
new file mode 100644
index 000000000000..b3ab508eb627
--- /dev/null
+++ b/net-misc/spiped/spiped-1.6.0-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="secure pipe daemon"
+HOMEPAGE="http://www.tarsnap.com/spiped.html"
+SRC_URI="http://www.tarsnap.com/${PN}/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="libressl"
+
+MY_PN="${PN/d/}"
+
+DEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )"
+
+# Blocker added due to #548126
+RDEPEND="
+ ${DEPEND}
+ !net-mail/qlogtools"
+
+src_install() {
+ dobin "${MY_PN}/${MY_PN}"
+ dosbin "${PN}/${PN}"
+
+ doman "${MY_PN}/${MY_PN}.1" "${PN}/${PN}.1"
+
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+
+ dodir "etc/${PN}"
+}
+
+pkg_postinst() {
+ elog
+ elog "You will need to configure spiped via its"
+ elog "configuration file located in /etc/conf.d/."
+ elog
+ elog "Please have a look at this file prior to starting up spiped!"
+ elog
+}