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

Contents of /net-misc/miniupnpd/miniupnpd-1.7_pre20120207-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun May 13 17:48:41 2012 UTC (5 years, 11 months ago) by gurligebis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Bumping to 1.7_pre20120509

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

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

  ViewVC Help
Powered by ViewVC 1.1.20