From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E1F3A138222 for ; Wed, 4 May 2016 01:02:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F5D6224102; Wed, 4 May 2016 01:02:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BA37F224044 for ; Wed, 4 May 2016 01:02:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 857D4340C34 for ; Wed, 4 May 2016 01:02:21 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 78F8C345 for ; Wed, 4 May 2016 01:02:17 +0000 (UTC) From: "Austin English" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Austin English" Message-ID: <1462321875.44138a2354da9231ac8ac4c918a7d4656f9532af.wizardedit@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/portfwd/, net-misc/portfwd/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/portfwd/files/portfwd.init net-misc/portfwd/portfwd-0.29-r1.ebuild X-VCS-Directories: net-misc/portfwd/ net-misc/portfwd/files/ X-VCS-Committer: wizardedit X-VCS-Committer-Name: Austin English X-VCS-Revision: 44138a2354da9231ac8ac4c918a7d4656f9532af X-VCS-Branch: master Date: Wed, 4 May 2016 01:02:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5f0ae522-72d0-4766-8a83-c16685f63008 X-Archives-Hash: a885dc774ac707c6baeed1a3821fe91f commit: 44138a2354da9231ac8ac4c918a7d4656f9532af Author: Austin English gentoo org> AuthorDate: Wed May 4 00:31:15 2016 +0000 Commit: Austin English gentoo org> CommitDate: Wed May 4 00:31:15 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44138a23 net-misc/portfwd: use #!/sbin/openrc-run instead of #!/sbin/runscript Gentoo-Bug: https://bugs.gentoo.org/573846 Package-Manager: portage-2.2.26 net-misc/portfwd/files/portfwd.init | 2 +- net-misc/portfwd/portfwd-0.29-r1.ebuild | 50 +++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) diff --git a/net-misc/portfwd/files/portfwd.init b/net-misc/portfwd/files/portfwd.init index a73b796..81452ba 100644 --- a/net-misc/portfwd/files/portfwd.init +++ b/net-misc/portfwd/files/portfwd.init @@ -1,4 +1,4 @@ -#!/sbin/runscript +#!/sbin/openrc-run # $Id$ depend() { diff --git a/net-misc/portfwd/portfwd-0.29-r1.ebuild b/net-misc/portfwd/portfwd-0.29-r1.ebuild new file mode 100644 index 0000000..747d392 --- /dev/null +++ b/net-misc/portfwd/portfwd-0.29-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +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" +KEYWORDS="amd64 ia64 ~ppc ~sparc x86" +IUSE="" + +DEPEND=">=sys-apps/sed-4" +RDEPEND="" + +src_prepare() { + default + + 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 +}