summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2014-01-07 10:11:57 +0000
committerPacho Ramos <pacho@gentoo.org>2014-01-07 10:11:57 +0000
commit4b27dfbe0642cad0482ecae0d1803e9d9c5c46b8 (patch)
treef9ceca23110b36e537340ab97dcea926208ed7af /net-misc/portfwd
parentRemoved old versions and files (diff)
downloadgentoo-2-4b27dfbe0642cad0482ecae0d1803e9d9c5c46b8.tar.gz
gentoo-2-4b27dfbe0642cad0482ecae0d1803e9d9c5c46b8.tar.bz2
gentoo-2-4b27dfbe0642cad0482ecae0d1803e9d9c5c46b8.zip
Version bump and include a systemd unit file (#497174 by Leho Kraav)
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
Diffstat (limited to 'net-misc/portfwd')
-rw-r--r--net-misc/portfwd/ChangeLog10
-rw-r--r--net-misc/portfwd/files/portfwd.service8
-rw-r--r--net-misc/portfwd/portfwd-0.29.ebuild48
3 files changed, 64 insertions, 2 deletions
diff --git a/net-misc/portfwd/ChangeLog b/net-misc/portfwd/ChangeLog
index e46ac2a4a683..f3808dacf684 100644
--- a/net-misc/portfwd/ChangeLog
+++ b/net-misc/portfwd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/portfwd
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/ChangeLog,v 1.23 2008/06/04 17:25:02 flameeyes Exp $
+# Copyright 2000-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/ChangeLog,v 1.24 2014/01/07 10:11:57 pacho Exp $
+
+*portfwd-0.29 (07 Jan 2014)
+
+ 07 Jan 2014; Pacho Ramos <pacho@gentoo.org> +files/portfwd.service,
+ +portfwd-0.29.ebuild:
+ Version bump and include a systemd unit file (#497174 by Leho Kraav)
04 Jun 2008; Diego Pettenò <flameeyes@gentoo.org> portfwd-0.28.ebuild:
Use eautoreconf, not the bootstrap script.
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/portfwd-0.29.ebuild b/net-misc/portfwd/portfwd-0.29.ebuild
new file mode 100644
index 000000000000..5fc099647127
--- /dev/null
+++ b/net-misc/portfwd/portfwd-0.29.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/portfwd-0.29.ebuild,v 1.1 2014/01/07 10:11:57 pacho Exp $
+
+EAPI=5
+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() {
+ 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
+}