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

Contents of /net-misc/miniupnpd/miniupnpd-20081009.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Oct 27 22:42:43 2008 UTC (9 years, 10 months ago) by gurligebis
Branch: MAIN
Added net-misc/miniupnpd to the tree
(Portage version: 2.2_rc12/cvs/Linux 2.6.27 i686)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="2"
6
7 inherit eutils linux-info
8
9 DESCRIPTION="MiniUPnP IGD Daemon"
10 SRC_URI="http://miniupnp.free.fr/files/${P}.tar.gz"
11 HOMEPAGE="http://miniupnp.free.fr/"
12 LICENSE="miniupnpd"
13
14 KEYWORDS="~x86"
15 SLOT="0"
16 IUSE=""
17
18 DEPEND=">=net-firewall/iptables-1.4.2-r1
19 sys-apps/lsb-release"
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 mv Makefile.linux Makefile
24 epatch "${FILESDIR}/${P}-iptables.diff"
25 epatch "${FILESDIR}/${P}-iptables_path.diff"
26 sed -i -e "s#^CFLAGS = #CFLAGS = -I${KV_OUT_DIR}/include #" Makefile
27 # we don't use netfilter/Makefile
28 gmake config.h
29 }
30
31 src_install () {
32 PREFIX="${D}" einstall || die
33
34 newinitd "${FILESDIR}/${P}-init.d" "${PN}"
35 newconfd "${FILESDIR}/${P}-conf.d" "${PN}"
36 }
37
38 pkg_postinst() {
39 elog "Please correct the external interface in the top of the two"
40 elog "scripts in /etc/miniupnpd and edit the config file in there too"
41 }

  ViewVC Help
Powered by ViewVC 1.1.20