2013-09-20 18:01:22 +02:00
|
|
|
# Created by: Ching-Hong Wu <woju@freebsd.ntu.edu.tw>
|
1999-08-25 06:58:03 +02:00
|
|
|
# $FreeBSD$
|
1999-04-03 03:36:11 +02:00
|
|
|
|
2000-04-13 10:28:23 +02:00
|
|
|
PORTNAME= telnet
|
|
|
|
PORTVERSION= 1.0
|
2003-07-30 12:15:15 +02:00
|
|
|
PORTREVISION= 1
|
1999-04-03 03:36:11 +02:00
|
|
|
CATEGORIES= chinese
|
2000-10-03 16:31:31 +02:00
|
|
|
MASTER_SITES= # none
|
|
|
|
DISTFILES= # none
|
1999-04-03 03:36:11 +02:00
|
|
|
|
2002-08-19 10:01:34 +02:00
|
|
|
MAINTAINER= leeym@FreeBSD.org
|
2003-02-26 15:23:43 +01:00
|
|
|
COMMENT= 8bit compatible telnet client for Chinese input
|
2000-10-03 16:31:31 +02:00
|
|
|
|
2002-05-16 21:40:00 +02:00
|
|
|
MAN1= zh-telnet.1
|
2013-09-26 16:35:04 +02:00
|
|
|
PLIST_FILES= bin/zh-telnet man/man1/zh-telnet.1.gz
|
2001-06-17 09:35:43 +02:00
|
|
|
|
2004-01-26 05:08:36 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-02-22 07:18:50 +01:00
|
|
|
.if exists (${SRC_BASE}/contrib/telnet/telnet)
|
|
|
|
SRCDIR= ${SRC_BASE}/contrib/telnet/telnet
|
2003-07-30 12:15:15 +02:00
|
|
|
CONTRIB_TELNET= yes
|
2011-02-22 07:18:50 +01:00
|
|
|
.elif exists (${SRC_BASE}/usr.bin/telnet)
|
|
|
|
SRCDIR= ${SRC_BASE}/usr.bin/telnet
|
2003-07-30 12:15:15 +02:00
|
|
|
.else
|
2006-08-13 01:56:55 +02:00
|
|
|
IGNORE= need to build this port with the source code of telnet
|
2003-07-30 12:15:15 +02:00
|
|
|
.endif
|
|
|
|
|
2000-10-03 16:31:31 +02:00
|
|
|
do-extract:
|
2000-10-09 01:20:54 +02:00
|
|
|
@${MKDIR} ${WRKDIR}
|
2000-10-03 16:31:31 +02:00
|
|
|
@${CP} -R ${SRCDIR} ${WRKSRC}
|
2003-07-30 12:15:15 +02:00
|
|
|
.if defined(CONTRIB_TELNET)
|
|
|
|
@${CP} -R ${SRCDIR}/../libtelnet ${SRCDIR}/../../../usr.bin/telnet/Makefile ${WRKSRC}
|
|
|
|
@${CP} ${SRCDIR}/../arpa/telnet.h ${SRCDIR}/../../../lib/libtelnet/Makefile ${WRKSRC}/libtelnet
|
2000-10-03 16:31:31 +02:00
|
|
|
.else
|
2003-07-30 12:15:15 +02:00
|
|
|
@${CP} -R ${SRCDIR}/../../lib/libtelnet ${WRKSRC}
|
2000-10-03 16:31:31 +02:00
|
|
|
.endif
|
|
|
|
|
2001-06-17 09:35:43 +02:00
|
|
|
pre-patch:
|
2003-07-30 12:15:15 +02:00
|
|
|
.if defined(CONTRIB_TELNET)
|
|
|
|
@${REINPLACE_CMD} -e 's,/../../contrib/telnet,,g' ${WRKSRC}/Makefile ${WRKSRC}/libtelnet/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's,${TELNETDIR}/telnet,${TELNETDIR},g' ${WRKSRC}/Makefile
|
|
|
|
@${REINPLACE_CMD} -e 's,/arpa,,g' ${WRKSRC}/libtelnet/Makefile
|
|
|
|
.endif
|
|
|
|
@${REINPLACE_CMD} -e 's,/../../lib,,g' ${WRKSRC}/Makefile
|
2001-06-17 09:35:43 +02:00
|
|
|
|
|
|
|
pre-build:
|
2003-07-30 12:15:15 +02:00
|
|
|
@cd ${WRKSRC}/libtelnet && ${MAKE}
|
2001-06-17 09:35:43 +02:00
|
|
|
|
2000-10-10 04:45:07 +02:00
|
|
|
do-install:
|
2013-10-03 08:40:58 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/telnet ${STAGEDIR}${PREFIX}/bin/zh-telnet
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/telnet.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/zh-telnet.1
|
1999-04-03 03:36:11 +02:00
|
|
|
|
2004-01-26 05:08:36 +01:00
|
|
|
.include <bsd.port.post.mk>
|