commit:     c396b61cbc93c78290a0bbd6ec6cc788b2e5f79d
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Oct  7 06:17:36 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Oct  7 06:33:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c396b61c

net-misc/rinetd: EAPI6->8, remove dead urls, fix license

wrt sed, removing lets implicit rules do their thing and
no need to insert variables

also move html file in html/

technically license still need GPL-2 due to init script

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-misc/rinetd/rinetd-0.62-r2.ebuild | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/net-misc/rinetd/rinetd-0.62-r2.ebuild 
b/net-misc/rinetd/rinetd-0.62-r2.ebuild
index 527f67d7834f..d1db674c0bc7 100644
--- a/net-misc/rinetd/rinetd-0.62-r2.ebuild
+++ b/net-misc/rinetd/rinetd-0.62-r2.ebuild
@@ -1,33 +1,38 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI=8
 
 inherit toolchain-funcs
 
 DESCRIPTION="redirects TCP connections from one IP address and port to another"
-HOMEPAGE="http://www.boutell.com/rinetd/";
-SRC_URI="http://www.boutell.com/rinetd/http/rinetd.tar.gz -> ${P}.tar.gz"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
+SRC_URI="mirror://gentoo/${P}.tar.gz"
+S="${WORKDIR}/${PN}"
 
-LICENSE="GPL-2"
+LICENSE="GPL-2+ GPL-2"
 SLOT="0"
 KEYWORDS="amd64 x86"
-IUSE=""
-
-S=${WORKDIR}/${PN}
 
 src_prepare() {
        default
-       sed -i -e "s:gcc:$(tc-getCC) \$(CFLAGS) \$(LDFLAGS):" Makefile
+
+       sed -i '/gcc rinetd/d' Makefile || die
 }
 
 src_compile() {
-       emake CFLAGS="${CFLAGS} -DLINUX" LDFLAGS="${LDFLAGS}"
+       tc-export CC
+
+       emake CFLAGS="${CFLAGS} -DLINUX"
 }
 
 src_install() {
        dosbin rinetd
-       newinitd "${FILESDIR}"/rinetd.rc rinetd
        doman rinetd.8
-       dodoc CHANGES README index.html
+       einstalldocs
+
+       docinto html
+       dodoc index.html
+
+       newinitd "${FILESDIR}"/rinetd.rc rinetd
 }

Reply via email to