/[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.3 - (show annotations) (download)
Fri Jun 25 00:05:19 2004 UTC (15 years, 7 months ago) by agriffis
Branch: MAIN
Changes since 1.2: +2 -2 lines
update copyright line: Gentoo Technologies => Gentoo Foundation

1 # Copyright 1999-2004 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-r1.ebuild,v 1.2 2004/04/26 12:40:55 agriffis 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 || die "econf failed"
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