/[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.9 - (hide annotations) (download)
Thu Oct 28 10:15:42 2010 UTC (9 years, 2 months ago) by ssuominen
Branch: MAIN
Changes since 1.8: +7 -7 lines
quoting

(Portage version: 2.2.0_alpha1/cvs/Linux x86_64)

1 ssuominen 1.9 # Copyright 1999-2010 Gentoo Foundation
2 smithj 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.9 # $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/portfwd-0.28.ebuild,v 1.8 2008/06/04 17:25:02 flameeyes Exp $
4 pva 1.5
5     WANT_AUTOCONF="2.5"
6     WANT_AUTOMAKE="1.4"
7 blubb 1.6 inherit autotools eutils
8 smithj 1.1
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 weeve 1.4 KEYWORDS="~amd64 ia64 ~ppc ~sparc x86"
16 smithj 1.1 IUSE=""
17    
18     DEPEND=">=sys-apps/sed-4"
19     RDEPEND=""
20    
21     src_unpack() {
22     unpack ${A}
23 ssuominen 1.9 cd "${WORKDIR}"/${P/_/}
24 smithj 1.1
25 blubb 1.6 epatch "${FILESDIR}"/${P}-64bit.patch
26    
27 smithj 1.1 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 flameeyes 1.8
43     eautoreconf
44 smithj 1.1 }
45    
46     src_compile() {
47 ssuominen 1.9 cd "${WORKDIR}"/${P/_/}
48 smithj 1.1
49     econf || die "econf failed"
50     emake
51     }
52    
53     src_install() {
54 ssuominen 1.9 cd "${WORKDIR}"/${P/_/}
55 smithj 1.1
56     einstall
57     prepalldocs
58    
59     dodoc cfg/*
60    
61 ssuominen 1.9 newinitd "${FILESDIR}"/${PN}.init ${PN}
62     newconfd "${FILESDIR}"/${PN}.confd ${PN}
63 smithj 1.1 }
64    
65     pkg_postinst() {
66     einfo "Many configuration file (/etc/portfwd.cfg) samples are available in /usr/share/doc/${P}"
67     }

  ViewVC Help
Powered by ViewVC 1.1.20