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

Contents of /net-misc/miniupnpd/miniupnpd-1.9_pre20140422.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jul 26 09:03:37 2014 UTC (4 years, 2 months ago) by gurligebis
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Bumping to 1.9_pre20140523 and adding configure option to enable changing name in config file.

(Portage version: 2.2.10/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_pre20140422.ebuild,v 1.1 2014/05/10 09:25:26 gurligebis Exp $
4
5 EAPI="5"
6
7 inherit eutils toolchain-funcs
8
9 MY_PV=1.8.20140422
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.9-cleanup.patch
31 epatch "${FILESDIR}"/${PN}-1.9-build.patch
32 mv Makefile.linux Makefile || die
33 }
34
35 src_configure() {
36 tc-export CC
37 export STRIP=true
38
39 emake config.h
40 sed -i -r \
41 -e '/#define ENABLE_LEASEFILE/s:(/[*]|[*]/)::g' \
42 config.h || die
43 }
44
45 src_compile() {
46 # By default, it builds a bunch of unittests we don't run.
47 emake CC="$(tc-getCC)" miniupnpd
48 }
49
50 src_install() {
51 emake install PREFIX="${ED}"
52
53 newinitd "${FILESDIR}"/${PN}-init.d ${PN}
54 newconfd "${FILESDIR}"/${PN}-conf.d ${PN}
55 }
56
57 pkg_postinst() {
58 elog "Please correct the external interface in the top of the two"
59 elog "scripts in /etc/miniupnpd and edit the config file in there too"
60 }

  ViewVC Help
Powered by ViewVC 1.1.20