- Add LICENSE

- Add NO_ARCH
- Unsilence installation commands
- Switch to USES=shebangfix
This commit is contained in:
Dmitry Marakasov 2017-12-11 09:00:31 +00:00
parent d2169b17fe
commit df26ed850b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=455933
2 changed files with 10 additions and 13 deletions

View File

@ -11,10 +11,15 @@ MASTER_SITES= http://www.bitbybit.dk/mysql/mrtg-mysql-load/ \
MAINTAINER= ports@FreeBSD.org
COMMENT= MySQL load analysis fetcher for MRTG
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= mrtg:net-mgmt/mrtg
USES= perl5
USES= perl5 shebangfix
SHEBANG_FILES= ${PORTNAME}
NO_BUILD= yes
NO_ARCH= yes
NO_WRKSUBDIR= yes
USE_PERL5= run
USE_MYSQL= yes
@ -22,14 +27,11 @@ USE_MYSQL= yes
PLIST_FILES= bin/mrtg-mysql-load etc/mrtg/mrtg.cfg-mysql-load.example \
etc/mrtg/mysql-load-cfg.example man/man1/${PORTNAME}.1.gz
post-patch:
@${REINPLACE_CMD} -e 's|%%PERL%%|${PERL}|' ${WRKSRC}/${PORTNAME}
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/mrtg
@${INSTALL_DATA} ${WRKSRC}/mrtg-cfg.example ${STAGEDIR}${PREFIX}/etc/mrtg/mrtg.cfg-mysql-load.example
@${INSTALL_DATA} ${WRKSRC}/mysql-load-cfg.example ${STAGEDIR}${PREFIX}/etc/mrtg/mysql-load-cfg.example
@${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/mrtg-cfg.example ${STAGEDIR}${PREFIX}/etc/mrtg/mrtg.cfg-mysql-load.example
${INSTALL_DATA} ${WRKSRC}/mysql-load-cfg.example ${STAGEDIR}${PREFIX}/etc/mrtg/mysql-load-cfg.example
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -1,5 +0,0 @@
--- mrtg-mysql-load.orig Mon Feb 18 11:03:52 2002
+++ mrtg-mysql-load Thu Apr 8 14:24:57 2004
@@ -1 +1 @@
-#!/usr/local/bin/perl -w
+#!%%PERL%% -w