aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--databases/mysqltuner/Makefile22
-rw-r--r--databases/mysqltuner/distinfo6
-rw-r--r--databases/mysqltuner/pkg-descr2
3 files changed, 19 insertions, 11 deletions
diff --git a/databases/mysqltuner/Makefile b/databases/mysqltuner/Makefile
index d4273371b8f5..a701342ffa05 100644
--- a/databases/mysqltuner/Makefile
+++ b/databases/mysqltuner/Makefile
@@ -6,10 +6,11 @@
#
PORTNAME= mysqltuner
-PORTVERSION= 1.0.0
+PORTVERSION= 1.1.0
CATEGORIES= databases
-MASTER_SITES= http://mysqltuner.com/releases/
-DISTFILES= ${PORTNAME}-${PORTVERSION}.pl
+MASTER_SITES= http://mysqltuner.pl/
+DISTNAME= ${PORTNAME}.pl
+EXTRACT_SUFX=
EXTRACT_ONLY=
MAINTAINER= wenheping@gmail.com
@@ -20,12 +21,19 @@ NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}.pl
+pre-patch:
+ @${MKDIR} ${WRKSRC}
+ @${CP} ${DISTDIR}/${DISTNAME} ${WRKSRC}
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|"1.0.1";|"1.1.0";|' \
+ ${WRKSRC}/${DISTNAME}
+
.include <bsd.port.pre.mk>
do-install:
- @${CP} ${DISTDIR}/${PORTNAME}-${PORTVERSION}.pl \
- ${PREFIX}/bin/${PORTNAME}.pl
- @${CHMOD} 755 ${PREFIX}/bin/${PORTNAME}.pl
- @${ECHO_CMD} '@exec ${CHMOD} 755 ${PREFIX}/bin/${PORTNAME}.pl' \
+ @${CP} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin/${DISTNAME}
+ @${CHMOD} 755 ${PREFIX}/bin/${DISTNAME}
+ @${ECHO_CMD} '@exec ${CHMOD} 755 ${PREFIX}/bin/${DISTNAME}.pl' \
>> ${TMPPLIST}
.include <bsd.port.post.mk>
diff --git a/databases/mysqltuner/distinfo b/databases/mysqltuner/distinfo
index 3da57c664d12..03217c78e7f8 100644
--- a/databases/mysqltuner/distinfo
+++ b/databases/mysqltuner/distinfo
@@ -1,3 +1,3 @@
-MD5 (mysqltuner-1.0.0.pl) = de535154b7fb28e437ba412434ea535e
-SHA256 (mysqltuner-1.0.0.pl) = 51c624b22b5792d7c462171bf39be355b45ed83155e473c259fe67576944daf4
-SIZE (mysqltuner-1.0.0.pl) = 38688
+MD5 (mysqltuner.pl) = c78c61fda3837718c59e8799f2b428af
+SHA256 (mysqltuner.pl) = 751682627063109e525e6f45d6718643cc7e2f4bbb77265343d9316aa6ea4994
+SIZE (mysqltuner.pl) = 39054
diff --git a/databases/mysqltuner/pkg-descr b/databases/mysqltuner/pkg-descr
index 52941f21a608..4ccef4afa41c 100644
--- a/databases/mysqltuner/pkg-descr
+++ b/databases/mysqltuner/pkg-descr
@@ -5,4 +5,4 @@ stability. Within seconds, it will display
statistics about your MySQL installation and the
areas where it can be improved.
-WWW: http://wiki.mysqltuner.com/MySQLTuner
+WWW: http://github.com/rackerhacker/MySQLTuner-perl