View | Details | Raw Unified | Return to bug 56775
Collapse All | Expand All

(-)databases/mysql323-server/Makefile (-35 / +35 lines)
Lines 96-139 Link Here
96
96
97
ONLY_FOR_ARCHS=	i386 alpha sparc64
97
ONLY_FOR_ARCHS=	i386 alpha sparc64
98
98
99
pre-fetch:
99
pre-everything::
100
	@${ECHO} ""
100
	@${ECHO_MSG} ""
101
	@${ECHO} "You may use the following build options:"
101
	@${ECHO_MSG} "You may use the following build options:"
102
	@${ECHO} ""
102
	@${ECHO_MSG} ""
103
	@${ECHO} "	WITH_CHARSET=charset	define the primary built-in charset (latin1);"
103
	@${ECHO_MSG} "	WITH_CHARSET=charset	define the primary built-in charset (latin1);"
104
	@${ECHO} "	WITH_XCHARSET=list	define other built-in charsets (may be 'all');"
104
	@${ECHO_MSG} "	WITH_XCHARSET=list	define other built-in charsets (may be 'all');"
105
	@${ECHO} "	DB_DIR=directory	Set alternate directory for database files"
105
	@${ECHO_MSG} "	DB_DIR=directory	Set alternate directory for database files"
106
	@${ECHO} "				(default is /var/db/mysql)."
106
	@${ECHO_MSG} "				(default is /var/db/mysql)."
107
	@${ECHO} "	WITH_LINUXTHREADS=yes	Use the linuxthreads pthread library."
107
	@${ECHO_MSG} "	WITH_LINUXTHREADS=yes	Use the linuxthreads pthread library."
108
	@${ECHO} "	SKIP_INSTALL_DB=yes	Skip mysql_install_db"
108
	@${ECHO_MSG} "	SKIP_INSTALL_DB=yes	Skip mysql_install_db"
109
	@${ECHO} "				(i. e. leave ${DB_DIR} alone)."
109
	@${ECHO_MSG} "				(i. e. leave ${DB_DIR} alone)."
110
	@${ECHO} "				This is useful for upgrades."
110
	@${ECHO_MSG} "				This is useful for upgrades."
111
	@${ECHO} "				Be sure to know what you are doing!"
111
	@${ECHO_MSG} "				Be sure to know what you are doing!"
112
	@${ECHO} "	SKIP_DNS_CHECK=yes	don't run resolveip to do an additional"
112
	@${ECHO_MSG} "	SKIP_DNS_CHECK=yes	don't run resolveip to do an additional"
113
	@${ECHO} "				DNS check before inserting local hostname to"
113
	@${ECHO_MSG} "				DNS check before inserting local hostname to"
114
	@${ECHO} "				mysql database."
114
	@${ECHO_MSG} "				mysql database."
115
	@${ECHO} "				Use if your machine has no offical DNS entry."
115
	@${ECHO_MSG} "				Use if your machine has no offical DNS entry."
116
	@${ECHO} "	BUILD_STATIC=yes	Build a static version of mysqld."
116
	@${ECHO_MSG} "	BUILD_STATIC=yes	Build a static version of mysqld."
117
	@${ECHO} "	BUILD_OPTIMIZED=yes	Add -mcpu=pentiumpro -O3 to CFLAGS."
117
	@${ECHO_MSG} "	BUILD_OPTIMIZED=yes	Add -mcpu=pentiumpro -O3 to CFLAGS."
118
	@${ECHO} "				This setting may produce broken code and thus"
118
	@${ECHO_MSG} "				This setting may produce broken code and thus"
119
	@${ECHO} "				is not recommended for production servers."
119
	@${ECHO_MSG} "				is not recommended for production servers."
120
	@${ECHO} ""
120
	@${ECHO_MSG} ""
121
121
122
.if exists(${DB_DIR}) && !defined(PACKAGE_BUILDING) && !defined(OVERWRITE_DB) && !defined(SKIP_INSTALL_DB)
122
.if exists(${DB_DIR}) && !defined(PACKAGE_BUILDING) && !defined(OVERWRITE_DB) && !defined(SKIP_INSTALL_DB)
123
pre-install:
123
pre-install:
124
	@${ECHO} "You appear to already have a mysql database directory in ${DB_DIR}."
124
	@${ECHO_MSG} "You appear to already have a mysql database directory in ${DB_DIR}."
125
	@${ECHO} ""
125
	@${ECHO_MSG} ""
126
	@${ECHO} "In order to preserve your existing data, you should:"
126
	@${ECHO_MSG} "In order to preserve your existing data, you should:"
127
	@${ECHO} "	- dump all your databases"
127
	@${ECHO_MSG} "	- dump all your databases"
128
	@${ECHO} "	- kill mysql if it is running"
128
	@${ECHO_MSG} "	- kill mysql if it is running"
129
	@${ECHO} "	- delete the ${DB_DIR} directory"
129
	@${ECHO_MSG} "	- delete the ${DB_DIR} directory"
130
	@${ECHO} "	- run 'make install'"
130
	@${ECHO_MSG} "	- run 'make install'"
131
	@${ECHO} "	- start up mysql"
131
	@${ECHO_MSG} "	- start up mysql"
132
	@${ECHO} "	- re-create all of your database"
132
	@${ECHO_MSG} "	- re-create all of your database"
133
	@${ECHO} "	- re-load your data"
133
	@${ECHO_MSG} "	- re-load your data"
134
	@${ECHO} ""
134
	@${ECHO_MSG} ""
135
	@${ECHO} "If you understand the consequences of this upgrade, please re-build this"
135
	@${ECHO_MSG} "If you understand the consequences of this upgrade, please re-build this"
136
	@${ECHO} "port with the environment variable OVERWRITE_DB defined."
136
	@${ECHO_MSG} "port with the environment variable OVERWRITE_DB defined."
137
	@${FALSE}
137
	@${FALSE}
138
.endif
138
.endif

Return to bug 56775