svn commit: r399959 - head/net-mgmt/weathermap
Dmitry Marakasov
amdmi3 at FreeBSD.org
Thu Oct 22 10:31:02 UTC 2015
Author: amdmi3
Date: Thu Oct 22 10:31:00 2015
New Revision: 399959
URL: https://svnweb.freebsd.org/changeset/ports/399959
Log:
- Add LICENSE
- Add NO_ARCH
- Switch to options helpers
Modified:
head/net-mgmt/weathermap/Makefile
Modified: head/net-mgmt/weathermap/Makefile
==============================================================================
--- head/net-mgmt/weathermap/Makefile Thu Oct 22 10:30:45 2015 (r399958)
+++ head/net-mgmt/weathermap/Makefile Thu Oct 22 10:31:00 2015 (r399959)
@@ -10,29 +10,28 @@ MASTER_SITES= http://netmon.grnet.gr/wea
MAINTAINER= ports at FreeBSD.org
COMMENT= This tool displays the utilization of the network links
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
LIB_DEPENDS= libgd.so:${PORTSDIR}/graphics/gd
RUN_DEPENDS= p5-GD>=0:${PORTSDIR}/graphics/p5-GD \
mrtg:${PORTSDIR}/net-mgmt/mrtg
USES= perl5 shebangfix
NO_BUILD= yes
+NO_ARCH= yes
SHEBANG_FILES= weathermap
-OPTIONS_DEFINE= WGET DOCS EXAMPLES
-WGET_DESC= WGET support
-
-PORTDOCS= README LICENSE INSTALL
+PORTDOCS= README INSTALL
CONFIGURE_ARGS= --with-gd-lib=${LOCALBASE}/lib \
--with-gd-inc=${LOCALBASE}/include
SUB_FILES= pkg-message
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MWGET}
-RUN_DEPENDS+= wget:${PORTSDIR}/ftp/wget
-.endif
+OPTIONS_DEFINE= WGET DOCS EXAMPLES
+WGET_DESC= WGET support
+WGET_RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \
@@ -41,13 +40,15 @@ post-patch:
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/weathermap ${STAGEDIR}${PREFIX}/bin
- @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@${MKDIR} ${STAGEDIR}${ETCDIR}
- @${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/example/weathermap.conf ${STAGEDIR}${ETCDIR}/weathermap.conf.sample
-.if ${PORT_OPTIONS:MDOCS}
+
+do-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ @${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}${EXAMPLESDIR}
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list