summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-08-12 11:55:34 -0400
committerMike Frysinger <vapier@gentoo.org>2015-08-12 11:56:37 -0400
commit56962507dace3d8a5f32c250c72dfe11af2e1c82 (patch)
tree56d7c0b3ef235732bd8be1478cdb2541ce6fb1f7 /net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild
parentdev-python/webtest: add ~alpha keyword (diff)
downloadgentoo-56962507dace3d8a5f32c250c72dfe11af2e1c82.tar.gz
gentoo-56962507dace3d8a5f32c250c72dfe11af2e1c82.tar.bz2
gentoo-56962507dace3d8a5f32c250c72dfe11af2e1c82.zip
net-misc/netkit-telnetd: update to EAPI=5
This way we can use subslots w/ncurses.
Diffstat (limited to 'net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild')
-rw-r--r--net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild45
1 files changed, 24 insertions, 21 deletions
diff --git a/net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild
index a02cf271b464..7e7f7a21d3db 100644
--- a/net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild
+++ b/net-misc/netkit-telnetd/netkit-telnetd-0.17-r10.ebuild
@@ -2,6 +2,8 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$
+EAPI="5"
+
inherit eutils toolchain-funcs
PATCHLEVEL=36
@@ -21,15 +23,13 @@ SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE=""
-DEPEND=">=sys-libs/ncurses-5.2
+DEPEND=">=sys-libs/ncurses-5.2:=
!net-misc/telnet-bsd"
RDEPEND="${DEPEND}"
S=${WORKDIR}/netkit-telnet-${PV}
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
# Patch: [0]
# Gentoo lacks a maintainer for this package right now. And a
# security problem arose. While reviewing our options for how
@@ -46,9 +46,10 @@ src_unpack() {
epatch "${FILESDIR}"/netkit-telnetd-0.17-cflags-gnu_source.patch
}
-src_compile() {
+src_configure() {
tc-export CC CXX
+ # Not a real autoconf script.
./configure --prefix=/usr || die
sed -i \
@@ -56,26 +57,28 @@ src_compile() {
-e "s:^\(LDFLAGS=\).*:\1${LDFLAGS}:" \
-e "s:-Wpointer-arith::" \
MCONFIG || die
+}
- emake || die
- cd telnetlogin && emake || die
+src_compile() {
+ emake
+ emake -C telnetlogin
}
src_install() {
- dobin telnet/telnet || die
+ dobin telnet/telnet
- dosbin telnetd/telnetd || die
- dosym telnetd /usr/sbin/in.telnetd || die
- dosbin telnetlogin/telnetlogin || die
- doman telnet/telnet.1 || die
- doman telnetd/*.8 || die
- doman telnetd/issue.net.5 || die
- dosym telnetd.8 /usr/share/man/man8/in.telnetd.8 || die
- doman telnetlogin/telnetlogin.8 || die
- dodoc BUGS ChangeLog README || die
- dodoc "${FILESDIR}"/net.issue.sample || die
- newdoc telnet/README README.telnet || die
- newdoc telnet/TODO TODO.telnet || die
+ dosbin telnetd/telnetd
+ dosym telnetd /usr/sbin/in.telnetd
+ dosbin telnetlogin/telnetlogin
+ doman telnet/telnet.1
+ doman telnetd/*.8
+ doman telnetd/issue.net.5
+ dosym telnetd.8 /usr/share/man/man8/in.telnetd.8
+ doman telnetlogin/telnetlogin.8
+ dodoc BUGS ChangeLog README
+ dodoc "${FILESDIR}"/net.issue.sample
+ newdoc telnet/README README.telnet
+ newdoc telnet/TODO TODO.telnet
insinto /etc/xinetd.d
- newins "${FILESDIR}"/telnetd.xinetd telnetd || die
+ newins "${FILESDIR}"/telnetd.xinetd telnetd
}