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-misc/portfwd |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/portfwd')
-rw-r--r-- | net-misc/portfwd/Manifest | 8 | ||||
-rw-r--r-- | net-misc/portfwd/files/portfwd.confd | 3 | ||||
-rw-r--r-- | net-misc/portfwd/files/portfwd.init | 38 | ||||
-rw-r--r-- | net-misc/portfwd/files/portfwd.service | 8 | ||||
-rw-r--r-- | net-misc/portfwd/metadata.xml | 13 | ||||
-rw-r--r-- | net-misc/portfwd/portfwd-0.29-r1.ebuild | 49 |
6 files changed, 119 insertions, 0 deletions
diff --git a/net-misc/portfwd/Manifest b/net-misc/portfwd/Manifest new file mode 100644 index 000000000000..c9484347766b --- /dev/null +++ b/net-misc/portfwd/Manifest @@ -0,0 +1,8 @@ +AUX portfwd.confd 55 SHA256 3a76b31f281da7c6489cf1523ae91d7f3ce0020c05f65ac8b1e958441f0d67e7 SHA512 cd9332cd659982fb2d8b6d4c27b75814d725aad534b2e72c4e287b6aac4595dae8a11bc711592e290919a3959b7ac5d9c1fc4921572593ff80876630d6b52296 WHIRLPOOL 7b3ea50d241d230f6fb115a426fbfb4ae0bace84b9a9794677663e9231030f7cfa683bf3ee62c550148dd7b890761dc0f193831748478f93b412bd805c58e78f +AUX portfwd.init 773 SHA256 30c1e9560f907739855f661b0347be03b04c5ffc3ab6f40aa974c191af513cb6 SHA512 380bb2e2ee7423e781d3b637afe60cd79f5fd35806e897d89885b3fdbe1b3aeff396acaa74b4b6158d874a31831c8393c549642468e2a5fc0926361c4d6869c8 WHIRLPOOL ed968b7465927187808d1d610acf9850219b6332838b05720e192fd9971a9f160d970fca483a1cc0c0a3b502a4d4c1459cb5a198d7fab89694820115cee0aa17 +AUX portfwd.service 128 SHA256 f887bfa02621610ef2a6a477aa29fd57e0163e5641b2256bc10049ccd579c5f0 SHA512 1e15366d1d284db537d90d07857baaf44ba3447bed0b6cff35b957d787bf5893c8bdb7e01eb692cb26d68aea9256fbe9e6b012cbeb1899a40a531050a4521f04 WHIRLPOOL dd41b8f90e608229cdd02d26c4f47e025f83d31157153d44f3543c7996afa273ea1854f56d147f1c5813c75575beaf97f245e186074e244f2bd80b991765a9b5 +DIST portfwd-0.29.tar.gz 168318 SHA256 a880cf57ae00224c470c387cf2de8abbb53c4d761b4d67be5b0c9e15c3484066 SHA512 790d30afb42eb5e03846534e5098c7d1cb4241758df77fd56fc3f4fdbb05dae88ef84e16b27434035dd39a7c82beb77d490f64741181c38efc3b3928face51d1 WHIRLPOOL a83de6db3feab5fc03f3115013eebd650bb795be91e0b674ae102c9c59d260fd7faa5b8a738e5eb9ad891103bac0c91e3626b7ac6cabf6f565e936403d8dbc17 +EBUILD portfwd-0.29-r1.ebuild 1239 SHA256 9eae87f9a588d6a9e668af6e04dd6241b853fea84f95d4d241a0ef6357e43dfc SHA512 aa4cd8fc3c799345571ca0f0d443c316fb38de8a2fe296ab65f831c89cbd50341536ed1dfadea8452116a2e8bec6b8a36eaf3d195c89dbd00f0595a9b00c801e WHIRLPOOL ffe9343b8c8cc6e6dd149652c87a61c896cc0c240694f3a6318029166a17235af01212392ac2e363c821f5c7ef5c302e1c31987449f04c55fa40438267d9539a +MISC ChangeLog 3024 SHA256 5f859e76d1da1750e26a825b0bd5a633c1f1d2170d31e4521987fdbc1040f70e SHA512 cfffa41e98349c4c7f1f80bf2843e2fb55722373517ce9d6cb94e922c7e8906ffe5ef0e3f4ea71de88abaaa86b9f6da93bf0b2aff98dc00b3ba9eac0088165ec WHIRLPOOL 86bd5da76520b11d5cb433aa4b4660aa455fa8a574091d09f9dfda7c96c217a4a1d1a9d3c8aed95be3dbf96abe78b9ba6843edcf99cc824874564dff08c92c8c +MISC ChangeLog-2015 3672 SHA256 6069c9c9f7ab6e20c19cf6b93d34cdf564935c1909abcac334358bcb5e14f807 SHA512 66e065213ff9d3c775da1a4ea844466521c70da55920138f1a17b6cc72fe4e9f6d9ceff07369422e7480718b033964f2293710e56bcf71cef9aa0b9056c4b8bd WHIRLPOOL a429cf65168b81614e010119c33c96b92ec6ad006a7e0bf24b983199de965f0cef221135fbd3ab632e761339f507f4bcd58116aaa92ac85f622a55b38ad42aef +MISC metadata.xml 443 SHA256 e748446e2cab9d75ba26f47f94ec145b05a10af451511b0d226831726f52dad4 SHA512 97bcf064333617a9cd93fdc4994f979eebb8b5e259d2f2a72b1a68c6add80231058345cb2b9ee810f7eea115bb2d8617f7496263f43e74a9c582d6efe46700a3 WHIRLPOOL 552e275d4352e2feea9525e82038fb331e0c606cece9560e488af772d7ad60fe7f53febb33dfa89882511863ae6940f1cb6bcde2c6fa48368e90346008010f22 diff --git a/net-misc/portfwd/files/portfwd.confd b/net-misc/portfwd/files/portfwd.confd new file mode 100644 index 000000000000..7e1ac3b3fb4f --- /dev/null +++ b/net-misc/portfwd/files/portfwd.confd @@ -0,0 +1,3 @@ +# See `man portfwd` for options. + +PORTFWD_OPTS="-f -t" diff --git a/net-misc/portfwd/files/portfwd.init b/net-misc/portfwd/files/portfwd.init new file mode 100644 index 000000000000..aa4aabd70546 --- /dev/null +++ b/net-misc/portfwd/files/portfwd.init @@ -0,0 +1,38 @@ +#!/sbin/openrc-run + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/portfwd.cfg ] ; then + eerror "You need an /etc/portfwd.cfg file first" + eerror "There are samples in the documentation directory" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting portfwd" + start-stop-daemon --start --quiet --pidfile /var/run/portfwd.pid --exec /usr/sbin/portfwd -- ${PORTFWD_OPTS} + + _pid="`ps -C portfwd -o pid= | head -n 1`" + if [ -n "$_pid" ] ; then + echo "${_pid/ /}" > /var/run/portfwd.pid + eend 0 + else + eend 1 + fi +} + +stop() { + ebegin "Stopping portfwd" + start-stop-daemon --stop --quiet --pidfile /var/run/portfwd.pid + + if [ $? -eq 0 ]; then + rm -f /var/run/portfwd.pid + fi + + eend $? +} diff --git a/net-misc/portfwd/files/portfwd.service b/net-misc/portfwd/files/portfwd.service new file mode 100644 index 000000000000..77f6cd3663b7 --- /dev/null +++ b/net-misc/portfwd/files/portfwd.service @@ -0,0 +1,8 @@ +[Unit] +Description=Port Forwarding Daemon + +[Service] +ExecStart=/usr/sbin/portfwd -g -f -t + +[Install] +WantedBy=multi-user.target diff --git a/net-misc/portfwd/metadata.xml b/net-misc/portfwd/metadata.xml new file mode 100644 index 000000000000..39b8daee10f0 --- /dev/null +++ b/net-misc/portfwd/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + Portfwd stands for port forwarding daemon. It's a small C++ utility + which forwards incoming TCP connections and/or UDP packets to remote + hosts. + </longdescription> + <upstream> + <remote-id type="sourceforge">portfwd</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-misc/portfwd/portfwd-0.29-r1.ebuild b/net-misc/portfwd/portfwd-0.29-r1.ebuild new file mode 100644 index 000000000000..30e0f893ba17 --- /dev/null +++ b/net-misc/portfwd/portfwd-0.29-r1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils systemd + +DESCRIPTION="Port Forwarding Daemon" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="http://portfwd.sourceforge.net" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="amd64 ia64 ~ppc ~sparc x86" +IUSE="" + +DEPEND=">=sys-apps/sed-4" +RDEPEND="" + +src_prepare() { + default + + cd src + sed -iorig \ + -e "s:^CFLAGS =.*:CFLAGS = @CFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \ + -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \ + Makefile.am || die + cd ../tools + sed -iorig \ + -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \ + Makefile.am || die + cd ../getopt + sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am || die + cd ../doc + sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am || die + cd .. + sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am || die + + eautoreconf +} + +src_install() { + default + + dodoc cfg/* + + newinitd "${FILESDIR}"/${PN}.init ${PN} + newconfd "${FILESDIR}"/${PN}.confd ${PN} + systemd_dounit "${FILESDIR}"/${PN}.service +} |