Added patch to fix some compiler warnings.
authorBjarke Istrup Pedersen <gurligebis@gentoo.org>
Tue, 27 Feb 2007 16:56:47 +0000 (16:56 +0000)
committerBjarke Istrup Pedersen <gurligebis@gentoo.org>
Tue, 27 Feb 2007 16:56:47 +0000 (16:56 +0000)
Package-Manager: portage-2.1.2-r11

net-misc/linux-igd/ChangeLog
net-misc/linux-igd/files/makefile-fix-1.0.diff [new file with mode: 0644]
net-misc/linux-igd/linux-igd-1.0-r1.ebuild

index fc80f07f1b8f2b5d7a54aa8d30a464271b063c23..5a17ba87bb3435525c7bc252733d1922325d868b 100644 (file)
@@ -1,6 +1,10 @@
 # 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.17 2007/02/27 10:13:54 gurligebis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/ChangeLog,v 1.18 2007/02/27 16:56:46 gurligebis Exp $
+
+  27 Feb 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org> linux-igd-1.0-r1.ebuild,
+  +files/makefile-fix-1.0.diff:
+  Added patch to fix some compiler warnings.
 
   27 Feb 2007; Bjarke Istrup Pedersen <gurligebis@gentoo.org> linux-igd-1.0-r1.ebuild:
   Added ~amd64 keyword.
diff --git a/net-misc/linux-igd/files/makefile-fix-1.0.diff b/net-misc/linux-igd/files/makefile-fix-1.0.diff
new file mode 100644 (file)
index 0000000..bf3ea50
--- /dev/null
@@ -0,0 +1,11 @@
+--- Makefile   2007-02-27 16:49:24.000000000 +0000
++++ Makefile   2007-02-27 16:52:56.000000000 +0000
+@@ -27,7 +27,7 @@ upnpd: $(FILES)
+       @echo "make $@ finished on `date`"
+ %.o:  %.c
+-      $(CC) $(CFLAGS) $(INCLUDES) -c $<
++      $(CC) $(CFLAGS) $(INCLUDES) -D_GNU_SOURCE -c $<
+ clean:
+       rm -f *.o upnpd
index e0e1228efa7f48fb1d3adee505647982a117f14d..fdcbfdae39826dcd3d12359e466c11b9829f414b 100644 (file)
@@ -1,7 +1,8 @@
 # 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-r1.ebuild,v 1.3 2007/02/27 10:13:54 gurligebis Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/linux-igd-1.0-r1.ebuild,v 1.4 2007/02/27 16:56:46 gurligebis Exp $
 
+inherit eutils
 DESCRIPTION="Deamon that emulates Microsoft's Internet Connection Sharing (ICS)
                for UPnP-aware clients"
 HOMEPAGE="http://linux-igd.sourceforge.net"
@@ -17,8 +18,8 @@ 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
+       epatch ${FILESDIR}/makefile-fix-${PVR}.diff
+       sed -i -e "s|/etc/linuxigd|${D}/etc/linuxigd|" -e "s|/usr/bin|${D}/usr/bin|" Makefile
        sed -i -e "s|/etc/upnpd.conf|/etc/linuxigd/upnpd.conf|" globals.h
 
        emake || die "compile failed"