aboutsummaryrefslogtreecommitdiff
path: root/databases/mysqltuner/Makefile
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2010-09-20 08:22:53 +0000
committerWen Heping <wen@FreeBSD.org>2010-09-20 08:22:53 +0000
commit03ecfd94ef7f81f0e428ec5e001bb73e3f85d26e (patch)
treefce2b9e105fd5a08a192fa4e643df9492c5cc77f /databases/mysqltuner/Makefile
parent7c611623d4003ea4cfb2a5dde02c7ff3026a3206 (diff)
downloadports-03ecfd94ef7f81f0e428ec5e001bb73e3f85d26e.tar.gz
ports-03ecfd94ef7f81f0e428ec5e001bb73e3f85d26e.zip
Notes
Diffstat (limited to 'databases/mysqltuner/Makefile')
-rw-r--r--databases/mysqltuner/Makefile22
1 files changed, 15 insertions, 7 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>