public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-misc/ckermit/files/, app-misc/ckermit/
@ 2025-03-23  8:43 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2025-03-23  8:43 UTC (permalink / raw
  To: gentoo-commits

commit:     d290e4b5721c3dddfc9541ca3ce36aff930f9aa6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 23 08:42:34 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 23 08:43:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d290e4b5

app-misc/ckermit: add 10.0.414_beta11

Closes: https://bugs.gentoo.org/685096
Closes: https://bugs.gentoo.org/870787
Closes: https://bugs.gentoo.org/920452
Closes: https://bugs.gentoo.org/946208
Bug: https://bugs.gentoo.org/948170
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-misc/ckermit/Manifest                          |  1 +
 app-misc/ckermit/ckermit-10.0.414_beta11.ebuild    | 91 +++++++++++++++++++++
 ...kermit-10.0.414_beta11-fix-makefile-typos.patch | 95 ++++++++++++++++++++++
 3 files changed, 187 insertions(+)

diff --git a/app-misc/ckermit/Manifest b/app-misc/ckermit/Manifest
index 06e5efc2a1fe..d2dbbf67272e 100644
--- a/app-misc/ckermit/Manifest
+++ b/app-misc/ckermit/Manifest
@@ -1 +1,2 @@
 DIST cku302.tar.gz 3122219 BLAKE2B 9f63261da2dc2b0fceb0af0fa81da63c87e68b7bf713037cf8675abeb81716fd0dd4cd1f84324562698d9b9126f26b8a651dc79deec37a056fa1047af2d9966e SHA512 2cfc264e5262d29618fdf218fd3407fd9049b16110972cdddb03d114703b7a0ea13c4b0a354f50c2a9f70d4727732fe4d1920b5c656f969bc56c1eb9dc3c43fa
+DIST cku414-beta11.tar.gz 2379096 BLAKE2B a6f6dc496ec07a749af607771c5e68d2a73d8f35d422106fbc3fb6415a93cd4eacb2cc7c492de1e648333d3a4ebd8f7f64a72fa89ef2101c025203db703ddab6 SHA512 0927b06e704bb0f806dd1a8aecd5a213e5650e82910c2da7650848f98d2e51c006cf518d88409abebb61f45bc1967a9e74cd95c65d3082efa11f971df4e0981c

diff --git a/app-misc/ckermit/ckermit-10.0.414_beta11.ebuild b/app-misc/ckermit/ckermit-10.0.414_beta11.ebuild
new file mode 100644
index 000000000000..a6a9a96e54fe
--- /dev/null
+++ b/app-misc/ckermit/ckermit-10.0.414_beta11.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit flag-o-matic toolchain-funcs
+
+# Columbia University only uses the third component, e.g. cku211.tar.gz for
+# what we would call 8.0.211. 4-5 are for betas if used.
+MY_P="cku$(ver_cut 3-5)"
+MY_P=${MY_P/_/-}
+
+# ckermit gets releases very infrequently, so don't be too afraid to
+# package betas. It's better than it being unbuildable and so on.
+DESCRIPTION="Combined serial and network communication software package"
+HOMEPAGE="https://www.kermitproject.org/"
+SRC_URI="
+	https://www.kermitproject.org/ftp/kermit/archives/${MY_P}.tar.gz
+	https://www.kermitproject.org/ftp/kermit/test/tar/${MY_P}.tar.gz
+"
+S="${WORKDIR}"
+
+LICENSE="Kermit"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~x86"
+IUSE="ncurses"
+
+DEPEND="ncurses? ( >=sys-libs/ncurses-5.2:= )"
+RDEPEND="
+	${DEPEND}
+	net-dialup/lrzsz
+"
+BDEPEND="ncurses? ( virtual/pkgconfig )"
+
+PATCHES=(
+	# TODO: Rebase to fix cross?
+	#"${FILESDIR}"/${PN}-8.0.211-build-wart.patch
+
+	"${FILESDIR}"/${PN}-10.0.414_beta11-fix-makefile-typos.patch
+)
+
+src_prepare() {
+	default
+
+	#tc-export_build_env BUILD_CC
+}
+
+src_compile() {
+	# "ckcfn3.c:224:16: error: type of ‘sndfilter’ does not match original declaration"
+	filter-lto
+
+	# We don't enable any of the telnet/ftp authentication stuff
+	# since there are other packages which do these things better
+	# USE="kerberos pam shadow ssl zlib"
+	append-cppflags -DNO_AUTHENTICATION -DNOLOGIN -DNOFTP
+
+	if use ncurses; then
+		append-cppflags "-DCK_NCURSES"
+		append-cppflags "$($(tc-getPKG_CONFIG) --cflags ncurses)"
+		append-libs "$($(tc-getPKG_CONFIG) --libs ncurses)"
+	fi
+
+	append-cppflags -DHAVE_PTMX # bug #202840
+	append-cppflags -DHAVE_CRYPT_H -DHAVE_OPENPTY
+	append-cppflags -DNOARROWKEYS # bug #669332
+
+	local emakeargs=(
+		CC="$(tc-getCC)"
+		CC2="$(tc-getCC)"
+		KFLAGS="${CPPFLAGS} ${CFLAGS} -std=gnu17"
+		LIBS="-lcrypt -lresolv -lutil ${LIBS}"
+		LNKFLAGS="${LDFLAGS}"
+	)
+
+	emake "${emakeargs[@]}" linuxa
+}
+
+src_install() {
+	dodir /usr/bin /usr/share/man/man1
+
+	emake DESTDIR="${ED}" prefix=/usr manroot=/usr/share install
+	dodoc *.txt
+
+	# make the correct symlink
+	rm "${ED}"/usr/bin/kermit-sshsub || die
+	dosym kermit /usr/bin/kermit-sshsub
+
+	# the ckermit.ini script is calling the wrong kermit binary --
+	# the one from ${D}
+	sed -i "s:${D}::g" "${ED}"/usr/bin/ckermit.ini
+}

diff --git a/app-misc/ckermit/files/ckermit-10.0.414_beta11-fix-makefile-typos.patch b/app-misc/ckermit/files/ckermit-10.0.414_beta11-fix-makefile-typos.patch
new file mode 100644
index 000000000000..56040719053e
--- /dev/null
+++ b/app-misc/ckermit/files/ckermit-10.0.414_beta11-fix-makefile-typos.patch
@@ -0,0 +1,95 @@
+Without this, specifying LNKFLAGS breaks the build. It looks like a copy/pasto.
+--- a/makefile
++++ b/makefile
+@@ -1310,7 +1310,6 @@ wermit:	ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
+ 		ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
+ 		ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
+ 		ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
+-	$(CC2) $(LNKFLAGS) -o wermit \
+ 		ckcmai.$(EXT) ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
+ 		ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
+ 		ckcpro.$(EXT) ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) \
+@@ -1319,6 +1318,7 @@ wermit:	ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) ckuus2.$(EXT) \
+ 		ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
+ 		ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
+ 		$(LIBS)
++	$(CC2) $(LNKFLAGS) -o wermit
+ 
+ # Preferred configuration with select()-based CONNECT
+ 
+@@ -1348,8 +1348,8 @@ mermit:	ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
+ 		ckcpro.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) \
+ 		ckuxla.$(EXT) ckucon.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
+ 		ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
+-		ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
+-	$(CC2) $(LNKFLAGS) -o mermit ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
++		ckusig.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
++		ckcmdb.$(EXT) ckclib.$(EXT) ckcmai.$(EXT)\
+ 		ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
+ 		ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
+ 		ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
+@@ -1357,6 +1357,7 @@ mermit:	ckcmdb.$(EXT) ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
+ 		ckuusr.$(EXT) ckucon.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
+ 		ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckcuni.$(EXT) \
+ 		ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
++	$(CC2) $(LNKFLAGS) -o mermit
+ 
+ # Kerberized Version - Subject to USA export restrictions.
+ 
+@@ -1388,8 +1389,8 @@ krbmit-debug:	ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
+ 		ckuxla.$(EXT) ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) \
+ 		ckudia.$(EXT) ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) \
+ 		ckusig.$(EXT) ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) \
+-		ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT) ckcftp.$(EXT) 
+-	$(CC2) $(LNKFLAGS) -o krbmit ckcmdb.$(EXT) ckcmai.$(EXT) \
++		ckupty.$(EXT) ck_ssl.$(EXT) ckcmdb.$(EXT) ckcftp.$(EXT) \
++		ckcmdb.$(EXT) ckcmai.$(EXT) \
+ 		ckclib.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) \
+ 		ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) \
+ 		ckucmd.$(EXT) ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) \
+@@ -1398,6 +1399,7 @@ krbmit-debug:	ckcmai.$(EXT) ckclib.$(EXT) ckucmd.$(EXT) ckuusr.$(EXT) \
+ 		ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
+ 		ckuath.$(EXT) ck_crp.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) \
+ 		ckcftp.$(EXT) ck_ssl.$(EXT) $(LIBS)
++	$(CC2) $(LNKFLAGS) -o krbmit
+ 
+ # SRP(TM) Version - Subject to USA export restrictions.
+ 
+@@ -1428,8 +1430,8 @@ krbmit-export:	ckcmai.$(EXT) \
+ 		ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
+ 		ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
+ 		ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
+-		ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
+-	$(CC2) $(LNKFLAGS) -o krbmit-export ckcmai.$(EXT) ckclib.$(EXT) \
++		ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
++		ckcmai.$(EXT) ckclib.$(EXT) \
+ 		ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
+ 		ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
+ 		ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
+@@ -1437,6 +1439,7 @@ krbmit-export:	ckcmai.$(EXT) \
+ 		ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
+ 		ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
+ 		ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
++	$(CC2) $(LNKFLAGS) -o krbmit-export
+ 
+ # SRP(TM) Version - Not subject to USA export restrictions.
+ 
+@@ -1447,8 +1450,8 @@ srpmit-export:	ckcmai.$(EXT) \
+ 		ckcfns.$(EXT) ckcfn2.$(EXT) ckcfn3.$(EXT) ckuxla.$(EXT) \
+ 		ckucns.$(EXT) ckutio.$(EXT) ckufio.$(EXT) ckudia.$(EXT) \
+ 		ckuscr.$(EXT) ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) \
+-		ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT)
+-	$(CC2) $(LNKFLAGS) -o srpmit-export ckcmai.$(EXT) ckclib.$(EXT) \
++		ckuath.$(EXT) ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) \
++		ckcmai.$(EXT) ckclib.$(EXT) \
+ 		ckutio.$(EXT) ckufio.$(EXT) ckcfns.$(EXT) ckcfn2.$(EXT) \
+ 		ckcfn3.$(EXT) ckuxla.$(EXT) ckcpro.$(EXT) ckucmd.$(EXT) \
+ 		ckuus2.$(EXT) ckuus3.$(EXT) ckuus4.$(EXT) ckuus5.$(EXT) \
+@@ -1456,6 +1459,7 @@ srpmit-export:	ckcmai.$(EXT) \
+ 		ckuusr.$(EXT) ckucns.$(EXT) ckudia.$(EXT) ckuscr.$(EXT) \
+ 		ckcnet.$(EXT) ckctel.$(EXT) ckusig.$(EXT) ckuath.$(EXT) \
+ 		ckcuni.$(EXT) ckupty.$(EXT) ckcftp.$(EXT) $(LIBS)
++	$(CC2) $(LNKFLAGS) -o srpmit-export
+ 
+ ###########################################################################
+ # man page...


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-23  8:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-23  8:43 [gentoo-commits] repo/gentoo:master commit in: app-misc/ckermit/files/, app-misc/ckermit/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox