net-dialup/tcpser: new package, add 1.1.4

Signed-off-by: Seth Price <sprice623@aol.com>
This commit is contained in:
Seth Price
2023-12-26 18:42:14 -05:00
parent cd5dbae6c2
commit 816a5cf1c6
4 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST tcpser-1.1.4.tar.gz 111605 BLAKE2B bc45e6c5870f9ba5bd84cb36721c4833d869ec180491cb0f1cbd1c71fff6b0e5fa60a0864ad055f0e6e840bd7b570b99ffe918c166fdf0e79b6ab7964161d3db SHA512 08b80984b30b8a56fe9fb6690e7d82827b3d9d191e13094a040334e20edd9669b0098abad66d5022a1e022ef95bcea236123c791f7f84948420dfca10e449d4a

View File

@@ -0,0 +1,17 @@
Dont 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

View File

@@ -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>

View File

@@ -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
}