diff options
author | leeym <leeym@FreeBSD.org> | 2004-01-26 12:08:36 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2004-01-26 12:08:36 +0800 |
commit | 830c01a633f24e738a1a94df40920a3489ce7273 (patch) | |
tree | c71df377ff3c404daa15c6c117ee5bc890e7d6f7 /chinese/telnet | |
parent | 360f931160a0e4627831d73e6509d0a030d1bb84 (diff) | |
download | freebsd-ports-gnome-830c01a633f24e738a1a94df40920a3489ce7273.tar.gz freebsd-ports-gnome-830c01a633f24e738a1a94df40920a3489ce7273.tar.zst freebsd-ports-gnome-830c01a633f24e738a1a94df40920a3489ce7273.zip |
- use PLIST_FILES
- make portlint happier
Diffstat (limited to 'chinese/telnet')
-rw-r--r-- | chinese/telnet/Makefile | 16 | ||||
-rw-r--r-- | chinese/telnet/pkg-plist | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/chinese/telnet/Makefile b/chinese/telnet/Makefile index 8be755432892..872619120159 100644 --- a/chinese/telnet/Makefile +++ b/chinese/telnet/Makefile @@ -18,12 +18,16 @@ COMMENT= 8bit compatible telnet client for Chinese input USE_REINPLACE= yes MAN1= zh-telnet.1 +PLIST_FILES= bin/zh-telnet -.if exists (/usr/src/contrib/telnet/telnet) -SRCDIR= /usr/src/contrib/telnet/telnet +.include <bsd.port.pre.mk> + +SRCBASE?= ${PORTSDIR}/../src +.if exists (${SRCBASE}/contrib/telnet/telnet) +SRCDIR= ${SRCBASE}/contrib/telnet/telnet CONTRIB_TELNET= yes -.elif exists (/usr/src/usr.bin/telnet) -SRCDIR= /usr/src/usr.bin/telnet +.elif exists (${SRCBASE}/usr.bin/telnet) +SRCDIR= ${SRCBASE}/usr.bin/telnet .else IGNORE= "You need to build this port with the source code of telnet" .endif @@ -32,7 +36,6 @@ do-extract: @${MKDIR} ${WRKDIR} @${CP} -R ${SRCDIR} ${WRKSRC} .if defined(CONTRIB_TELNET) - @echo CONTRIB_TELNET @${CP} -R ${SRCDIR}/../libtelnet ${SRCDIR}/../../../usr.bin/telnet/Makefile ${WRKSRC} @${CP} ${SRCDIR}/../arpa/telnet.h ${SRCDIR}/../../../lib/libtelnet/Makefile ${WRKSRC}/libtelnet .else @@ -41,7 +44,6 @@ do-extract: pre-patch: .if defined(CONTRIB_TELNET) - @echo 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 @@ -55,4 +57,4 @@ do-install: @${INSTALL_PROGRAM} ${WRKSRC}/telnet ${PREFIX}/bin/zh-telnet @${INSTALL_MAN} ${WRKSRC}/telnet.1 ${PREFIX}/man/man1/${MAN1} -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/chinese/telnet/pkg-plist b/chinese/telnet/pkg-plist deleted file mode 100644 index d8259a31e8df..000000000000 --- a/chinese/telnet/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -@comment $FreeBSD$ -bin/zh-telnet |