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

Diff of /net-misc/portfwd/portfwd-0.28.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1.1.1 Revision 1.10
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/Attic/portfwd-0.28.ebuild,v 1.1.1.1 2005/11/30 09:55:28 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-misc/portfwd/Attic/portfwd-0.28.ebuild,v 1.10 2014/03/05 07:45:24 kensington dead $
4
5WANT_AUTOCONF="2.5"
6WANT_AUTOMAKE="1.4"
7inherit autotools eutils
4 8
5DESCRIPTION="Port Forwarding Daemon" 9DESCRIPTION="Port Forwarding Daemon"
6SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz" 10SRC_URI="mirror://sourceforge/${PN}/${P/_/}.tar.gz"
7HOMEPAGE="http://portfwd.sourceforge.net" 11HOMEPAGE="http://portfwd.sourceforge.net"
8LICENSE="GPL-2" 12LICENSE="GPL-2"
9 13
10SLOT="0" 14SLOT="0"
11KEYWORDS="~x86 ~ia64 ~amd64 ~ppc" 15KEYWORDS="~amd64 ia64 ~ppc ~sparc x86"
12IUSE="" 16IUSE=""
13 17
14DEPEND=">=sys-apps/sed-4" 18DEPEND=">=sys-apps/sed-4"
15RDEPEND="" 19RDEPEND=""
16 20
17src_unpack() { 21src_unpack() {
18 unpack ${A} 22 unpack ${A}
19 cd ${WORKDIR}/${P/_/} 23 cd "${WORKDIR}"/${P/_/}
24
25 epatch "${FILESDIR}"/${P}-64bit.patch
20 26
21 cd src 27 cd src
22 sed -iorig \ 28 sed -iorig \
23 -e "s:^CFLAGS =.*:CFLAGS = @CFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \ 29 -e "s:^CFLAGS =.*:CFLAGS = @CFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
24 -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \ 30 -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
31 sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am 37 sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am
32 cd ../doc 38 cd ../doc
33 sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am 39 sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
34 cd .. 40 cd ..
35 sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am 41 sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am
42
43 eautoreconf
36} 44}
37 45
38src_compile() { 46src_compile() {
39 cd ${WORKDIR}/${P/_/} 47 cd "${WORKDIR}"/${P/_/}
40 48
41 ./bootstrap
42 econf || die "econf failed" 49 econf || die "econf failed"
43 emake 50 emake
44} 51}
45 52
46src_install() { 53src_install() {
47 cd ${WORKDIR}/${P/_/} 54 cd "${WORKDIR}"/${P/_/}
48 55
49 einstall 56 einstall
50 prepalldocs 57 prepalldocs
51 58
52 dodoc cfg/* 59 dodoc cfg/*
53 60
54 insinto /etc/init.d
55 insopts -m0755
56 newins ${FILESDIR}/${PN}.init ${PN} 61 newinitd "${FILESDIR}"/${PN}.init ${PN}
57
58 insinto /etc/conf.d
59 insopts -m0644
60 newins ${FILESDIR}/${PN}.confd ${PN} 62 newconfd "${FILESDIR}"/${PN}.confd ${PN}
61} 63}
62 64
63pkg_postinst() { 65pkg_postinst() {
64 einfo "Many configuration file (/etc/portfwd.cfg) samples are available in /usr/share/doc/${P}" 66 einfo "Many configuration file (/etc/portfwd.cfg) samples are available in /usr/share/doc/${P}"
65} 67}

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20