Gentoo Archives: gentoo-commits

From: "Bjarke Istrup Pedersen (gurligebis)" <gurligebis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/miniupnpd: miniupnpd-1.7_pre20120509.ebuild ChangeLog miniupnpd-1.7_pre20120207-r1.ebuild
Date: Sun, 13 May 2012 17:49:01
Message-Id: 20120513174841.40ADD2004B@flycatcher.gentoo.org
1 gurligebis 12/05/13 17:48:41
2
3 Modified: ChangeLog
4 Added: miniupnpd-1.7_pre20120509.ebuild
5 Removed: miniupnpd-1.7_pre20120207-r1.ebuild
6 Log:
7 Bumping to 1.7_pre20120509
8
9 (Portage version: 2.2.0_alpha104/cvs/Linux i686)
10
11 Revision Changes Path
12 1.26 net-misc/miniupnpd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/ChangeLog?rev=1.26&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/ChangeLog?rev=1.26&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/ChangeLog?r1=1.25&r2=1.26
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/ChangeLog,v
21 retrieving revision 1.25
22 retrieving revision 1.26
23 diff -u -r1.25 -r1.26
24 --- ChangeLog 3 Apr 2012 09:45:31 -0000 1.25
25 +++ ChangeLog 13 May 2012 17:48:41 -0000 1.26
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-misc/miniupnpd
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/ChangeLog,v 1.25 2012/04/03 09:45:31 gurligebis Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/ChangeLog,v 1.26 2012/05/13 17:48:41 gurligebis Exp $
31 +
32 +*miniupnpd-1.7_pre20120509 (13 May 2012)
33 +
34 + 13 May 2012; <gurligebis@g.o> -miniupnpd-1.7_pre20120207-r1.ebuild,
35 + +miniupnpd-1.7_pre20120509.ebuild:
36 + Bumping to 1.7_pre20120509
37
38 *miniupnpd-1.7_pre20120207-r1 (03 Apr 2012)
39
40
41
42
43 1.1 net-misc/miniupnpd/miniupnpd-1.7_pre20120509.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/miniupnpd-1.7_pre20120509.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/miniupnpd-1.7_pre20120509.ebuild?rev=1.1&content-type=text/plain
47
48 Index: miniupnpd-1.7_pre20120509.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/miniupnpd-1.7_pre20120509.ebuild,v 1.1 2012/05/13 17:48:41 gurligebis Exp $
53
54 EAPI=2
55 inherit eutils toolchain-funcs
56
57 MY_PV=1.6.20120509
58 S="${WORKDIR}/${PN}-${MY_PV}"
59
60 DESCRIPTION="MiniUPnP IGD Daemon"
61 SRC_URI="http://miniupnp.free.fr/files/${PN}-${MY_PV}.tar.gz"
62 HOMEPAGE="http://miniupnp.free.fr/"
63
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE=""
68
69 RDEPEND=">=net-firewall/iptables-1.4.6"
70 DEPEND="${RDEPEND}
71 sys-apps/util-linux
72 sys-apps/lsb-release"
73
74 src_prepare() {
75 mv Makefile.linux Makefile
76 sed -i \
77 -e "s#^CFLAGS = .*-D#CPPFLAGS += -I/usr/include -D#" \
78 -e '/^CFLAGS :=/s/CFLAGS/CPPFLAGS/g' \
79 -e "s/CFLAGS += -ansi/#CFLAGS += -ansi/g" \
80 -e "s/LIBS = -liptc/LIBS = -lip4tc/g" \
81 -e 's/genuuid||//' \
82 Makefile || die
83 sed -i \
84 -e 's/\(strncpy(\([->a-z.]\+\), "[a-zA-Z]\+", \)IPT_FUNCTION_MAXNAMELEN);/\1sizeof(\2));/' \
85 netfilter/iptcrdr.c || die
86
87 emake config.h
88
89 sed -i \
90 -e 's/\/\*#define ENABLE_LEASEFILE\*\//#define ENABLE_LEASEFILE/g' \
91 config.h || die
92 }
93
94 src_compile() {
95 emake CC="$(tc-getCC)" || die "emake failed"
96 }
97
98 src_install () {
99 einstall PREFIX="${D}" STRIP="true" || die "einstall failed"
100
101 newinitd "${FILESDIR}"/${PN}-init.d ${PN}
102 newconfd "${FILESDIR}"/${PN}-conf.d ${PN}
103 }
104
105 pkg_postinst() {
106 elog "Please correct the external interface in the top of the two"
107 elog "scripts in /etc/miniupnpd and edit the config file in there too"
108 }