Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jul 2017 09:00:16 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r444813 - head/www/webreport
Message-ID:  <201707010900.v6190Grc012178@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Jul  1 09:00:16 2017
New Revision: 444813
URL: https://svnweb.freebsd.org/changeset/ports/444813

Log:
  - Unsilence installation commands
  - Switch to options helpers
  
  Approved by:	portmgr blanket

Modified:
  head/www/webreport/Makefile

Modified: head/www/webreport/Makefile
==============================================================================
--- head/www/webreport/Makefile	Sat Jul  1 08:29:37 2017	(r444812)
+++ head/www/webreport/Makefile	Sat Jul  1 09:00:16 2017	(r444813)
@@ -14,23 +14,20 @@ SUB_FILES=	pkg-message
 PORTDOCS=	INSTALL
 PLIST_FILES=	bin/webreport etc/webreport.conf-dist
 
-OPTIONS_DEFINE=	DOCS
-
 # silence clang errors on 10.0+
 CFLAGS+=	-Wno-return-type
 
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,ulong,unsigned long,;s,/etc/,${PREFIX}/etc/,' ${WRKSRC}/webreport.h
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/webreport ${STAGEDIR}${PREFIX}/bin
-	@${INSTALL_DATA} ${WRKSRC}/webreport.conf ${STAGEDIR}${PREFIX}/etc/webreport.conf-dist
+	${INSTALL_PROGRAM} ${WRKSRC}/webreport ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/webreport.conf ${STAGEDIR}${PREFIX}/etc/webreport.conf-dist
 
-.if ${PORT_OPTIONS:MDOCS}
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	@${INSTALL_MAN} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
+	${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?201707010900.v6190Grc012178>