Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/miniupnpd: miniupnpd-1.8-r1.ebuild ChangeLog
Date: Tue, 29 Apr 2014 20:58:48
Message-Id: 20140429205842.61A462004B@flycatcher.gentoo.org
1 vapier 14/04/29 20:58:42
2
3 Modified: ChangeLog
4 Added: miniupnpd-1.8-r1.ebuild
5 Log:
6 Clean up build and ebuild so it cross-compiles cleanly, and drop old code no longer needed.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
9
10 Revision Changes Path
11 1.33 net-misc/miniupnpd/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/ChangeLog?rev=1.33&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/ChangeLog?rev=1.33&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/ChangeLog?r1=1.32&r2=1.33
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/ChangeLog,v
20 retrieving revision 1.32
21 retrieving revision 1.33
22 diff -u -r1.32 -r1.33
23 --- ChangeLog 29 Apr 2014 19:47:34 -0000 1.32
24 +++ ChangeLog 29 Apr 2014 20:58:42 -0000 1.33
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-misc/miniupnpd
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/ChangeLog,v 1.32 2014/04/29 19:47:34 vapier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/miniupnpd/ChangeLog,v 1.33 2014/04/29 20:58:42 vapier Exp $
30 +
31 +*miniupnpd-1.8-r1 (29 Apr 2014)
32 +
33 + 29 Apr 2014; Mike Frysinger <vapier@g.o>
34 + +files/miniupnpd-1.8-build.patch, +miniupnpd-1.8-r1.ebuild:
35 + Clean up build and ebuild so it cross-compiles cleanly, and drop old code no
36 + longer needed.
37
38 29 Apr 2014; Mike Frysinger <vapier@g.o> miniupnpd-1.8.ebuild:
39 Add arm love.
40
41
42
43 1.1 net-misc/miniupnpd/miniupnpd-1.8-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/miniupnpd-1.8-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/miniupnpd/miniupnpd-1.8-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: miniupnpd-1.8-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 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.8-r1.ebuild,v 1.1 2014/04/29 20:58:42 vapier Exp $
53
54 EAPI="5"
55
56 inherit eutils toolchain-funcs
57
58 MY_PV=1.8
59 MY_P="${PN}-${MY_PV}"
60
61 DESCRIPTION="MiniUPnP IGD Daemon"
62 HOMEPAGE="http://miniupnp.free.fr/"
63 SRC_URI="http://miniupnp.free.fr/files/${MY_P}.tar.gz"
64
65 LICENSE="BSD"
66 SLOT="0"
67 KEYWORDS="~amd64 ~arm ~x86"
68 IUSE=""
69
70 RDEPEND=">=net-firewall/iptables-1.4.6
71 net-libs/libnfnetlink"
72 DEPEND="${RDEPEND}
73 sys-apps/util-linux
74 sys-apps/lsb-release"
75
76 S="${WORKDIR}/${MY_P}"
77
78 src_prepare() {
79 epatch "${FILESDIR}"/${PN}-1.8-build.patch
80 mv Makefile.linux Makefile || die
81 }
82
83 src_configure() {
84 tc-export CC
85 export STRIP=true
86
87 emake config.h
88 sed -i -r \
89 -e '/#define ENABLE_LEASEFILE/s:(/[*]|[*]/)::g' \
90 config.h || die
91 }
92
93 src_compile() {
94 # By default, it builds a bunch of unittests we don't run.
95 emake CC="$(tc-getCC)" miniupnpd
96 }
97
98 src_install() {
99 emake install PREFIX="${ED}"
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 }