mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
net/freebsd-telnetd: Add net/freebsd-telnetd
This new port contains the legacy FreeBSD telnetd which will be removed from FreeBSD-14.
This commit is contained in:
parent
5dcc4b00c0
commit
44dadc459a
@ -159,6 +159,7 @@
|
||||
SUBDIR += fpc-libenet
|
||||
SUBDIR += fpc-pcap
|
||||
SUBDIR += fping
|
||||
SUBDIR += freebsd-telnetd
|
||||
SUBDIR += freebsd-uucp
|
||||
SUBDIR += freediameter
|
||||
SUBDIR += freeradius-client
|
||||
|
41
net/freebsd-telnetd/Makefile
Normal file
41
net/freebsd-telnetd/Makefile
Normal file
@ -0,0 +1,41 @@
|
||||
# Created by: cy@FreeBSD.org
|
||||
|
||||
PORTNAME= freebsd-telnetd
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 14.0
|
||||
CATEGORIES= net
|
||||
|
||||
MAINTAINER= cy@FreeBSD.org
|
||||
COMMENT= FreeBSD telnetd
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= cschuber
|
||||
GH_PROJECT= freebsd-telnet
|
||||
|
||||
USES= uidfix
|
||||
|
||||
MAKE_ARGS+= BINOWN=${BINOWN} BINMODE=${BINMODE}
|
||||
MAKE_ENV+= MAKESYSPATH=/usr/src/share/mk \
|
||||
BINDIR=${PREFIX}/libexec \
|
||||
MANDIR=${PREFIX}/man/man \
|
||||
TELNETDIR=${WRKSRC}/contrib/telnet
|
||||
|
||||
OPTIONS_DEFINE= IPV6
|
||||
OPTIONS_DEFAULT= IPV6
|
||||
|
||||
# WRKSRC_SUBDIR= libexec/telnetd
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300134
|
||||
MAKE_ENV+= MK_WERROR=no
|
||||
.else
|
||||
MAKE_ENV+= NO_WERROR=1
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${CP} ${FILESDIR}/Makefile.in ${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.mk>
|
3
net/freebsd-telnetd/distinfo
Normal file
3
net/freebsd-telnetd/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1624075050
|
||||
SHA256 (cschuber-freebsd-telnet-v14.0_GH0.tar.gz) = eb1a8bc4e6c3c50502eea653fe5a9fa338cea4a4c7dab575c8f4222a57210945
|
||||
SIZE (cschuber-freebsd-telnet-v14.0_GH0.tar.gz) = 149901
|
8
net/freebsd-telnetd/files/Makefile.in
Normal file
8
net/freebsd-telnetd/files/Makefile.in
Normal file
@ -0,0 +1,8 @@
|
||||
.include <src.opts.mk>
|
||||
|
||||
SUBDIR= lib/libtelnet \
|
||||
libexec/telnetd
|
||||
|
||||
.include <bsd.arch.inc.mk>
|
||||
|
||||
.include <bsd.subdir.mk>
|
10
net/freebsd-telnetd/files/patch-lib_libtelnet_Makefile
Normal file
10
net/freebsd-telnetd/files/patch-lib_libtelnet_Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
--- lib/libtelnet/Makefile.orig 2020-12-29 13:05:48.000000000 -0800
|
||||
+++ lib/libtelnet/Makefile 2021-07-08 10:14:06.131869000 -0700
|
||||
@@ -4,7 +4,6 @@
|
||||
.include <src.opts.mk>
|
||||
|
||||
PACKAGE=lib${LIB}
|
||||
-TELNETDIR= ${SRCTOP}/contrib/telnet
|
||||
.PATH: ${TELNETDIR}/libtelnet
|
||||
|
||||
LIB= telnet
|
20
net/freebsd-telnetd/files/patch-libexec_telnetd_Makefile
Normal file
20
net/freebsd-telnetd/files/patch-libexec_telnetd_Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
--- libexec/telnetd/Makefile.orig 2020-12-29 13:05:48.000000000 -0800
|
||||
+++ libexec/telnetd/Makefile 2021-07-08 10:59:49.657276000 -0700
|
||||
@@ -5,7 +5,6 @@
|
||||
|
||||
.include <src.opts.mk>
|
||||
|
||||
-TELNETDIR= ${SRCTOP}/contrib/telnet
|
||||
.PATH: ${TELNETDIR}/telnetd
|
||||
|
||||
PROG= telnetd
|
||||
@@ -18,7 +17,8 @@
|
||||
WFORMAT?= 0
|
||||
|
||||
CFLAGS+= -DLINEMODE -DUSE_TERMIO -DDIAGNOSTICS -DOLD_ENVIRON \
|
||||
- -DENV_HACK -DSTREAMSPTY
|
||||
+ -DENV_HACK -DSTREAMSPTY \
|
||||
+ -L${TELNETDIR}/../../lib/libtelnet
|
||||
|
||||
.if ${MK_INET6_SUPPORT} != "no"
|
||||
CFLAGS+= -DINET6
|
4
net/freebsd-telnetd/pkg-descr
Normal file
4
net/freebsd-telnetd/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
FreeBSD-telnetd: This is/was FreeBSD libexec/telnetd prior to its removal
|
||||
in FreeBSD-14.
|
||||
|
||||
WWW: https://github.com/cschuber/freebsd-telnetd
|
2
net/freebsd-telnetd/pkg-plist
Normal file
2
net/freebsd-telnetd/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
libexec/telnetd
|
||||
man/man8/telnetd.8.gz
|
Loading…
Reference in New Issue
Block a user