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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat May 10 09:25:26 2014 UTC (4 years, 7 months ago) by gurligebis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Bumping to 1.9_pre20140422 and seperating patch into upstream and non-upstream part.

(Portage version: 2.2.10/cvs/Linux i686, signed Manifest commit with key 15AE484C)

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

  ViewVC Help
Powered by ViewVC 1.1.20