summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaik Schreiber <blizzy@gentoo.org>2002-07-20 19:36:01 +0000
committerMaik Schreiber <blizzy@gentoo.org>2002-07-20 19:36:01 +0000
commitf425e28e40a219317d8016879771bbccc34da92e (patch)
tree71a4a541126e62d2569f1017dbb8cbda2c0e7f94 /net-misc/linux-igd
parentadjusted keywords (diff)
downloadhistorical-f425e28e40a219317d8016879771bbccc34da92e.tar.gz
historical-f425e28e40a219317d8016879771bbccc34da92e.tar.bz2
historical-f425e28e40a219317d8016879771bbccc34da92e.zip
initial import
Diffstat (limited to 'net-misc/linux-igd')
-rw-r--r--net-misc/linux-igd/ChangeLog10
-rw-r--r--net-misc/linux-igd/files/digest-linux-igd-0.751
-rw-r--r--net-misc/linux-igd/files/rc_upnpd30
-rw-r--r--net-misc/linux-igd/files/upnpd.conf4
-rw-r--r--net-misc/linux-igd/linux-igd-0.75.ebuild47
5 files changed, 92 insertions, 0 deletions
diff --git a/net-misc/linux-igd/ChangeLog b/net-misc/linux-igd/ChangeLog
new file mode 100644
index 000000000000..aea21c4626c1
--- /dev/null
+++ b/net-misc/linux-igd/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/linux-igd
+# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/ChangeLog,v 1.1 2002/07/20 19:36:01 blizzy Exp $
+
+*linux-igd-0.75 (20 Jul 2002)
+
+ 20 Jul 2002; Maik Schreiber <blizzy@gentoo.org> :
+
+ Initial import.
+ ebuild submitted by Maik Schreiber <bZ@iq-computing.de>
diff --git a/net-misc/linux-igd/files/digest-linux-igd-0.75 b/net-misc/linux-igd/files/digest-linux-igd-0.75
new file mode 100644
index 000000000000..427311aac577
--- /dev/null
+++ b/net-misc/linux-igd/files/digest-linux-igd-0.75
@@ -0,0 +1 @@
+MD5 d2d69493fb0ccfaf02f278a065623d48 gateway-0.75.tgz 26683
diff --git a/net-misc/linux-igd/files/rc_upnpd b/net-misc/linux-igd/files/rc_upnpd
new file mode 100644
index 000000000000..36f2e42c1cc8
--- /dev/null
+++ b/net-misc/linux-igd/files/rc_upnpd
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ source /etc/linuxigd/upnpd.conf
+ if [ "$INTERFACE" = "" -o "$OUTERFACE" = "" ] ; then
+ ewarn "You need to configure upnpd in /etc/linuxigd/upnpd.conf"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || exit
+ ebegin "Starting upnpd"
+ /sbin/route add -net 239.0.0.0 netmask 255.0.0.0 $INTERFACE
+ start-stop-daemon --start \
+ --exec /usr/bin/upnpd -- $OUTERFACE $INTERFACE
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping upnpd"
+ /sbin/route del -net 239.0.0.0 netmask 255.0.0.0 $INTERFACE
+ start-stop-daemon --stop --exec /usr/bin/upnpd
+ eend $?
+}
diff --git a/net-misc/linux-igd/files/upnpd.conf b/net-misc/linux-igd/files/upnpd.conf
new file mode 100644
index 000000000000..1fdd0aa0a745
--- /dev/null
+++ b/net-misc/linux-igd/files/upnpd.conf
@@ -0,0 +1,4 @@
+# configuration file for upnpd
+
+#INTERFACE="eth1"
+#OUTERFACE="ppp0"
diff --git a/net-misc/linux-igd/linux-igd-0.75.ebuild b/net-misc/linux-igd/linux-igd-0.75.ebuild
new file mode 100644
index 000000000000..b09ab676d9cd
--- /dev/null
+++ b/net-misc/linux-igd/linux-igd-0.75.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/linux-igd-0.75.ebuild,v 1.1 2002/07/20 19:36:01 blizzy Exp $
+
+MY_PN="gateway"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+DESCRIPTION="Daemon that emulates Microsoft's Internet Connection Service (ICS)
+ for UPnP-aware clients"
+HOMEPAGE="http://linux-igd.sourceforge.net"
+SRC_URI="http://unc.dl.sourceforge.net/sourceforge/linux-igd/${MY_PN}-${PV}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+
+RDEPEND="net-misc/upnp
+ sys-apps/iptables"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ mv Makefile Makefile.orig
+ sed <Makefile.orig >Makefile \
+ -e "s|/etc/linuxigd|${D}/etc/linuxigd|" \
+ -e "s|/usr/bin|${D}/usr/bin|"
+ mv pmlist.cpp pmlist.cpp.orig
+ sed <pmlist.cpp.orig >pmlist.cpp \
+ -e 's|/usr/sbin/iptables|/sbin/iptables|g'
+ emake || die "compile problem"
+}
+
+src_install () {
+ exeinto /usr/bin
+ doexe upnpd
+ insinto /etc/linuxigd
+ doins etc/*
+ doins ${FILESDIR}/upnpd.conf
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/rc_upnpd upnpd
+ dodoc CHANGELOG LICENSE README SECURITY TODO
+}
+
+pkg_postinst() {
+ einfo "Make sure your firewall routing broadcast packages"
+ einfo "to 239.0.0.0/255.0.0.0 correctly. See"
+ einfo "/usr/share/doc/${P}/README.gz"
+ einfo "for more information."
+}