/[gentoo-x86]/net-misc/portfwd/portfwd-0.29.ebuild
Gentoo

Contents of /net-misc/portfwd/portfwd-0.29.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Mar 4 20:14:13 2014 UTC (5 years, 9 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #501388

(Portage version: 2.2.7/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

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/portfwd/portfwd-0.29.ebuild,v 1.3 2014/03/02 22:45:45 pacho Exp $
4
5 EAPI=5
6 inherit autotools eutils systemd
7
8 DESCRIPTION="Port Forwarding Daemon"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10 HOMEPAGE="http://portfwd.sourceforge.net"
11 LICENSE="GPL-2"
12
13 SLOT="0"
14 KEYWORDS="amd64 ia64 ~ppc ~sparc x86"
15 IUSE=""
16
17 DEPEND=">=sys-apps/sed-4"
18 RDEPEND=""
19
20 src_prepare() {
21 cd src
22 sed -iorig \
23 -e "s:^CFLAGS =.*:CFLAGS = @CFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
24 -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
25 Makefile.am || die
26 cd ../tools
27 sed -iorig \
28 -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
29 Makefile.am || die
30 cd ../getopt
31 sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am || die
32 cd ../doc
33 sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am || die
34 cd ..
35 sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am || die
36
37 eautoreconf
38 }
39
40 src_install() {
41 default
42
43 dodoc cfg/*
44
45 newinitd "${FILESDIR}"/${PN}.init ${PN}
46 newconfd "${FILESDIR}"/${PN}.confd ${PN}
47 systemd_dounit "${FILESDIR}"/${PN}.service
48 }

  ViewVC Help
Powered by ViewVC 1.1.20