diff options
author | Alex Dupre <ale@FreeBSD.org> | 2004-02-29 10:53:29 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2004-02-29 10:53:29 +0000 |
commit | 74f3f8505781ed5750c2d3be06f66476b80bf352 (patch) | |
tree | 52601f00f37c7e551362690707608dd7a20508a9 /databases/percona55-server/Makefile | |
parent | 6373c41ece8e5eaf9ae17296f33f307aafeeffcd (diff) | |
download | ports-74f3f8505781ed5750c2d3be06f66476b80bf352.tar.gz ports-74f3f8505781ed5750c2d3be06f66476b80bf352.zip |
Notes
Diffstat (limited to 'databases/percona55-server/Makefile')
-rw-r--r-- | databases/percona55-server/Makefile | 57 |
1 files changed, 44 insertions, 13 deletions
diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile index d53652ccb6b9..b2596b15ce84 100644 --- a/databases/percona55-server/Makefile +++ b/databases/percona55-server/Makefile @@ -7,7 +7,7 @@ PORTNAME?= mysql PORTVERSION= 5.0.0 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES= databases MASTER_SITES= ftp://planetmirror.com/pub/mysql/Downloads/MySQL-5.0/ \ http://www.softagency.co.jp/MySQL/Downloads/MySQL-5.0/ \ @@ -102,10 +102,9 @@ CXXFLAGS+= -fno-exceptions .endif # MySQL-Server part -.if !defined(CLIENT_ONLY) -USE_PERL5_RUN= yes - -RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50 +.if !defined(CLIENT_ONLY) && !defined(SCRIPTS_ONLY) +USE_MYSQL= yes +WANT_MYSQL_VER= 50 LATEST_LINK= mysql50-server @@ -113,6 +112,9 @@ CONFLICTS= mysql-server-3.* mysql-server-4.* PLIST_SUB= DB_DIR=${DB_DIR} +MAN1= isamchk.1 isamlog.1 mysqld.1 \ + mysqld_safe.1 perror.1 replace.1 + DOCS= manual.html manual.txt manual_toc.html INFO= mysql @@ -139,7 +141,10 @@ pre-fetch: @${ECHO} "" post-patch: - @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_server_dirs@ scripts support-files|g" ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @docs_dirs@ @sql_server_dirs@ scripts man support-files|g" ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e "s|bin_SCRIPTS =|bin_SCRIPTS = @server_scripts@|g" ${WRKSRC}/scripts/Makefile.in + @${REINPLACE_CMD} -e "s|install-exec-am install-data-am|install-exec-am|g" ${WRKSRC}/scripts/Makefile.in + @${REINPLACE_CMD} -e "s|man_MANS =|man_MANS = ${MAN1}|g" ${WRKSRC}/man/Makefile.in @${REINPLACE_CMD} -e "s|install: install-am|install:|g" ${WRKSRC}/include/Makefile.in post-build: @@ -174,18 +179,15 @@ post-install: .endfor @${INSTALL_DATA} ${WRKSRC}/Docs/Flags/*.gif ${DOCSDIR}/Flags .endif - @${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info - @install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir -# MySQL-Client part .else +# MySQL-Client part +.if defined(CLIENT_ONLY) LATEST_LINK= mysql50-client CONFLICTS= mysql-client-3.* mysql-client-4.* -MAN1= isamchk.1 isamlog.1 mysql.1 mysql_zap.1 mysqlaccess.1 \ - mysqladmin.1 mysqld.1 mysqld_multi.1 mysqld_safe.1 mysqldump.1 \ - mysql_fix_privilege_tables.1 mysqlshow.1 perror.1 replace.1 +MAN1= mysql.1 mysqladmin.1 mysqldump.1 mysqlshow.1 INSTALLS_SHLIB= yes LDCONFIG_DIRS= %%PREFIX%%/lib/mysql @@ -193,11 +195,40 @@ LDCONFIG_DIRS= %%PREFIX%%/lib/mysql CONFIGURE_ARGS+=--without-server post-patch: - @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests man|g" ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests scripts man|g" ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e "s|bin_SCRIPTS =|bin_SCRIPTS = mysql_config mysql_fix_privilege_tables mysqlbug|g" ${WRKSRC}/scripts/Makefile.in + @${REINPLACE_CMD} -e "s|man_MANS =|man_MANS = ${MAN1}|g" ${WRKSRC}/man/Makefile.in post-install: @${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh @${CHMOD} 750 ${PREFIX}/etc/rc.d/000.mysql-client.sh + +.else +# MySQL-Scripts part +USE_MYSQL= yes +WANT_MYSQL_VER= 50 +USE_PERL5= yes + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql50 + +LATEST_LINK= mysql50-scripts + +CONFLICTS= mysql-scripts-3.* mysql-scripts-4.* + +MAN1= mysql_zap.1 mysqlaccess.1 mysqld_multi.1 mysql_fix_privilege_tables.1 + +SCRIPTS= msql2mysql mysql_fix_extensions mysql_setpermission \ + mysql_secure_installation mysql_zap mysqlaccess \ + mysql_convert_table_format mysql_find_rows mysqlhotcopy \ + mysqldumpslow mysql_explain_log mysql_tableinfo mysqld_multi \ + mysql_create_system_tables + +post-patch: + @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = scripts man|g" ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e "s|bin_SCRIPTS =|bin_SCRIPTS = ${SCRIPTS}|g" ${WRKSRC}/scripts/Makefile.in + @${REINPLACE_CMD} -e "s|install-exec-am install-data-am|install-exec-am|g" ${WRKSRC}/scripts/Makefile.in + @${REINPLACE_CMD} -e "s|man_MANS =|man_MANS = ${MAN1}|g" ${WRKSRC}/man/Makefile.in +.endif .endif .include <bsd.port.post.mk> |