Makefile.am, make_binary_distribution.sh:

  Use custom 'pkgduppdir'
mysql.server.sh:
  The server is installed in 'libexecdir'
parent b4f68ec3
...@@ -90,6 +90,9 @@ CLEANFILES = @server_scripts@ \ ...@@ -90,6 +90,9 @@ CLEANFILES = @server_scripts@ \
mysql_tableinfo \ mysql_tableinfo \
mysqld_multi mysqld_multi
# Default same as 'pkgdatadir', but we can override it
pkgsuppdir = $(datadir)/@PACKAGE@
# mysqlbug should be distributed built so that people can report build # mysqlbug should be distributed built so that people can report build
# failures with it. # failures with it.
DISTCLEANFILES = $(BUILT_SOURCES) mysqlbug DISTCLEANFILES = $(BUILT_SOURCES) mysqlbug
...@@ -134,6 +137,7 @@ SUFFIXES = .sh ...@@ -134,6 +137,7 @@ SUFFIXES = .sh
-e 's!@''pkglibdir''@!$(pkglibdir)!g' \ -e 's!@''pkglibdir''@!$(pkglibdir)!g' \
-e 's!@''pkgincludedir''@!$(pkgincludedir)!g' \ -e 's!@''pkgincludedir''@!$(pkgincludedir)!g' \
-e 's!@''pkgdatadir''@!$(pkgdatadir)!g' \ -e 's!@''pkgdatadir''@!$(pkgdatadir)!g' \
-e 's!@''pkgsuppdir''@!$(pkgsuppdir)!g' \
-e 's!@''sysconfdir''@!$(sysconfdir)!g' \ -e 's!@''sysconfdir''@!$(sysconfdir)!g' \
-e 's!@''mandir''@!$(mandir)!g' \ -e 's!@''mandir''@!$(mandir)!g' \
-e 's!@''infodir''@!$(infodir)!g' \ -e 's!@''infodir''@!$(infodir)!g' \
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
# "pkgincludedir" is set to the same as "includedir" # "pkgincludedir" is set to the same as "includedir"
# "pkgdatadir" is set to the same as "datadir" # "pkgdatadir" is set to the same as "datadir"
# "pkgsuppdir" is set to "@prefix@/support-files", # "pkgsuppdir" is set to "@prefix@/support-files",
# normally the same as "datadir" (not to set?) # normally the same as "datadir"
# #
# The temporary directory path given to "--tmp=<path>" has to be # The temporary directory path given to "--tmp=<path>" has to be
# absolute and with no spaces. # absolute and with no spaces.
...@@ -175,6 +175,7 @@ if [ x"$BASE_SYSTEM" != x"netware" ] ; then ...@@ -175,6 +175,7 @@ if [ x"$BASE_SYSTEM" != x"netware" ] ; then
pkglibdir=@pkglibdir@ \ pkglibdir=@pkglibdir@ \
pkgincludedir=@pkgincludedir@ \ pkgincludedir=@pkgincludedir@ \
pkgdatadir=@pkgdatadir@ \ pkgdatadir=@pkgdatadir@ \
pkgsuppdir=@pkgsuppdir@ \
mandir=@mandir@ \ mandir=@mandir@ \
infodir=@infodir@ infodir=@infodir@
...@@ -215,6 +216,7 @@ if [ x"$BASE_SYSTEM" != x"netware" ] ; then ...@@ -215,6 +216,7 @@ if [ x"$BASE_SYSTEM" != x"netware" ] ; then
fi fi
# FIXME should be handled by make file, and to other dir # FIXME should be handled by make file, and to other dir
mkdir -p $DEST/bin $DEST/support-files
cp scripts/mysqlaccess.conf $DEST/bin/ cp scripts/mysqlaccess.conf $DEST/bin/
cp support-files/magic $DEST/support-files/ cp support-files/magic $DEST/support-files/
......
...@@ -385,7 +385,7 @@ case "$mode" in ...@@ -385,7 +385,7 @@ case "$mode" in
fi fi
else else
# Try to find appropriate mysqld process # Try to find appropriate mysqld process
mysqld_pid=`pidof $sbindir/mysqld` mysqld_pid=`pidof $libexecdir/mysqld`
if test -z $mysqld_pid ; then if test -z $mysqld_pid ; then
if test "$use_mysqld_safe" = "0" ; then if test "$use_mysqld_safe" = "0" ; then
lockfile=/var/lock/subsys/mysqlmanager lockfile=/var/lock/subsys/mysqlmanager
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment