/[gentoo-x86]/net-misc/miniupnpd/miniupnpd-1.3-r1.ebuild
Gentoo

Contents of /net-misc/miniupnpd/miniupnpd-1.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Sep 21 17:46:39 2009 UTC (9 years, 1 month ago) by gurligebis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Bumping to 1.4_pre20090921 and removing old version
(Portage version: 2.2_rc40/cvs/Linux i686)

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

  ViewVC Help
Powered by ViewVC 1.1.20