diff options
Diffstat (limited to 'net-misc/utelnetd')
-rw-r--r-- | net-misc/utelnetd/Manifest | 2 | ||||
-rw-r--r-- | net-misc/utelnetd/files/utelnetd-0.1.11-musl-getgt.patch | 14 | ||||
-rw-r--r-- | net-misc/utelnetd/utelnetd-0.1.11-r4.ebuild | 38 |
3 files changed, 54 insertions, 0 deletions
diff --git a/net-misc/utelnetd/Manifest b/net-misc/utelnetd/Manifest index c58eeebabd63..6d207ec94b4e 100644 --- a/net-misc/utelnetd/Manifest +++ b/net-misc/utelnetd/Manifest @@ -1,4 +1,6 @@ +AUX utelnetd-0.1.11-musl-getgt.patch 267 BLAKE2B 8470c533d2b0d6271521bb68e6742eac0d7eb17ee5ccc6c9723b34da10c5b797f014f505cb1064e4eff1a1badb879f22a05b4893048fcb130d1f9b21e806fafa SHA512 d9e0abafb72c28339b614bf9335043be85d0541bb20be14d9259ce8f861c00509e0f3ca6b962ef25aa34c11347e6214d44a170d1fc9ef79c6c5a715d70a18172 AUX utelnetd.initd 349 BLAKE2B 7e071244e681cf048302a95372cb11698ab6f53a2ea1d3d79d2e08748c3741d65abedf864d76df91007e1b127e8fd5406c19e5861cd44d1fd935d51676806f11 SHA512 543f888cc0016bf374106bdc09504e15ad9eb2db67bc8c98c386ad50564bd24a9e481a977314c9a8734a9c8b43af26c20df36525ff249f8c6f0ef87344afc248 DIST utelnetd-0.1.11.tar.gz 14548 BLAKE2B bf87dd15b3bb40154b5db1bd707c8096bce04e40d203a7b0613d55535f19c98cc767db2bd6b6004568bd362ab115e95c7e1f05c77b3be0a3a594c55ec49842bb SHA512 96b34cba5b007ae0114810a1f7ef348b4db0f210b6f6a76b056420d4c7aa2c8f862253924d21add98d9db7736f9acb61a08084ddee7b8bfa1d4012776a0bb2db EBUILD utelnetd-0.1.11-r3.ebuild 676 BLAKE2B f599c17803423843a263cd9945cf3157e6b6928d02a9810084a172a7b6e1444cae2507864832623da2e20ee386204f1b51666728614ce2b12f3915762c356844 SHA512 7eb87b3c15a9b2d1344a0e950cf7fa0ef223a0ead44d68fa6590b578a54969a3286dd92a8495b48d4a528ffc3bb0c2759f4112ccad3e63dfc8a37b41a99d7f34 +EBUILD utelnetd-0.1.11-r4.ebuild 734 BLAKE2B 23cdf155bde2cab0549f5e1e36f7d81bfd8bbb3ebd773d0eb500a2c420e35ca774be9574267349cfa1510bb30f8c6824125abdf784abf65f0d49bafc3b28773b SHA512 d2a748930038ed07c21ad3d102a4b0a0868c2975f00b8c0939991266a6d1b5ed274764ad62fe7eb4103cdabf157852ca3b2fab3e7c73045c6ace5ab31f1113a8 MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a diff --git a/net-misc/utelnetd/files/utelnetd-0.1.11-musl-getgt.patch b/net-misc/utelnetd/files/utelnetd-0.1.11-musl-getgt.patch new file mode 100644 index 000000000000..b011e90807c3 --- /dev/null +++ b/net-misc/utelnetd/files/utelnetd-0.1.11-musl-getgt.patch @@ -0,0 +1,14 @@ +Bug: https://bugs.gentoo.org/897954 +--- a/utelnetd.c ++++ b/utelnetd.c +@@ -73,6 +73,10 @@ + #define getpt() posix_openpt(O_RDWR|O_NOCTTY) + #endif + ++#if !defined(__GLIBC__) ++#define getpt() posix_openpt(O_RDWR) ++#endif ++ + #ifdef DEBUG + #define TELCMDS + #define TELOPTS diff --git a/net-misc/utelnetd/utelnetd-0.1.11-r4.ebuild b/net-misc/utelnetd/utelnetd-0.1.11-r4.ebuild new file mode 100644 index 000000000000..f1f5d885bfca --- /dev/null +++ b/net-misc/utelnetd/utelnetd-0.1.11-r4.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Small telnet daemon derived from the Axis tools" +HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage" +SRC_URI="mirror://gentoo/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~s390 ~sparc ~x86" + +RDEPEND="sys-apps/shadow" + +PATCHES=( + "${FILESDIR}"/${PN}-0.1.11-musl-getgt.patch +) + +src_prepare() { + default + + sed -e "/(STRIP)/d" \ + -e "/^CC/s|=.*|= $(tc-getCC)|" \ + -e "/fomit-frame-pointer/d" \ + -i Makefile || die + + append-cppflags -D_GNU_SOURCE #871195 +} + +src_install() { + dosbin utelnetd + einstalldocs + + newinitd "${FILESDIR}"/utelnetd.initd utelnetd +} |