diff options
author | Seth Price <sprice623@aol.com> | 2023-12-26 18:42:14 -0500 |
---|---|---|
committer | Seth Price <sprice623@aol.com> | 2023-12-26 18:42:14 -0500 |
commit | 816a5cf1c6cbf50114aab755bf6e43ecaa5d9eb0 (patch) | |
tree | 72698bbbdf974ff7d4f248e0c18be2500f5c72a0 /net-dialup | |
parent | dev-vcs/lefthook: add 1.5.5-r1, drop 1.5.5 (diff) | |
download | guru-816a5cf1c6cbf50114aab755bf6e43ecaa5d9eb0.tar.gz guru-816a5cf1c6cbf50114aab755bf6e43ecaa5d9eb0.tar.bz2 guru-816a5cf1c6cbf50114aab755bf6e43ecaa5d9eb0.zip |
net-dialup/tcpser: new package, add 1.1.4
Signed-off-by: Seth Price <sprice623@aol.com>
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/tcpser/Manifest | 1 | ||||
-rw-r--r-- | net-dialup/tcpser/files/tcpser-1.1.4_dont-hardcode-cflags-and-ldflags.patch | 17 | ||||
-rw-r--r-- | net-dialup/tcpser/metadata.xml | 22 | ||||
-rw-r--r-- | net-dialup/tcpser/tcpser-1.1.4.ebuild | 27 |
4 files changed, 67 insertions, 0 deletions
diff --git a/net-dialup/tcpser/Manifest b/net-dialup/tcpser/Manifest new file mode 100644 index 000000000..982ac4d76 --- /dev/null +++ b/net-dialup/tcpser/Manifest @@ -0,0 +1 @@ +DIST tcpser-1.1.4.tar.gz 111605 BLAKE2B bc45e6c5870f9ba5bd84cb36721c4833d869ec180491cb0f1cbd1c71fff6b0e5fa60a0864ad055f0e6e840bd7b570b99ffe918c166fdf0e79b6ab7964161d3db SHA512 08b80984b30b8a56fe9fb6690e7d82827b3d9d191e13094a040334e20edd9669b0098abad66d5022a1e022ef95bcea236123c791f7f84948420dfca10e449d4a diff --git a/net-dialup/tcpser/files/tcpser-1.1.4_dont-hardcode-cflags-and-ldflags.patch b/net-dialup/tcpser/files/tcpser-1.1.4_dont-hardcode-cflags-and-ldflags.patch new file mode 100644 index 000000000..089661438 --- /dev/null +++ b/net-dialup/tcpser/files/tcpser-1.1.4_dont-hardcode-cflags-and-ldflags.patch @@ -0,0 +1,17 @@ +Don’t hardcode CFLAGS and LDFLAGS into Makefile.
+
+From: Seth M. Price <sprice623@aol.com>
+
+--- a/Makefile
++++ b/Makefile
+@@ -3,8 +3,8 @@ SRCS = $(SRC)/bridge.c $(SRC)/debug.c $(SRC)/getcmd.c $(SRC)/ip.c $(SRC)/init.c
+ OBJS = $(SRC)/bridge.o $(SRC)/debug.o $(SRC)/getcmd.o $(SRC)/ip.o $(SRC)/init.o $(SRC)/modem_core.o $(SRC)/nvt.o $(SRC)/serial.o $(SRC)/ip232.o $(SRC)/util.o $(SRC)/phone_book.o $(SRC)/tcpser.o $(SRC)/dce.o $(SRC)/line.o
+ CC ?= gcc
+ DEF =
+-CFLAGS = -O $(DEF) -Wall
+-LDFLAGS = -lpthread
++CFLAGS =
++LDFLAGS += -lpthread
+ DEPEND = makedepend $(DEF) $(CFLAGS)
+
+ all: tcpser
diff --git a/net-dialup/tcpser/metadata.xml b/net-dialup/tcpser/metadata.xml new file mode 100644 index 000000000..638cb9849 --- /dev/null +++ b/net-dialup/tcpser/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Seth M. Price</name> + <email>sprice623@aol.com</email> + </maintainer> + <longdescription lang="en"> + TCPSER turns a PC serial port into an emulated Hayes compatible + modem that uses TCP/IP for incoming and outgoing connections. + It can be used to allow older applications and systems designed + for modem use to operate on the Internet. TCPSER supports all + standard Hayes commands, and understands extended and vendor + proprietary commands (though it does not implement many of + them). TCPSER can be used for both inbound and outbound + connections. + </longdescription> + <upstream> + <bugs-to>https://github.com/go4retro/tcpser/issues</bugs-to> + <remote-id type="github">go4retro/tcpser</remote-id> + </upstream> +</pkgmetadata> diff --git a/net-dialup/tcpser/tcpser-1.1.4.ebuild b/net-dialup/tcpser/tcpser-1.1.4.ebuild new file mode 100644 index 000000000..405bde7cb --- /dev/null +++ b/net-dialup/tcpser/tcpser-1.1.4.ebuild @@ -0,0 +1,27 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Hayes Smartmodem emulator over TCP/IP" +HOMEPAGE="https://github.com/go4retro/tcpser" +SRC_URI="https://github.com/go4retro/tcpser/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +src_compile() { + # Fix CR-LF incompatibility with patch + eapply --binary "${FILESDIR}/${P}_dont-hardcode-cflags-and-ldflags.patch" + + make all CC=$(tc-getCC) +} + +src_install() { + dobin tcpser + doman man/tcpser.1 + dodoc README.md +} |