diff options
Diffstat (limited to 'databases/mysqlidxchk/Makefile')
-rw-r--r-- | databases/mysqlidxchk/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/databases/mysqlidxchk/Makefile b/databases/mysqlidxchk/Makefile new file mode 100644 index 000000000000..565695e3aa3d --- /dev/null +++ b/databases/mysqlidxchk/Makefile @@ -0,0 +1,39 @@ +# New ports collection makefile for: mysqlidxchk +# Date created: 29 April 2009 +# Whom: Andrey Ignatov <rdna@rdna.ru> +# +# $FreeBSD$ +# + +PORTNAME= mysqlidxchk +PORTVERSION= 1.0 +CATEGORIES= databases +MASTER_SITES= http://hackmysql.com/scripts/ +EXTRACT_SUFX= .tgz + +MAINTAINER= rdna@rdna.ru +COMMENT= Checks MySQL databases/tables for unused indexes + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \ + ${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \ + ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \ + ${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql + +NO_WRKSUBDIR= yes + +USE_PERL5= yes +NO_BUILD= yes + +PLIST_FILES= bin/mysqlidxchk +PORTDOCS= mysqlidxchkdoc.html mysqlidxchkguide.html + +do-install: + @${INSTALL_SCRIPT} ${WRKSRC}/mysqlidxchk ${PREFIX}/bin + +.if !defined(NOPORTDOCS) + @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} +.endif + +.include <bsd.port.mk> |