/[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.5 - (hide annotations) (download)
Thu Oct 26 09:39:00 2006 UTC (13 years, 2 months ago) by pva
Branch: MAIN
Changes since 1.4: +5 -1 lines
Use autoools.eclass to take care of autotools dependecies. Fixed bug #152516. Thank Evil Compile Person for report. Cleaning old versions.
(Portage version: 2.1.1)

1 agriffis 1.3 # Copyright 1999-2006 Gentoo Foundation
2 smithj 1.1 # Distributed under the terms of the GNU General Public License v2
3 pva 1.5 # $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/portfwd-0.28.ebuild,v 1.4 2006/08/05 21:58:44 weeve Exp $
4    
5     WANT_AUTOCONF="2.5"
6     WANT_AUTOMAKE="1.4"
7     inherit autotools
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     cd src
26     sed -iorig \
27     -e "s:^CFLAGS =.*:CFLAGS = @CFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
28     -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
29     Makefile.am
30     cd ../tools
31     sed -iorig \
32     -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
33     Makefile.am
34     cd ../getopt
35     sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am
36     cd ../doc
37     sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
38     cd ..
39     sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
40     }
41    
42     src_compile() {
43     cd ${WORKDIR}/${P/_/}
44    
45     ./bootstrap
46     econf || die "econf failed"
47     emake
48     }
49    
50     src_install() {
51     cd ${WORKDIR}/${P/_/}
52    
53     einstall
54     prepalldocs
55    
56     dodoc cfg/*
57    
58     insinto /etc/init.d
59     insopts -m0755
60     newins ${FILESDIR}/${PN}.init ${PN}
61    
62     insinto /etc/conf.d
63     insopts -m0644
64     newins ${FILESDIR}/${PN}.confd ${PN}
65     }
66    
67     pkg_postinst() {
68     einfo "Many configuration file (/etc/portfwd.cfg) samples are available in /usr/share/doc/${P}"
69     }

  ViewVC Help
Powered by ViewVC 1.1.20