/[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.6 - (hide annotations) (download)
Tue Feb 20 13:32:00 2007 UTC (12 years, 11 months ago) by blubb
Branch: MAIN
Changes since 1.5: +5 -3 lines
64bit fixes; bug 164782; thanks to Jose Quinteiro for the patch
(Portage version: 2.1.2-r9)

1 blubb 1.6 # Copyright 1999-2007 Gentoo Foundation
2 smithj 1.1 # Distributed under the terms of the GNU General Public License v2
3 blubb 1.6 # $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/portfwd-0.28.ebuild,v 1.5 2006/10/26 09:39:00 pva 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     cd ${WORKDIR}/${P/_/}
24    
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     }
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     insinto /etc/init.d
61     insopts -m0755
62     newins ${FILESDIR}/${PN}.init ${PN}
63    
64     insinto /etc/conf.d
65     insopts -m0644
66     newins ${FILESDIR}/${PN}.confd ${PN}
67     }
68    
69     pkg_postinst() {
70     einfo "Many configuration file (/etc/portfwd.cfg) samples are available in /usr/share/doc/${P}"
71     }

  ViewVC Help
Powered by ViewVC 1.1.20