You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
11 years ago
|
|
||
8 years ago
|
EAPI=6
|
||
11 years ago
|
inherit autotools eutils systemd
|
||
|
|
||
|
DESCRIPTION="Port Forwarding Daemon"
|
||
|
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
||
|
HOMEPAGE="http://portfwd.sourceforge.net"
|
||
|
LICENSE="GPL-2"
|
||
|
|
||
|
SLOT="0"
|
||
10 years ago
|
KEYWORDS="amd64 ia64 ~ppc ~sparc x86"
|
||
11 years ago
|
IUSE=""
|
||
|
|
||
|
DEPEND=">=sys-apps/sed-4"
|
||
|
RDEPEND=""
|
||
|
|
||
|
src_prepare() {
|
||
8 years ago
|
default
|
||
|
|
||
11 years ago
|
cd src
|
||
|
sed -iorig \
|
||
|
-e "s:^CFLAGS =.*:CFLAGS = @CFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
|
||
|
-e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
|
||
|
Makefile.am || die
|
||
|
cd ../tools
|
||
|
sed -iorig \
|
||
|
-e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
|
||
|
Makefile.am || die
|
||
|
cd ../getopt
|
||
|
sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am || die
|
||
|
cd ../doc
|
||
|
sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am || die
|
||
|
cd ..
|
||
|
sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am || die
|
||
|
|
||
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
dodoc cfg/*
|
||
|
|
||
|
newinitd "${FILESDIR}"/${PN}.init ${PN}
|
||
|
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||
|
systemd_dounit "${FILESDIR}"/${PN}.service
|
||
|
}
|