diff options
Diffstat (limited to 'net-misc/linux-igd/linux-igd-0.75.ebuild')
-rw-r--r-- | net-misc/linux-igd/linux-igd-0.75.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
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." +} |