summaryrefslogtreecommitdiff
path: root/net-libs/libtelnet
diff options
context:
space:
mode:
Diffstat (limited to 'net-libs/libtelnet')
-rw-r--r--net-libs/libtelnet/Manifest7
-rw-r--r--net-libs/libtelnet/files/libtelnet-9999-doc.patch39
-rw-r--r--net-libs/libtelnet/libtelnet-0.21.ebuild29
-rw-r--r--net-libs/libtelnet/libtelnet-0.23.ebuild24
-rw-r--r--net-libs/libtelnet/libtelnet-9999.ebuild12
5 files changed, 89 insertions, 22 deletions
diff --git a/net-libs/libtelnet/Manifest b/net-libs/libtelnet/Manifest
index 2927c6937a29..261b559dfada 100644
--- a/net-libs/libtelnet/Manifest
+++ b/net-libs/libtelnet/Manifest
@@ -1,4 +1,7 @@
+AUX libtelnet-9999-doc.patch 1317 BLAKE2B 07293a3658b80cccb147a75279ae7f6b9843101a0414233db33d8e4a2b6fd47283dd35a69942aff2f52775c359b5acf67f739434d5161ba13ed84eca62c95c45 SHA512 de7aef7504a3243fe01bcc11a78bc274f8662dc6fa472a1b6ab8fb84a1a518491d2343e4dd9817e6dbb0ba67fbd68406fd85ce4d1ae6e4e6469b3f71c3594d99
DIST libtelnet-0.21.tar.gz 240486 BLAKE2B 24765fde2344f11050c17d14721c5dd2513b3f4c7f3a3494acf068d9c6b799464f07eb0c26330c9ceea962347c626cd88746f22289c04b4ec5d555d635322b35 SHA512 69dc0ac4741c81d932136cd736b48a11a05cd2738da6255d6050844f50a2f16c575c747e5c758bbdbc6b1e3309ce02e4979f0002b40fed32a3711aa8f22e04f1
-EBUILD libtelnet-0.21.ebuild 758 BLAKE2B 877975783f890d5dbbfae396756750df0aaa7a76d03b64635abd0454b88e03a3fc71ad2f38ddc5e74a63db88d933419e0216f8ef59472e5c3646cd7ce8696173 SHA512 3fc52ee5aa7db6ec297ffda19d2242311385459cf79ebf6fb419c4b1cb8036e9b44df4109298cc3d9248fdb8a3a1f762e0b0e179362b8587f44942b0e69aa43b
-EBUILD libtelnet-9999.ebuild 606 BLAKE2B d4a9f01961fe74418f5920b2b26081e2691f40eca1a58acce94af37afaf441117a4ea9c696c76e6bad58ad30019a81c107761a01e54a8b908444bc2b8fdb5551 SHA512 1f75e3f1c4592e87624f73e96d401e4663b0fea3f9dca018aaed94b613893d7acf03de988ad46879ef27b4f1ea82b545057a6c8f6031bc1a1f4e7631d7afdb0e
+DIST libtelnet-0.23.tar.gz 241922 BLAKE2B 0436c3eb2085c0fc4262f30c86f634af33679a2381a54dbfe92e6f6196b825b100c9c35f78505191b7fea5360a16d9b960e35ff145cd177aaab50968b2fbe946 SHA512 da16a97d04bc6bb5959f431e0aaa03d08ac38e45ba870d7fe6161551ecfdbd5c37a2209cfb40a0f574e6ea0b5c2866c7461cc91d940d5bb5de09fe1584eeb780
+EBUILD libtelnet-0.21.ebuild 640 BLAKE2B 59300116081387118b5dace72ece43f654588e95003bee96c040a6169c50a1c5f41d8c1cfa8aecb2a8ad3b001d9bd43aec65bd61db70eea0d46afbcb2599191c SHA512 7877506c4ba6671f497c77dd15acf7a0f16d42bd843b27b509193007285d9ccdbb3776f889d243ea040999d2fb37349588661ce56f19e29a98d15fc24bf58775
+EBUILD libtelnet-0.23.ebuild 525 BLAKE2B 29c0e2acc438660d3316afc8978575ba453fcb274f7fba788690ae16154e8eef50ee33e44204e6df847363c670faab9567b7acde201e9f2f1fcf0704d4f743d6 SHA512 86b5b05952832d2852a7be52ee039195a8d0952b11be32ebdb152817777173e4676f25ca16c787a28955d662fba79e800d929c90c11792b0378bff2f0a0a437b
+EBUILD libtelnet-9999.ebuild 670 BLAKE2B 8548e2c2c2d138c94586f3b1874a047cad412522456678674595b659ab0cdb54a5cec709e4516da1c3f53628b30c05adcbd528f4f1fef147934288e600f590a5 SHA512 a680d12564f83bcbbb7e7ffa1bf6c14a2ce80465c1cd7a4db658b05ddf6987184ae68599fd64dbf9fc6cb7b4ddd67793058f4fe7b1c2c91e734823306d9d1c1a
MISC metadata.xml 352 BLAKE2B 35d61ac47c3cbe79d89b33487dc05c167799f4352f2a339ba47054c0f27a135745bd6f24d6b77fe13491395775c1f05878958f7aec11c7d70286f74370e714eb SHA512 8e0b4ff5329576c1b209652dee6e5ad1717ae7d2c9938c570d12641e9d1eea9769050539f73b5d6074290e6a95f87de96c054b5a3bff830ef237e5e6b1208f3b
diff --git a/net-libs/libtelnet/files/libtelnet-9999-doc.patch b/net-libs/libtelnet/files/libtelnet-9999-doc.patch
new file mode 100644
index 000000000000..c88f6cc3977b
--- /dev/null
+++ b/net-libs/libtelnet/files/libtelnet-9999-doc.patch
@@ -0,0 +1,39 @@
+From 4691956375fae84dcfaeb96c1a204a113d8e5a99 Mon Sep 17 00:00:00 2001
+From: Jakov Smolic <jakov.smolic@sartura.hr>
+Date: Tue, 18 Aug 2020 13:22:52 +0200
+Subject: [PATCH] doc: install manpages in standard directory
+
+Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
+---
+ doc/man/man1/CMakeLists.txt | 4 ++--
+ doc/man/man3/CMakeLists.txt | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/doc/man/man1/CMakeLists.txt b/doc/man/man1/CMakeLists.txt
+index 053dc42..0da441c 100644
+--- a/doc/man/man1/CMakeLists.txt
++++ b/doc/man/man1/CMakeLists.txt
+@@ -1,4 +1,4 @@
+ install(
+ FILES telnet-chatd.1 telnet-client.1 telnet-proxy.1
+- DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man1
+-)
+\ No newline at end of file
++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man1
++)
+diff --git a/doc/man/man3/CMakeLists.txt b/doc/man/man3/CMakeLists.txt
+index b126fea..af40a92 100644
+--- a/doc/man/man3/CMakeLists.txt
++++ b/doc/man/man3/CMakeLists.txt
+@@ -14,5 +14,5 @@ install(
+ ${CMAKE_CURRENT_BINARY_DIR}/telnet_event_t_zmp_t.3
+ ${CMAKE_CURRENT_BINARY_DIR}/telnet_event_t_mssp_t.3
+ ${CMAKE_CURRENT_BINARY_DIR}/telnet_telopt_t.3
+- DESTINATION ${CMAKE_INSTALL_PREFIX}/man/man3
+-)
+\ No newline at end of file
++ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/man/man3
++)
+--
+2.26.2
+
diff --git a/net-libs/libtelnet/libtelnet-0.21.ebuild b/net-libs/libtelnet/libtelnet-0.21.ebuild
index a607c506fd69..758f7e176b20 100644
--- a/net-libs/libtelnet/libtelnet-0.21.ebuild
+++ b/net-libs/libtelnet/libtelnet-0.21.ebuild
@@ -1,28 +1,20 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-inherit eutils autotools
+
+inherit autotools eutils
+
DESCRIPTION="Simple RFC-complient TELNET implementation as a C library"
HOMEPAGE="https://github.com/seanmiddleditch/libtelnet"
+SRC_URI="https://github.com/seanmiddleditch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-if [ ${PV} = 9999 ]; then
- KEYWORDS=""
- EGIT_REPO_URI="https://github.com/seanmiddleditch/${PN}.git"
- inherit git-2
- DEPEND="dev-vcs/git"
- S="${WORKDIR}/${PN}-master"
-else
- KEYWORDS="~amd64 ~x86"
- SRC_URI="https://github.com/seanmiddleditch/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
-fi
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
WANT_AUTOMAKE=1.11
DEPEND="${DEPEND} sys-devel/automake:${WANT_AUTOMAKE}"
-LICENSE="public-domain"
-SLOT="0"
-IUSE=""
-RDEPEND=""
src_prepare() {
_elibtoolize
@@ -31,3 +23,8 @@ src_prepare() {
eautoheader
eautomake
}
+
+src_install() {
+ default
+ find "${D}" -type f -name '*.a' -delete || die
+}
diff --git a/net-libs/libtelnet/libtelnet-0.23.ebuild b/net-libs/libtelnet/libtelnet-0.23.ebuild
new file mode 100644
index 000000000000..f497242059f6
--- /dev/null
+++ b/net-libs/libtelnet/libtelnet-0.23.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="Simple RFC-complient TELNET implementation as a C library"
+HOMEPAGE="https://github.com/seanmiddleditch/libtelnet"
+SRC_URI="https://github.com/seanmiddleditch/libtelnet/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_install() {
+ default
+ find "${D}" -type f -name '*.a' -delete || die
+}
diff --git a/net-libs/libtelnet/libtelnet-9999.ebuild b/net-libs/libtelnet/libtelnet-9999.ebuild
index 957f6345e21a..44e62916c511 100644
--- a/net-libs/libtelnet/libtelnet-9999.ebuild
+++ b/net-libs/libtelnet/libtelnet-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit cmake-utils
+inherit cmake
if [[ ${PV} == *9999 ]]; then
inherit git-r3
@@ -18,7 +18,11 @@ HOMEPAGE="https://github.com/seanmiddleditch/libtelnet"
LICENSE="public-domain"
SLOT="0"
-IUSE=""
# needed unconditionally for man pages
-DEPEND="app-doc/doxygen"
+BDEPEND="app-doc/doxygen"
+
+PATCHES=(
+ # https://bugs.gentoo.org/737886
+ "${FILESDIR}/${P}-doc.patch"
+)