diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-09-16 06:53:23 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-09-16 06:53:23 +0000 |
commit | 29c9f9e25ea0833703ef901a9ec76fe90a8701fe (patch) | |
tree | 8e4d11a41856b1910433d056e09b936bdcb6d422 /net-misc/linux-igd/linux-igd-1.0-r2.ebuild | |
parent | tc-export: make sure the variable requested for export is a valid variable (diff) | |
download | gentoo-2-29c9f9e25ea0833703ef901a9ec76fe90a8701fe.tar.gz gentoo-2-29c9f9e25ea0833703ef901a9ec76fe90a8701fe.tar.bz2 gentoo-2-29c9f9e25ea0833703ef901a9ec76fe90a8701fe.zip |
Clean up ebuild and install and respect build env settings.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26.2 x86_64)
Diffstat (limited to 'net-misc/linux-igd/linux-igd-1.0-r2.ebuild')
-rw-r--r-- | net-misc/linux-igd/linux-igd-1.0-r2.ebuild | 46 |
1 files changed, 22 insertions, 24 deletions
diff --git a/net-misc/linux-igd/linux-igd-1.0-r2.ebuild b/net-misc/linux-igd/linux-igd-1.0-r2.ebuild index fec7ba6a167e..98d7b6634181 100644 --- a/net-misc/linux-igd/linux-igd-1.0-r2.ebuild +++ b/net-misc/linux-igd/linux-igd-1.0-r2.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 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-r2.ebuild,v 1.6 2007/06/21 15:03:19 angelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/linux-igd/linux-igd-1.0-r2.ebuild,v 1.7 2008/09/16 06:53:22 vapier Exp $ -inherit eutils -DESCRIPTION="Deamon that emulates Microsoft's Internet Connection Sharing (ICS) - for UPnP-aware clients" -HOMEPAGE="http://linux-igd.sourceforge.net" +inherit eutils toolchain-funcs + +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" @@ -14,31 +14,29 @@ KEYWORDS="amd64 ppc sparc x86" IUSE="" DEPEND=">=net-libs/libupnp-1.4.1" -RDEPEND="net-firewall/iptables" +RDEPEND="${DEPEND} + net-firewall/iptables" + S=${WORKDIR}/linuxigd-${PV} -src_compile() { - 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 +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-build.patch +} +src_compile() { + tc-export CC 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-${PVR} upnpd - newconfd ${FILESDIR}/upnpd.confd-${PVR} upnpd - - dodoc CHANGES INSTALL LICENSE + emake install DESTDIR="${D}" || die + + newinitd "${FILESDIR}"/upnpd.initd-${PVR} upnpd + newconfd "${FILESDIR}"/upnpd.confd-${PVR} upnpd + + dodoc CHANGES TODO INSTALL doc/* } pkg_postinst() { |