blob: 6c66e82da1d01bab519e5efde5d77ad4059a0d9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# $NetBSD: Makefile,v 1.2 2016/07/09 06:38:00 wiz Exp $
GITHUB_PROJECT= MySQLTuner-perl
DISTNAME= 1.6.0
PKGNAME= mysqltuner-${DISTNAME}
PKGREVISION= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=major/}
DIST_SUBDIR= ${PKGBASE}
MAINTAINER= rodent@NetBSD.org
HOMEPAGE= http://mysqltuner.com/
COMMENT= Perl script that assists in MySQL configuration
LICENSE= gnu-gpl-v3
NO_BUILD= yes
USE_TOOLS+= perl:run
WRKSRC= ${WRKDIR}/${GITHUB_PROJECT}-${DISTNAME}
USE_LANGUAGES= # none
REPLACE_PERL= mysqltuner.pl
PKGDOCDIR= share/doc/${PKGBASE}
SUBST_CLASSES+= docdir
SUBST_FILES.docdir= mysqltuner.pl
SUBST_MESSAGE.docdir= Fixing DOCDIR.
SUBST_SED.docdir= -e "s|/usr/share/mysqltuner|${PREFIX}/${PKGDOCDIR}|1"
SUBST_STAGE.docdir= post-patch
INSTALLATION_DIRS+= bin ${PKGDOCDIR}
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/mysqltuner.pl ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/basic_passwords.txt \
${DESTDIR}${PREFIX}/${PKGDOCDIR}
${INSTALL_DATA} ${WRKSRC}/*.md ${DESTDIR}${PREFIX}/${PKGDOCDIR}
.include "../../mk/bsd.pkg.mk"
|