pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/databases/percona-toolkit
Module Name: pkgsrc
Committed By: jlam
Date: Sun Aug 20 23:54:33 UTC 2017
Modified Files:
pkgsrc/databases/percona-toolkit: Makefile
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/databases/percona-toolkit/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/databases/percona-toolkit/Makefile
diff -u pkgsrc/databases/percona-toolkit/Makefile:1.19 pkgsrc/databases/percona-toolkit/Makefile:1.20
--- pkgsrc/databases/percona-toolkit/Makefile:1.19 Mon Jun 12 19:32:59 2017
+++ pkgsrc/databases/percona-toolkit/Makefile Sun Aug 20 23:54:33 2017
@@ -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/softwar
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
Home |
Main Index |
Thread Index |
Old Index