/[gentoo-x86]/net-misc/linux-igd/linux-igd-1.0-r1.ebuild
Gentoo

Contents of /net-misc/linux-igd/linux-igd-1.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Sat Apr 14 11:14:06 2007 UTC (12 years, 6 months ago) by gurligebis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Bumping to revision -r2 to fix spelling error in init script
(Portage version: 2.1.2.3)

1 gurligebis 1.1 # Copyright 1999-2007 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 gurligebis 1.6 # $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/linux-igd-1.0-r1.ebuild,v 1.5 2007/04/08 00:37:04 josejx Exp $
4 gurligebis 1.1
5 gurligebis 1.4 inherit eutils
6 gurligebis 1.1 DESCRIPTION="Deamon that emulates Microsoft's Internet Connection Sharing (ICS)
7     for UPnP-aware clients"
8     HOMEPAGE="http://linux-igd.sourceforge.net"
9     SRC_URI="mirror://sourceforge/linux-igd/linuxigd-${PV}.tar.gz"
10    
11     LICENSE="GPL-2"
12     SLOT="0"
13 josejx 1.5 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
14 gurligebis 1.1 IUSE=""
15    
16     DEPEND=">=net-misc/libupnp-1.4.1"
17     RDEPEND="net-firewall/iptables"
18     S=${WORKDIR}/linuxigd-${PV}
19    
20     src_compile() {
21 gurligebis 1.4 epatch ${FILESDIR}/makefile-fix-${PVR}.diff
22     sed -i -e "s|/etc/linuxigd|${D}/etc/linuxigd|" -e "s|/usr/bin|${D}/usr/bin|" Makefile
23 gurligebis 1.1 sed -i -e "s|/etc/upnpd.conf|/etc/linuxigd/upnpd.conf|" globals.h
24    
25     emake || die "compile failed"
26     }
27    
28     src_install() {
29     dobin upnpd
30     insinto /etc/linuxigd
31     doins etc/dummy.xml
32     doins etc/gateconnSCPD.xml
33     doins etc/gatedesc.xml
34     doins etc/gateicfgSCPD.xml
35     doins etc/ligd.gif
36     doins etc/upnpd.conf
37    
38     newinitd ${FILESDIR}/upnpd.initd-${PVR} upnpd
39     newconfd ${FILESDIR}/upnpd.confd-${PVR} upnpd
40    
41     dodoc CHANGES INSTALL LICENSE
42     }
43    
44     pkg_postinst() {
45     einfo "Make sure your firewall allows routing of packages"
46     einfo "to 239.0.0.0/255.0.0.0 correctly."
47     }

  ViewVC Help
Powered by ViewVC 1.1.20