/[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.1 - (hide annotations) (download)
Wed Dec 3 21:22:18 2003 UTC (16 years, 1 month ago) by avenj
Branch: MAIN
Lots of updates from bug 33994 - thanks Alessandro Pisani

1 avenj 1.1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3     # $Header: /home/cvsroot/gentoo-x86/net-misc/portfwd/portfwd-0.26_rc6.ebuild,v 1.2 2003/11/20 19:20:06 avenj Exp $
4    
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     econf
42     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