From 9af77a510aac5f16b2206809a2688fbecb3c7362 Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Thu, 5 Mar 2015 16:24:09 +0000 Subject: [PATCH] Adding spiped-1.5.0 to Portage courtesy of Tomas Mozes . Fix #542216. Package-Manager: portage-2.2.14/cvs/Linux i686 --- net-misc/spiped/ChangeLog | 5 ++++ net-misc/spiped/Manifest | 6 ++++ net-misc/spiped/files/spiped.confd | 21 +++++++++++++ net-misc/spiped/files/spiped.initd | 46 +++++++++++++++++++++++++++++ net-misc/spiped/metadata.xml | 15 ++++++++++ net-misc/spiped/spiped-1.5.0.ebuild | 38 ++++++++++++++++++++++++ 6 files changed, 131 insertions(+) create mode 100644 net-misc/spiped/ChangeLog create mode 100644 net-misc/spiped/Manifest create mode 100644 net-misc/spiped/files/spiped.confd create mode 100644 net-misc/spiped/files/spiped.initd create mode 100644 net-misc/spiped/metadata.xml create mode 100644 net-misc/spiped/spiped-1.5.0.ebuild diff --git a/net-misc/spiped/ChangeLog b/net-misc/spiped/ChangeLog new file mode 100644 index 000000000000..012b579066ce --- /dev/null +++ b/net-misc/spiped/ChangeLog @@ -0,0 +1,5 @@ +# ChangeLog for net-misc/ipsc +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/spiped/ChangeLog,v 1.1 2015/03/05 16:24:03 monsieurp Exp $ + + diff --git a/net-misc/spiped/Manifest b/net-misc/spiped/Manifest new file mode 100644 index 000000000000..a69b81599fff --- /dev/null +++ b/net-misc/spiped/Manifest @@ -0,0 +1,6 @@ +AUX spiped.confd 639 SHA256 0cc43294119709525605c0dbc8bcb1676a6b1d4c95a054eb575565c008fa8edd SHA512 ce2b2f4025ce69ec639e452ed4f4760600e2acd41c29b7ab9c75a7e72bc66cf29c60d417a19f08bd7f7f1cfc7d8582ad6de62738251be3964bcf16ca872887ac WHIRLPOOL 83c01d407ce5fe1a47ec468a5b7c8978a0164d6d621affcb57fbafab7c819e449a35bada64627b7e19b0f19b3cc486a4192201acedd84f8304c1a741eb486922 +AUX spiped.initd 1043 SHA256 ab3a83c84264677a558c846f93ca560a95c270ee00b9a73fcb98cb5c930e7d29 SHA512 8ca037e3070ce6ef59cf31590679722ab971a75b253fc565341b7237e3d2d9cfcb4d6ae75db12e6f5fa014278d07248a7caa15d9ba9c5522e78517fbbc46b250 WHIRLPOOL d4dc381a4b2417afa99953191f97cd8e8bf26c3e263fd7e2aaa963c64730f3da71dae54655fb4bd3f6a8543cd6f0b6bd97a9234255e639914e01056f68fd58ce +DIST spiped-1.5.0.tgz 68813 SHA256 b2f74b34fb62fd37d6e2bfc969a209c039b88847e853a49e91768dec625facd7 SHA512 55e9f18fc82415d28f44af538c6dd8c222798f6ac719a9ad43772357c0f05f281a883cf1189552deeb4b646abe3d060089d66b5f2ba66b5a2a82627dc62513cc WHIRLPOOL be07cfd67a21dfafc37a1d514193c3f45f9f9cb41a3009d50ad564f39fdde1342d2b716baca2b67040b0a75a9b3d469f372c6cc861c3376117d31d7ec4e4b0b3 +EBUILD spiped-1.5.0.ebuild 875 SHA256 83e892923ae7222882f84ebee092b68911b03449240447a6c330ded54ce2c35e SHA512 a6e3e460810bbb73578bb70a919b26b350faf0a3d889dc14d909fd9dfe4031ae13e2ca141925295a4b429e12db5edf98028c59b01bd746f5d11047c049d9f757 WHIRLPOOL 5a76d79df29079866c307163e0a9ac11732aa443f7edde863c70991bf405e309bddacdd1c419483a84acb54327564d6e2257bce8b495f4de216a8118200dc2f4 +MISC ChangeLog 205 SHA256 9842f7d498095fa64047c2927adb63892e52823df5289dfdd794fa63e92a4d62 SHA512 4f89cab5759dd7981f16203db5d1c5cb41e0cb7072362feec52253778a548c441c7573856ad44d5469152d8c7050f2b74c8d2108cc233c77b62aca2e59679286 WHIRLPOOL 2c7192a26c2a6af8798ce2e28057a07483d4ca0f465b07bd2748d2e10e6bfd318fd62a2a9d61ec0ba0db6efbc81564e95e3673b434f564193dce2ddec76f6bfd +MISC metadata.xml 684 SHA256 42e56c27431b454547c57608d537bbf3bd163d1ded503ba1628d26b37b28f5c7 SHA512 a240ad538000b3533ed01bc8a0387140bc8cc52a51ba535b1720e628329aca85d51d6a1a277aa27a6230056a31d18e765155f782c7613f100069d90d68f01bae WHIRLPOOL 1332da7f511e869dd1441e404d013e2e37c0ffc9e213a805444355cf21952664e652e6a04dca2c839b0081503daa0bf70db24c27a633ed58ef02b8fd439ff776 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..63db72f9e457 --- /dev/null +++ b/net-misc/spiped/files/spiped.initd @@ -0,0 +1,46 @@ +#!/sbin/runscript +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/spiped/files/spiped.initd,v 1.1 2015/03/05 16:24:03 monsieurp Exp $ + +KEYFILE=${KEYFILE:="/etc/spiped/keyfile"} +SPIPED_USER=${SPIPED_USER:="nobody"} +PIDFILE="/run/spiped/spiped.pid" + +command="spiped" +command_args="${OPTS} -s [${SRCHOST}]:${SRCPORT} -t ${TARGETHOST}:${TARGETPORT} -k ${KEYFILE} -p ${PIDFILE}" + +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() { + checkconfig || return 1 + + ebegin "Starting ${SVCNAME}" + checkpath -d -o "${SPIPED_USER}" -m750 "$(dirname "${PIDFILE}")" + + start-stop-daemon --start \ + --user ${SPIPED_USER} \ + --pidfile ${PIDFILE} \ + --exec $command -- $command_args + + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + + start-stop-daemon --stop \ + --pidfile ${PIDFILE} + + eend $? +} diff --git a/net-misc/spiped/metadata.xml b/net-misc/spiped/metadata.xml new file mode 100644 index 000000000000..1b2d73180213 --- /dev/null +++ b/net-misc/spiped/metadata.xml @@ -0,0 +1,15 @@ + + + + + monsieurp@gentoo.org + + + 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. + + diff --git a/net-misc/spiped/spiped-1.5.0.ebuild b/net-misc/spiped/spiped-1.5.0.ebuild new file mode 100644 index 000000000000..d1c8b8b51b88 --- /dev/null +++ b/net-misc/spiped/spiped-1.5.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/spiped/spiped-1.5.0.ebuild,v 1.1 2015/03/05 16:24:03 monsieurp Exp $ + +EAPI=5 + +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="" + +DEPEND="dev-libs/openssl:*" +RDEPEND="${DEPEND}" + +src_install() { + dobin spipe/spipe + dosbin spiped/spiped + + doman spipe/spipe.1 spiped/spiped.1 + + newinitd "${FILESDIR}/${PN}.initd" "${PN}" + newconfd "${FILESDIR}/${PN}.confd" "${PN}" + + dodir etc/spiped +} + +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 +} -- 2.26.2