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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Oct 26 09:49:54 2006 UTC (13 years, 1 month ago) by pva
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Cleaning old versions again.
(Portage version: 2.1.1)
 (Unsigned Manifest commit)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/portfwd-0.26_rc6.ebuild,v 1.8 2005/05/06 14:58:54 swegener 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 IUSE=""
13
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 econf || die "econf failed"
43 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 einfo
66 }

  ViewVC Help
Powered by ViewVC 1.1.20