/[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.4 - (show annotations) (download)
Tue Feb 27 16:56:46 2007 UTC (12 years, 7 months ago) by gurligebis
Branch: MAIN
Changes since 1.3: +4 -3 lines
 Added patch to fix some compiler warnings.
(Portage version: 2.1.2-r11)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/linux-igd-1.0-r1.ebuild,v 1.3 2007/02/27 10:13:54 gurligebis Exp $
4
5 inherit eutils
6 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 KEYWORDS="~sparc ~x86 ~amd64"
14 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 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 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