/[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.2 - (hide annotations) (download)
Mon Apr 26 12:40:55 2004 UTC (15 years, 8 months ago) by agriffis
Branch: MAIN
Changes since 1.1: +3 -3 lines
Add die following econf for bug 48950

1 agriffis 1.2 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 avenj 1.1 # Distributed under the terms of the GNU General Public License v2
3 agriffis 1.2 # $Header: /home/cvsroot/gentoo-x86/net-misc/portfwd/portfwd-0.26_rc6-r1.ebuild,v 1.1 2003/12/03 21:22:18 avenj 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    
13     DEPEND=">=sys-apps/sed-4"
14     RDEPEND="${DEPEND}"
15    
16     src_unpack() {
17     unpack ${A}
18     cd ${WORKDIR}/${P/_/}
19    
20     cd src
21     sed -iorig \
22     -e "s:^CFLAGS =.*:CFLAGS = @CFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
23     -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
24     Makefile.am
25     cd ../tools
26     sed -iorig \
27     -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
28     Makefile.am
29     cd ../getopt
30     sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am
31     cd ../doc
32     sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
33     cd ..
34     sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
35     }
36    
37     src_compile() {
38     cd ${WORKDIR}/${P/_/}
39    
40     ./bootstrap
41 agriffis 1.2 econf || die "econf failed"
42 avenj 1.1 emake
43     }
44    
45     src_install() {
46     cd ${WORKDIR}/${P/_/}
47    
48     einstall
49     prepalldocs
50    
51     dodoc cfg/*
52    
53     insinto /etc/init.d
54     insopts -m0755
55     newins ${FILESDIR}/${PN}.init ${PN}
56    
57     insinto /etc/conf.d
58     insopts -m0644
59     newins ${FILESDIR}/${PN}.confd ${PN}
60     }
61    
62     pkg_postinst() {
63     einfo "Many configuration file (/etc/portfwd.cfg) samples are available in /usr/share/doc/${P}"
64     }

  ViewVC Help
Powered by ViewVC 1.1.20