summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Portnoy <avenj@gentoo.org>2003-10-17 20:42:13 +0000
committerJon Portnoy <avenj@gentoo.org>2003-10-17 20:42:13 +0000
commitc97275b1ddcd95019a8158df6dd35efd07e30c7d (patch)
treea9d7b1fb14d912d1600a7429b3a007c2820daebc /net-misc/portfwd
parentInitial import. (diff)
downloadhistorical-c97275b1ddcd95019a8158df6dd35efd07e30c7d.tar.gz
historical-c97275b1ddcd95019a8158df6dd35efd07e30c7d.tar.bz2
historical-c97275b1ddcd95019a8158df6dd35efd07e30c7d.zip
Initial import.
Diffstat (limited to 'net-misc/portfwd')
-rw-r--r--net-misc/portfwd/Manifest6
-rw-r--r--net-misc/portfwd/files/digest-portfwd-0.26_rc61
-rw-r--r--net-misc/portfwd/files/portfwd.init28
-rw-r--r--net-misc/portfwd/portfwd-0.26_rc6.ebuild63
4 files changed, 95 insertions, 3 deletions
diff --git a/net-misc/portfwd/Manifest b/net-misc/portfwd/Manifest
index b88dc0b68332..618db21612d9 100644
--- a/net-misc/portfwd/Manifest
+++ b/net-misc/portfwd/Manifest
@@ -1,4 +1,4 @@
-MD5 bbca487388cbca9bde137a1501486b98 portfwd-0.26_rc6.ebuild 1371
-MD5 e924c392dcbb193a9c9df5b6a60a9f4a ChangeLog 311
-MD5 e6a3ab5f84df42432043801310f18bae files/portfwd.init 480
+MD5 ce7732b9663c61bc04c6c3572d7030ce portfwd-0.26_rc6.ebuild 1475
+MD5 c04632725efdd4246954a6bb600f1906 ChangeLog 399
+MD5 7a307e7563a06329307a4f3bc11e2e55 files/portfwd.init 591
MD5 3e26912825dccefb4a4474400d2c7eb6 files/digest-portfwd-0.26_rc6 67
diff --git a/net-misc/portfwd/files/digest-portfwd-0.26_rc6 b/net-misc/portfwd/files/digest-portfwd-0.26_rc6
new file mode 100644
index 000000000000..c7fcf062a2fa
--- /dev/null
+++ b/net-misc/portfwd/files/digest-portfwd-0.26_rc6
@@ -0,0 +1 @@
+MD5 9706c8c4c4551c079f3e76abf985b64d portfwd-0.26rc6.tar.gz 135300
diff --git a/net-misc/portfwd/files/portfwd.init b/net-misc/portfwd/files/portfwd.init
new file mode 100644
index 000000000000..14bfe71d4ff1
--- /dev/null
+++ b/net-misc/portfwd/files/portfwd.init
@@ -0,0 +1,28 @@
+# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/files/portfwd.init,v 1.1 2003/10/17 20:42:05 avenj Exp $
+
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -e /etc/portfwd.cnf ] ; then
+ eerror "You need an /etc/portfwd.cnf 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 --exec /usr/sbin/portfwd -- -t -f
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping portfwd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/portfwd.pid
+ eend $?
+}
diff --git a/net-misc/portfwd/portfwd-0.26_rc6.ebuild b/net-misc/portfwd/portfwd-0.26_rc6.ebuild
new file mode 100644
index 000000000000..e67aee5488f2
--- /dev/null
+++ b/net-misc/portfwd/portfwd-0.26_rc6.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/portfwd-0.26_rc6.ebuild,v 1.1 2003/10/17 20:42:05 avenj Exp $
+
+DESCRIPTION="Port Forwarding Daemon"
+SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz"
+HOMEPAGE="http://portfwd.sourceforge.net"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~x86"
+
+DEPEND="virtual/glibc"
+RDEPEND="${DEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd ${WORKDIR}/${P/_/}
+
+ 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
+ cd ../tools
+ sed -iorig \
+ -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
+ Makefile.am
+ cd ../getopt
+ sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am
+ cd ../doc
+ sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
+ cd ..
+ sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
+}
+
+src_compile() {
+ cd ${WORKDIR}/${P/_/}
+
+ ./bootstrap
+ econf
+ emake
+}
+
+src_install() {
+ cd ${WORKDIR}/${P/_/}
+
+ einstall
+ prepalldocs
+
+ dodoc cfg/*
+
+ insinto /etc/init.d
+ insopts -m0755
+ newins ${FILESDIR}/${PN}.init ${PN}
+}
+
+pkg_postinst() {
+ einfo "Many configuration file (/etc/portfwd.cfg) samples are available in /usr/share/doc/${P}"
+ einfo
+}
+