Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/portfwd/, net-misc/portfwd/files/
Date: Wed, 04 May 2016 01:02:37
Message-Id: 1462321875.44138a2354da9231ac8ac4c918a7d4656f9532af.wizardedit@gentoo
1 commit: 44138a2354da9231ac8ac4c918a7d4656f9532af
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 4 00:31:15 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 00:31:15 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44138a23
7
8 net-misc/portfwd: use #!/sbin/openrc-run instead of #!/sbin/runscript
9
10 Gentoo-Bug: https://bugs.gentoo.org/573846
11
12 Package-Manager: portage-2.2.26
13
14 net-misc/portfwd/files/portfwd.init | 2 +-
15 net-misc/portfwd/portfwd-0.29-r1.ebuild | 50 +++++++++++++++++++++++++++++++++
16 2 files changed, 51 insertions(+), 1 deletion(-)
17
18 diff --git a/net-misc/portfwd/files/portfwd.init b/net-misc/portfwd/files/portfwd.init
19 index a73b796..81452ba 100644
20 --- a/net-misc/portfwd/files/portfwd.init
21 +++ b/net-misc/portfwd/files/portfwd.init
22 @@ -1,4 +1,4 @@
23 -#!/sbin/runscript
24 +#!/sbin/openrc-run
25 # $Id$
26
27 depend() {
28
29 diff --git a/net-misc/portfwd/portfwd-0.29-r1.ebuild b/net-misc/portfwd/portfwd-0.29-r1.ebuild
30 new file mode 100644
31 index 0000000..747d392
32 --- /dev/null
33 +++ b/net-misc/portfwd/portfwd-0.29-r1.ebuild
34 @@ -0,0 +1,50 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=6
40 +inherit autotools eutils systemd
41 +
42 +DESCRIPTION="Port Forwarding Daemon"
43 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
44 +HOMEPAGE="http://portfwd.sourceforge.net"
45 +LICENSE="GPL-2"
46 +
47 +SLOT="0"
48 +KEYWORDS="amd64 ia64 ~ppc ~sparc x86"
49 +IUSE=""
50 +
51 +DEPEND=">=sys-apps/sed-4"
52 +RDEPEND=""
53 +
54 +src_prepare() {
55 + default
56 +
57 + cd src
58 + sed -iorig \
59 + -e "s:^CFLAGS =.*:CFLAGS = @CFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
60 + -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
61 + Makefile.am || die
62 + cd ../tools
63 + sed -iorig \
64 + -e "s:^CXXFLAGS =.*:CPPFLAGS = @CXXFLAGS@ -Wall -DPORTFWD_CONF=\\\\\"\$(sysconfdir)/portfwd.cfg\\\\\":" \
65 + Makefile.am || die
66 + cd ../getopt
67 + sed -iorig -e "s:$.CC.:\$(CC) @CFLAGS@:g" Makefile.am || die
68 + cd ../doc
69 + sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am || die
70 + cd ..
71 + sed -iorig -e "s:/doc/portfwd:/share/doc/$P:" Makefile.am || die
72 +
73 + eautoreconf
74 +}
75 +
76 +src_install() {
77 + default
78 +
79 + dodoc cfg/*
80 +
81 + newinitd "${FILESDIR}"/${PN}.init ${PN}
82 + newconfd "${FILESDIR}"/${PN}.confd ${PN}
83 + systemd_dounit "${FILESDIR}"/${PN}.service
84 +}