From 558feab2efe54e6c4b350d11a3ffbd4e22e46ca8 Mon Sep 17 00:00:00 2001 From: pgollucci Date: Mon, 4 Jan 2010 02:11:24 +0000 Subject: - Use DOCSDIR - Honor NOPORTDOCS PR: ports/142196 Submitted by: Sevan Janiyan --- benchmarks/ttcp/Makefile | 9 ++++++--- benchmarks/ttcp/pkg-plist | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/benchmarks/ttcp/Makefile b/benchmarks/ttcp/Makefile index ac221b0b735c..dbdd33b3cd82 100644 --- a/benchmarks/ttcp/Makefile +++ b/benchmarks/ttcp/Makefile @@ -7,6 +7,7 @@ PORTNAME= ttcp PORTVERSION= 1.12 +PORTREVISION= 1 CATEGORIES= benchmarks net MASTER_SITES= ftp://ftp.sgi.com/sgi/src/ttcp/ DISTFILES= ttcp.c ttcp.1 README @@ -15,7 +16,7 @@ EXTRACT_ONLY= #none MAINTAINER= pgollucci@FreeBSD.org COMMENT= Benchmarking tool for analysing TCP and UDP performance -MAKE_JOBS_SAFE= yes +MAKE_JOBS_SAFE= yes NO_WRKSUBDIR= yes DIST_SUBDIR= ${PORTNAME} @@ -32,7 +33,9 @@ do-build: do-install: ${INSTALL_PROGRAM} ${WRKSRC}/ttcp ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/ttcp.1 ${PREFIX}/man/man1 - ${MKDIR} ${PREFIX}/share/doc/ttcp - ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ttcp/ +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR}/ + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/ +.endif .include diff --git a/benchmarks/ttcp/pkg-plist b/benchmarks/ttcp/pkg-plist index 5d2266f36ebd..d2d4cd8cbf1d 100644 --- a/benchmarks/ttcp/pkg-plist +++ b/benchmarks/ttcp/pkg-plist @@ -1,3 +1,3 @@ bin/ttcp -share/doc/ttcp/README -@dirrm share/doc/ttcp +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit