summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjarke Istrup Pedersen <gurligebis@gentoo.org>2007-02-25 01:48:32 +0000
committerBjarke Istrup Pedersen <gurligebis@gentoo.org>2007-02-25 01:48:32 +0000
commit04bd6b217852942371de7087fa32249f828aae67 (patch)
treeb365b16aacf32c47640397e49ca953324b597a8d /net-misc/linux-igd
parentRemoval of perfctr as scheduled Oct 2006. (diff)
downloadgentoo-2-04bd6b217852942371de7087fa32249f828aae67.tar.gz
gentoo-2-04bd6b217852942371de7087fa32249f828aae67.tar.bz2
gentoo-2-04bd6b217852942371de7087fa32249f828aae67.zip
Taking over linux-igd since it has no maintainer, and bumping to version 1.0
(Portage version: 2.1.2-r9)
Diffstat (limited to 'net-misc/linux-igd')
-rw-r--r--net-misc/linux-igd/ChangeLog8
-rw-r--r--net-misc/linux-igd/files/digest-linux-igd-1.03
-rw-r--r--net-misc/linux-igd/files/upnpd.confd-1.010
-rw-r--r--net-misc/linux-igd/files/upnpd.initd-1.032
-rw-r--r--net-misc/linux-igd/linux-igd-1.0.ebuild45
-rw-r--r--net-misc/linux-igd/metadata.xml6
6 files changed, 102 insertions, 2 deletions
diff --git a/net-misc/linux-igd/ChangeLog b/net-misc/linux-igd/ChangeLog
index 7ef8340a41d0..25d6bed5a437 100644
--- a/net-misc/linux-igd/ChangeLog
+++ b/net-misc/linux-igd/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for net-misc/linux-igd
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/ChangeLog,v 1.13 2007/01/22 18:23:32 antarus Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/ChangeLog,v 1.14 2007/02/25 01:48:32 gurligebis Exp $
+
+*linux-igd-1.0 (25 Feb 2007)
+
+ 25 Feb 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org> +files/upnpd.confd-1.0,
+ +files/upnpd.initd-1.0, +linux-igd-1.0.ebuild:
+ Bumping to version 1.0 and taking over package, since nobody is maintaining it.
22 Jan 2007; Alec Warner <antarus@gentoo.org> ChangeLog:
Remove older version and fix dep in 95 to repair tree breakage, thanks to
diff --git a/net-misc/linux-igd/files/digest-linux-igd-1.0 b/net-misc/linux-igd/files/digest-linux-igd-1.0
new file mode 100644
index 000000000000..8058cfc0beb9
--- /dev/null
+++ b/net-misc/linux-igd/files/digest-linux-igd-1.0
@@ -0,0 +1,3 @@
+MD5 929f5c4878c91d534613b7c7070215d9 linuxigd-1.0.tar.gz 35396
+RMD160 b05fe11d99766119779839766e323cfb6ada6977 linuxigd-1.0.tar.gz 35396
+SHA256 f6335273fd6bfad7fb32e94e36461e8b74f9523e7994bad8be9fac29bee9f4cd linuxigd-1.0.tar.gz 35396
diff --git a/net-misc/linux-igd/files/upnpd.confd-1.0 b/net-misc/linux-igd/files/upnpd.confd-1.0
new file mode 100644
index 000000000000..9f324a998c59
--- /dev/null
+++ b/net-misc/linux-igd/files/upnpd.confd-1.0
@@ -0,0 +1,10 @@
+# /etc/conf.d/upnpd: config file for /etc/init.d/upnpd
+
+# Internal (local network) interface
+#INTERNAL_INTERFACE="eth1"
+
+# External (outward facing) interface
+#EXTERNAL_INTERFACE="ppp0"
+
+# If set to "no" the multicast route will not be created
+#ALLOW_MULTICAST="yes"
diff --git a/net-misc/linux-igd/files/upnpd.initd-1.0 b/net-misc/linux-igd/files/upnpd.initd-1.0
new file mode 100644
index 000000000000..4541c1b9296a
--- /dev/null
+++ b/net-misc/linux-igd/files/upnpd.initd-1.0
@@ -0,0 +1,32 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ "$INTERNAL_INTERFACE" = "" -o "$EXTERNAL_INTERFACE" = "" ] ; then
+ ewarn "You need to configure upnpd in /etc/conf.d/upnpd"
+ return 1
+ fi
+ return 0
+}
+
+start() {
+ checkconfig || return 1
+ ebegin "Starting upnpd"
+ if [ "ALLOW_MULTICAST" = "yes" ] ; then
+ /sbin/route add -net 239.0.0.0 netmask 255.0.0.0 $INTERNAL_INTERFACE
+ fi
+ start-stop-daemon --start --exec /usr/bin/upnpd -- $EXTERNAL_INTERFACE $INTERNAL_INTERFACE
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping upnpd"
+ if [ "ALLOW_MULTICAST" = "yes" ] ; then
+ /sbin/route del -net 239.0.0.0 netmask 255.0.0.0 $INTERNAL_INTERFACE
+ fi
+ start-stop-daemon --stop --exec /usr/bin/upnpd
+ eend $?
+}
diff --git a/net-misc/linux-igd/linux-igd-1.0.ebuild b/net-misc/linux-igd/linux-igd-1.0.ebuild
new file mode 100644
index 000000000000..b0e409372ca6
--- /dev/null
+++ b/net-misc/linux-igd/linux-igd-1.0.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/linux-igd-1.0.ebuild,v 1.1 2007/02/25 01:48:32 gurligebis Exp $
+
+DESCRIPTION="Deamon that emulates Microsoft's Internet Connection Sharing (ICS)
+ for UPnP-aware clients"
+HOMEPAGE="http://linux-igd.sourceforge.net"
+SRC_URI="mirror://sourceforge/linux-igd/linuxigd-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=net-misc/libupnp-1.4.1"
+RDEPEND="net-firewall/iptables"
+S=${WORKDIR}/linuxigd-${PV}
+
+src_compile() {
+ sed -i -e "s|/etc/linuxigd|${D}/etc/linuxigd|" \
+ -e "s|/usr/bin|${D}/usr/bin|" Makefile
+
+ emake || die "compile failed"
+}
+
+src_install() {
+ dobin upnpd
+ insinto /etc/linuxigd
+ doins etc/dummy.xml
+ doins etc/gateconnSCPD.xml
+ doins etc/gatedesc.xml
+ doins etc/gateicfgSCPD.xml
+ doins etc/ligd.gif
+ doins etc/upnpd.conf
+
+ newinitd ${FILESDIR}/upnpd.initd-${PV} upnpd
+ newconfd ${FILESDIR}/upnpd.confd-${PV} upnpd
+
+ dodoc CHANGES INSTALL LICENSE
+}
+
+pkg_postinst() {
+ einfo "Make sure your firewall allows routing of packages"
+ einfo "to 239.0.0.0/255.0.0.0 correctly."
+}
diff --git a/net-misc/linux-igd/metadata.xml b/net-misc/linux-igd/metadata.xml
index 20ce219711a2..55c614b8cd31 100644
--- a/net-misc/linux-igd/metadata.xml
+++ b/net-misc/linux-igd/metadata.xml
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>no-herd</herd>
+ <maintainer>
+ <email>gurligebis@gentoo.org</email>
+ <name>Bjarke Istrup Pedersen</name>
+ </maintainer>
+ <longdescription>Deamon that emulates Microsoft's Internet Connection Sharing (ICS) for UPnP-aware clients</longdescription>
</pkgmetadata>