/[gentoo-x86]/net-misc/miniupnpd/miniupnpd-1.4_pre20090921.ebuild
Gentoo

Contents of /net-misc/miniupnpd/miniupnpd-1.4_pre20090921.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Feb 28 19:36:07 2010 UTC (7 years, 10 months ago) by gurligebis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Bumping to version 20091222 and fixing bug #287644
(Portage version: 2.2_rc63/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/miniupnpd-1.4_pre20090921.ebuild,v 1.2 2010/02/05 22:41:23 ulm Exp $
4
5 EAPI=2
6 inherit eutils linux-info toolchain-funcs
7
8 MY_PV=20090921
9 S="${WORKDIR}/${PN}-${MY_PV}"
10
11 DESCRIPTION="MiniUPnP IGD Daemon"
12 SRC_URI="http://miniupnp.free.fr/files/${PN}-${MY_PV}.tar.gz"
13 HOMEPAGE="http://miniupnp.free.fr/"
14
15 LICENSE="BSD"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE=""
19
20 RDEPEND=">=net-firewall/iptables-1.4.3
21 sys-apps/lsb-release"
22 DEPEND="${RDEPEND}"
23
24 src_prepare() {
25 mv Makefile.linux Makefile
26 epatch "${FILESDIR}/${PN}-1.3-iptables_path.diff"
27 epatch "${FILESDIR}/${PN}-1.3-Makefile_fix.diff"
28 sed -i -e "s#^CFLAGS = #CFLAGS = -I${KV_OUT_DIR}/include #" Makefile
29 emake config.h
30 }
31
32 src_compile() {
33 emake CC="$(tc-getCC)" || die "emake failed"
34 }
35
36 src_install () {
37 einstall PREFIX="${D}" STRIP="true" || die "einstall failed"
38
39 newinitd "${FILESDIR}"/${PN}-1.3-init.d ${PN}
40 newconfd "${FILESDIR}"/${PN}-1.3-conf.d ${PN}
41 }
42
43 pkg_postinst() {
44 elog "Please correct the external interface in the top of the two"
45 elog "scripts in /etc/miniupnpd and edit the config file in there too"
46 }

  ViewVC Help
Powered by ViewVC 1.1.20