* [gentoo-commits] repo/proj/guru:master commit in: net-dialup/tcpser/, net-dialup/tcpser/files/
@ 2023-12-27 20:23 David Roman
0 siblings, 0 replies; only message in thread
From: David Roman @ 2023-12-27 20:23 UTC (permalink / raw
To: gentoo-commits
commit: 816a5cf1c6cbf50114aab755bf6e43ecaa5d9eb0
Author: Seth Price <sprice623 <AT> aol <DOT> com>
AuthorDate: Tue Dec 26 23:42:14 2023 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Tue Dec 26 23:42:14 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=816a5cf1
net-dialup/tcpser: new package, add 1.1.4
Signed-off-by: Seth Price <sprice623 <AT> aol.com>
net-dialup/tcpser/Manifest | 1 +
...er-1.1.4_dont-hardcode-cflags-and-ldflags.patch | 17 ++++++++++++++
net-dialup/tcpser/metadata.xml | 22 ++++++++++++++++++
net-dialup/tcpser/tcpser-1.1.4.ebuild | 27 ++++++++++++++++++++++
4 files changed, 67 insertions(+)
diff --git a/net-dialup/tcpser/Manifest b/net-dialup/tcpser/Manifest
new file mode 100644
index 0000000000..982ac4d76b
--- /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 0000000000..089661438c
--- /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 0000000000..638cb98495
--- /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 0000000000..405bde7cb8
--- /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
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-27 20:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-27 20:23 [gentoo-commits] repo/proj/guru:master commit in: net-dialup/tcpser/, net-dialup/tcpser/files/ David Roman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox