Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2014 15:21:22 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r345866 - head/net/tcping
Message-ID:  <201402241521.s1OFLMbD077947@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Mon Feb 24 15:21:21 2014
New Revision: 345866
URL: http://svnweb.freebsd.org/changeset/ports/345866
QAT: https://qat.redports.org/buildarchive/r345866/

Log:
  Support staging

Deleted:
  head/net/tcping/pkg-plist
Modified:
  head/net/tcping/Makefile

Modified: head/net/tcping/Makefile
==============================================================================
--- head/net/tcping/Makefile	Mon Feb 24 15:17:50 2014	(r345865)
+++ head/net/tcping/Makefile	Mon Feb 24 15:21:21 2014	(r345866)
@@ -10,18 +10,18 @@ MASTER_SITES=	http://www.linuxco.de/tcpi
 MAINTAINER=	dryice@dryice.name
 COMMENT=	Do a TCP connect to the given IP/port combination
 
-DOCS=		README
+PLIST_FILES=	bin/tcping
+PORTDOCS=	README
+
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 do-build:
 	cd ${WRKSRC} && \
 	${CC} ${CFLAGS} -DHAVE_HSTRERROR -o tcping tcping.c
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/tcping ${PREFIX}/bin/tcping
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR}
-	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/tcping ${STAGEDIR}${PREFIX}/bin
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402241521.s1OFLMbD077947>