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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jun 3 16:26:13 2012 UTC (6 years ago) by gurligebis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Bumping to 1.7

(Portage version: 2.2.0_alpha108/cvs/Linux i686)

1 # Copyright 1999-2011 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.6.ebuild,v 1.1 2011/07/29 19:36:58 gurligebis Exp $
4
5 EAPI=2
6 inherit eutils toolchain-funcs
7
8 MY_PV=1.6
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.6
21 sys-apps/lsb-release
22 >=sys-kernel/linux-headers-2.6.31"
23 DEPEND="${RDEPEND}
24 sys-apps/util-linux
25 "
26
27 src_prepare() {
28 mv Makefile.linux Makefile
29 epatch "${FILESDIR}/${PN}-1.3-Makefile_fix.diff"
30 epatch "${FILESDIR}/${PN}-nf_nat-fix.diff"
31 sed -i \
32 -e "s#^CFLAGS = .*-D#CPPFLAGS += -I/usr/include -D#" \
33 -e '/^CFLAGS :=/s/CFLAGS/CPPFLAGS/g' \
34 -e "s/LIBS = -liptc/LIBS = -lip4tc/g" \
35 -e 's/genuuid||//' \
36 Makefile || die
37 sed -i \
38 -e 's/\(strncpy(\([->a-z.]\+\), "[a-zA-Z]\+", \)IPT_FUNCTION_MAXNAMELEN);/\1sizeof(\2));/' \
39 netfilter/iptcrdr.c || die
40 emake config.h
41 }
42
43 src_compile() {
44 emake CC="$(tc-getCC)" || die "emake failed"
45 }
46
47 src_install () {
48 einstall PREFIX="${D}" STRIP="true" || die "einstall failed"
49
50 newinitd "${FILESDIR}"/${PN}-init.d ${PN}
51 newconfd "${FILESDIR}"/${PN}-conf.d ${PN}
52 }
53
54 pkg_postinst() {
55 elog "Please correct the external interface in the top of the two"
56 elog "scripts in /etc/miniupnpd and edit the config file in there too"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20