diff options
author | jlam <jlam@pkgsrc.org> | 2017-08-20 23:54:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2017-08-20 23:54:33 +0000 |
commit | 0b5d43f8949cf8429e4125bb5b730cfe11314584 (patch) | |
tree | 9fb8878cc64abbbf387f1d9c41a0bbd6ea91cb19 /databases | |
parent | 8dab477735a40ef77a28e506bc3a67d267e96ea8 (diff) | |
download | pkgsrc-0b5d43f8949cf8429e4125bb5b730cfe11314584.tar.gz |
databases/percona-toolkit: Remove ${WRKDIR} references in scripts.
Several Perl-generated scripts were installed with the interpreter
being in the tools directory. Use subst.mk to fix the interpreter
path at the head of these scripts. Add "sh" as a run-time tool
dependency since several of the scripts installed require a POSIX
shell.
Bump the PKGREVISION due to changes in the installed scripts.
Diffstat (limited to 'databases')
-rw-r--r-- | databases/percona-toolkit/Makefile | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/databases/percona-toolkit/Makefile b/databases/percona-toolkit/Makefile index 0add62dc84d..c976c58cfb3 100644 --- a/databases/percona-toolkit/Makefile +++ b/databases/percona-toolkit/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.19 2017/06/12 19:32:59 fhajny Exp $ +# $NetBSD: Makefile,v 1.20 2017/08/20 23:54:33 jlam Exp $ # DISTNAME= percona-toolkit-3.0.3 +PKGREVISION= 1 CATEGORIES= databases MASTER_SITES= http://www.percona.com/downloads/percona-toolkit/${PKGVERSION_NOREV}/source/tarball/ @@ -10,15 +11,27 @@ HOMEPAGE= http://www.percona.com/software/percona-toolkit/ COMMENT= Advanced command-line tools for open-source databases (MySQL) LICENSE= gnu-gpl-v2 -USE_TOOLS+= perl bash:run +USE_TOOLS+= perl bash:run sh:run REPLACE_PERL+= bin/* -CHECK_INTERPRETER_SKIP+= *pt-ioprofile -CHECK_INTERPRETER_SKIP+= *pt-mysql-summary -CHECK_INTERPRETER_SKIP+= *pt-pmp -CHECK_INTERPRETER_SKIP+= *pt-sift -CHECK_INTERPRETER_SKIP+= *pt-stalk +# Fix paths to bash and sh that were replaced by Perl's MakeMaker to +# point to the programs in the tools directory. +# +SUBST_CLASSES+= bash +SUBST_STAGE.bash= post-build +SUBST_FILES.bash= blib/script/pt-ioprofile +SUBST_FILES.bash+= blib/script/pt-pmp +SUBST_FILES.bash+= blib/script/pt-sift +SUBST_FILES.bash+= blib/script/pt-stalk +SUBST_SED.bash+= -e 's|^\#!.*|\#!${TOOLS_PATH.bash}|' + +SUBST_CLASSES+= sh +SUBST_STAGE.sh= post-build +SUBST_FILES.sh= blib/script/pt-mext +SUBST_FILES.sh+= blib/script/pt-mysql-summary +SUBST_FILES.sh+= blib/script/pt-summary +SUBST_SED.sh+= -e 's|^\#!.*|\#!${TOOLS_PATH.sh}|' DEPENDS+= p5-DBD-mysql-[0-9]*:../../databases/p5-DBD-mysql #DEPENDS+= {perl>=5.7.3,p5-Time-HiRes-[0-9]*}:../../time/p5-Time-HiRes |