/[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.2 - (show annotations) (download)
Sat Dec 24 21:45:41 2005 UTC (14 years, 1 month ago) by halcy0n
Branch: MAIN
Changes since 1.1: +2 -2 lines
Stable on x86; bug #94096
(Portage version: 2.1_pre1)

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.28.ebuild,v 1.1 2005/07/12 02:28:22 smithj 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="~amd64 ~ia64 ~ppc x86"
12 IUSE=""
13
14 DEPEND=">=sys-apps/sed-4"
15 RDEPEND=""
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 }

  ViewVC Help
Powered by ViewVC 1.1.20