mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-14 23:46:10 +00:00
15b58fe6a1
LBNL Internet path characterization tool PR: ports/8588 Submitted by: Josh Gilliam <josh@quick.net>
52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# New ports collection makefile for: pathchar
|
|
# Version required: a0 (a.out systems), a1 (ELF systems)
|
|
# Date created: 7 November 1998
|
|
# Whom: Josh Gilliam <josh@quick.net>
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
DISTNAME= pathchar-a1-freebsd-3.0
|
|
PKGNAME= pathchar-a1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.ee.lbl.gov/pathchar/
|
|
|
|
MAINTAINER= josh@quick.net
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
DISTNAME= pathchar-a0-freebsd-2.2
|
|
PKGNAME= pathchar-a0
|
|
MD5_FILE= ${FILESDIR}/md5.aout
|
|
.endif
|
|
|
|
NO_BUILD= yes
|
|
NO_WRKSUBDIR= yes
|
|
|
|
ZCAT?= zcat
|
|
TAR?= tar
|
|
|
|
# wierd .. pathchar-a0 is a gzip'd gzip'd tar, while pathchar-a1
|
|
# is just a tar. both have the extension .tar.gz though...
|
|
.if ${PORTOBJFORMAT} == "aout"
|
|
do-extract:
|
|
@${RM} -rf ${WRKDIR}
|
|
@${MKDIR} ${WRKDIR}
|
|
@for file in ${EXTRACT_ONLY}; do \
|
|
if ! (cd ${WRKDIR} && ${ZCAT} ${DISTDIR}/$$file | \
|
|
${TAR} ${EXTRACT_BEFORE_ARGS} - ${EXTRACT_AFTER_ARGS}); \
|
|
then \
|
|
exit 1; \
|
|
fi \
|
|
done
|
|
.else
|
|
EXTRACT_BEFORE_ARGS= -xf
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pathchar ${PREFIX}/bin
|
|
${INSTALL_DATA} ${FILESDIR}/README.pathchar \
|
|
${PREFIX}/share/doc/README.pathchar
|
|
|
|
.include <bsd.port.post.mk>
|