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/mysql55-server | |
parent | 6373c41ece8e5eaf9ae17296f33f307aafeeffcd (diff) | |
download | ports-74f3f8505781ed5750c2d3be06f66476b80bf352.tar.gz ports-74f3f8505781ed5750c2d3be06f66476b80bf352.zip |
Notes
Diffstat (limited to 'databases/mysql55-server')
-rw-r--r-- | databases/mysql55-server/Makefile | 57 | ||||
-rw-r--r-- | databases/mysql55-server/files/patch-man::Makefile.in | 13 | ||||
-rw-r--r-- | databases/mysql55-server/files/patch-scripts::Makefile.in | 29 | ||||
-rw-r--r-- | databases/mysql55-server/pkg-plist | 23 | ||||
-rw-r--r-- | databases/mysql55-server/pkg-plist.client | 6 | ||||
-rw-r--r-- | databases/mysql55-server/pkg-plist.scripts | 14 |
6 files changed, 108 insertions, 34 deletions
diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile index d53652ccb6b9..b2596b15ce84 100644 --- a/databases/mysql55-server/Makefile +++ b/databases/mysql55-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> diff --git a/databases/mysql55-server/files/patch-man::Makefile.in b/databases/mysql55-server/files/patch-man::Makefile.in new file mode 100644 index 000000000000..86d18cec61b2 --- /dev/null +++ b/databases/mysql55-server/files/patch-man::Makefile.in @@ -0,0 +1,13 @@ +--- man/Makefile.in.orig Mon Feb 23 14:54:10 2004 ++++ man/Makefile.in Mon Feb 23 14:54:34 2004 +@@ -272,9 +272,7 @@ + vio_dir = @vio_dir@ + vio_libs = @vio_libs@ + +-man_MANS = mysql.1 isamchk.1 isamlog.1 mysql_zap.1 mysqlaccess.1 \ +- mysqladmin.1 mysqld.1 mysqld_multi.1 mysqldump.1 mysqlshow.1 \ +- perror.1 replace.1 mysqld_safe.1 mysql_fix_privilege_tables.1 ++man_MANS = + + + EXTRA_DIST = mysql.1.in isamchk.1.in isamlog.1.in mysql_zap.1.in \ diff --git a/databases/mysql55-server/files/patch-scripts::Makefile.in b/databases/mysql55-server/files/patch-scripts::Makefile.in new file mode 100644 index 000000000000..4077597e4be2 --- /dev/null +++ b/databases/mysql55-server/files/patch-scripts::Makefile.in @@ -0,0 +1,29 @@ +--- scripts/Makefile.in.orig Mon Dec 1 13:55:32 2003 ++++ scripts/Makefile.in Sun Feb 29 00:35:51 2004 +@@ -203,25 +203,7 @@ + vio_dir = @vio_dir@ + vio_libs = @vio_libs@ + +-bin_SCRIPTS = @server_scripts@ \ +- msql2mysql \ +- mysql_config \ +- mysql_fix_privilege_tables \ +- mysql_fix_extensions \ +- mysql_setpermission \ +- mysql_secure_installation \ +- mysql_zap \ +- mysqlaccess \ +- mysqlbug \ +- mysql_convert_table_format \ +- mysql_find_rows \ +- mysqlhotcopy \ +- mysqldumpslow \ +- mysql_explain_log \ +- mysql_tableinfo \ +- mysqld_multi \ +- make_win_src_distribution \ +- mysql_create_system_tables ++bin_SCRIPTS = + + + EXTRA_SCRIPTS = make_binary_distribution.sh \ diff --git a/databases/mysql55-server/pkg-plist b/databases/mysql55-server/pkg-plist index aa0a0f84b32d..0f2ee9c4bc82 100644 --- a/databases/mysql55-server/pkg-plist +++ b/databases/mysql55-server/pkg-plist @@ -1,31 +1,13 @@ bin/comp_err bin/isamchk bin/isamlog -bin/make_win_src_distribution -bin/msql2mysql bin/my_print_defaults bin/myisamchk bin/myisamlog bin/myisampack -bin/mysql_config -bin/mysql_convert_table_format -bin/mysql_create_system_tables -bin/mysql_explain_log -bin/mysql_find_rows -bin/mysql_fix_extensions -bin/mysql_fix_privilege_tables bin/mysql_install_db -bin/mysql_secure_installation -bin/mysql_setpermission -bin/mysql_tableinfo bin/mysql_waitpid -bin/mysql_zap -bin/mysqlaccess -bin/mysqlbug -bin/mysqld_multi bin/mysqld_safe -bin/mysqldumpslow -bin/mysqlhotcopy bin/pack_isam bin/perror bin/replace @@ -136,7 +118,6 @@ share/mysql/english/errmsg.sys share/mysql/english/errmsg.txt share/mysql/estonian/errmsg.sys share/mysql/estonian/errmsg.txt -share/mysql/fill_help_tables.sql share/mysql/french/errmsg.sys share/mysql/french/errmsg.txt share/mysql/german/errmsg.sys @@ -158,7 +139,6 @@ share/mysql/my-large.cnf share/mysql/my-medium.cnf share/mysql/my-small.cnf share/mysql/mysql-log-rotate -share/mysql/mysql_fix_privilege_tables.sql share/mysql/mysql.server share/mysql/norwegian-ny/errmsg.sys share/mysql/norwegian-ny/errmsg.txt @@ -180,6 +160,7 @@ share/mysql/swedish/errmsg.sys share/mysql/swedish/errmsg.txt share/mysql/ukrainian/errmsg.sys share/mysql/ukrainian/errmsg.txt +@unexec rmdir %D/lib/mysql 2> /dev/null || true %%PORTDOCS%%@dirrm %%DOCSDIR%%/Flags %%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm share/mysql/charsets @@ -205,6 +186,6 @@ share/mysql/ukrainian/errmsg.txt @dirrm share/mysql/spanish @dirrm share/mysql/swedish @dirrm share/mysql/ukrainian -@dirrm share/mysql +@unexec rmdir %D/share/mysql 2> /dev/null || true @exec [ -d %%DB_DIR%% ] || %D/bin/mysql_install_db --ldata=%%DB_DIR%% @unexec /usr/bin/killall mysqld > /dev/null 2>&1 || true diff --git a/databases/mysql55-server/pkg-plist.client b/databases/mysql55-server/pkg-plist.client index 533b94e70c5e..0d99cd176c93 100644 --- a/databases/mysql55-server/pkg-plist.client +++ b/databases/mysql55-server/pkg-plist.client @@ -1,6 +1,9 @@ bin/mysql +bin/mysql_config +bin/mysql_fix_privilege_tables bin/mysqladmin bin/mysqlbinlog +bin/mysqlbug bin/mysqlcheck bin/mysqldump bin/mysqlimport @@ -44,5 +47,8 @@ lib/mysql/libmysqlclient.so.14 lib/mysql/libmysqlclient_r.a lib/mysql/libmysqlclient_r.so lib/mysql/libmysqlclient_r.so.14 +share/mysql/fill_help_tables.sql +share/mysql/mysql_fix_privilege_tables.sql @dirrm include/mysql @dirrm lib/mysql +@dirrm share/mysql diff --git a/databases/mysql55-server/pkg-plist.scripts b/databases/mysql55-server/pkg-plist.scripts new file mode 100644 index 000000000000..5a8bc1cfb7de --- /dev/null +++ b/databases/mysql55-server/pkg-plist.scripts @@ -0,0 +1,14 @@ +bin/msql2mysql +bin/mysql_convert_table_format +bin/mysql_create_system_tables +bin/mysql_explain_log +bin/mysql_find_rows +bin/mysql_fix_extensions +bin/mysql_secure_installation +bin/mysql_setpermission +bin/mysql_tableinfo +bin/mysql_zap +bin/mysqlaccess +bin/mysqld_multi +bin/mysqldumpslow +bin/mysqlhotcopy |