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

Contents of /net-misc/miniupnpd/miniupnpd-1.10_pre20141128.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Nov 29 12:40:13 2014 UTC (3 years, 11 months ago) by gurligebis
Branch: MAIN
Bumping to 1.10_pre2014112

(Portage version: 2.2.14/cvs/Linux x86_64, 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.9_pre20140523.ebuild,v 1.1 2014/07/26 09:03:37 gurligebis Exp $
4
5 EAPI="5"
6
7 inherit eutils toolchain-funcs
8
9 MY_PV=1.9.20141128
10 MY_P="${PN}-${MY_PV}"
11
12 DESCRIPTION="MiniUPnP IGD Daemon"
13 HOMEPAGE="http://miniupnp.free.fr/"
14 SRC_URI="http://miniupnp.free.fr/files/${MY_P}.tar.gz"
15
16 LICENSE="BSD"
17 SLOT="0"
18 KEYWORDS="~amd64 ~arm ~x86"
19 IUSE=""
20
21 RDEPEND=">=net-firewall/iptables-1.4.6
22 net-libs/libnfnetlink"
23 DEPEND="${RDEPEND}
24 sys-apps/util-linux
25 sys-apps/lsb-release"
26
27 S="${WORKDIR}/${MY_P}"
28
29 src_prepare() {
30 epatch "${FILESDIR}"/${PN}-1.10-build.patch
31 mv Makefile.linux Makefile || die
32 }
33
34 src_configure() {
35 tc-export CC
36 export STRIP=true
37
38 emake config.h
39 sed -i -r \
40 -e '/#define ENABLE_LEASEFILE/s:(/[*]|[*]/)::g' \
41 config.h || die
42
43 sed -i -r \
44 -e '/#define ENABLE_MANUFACTURER_INFO_CONFIGURATION/s:(/[*]|[*]/)::g' \
45 config.h || die
46 }
47
48 src_compile() {
49 # By default, it builds a bunch of unittests we don't run.
50 emake CC="$(tc-getCC)" miniupnpd
51 }
52
53 src_install() {
54 emake install PREFIX="${ED}"
55
56 newinitd "${FILESDIR}"/${PN}-init.d ${PN}
57 newconfd "${FILESDIR}"/${PN}-conf.d ${PN}
58 }
59
60 pkg_postinst() {
61 elog "Please correct the external interface in the top of the two"
62 elog "scripts in /etc/miniupnpd and edit the config file in there too"
63 }

  ViewVC Help
Powered by ViewVC 1.1.20