/[gentoo-x86]/net-misc/portfwd/portfwd-0.26_rc6-r1.ebuild
Gentoo

Contents of /net-misc/portfwd/portfwd-0.26_rc6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Fri Apr 1 16:24:01 2005 UTC (14 years, 9 months ago) by agriffis
Branch: MAIN
Changes since 1.4: +2 -2 lines
stable on ia64
(Portage version: 2.0.51.19)

1 agriffis 1.5 # Copyright 1999-2005 Gentoo Foundation
2 avenj 1.1 # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.5 # $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/portfwd-0.26_rc6-r1.ebuild,v 1.4 2004/07/15 03:18:37 agriffis Exp $
4 avenj 1.1
5     DESCRIPTION="Port Forwarding Daemon"
6     SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz"
7     HOMEPAGE="http://portfwd.sourceforge.net"
8     LICENSE="GPL-2"
9    
10     SLOT="0"
11     KEYWORDS="~x86 ~ia64 ~amd64"
12 agriffis 1.4 IUSE=""
13 avenj 1.1
14     DEPEND=">=sys-apps/sed-4"
15     RDEPEND="${DEPEND}"
16    
17     src_unpack() {
18     unpack ${A}
19     cd ${WORKDIR}/${P/_/}
20    
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
26     cd ../tools
27     sed -iorig \
28     -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
29     Makefile.am
30     cd ../getopt
31     sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am
32     cd ../doc
33     sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
34     cd ..
35     sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
36     }
37    
38     src_compile() {
39     cd ${WORKDIR}/${P/_/}
40    
41     ./bootstrap
42 agriffis 1.2 econf || die "econf failed"
43 avenj 1.1 emake
44     }
45    
46     src_install() {
47     cd ${WORKDIR}/${P/_/}
48    
49     einstall
50     prepalldocs
51    
52     dodoc cfg/*
53    
54     insinto /etc/init.d
55     insopts -m0755
56     newins ${FILESDIR}/${PN}.init ${PN}
57    
58     insinto /etc/conf.d
59     insopts -m0644
60     newins ${FILESDIR}/${PN}.confd ${PN}
61     }
62    
63     pkg_postinst() {
64     einfo "Many configuration file (/etc/portfwd.cfg) samples are available in /usr/share/doc/${P}"
65     }

  ViewVC Help
Powered by ViewVC 1.1.20