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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sun Apr 29 17:58:29 2007 UTC (12 years, 9 months ago) by tove
Branch: MAIN
Changes since 1.6: +3 -8 lines
Fix *initd, *confd and *envd calls (#173884, #174266)
(Portage version: 2.1.2.5)

1 # Copyright 1999-2007 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.28.ebuild,v 1.6 2007/02/20 13:32:00 blubb Exp $
4
5 WANT_AUTOCONF="2.5"
6 WANT_AUTOMAKE="1.4"
7 inherit autotools eutils
8
9 DESCRIPTION="Port Forwarding Daemon"
10 SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz"
11 HOMEPAGE="http://portfwd.sourceforge.net"
12 LICENSE="GPL-2"
13
14 SLOT="0"
15 KEYWORDS="~amd64 ia64 ~ppc ~sparc x86"
16 IUSE=""
17
18 DEPEND=">=sys-apps/sed-4"
19 RDEPEND=""
20
21 src_unpack() {
22 unpack ${A}
23 cd ${WORKDIR}/${P/_/}
24
25 epatch "${FILESDIR}"/${P}-64bit.patch
26
27 cd src
28 sed -iorig \
29 -e "s:^CFLAGS =.*:CFLAGS = @CFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
30 -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
31 Makefile.am
32 cd ../tools
33 sed -iorig \
34 -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
35 Makefile.am
36 cd ../getopt
37 sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am
38 cd ../doc
39 sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
40 cd ..
41 sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
42 }
43
44 src_compile() {
45 cd ${WORKDIR}/${P/_/}
46
47 ./bootstrap
48 econf || die "econf failed"
49 emake
50 }
51
52 src_install() {
53 cd ${WORKDIR}/${P/_/}
54
55 einstall
56 prepalldocs
57
58 dodoc cfg/*
59
60 newinitd ${FILESDIR}/${PN}.init ${PN}
61 newconfd ${FILESDIR}/${PN}.confd ${PN}
62 }
63
64 pkg_postinst() {
65 einfo "Many configuration file (/etc/portfwd.cfg) samples are available in /usr/share/doc/${P}"
66 }

  ViewVC Help
Powered by ViewVC 1.1.20