e13e30928e
This fixes -client and -server both creating ${LDCONFIG_DIR}/mariadb, as well as allowing different /var/db/ports/directories which is good since -client and -server have different options. It's probably not strictly necessary to apply this change to -scripts, but do it anyway for consistency.
37 lines
1.1 KiB
Makefile
37 lines
1.1 KiB
Makefile
# New ports collection makefile for: mariadb-scripts
|
|
# Date created: 30 May 2011
|
|
# Whom: Doug Barton <dougb@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mariadb
|
|
PKGNAMESUFFIX= -scripts
|
|
|
|
UNIQUENAME= ${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
COMMENT= Scripts for mariadb - drop-in replacement for MySQL
|
|
|
|
USE_PERL5= yes
|
|
|
|
MASTERDIR= ${.CURDIR}/../mariadb-server
|
|
MARIADB_SCRIPTS_SLAVE= yes
|
|
|
|
CONFLICTS= mysql-scripts-[0-9]*
|
|
|
|
PATCHDIR= ${.CURDIR}/files
|
|
PLIST= ${.CURDIR}/pkg-plist
|
|
|
|
MAN1= msql2mysql.1 mysql_convert_table_format.1 mysql_find_rows.1 \
|
|
mysql_fix_extensions.1 mysql_secure_installation.1 \
|
|
mysql_setpermission.1 mysql_zap.1 mysqlaccess.1 \
|
|
mysqldumpslow.1 mysqlhotcopy.1 mysqld_multi.1
|
|
|
|
EXTRA_PATCHES= ${MASTERDIR}/files/patch-Makefile.in ${MASTERDIR}/files/patch-man__Makefile.in
|
|
MDB_SCRIPTS_SUBDIRS= scripts @man_dirs@
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|%%SUBDIRS%%|${MDB_SCRIPTS_SUBDIRS}|" ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e "s|%%MANS%%|${MAN1}|" ${WRKSRC}/man/Makefile.in
|
|
@${REINPLACE_CMD} -e "s|^\(install-man: install-man1\).*|\1|" ${WRKSRC}/man/Makefile.in
|
|
|
|
.include "${MASTERDIR}/Makefile"
|