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

(-)mysql40-server/Makefile (-19 / +23 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME?=	mysql
8
PORTNAME?=	mysql
9
PORTVERSION=	4.0.10
9
PORTVERSION=	4.0.12
10
PORTREVISION?=	0
10
PORTREVISION?=	0
11
CATEGORIES=	databases
11
CATEGORIES=	databases
12
MASTER_SITES=	ftp://mysql.secsup.org/pub/software/mysql/Downloads/MySQL-4.0/ \
12
MASTER_SITES=	ftp://mysql.secsup.org/pub/software/mysql/Downloads/MySQL-4.0/ \
Lines 23-29 Link Here
23
		http://mysql.oms-net.nl/Downloads/MySQL-4.0/ \
23
		http://mysql.oms-net.nl/Downloads/MySQL-4.0/ \
24
		ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-4.0/
24
		ftp://ftp.free.fr/pub/MySQL/Downloads/MySQL-4.0/
25
PKGNAMESUFFIX?=	-server
25
PKGNAMESUFFIX?=	-server
26
DISTNAME=	${PORTNAME}-${PORTVERSION}-gamma
27
26
28
MAINTAINER=	sysadmin@alexdupre.com
27
MAINTAINER=	sysadmin@alexdupre.com
29
COMMENT?=	Multithreaded SQL database (server)
28
COMMENT?=	Multithreaded SQL database (server)
Lines 32-39 Link Here
32
DB_DIR?=	/var/db/mysql
31
DB_DIR?=	/var/db/mysql
33
USE_PERL5_RUN=	yes
32
USE_PERL5_RUN=	yes
34
USE_LIBTOOL=	yes
33
USE_LIBTOOL=	yes
34
USE_REINPLACE=	yes
35
35
36
GNU_CONFIGURE=	yes
36
GNU_CONFIGURE=	yes
37
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
37
CONFIGURE_ARGS=	--localstatedir=${DB_DIR} \
38
CONFIGURE_ARGS=	--localstatedir=${DB_DIR} \
38
		--without-debug \
39
		--without-debug \
39
		--without-readline \
40
		--without-readline \
Lines 43-51 Link Here
43
		--with-mysqlfs \
44
		--with-mysqlfs \
44
		--with-vio \
45
		--with-vio \
45
		--with-low-memory \
46
		--with-low-memory \
46
		--with-comment='FreeBSD port: ${PKGNAME}' \
47
		--with-comment='FreeBSD port: ${PKGNAME}'
47
		--with-server-suffix='' \
48
		--program-prefix=''
49
48
50
.include <bsd.port.pre.mk>
49
.include <bsd.port.pre.mk>
51
50
Lines 99-110 Link Here
99
RUN_DEPENDS=	mysql:${PORTSDIR}/databases/mysql40-client \
98
RUN_DEPENDS=	mysql:${PORTSDIR}/databases/mysql40-client \
100
		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-Mysql
99
		${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-Mysql
101
100
102
PLIST_SUB=	MYSQL_VERSION=${PORTVERSION}-gamma
101
PLIST_SUB=	MYSQL_VERSION=${PORTVERSION}
103
102
104
ONLY_FOR_ARCHS=	i386 alpha sparc64
103
ONLY_FOR_ARCHS=	i386 alpha sparc64
105
104
106
DOCS=		manual.html manual.ps manual_toc.html manual.txt manual.texi \
105
DOCS=		manual.html manual.txt manual_toc.html
107
		include.texi
108
106
109
pre-fetch:
107
pre-fetch:
110
	@${ECHO} ""
108
	@${ECHO} ""
Lines 115-130 Link Here
115
	@${ECHO} "	WITH_OPENSSL=yes	Enable secure connections."
113
	@${ECHO} "	WITH_OPENSSL=yes	Enable secure connections."
116
	@${ECHO} "	DB_DIR=directory	Set alternate directory for database files"
114
	@${ECHO} "	DB_DIR=directory	Set alternate directory for database files"
117
	@${ECHO} "				(default is /var/db/mysql)."
115
	@${ECHO} "				(default is /var/db/mysql)."
118
	@${ECHO} "      WITH_LINUXTHREADS=yes	Use the linuxthreads pthread library."
116
	@${ECHO} "	WITH_LINUXTHREADS=yes	Use the linuxthreads pthread library."
119
	@${ECHO} "	OVERWRITE_DB=yes	Re-initialize default databases"
117
	@${ECHO} "	OVERWRITE_DB=yes	Re-initialize default databases."
120
	@${ECHO} "	SKIP_DNS_CHECK=yes	Don't run resolveip to do an additional"
118
	@${ECHO} "	SKIP_DNS_CHECK=yes	Don't run resolveip to do an additional DNS"
121
	@${ECHO} "				DNS check before inserting local hostname to"
119
	@${ECHO} "				reverse lookup  before inserting local"
122
	@${ECHO} "				mysql database"
120
	@${ECHO} "				hostname into mysql database"
123
	@${ECHO} "				(use if your machine has no official DNS entry)."
121
	@${ECHO} "				(use if your machine has no official DNS entry)."
124
	@${ECHO} "	BUILD_STATIC=yes	Build a static version of mysqld."
122
	@${ECHO} "	BUILD_STATIC=yes	Build a static version of mysqld."
125
	@${ECHO} "	BUILD_OPTIMIZED=yes	Add -mcpu=i686 to CFLAGS."
123
	@${ECHO} "	BUILD_OPTIMIZED=yes	Add -mcpu=i686 to CFLAGS."
126
	@${ECHO} ""
124
	@${ECHO} ""
127
125
126
post-patch:
127
	 @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_server_dirs@ scripts support-files|g" ${WRKSRC}/Makefile.in
128
	 @${REINPLACE_CMD} -e "s|install: install-am|install:|g" ${WRKSRC}/include/Makefile.in
129
128
.if defined(WITH_OPENSSL) && defined(BUILD_STATIC)
130
.if defined(WITH_OPENSSL) && defined(BUILD_STATIC)
129
pre-configure:
131
pre-configure:
130
	@${ECHO} "You can't use the BUILD_STATIC option when using OpenSSL."
132
	@${ECHO} "You can't use the BUILD_STATIC option when using OpenSSL."
Lines 147-159 Link Here
147
.endif
149
.endif
148
	@${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh
150
	@${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%DB_DIR%%|${DB_DIR}|g" < ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh
149
	@${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-server.sh
151
	@${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-server.sh
150
151
.if !defined(NOPORTDOCS)
152
.if !defined(NOPORTDOCS)
152
	${MKDIR} ${DOCSDIR}/Flags
153
	@${MKDIR} ${DOCSDIR}/Flags
153
.for doc in ${DOCS}
154
.for doc in ${DOCS}
154
	${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${DOCSDIR}
155
	@${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${DOCSDIR}
155
.endfor
156
.endfor
156
	${INSTALL_DATA} ${WRKSRC}/Docs/Flags/*.gif ${DOCSDIR}/Flags
157
	@${INSTALL_DATA} ${WRKSRC}/Docs/Flags/*.gif ${DOCSDIR}/Flags
158
	@${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
159
	@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
157
.endif
160
.endif
158
161
159
# MySQL-Client part
162
# MySQL-Client part
Lines 166-177 Link Here
166
LDCONFIG_DIRS=	%%PREFIX%%/lib/mysql
169
LDCONFIG_DIRS=	%%PREFIX%%/lib/mysql
167
170
168
CONFIGURE_ARGS+=--without-server
171
CONFIGURE_ARGS+=--without-server
169
MAKE_ENV=	CLIENT_ONLY="${CLIENT_ONLY}"
172
173
post-patch:
174
	 @${REINPLACE_CMD} -e "s|SUBDIRS =|SUBDIRS = include @sql_client_dirs@ tests man|g" ${WRKSRC}/Makefile.in
170
175
171
post-install:
176
post-install:
172
	@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
177
	@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/mysql-client.sh > ${PREFIX}/etc/rc.d/000.mysql-client.sh
173
	@${CHMOD} 750 ${PREFIX}/etc/rc.d/000.mysql-client.sh
178
	@${CHMOD} 750 ${PREFIX}/etc/rc.d/000.mysql-client.sh
174
175
.endif
179
.endif
176
180
177
.include <bsd.port.post.mk>
181
.include <bsd.port.post.mk>
(-)mysql40-server/distinfo (-1 / +1 lines)
Line 1 Link Here
1
MD5 (mysql-4.0.10-gamma.tar.gz) = fd66e12e7de57a6836283365107af427
1
MD5 (mysql-4.0.12.tar.gz) = 7d7696ecad5018939735049c0e87132f
(-)mysql40-server/files/patch-Makefile.in (-11 / +6 lines)
Lines 1-21 Link Here
1
--- Makefile.in.orig	Tue Feb  4 13:55:10 2003
1
--- Makefile.in.orig	Thu Feb 20 20:58:01 2003
2
+++ Makefile.in	Tue Feb  4 13:58:31 2003
2
+++ Makefile.in	Thu Feb 27 12:27:18 2003
3
@@ -210,13 +210,11 @@
3
@@ -212,12 +212,7 @@
4
 EXTRA_DIST = INSTALL-SOURCE README \
4
 EXTRA_DIST = INSTALL-SOURCE README \
5
 			COPYING COPYING.LIB
5
 			COPYING COPYING.LIB
6
 
6
 
7
-SUBDIRS = . include @docs_dirs@ @readline_dir@ \
7
-SUBDIRS = . include @docs_dirs@ @readline_dir@ \
8
-			@thread_dirs@ pstack @sql_client_dirs@ \
8
-			@thread_dirs@ pstack @sql_client_dirs@ \
9
-			@sql_server_dirs@ scripts man tests \
9
-			@sql_server_dirs@ scripts man tests \
10
-			BUILD netware os2 @libmysqld_dirs@ \
10
-			BUILD @netware_dir@ os2 @libmysqld_dirs@ \
11
-			@bench_dirs@ support-files @fs_dirs@ @tools_dirs@ \
11
-			@bench_dirs@ support-files @fs_dirs@ @tools_dirs@
12
-			@platform_dir@
13
-
12
-
14
+.if defined(CLIENT_ONLY)
13
+SUBDIRS =
15
+SUBDIRS = include @sql_client_dirs@ tests man
16
+.else
17
+SUBDIRS = include @docs_dirs@ @sql_server_dirs@ scripts support-files
18
+.endif
19
 
14
 
20
 # Relink after clean
15
 # Relink after clean
21
 linked_sources = linked_client_sources linked_server_sources \
16
 linked_sources = linked_client_sources linked_server_sources \
(-)mysql40-server/files/patch-configure (-7 / +18 lines)
Lines 1-14 Link Here
1
--- configure.orig	Wed Jan 29 12:29:38 2003
1
--- configure.orig	Tue Feb 25 21:30:07 2003
2
+++ configure	Tue Feb  4 14:07:39 2003
2
+++ configure	Thu Feb 27 12:42:12 2003
3
@@ -8104,6 +8104,7 @@
3
@@ -8101,7 +8101,8 @@
4
 
4
 
5
 
5
 # This can be used to rebuild libtool when needed
6
 # This can be used to rebuild libtool when needed
6
 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7
+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
8
+LIBTOOL_DEPS="--disable-ltlibs /usr/local/share/libtool/ltmain.sh"
9
+/usr/local/share/libtool/ltconfig $LIBTOOL_DEPS
8
 
10
 
9
 # Always use our own libtool.
11
 # Always use our own libtool.
10
 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12
 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11
@@ -9046,7 +9047,7 @@
13
@@ -9044,7 +9045,7 @@
12
   ;;
14
   ;;
13
 esac
15
 esac
14
 fi
16
 fi
Lines 17-23 Link Here
17
 
19
 
18
 if test -n "$HOSTNAME"; then
20
 if test -n "$HOSTNAME"; then
19
   echo "$as_me:$LINENO: result: $HOSTNAME" >&5
21
   echo "$as_me:$LINENO: result: $HOSTNAME" >&5
20
@@ -9238,43 +9239,8 @@
22
@@ -9236,43 +9237,8 @@
21
 echo "$as_me:$LINENO: checking \"how to check if pid exists\"" >&5
23
 echo "$as_me:$LINENO: checking \"how to check if pid exists\"" >&5
22
 echo $ECHO_N "checking \"how to check if pid exists\"... $ECHO_C" >&6
24
 echo $ECHO_N "checking \"how to check if pid exists\"... $ECHO_C" >&6
23
 PS=$ac_cv_path_PS
25
 PS=$ac_cv_path_PS
Lines 61-63 Link Here
61
 
63
 
62
 echo "$as_me:$LINENO: result: \"$FIND_PROC\"" >&5
64
 echo "$as_me:$LINENO: result: \"$FIND_PROC\"" >&5
63
 echo "${ECHO_T}\"$FIND_PROC\"" >&6
65
 echo "${ECHO_T}\"$FIND_PROC\"" >&6
66
@@ -22310,7 +22276,7 @@
67
 	/* ) rel_srcdir="$srcdir" ;;
68
 	* )  rel_srcdir="../$srcdir" ;;
69
     esac
70
-    if test "x$enable_dependency_tracking" == xno
71
+    if test "x$enable_dependency_tracking" = xno
72
     then
73
       innodb_conf_flags=--disable-dependency-tracking
74
     fi
(-)mysql40-server/files/patch-include::Makefile.in (-14 lines)
Lines 1-14 Link Here
1
--- include/Makefile.in.orig	Tue Nov 19 17:13:35 2002
2
+++ include/Makefile.in	Tue Nov 19 17:14:10 2002
3
@@ -335,7 +335,11 @@
4
 installdirs:
5
 	$(mkinstalldirs) $(DESTDIR)$(pkgincludedir)
6
 
7
+.if defined(CLIENT_ONLY)
8
 install: install-am
9
+.else
10
+install:
11
+.endif
12
 install-exec: install-exec-am
13
 install-data: install-data-am
14
 uninstall: uninstall-am
(-)mysql40-server/pkg-plist (-3 / +5 lines)
Lines 93-105 Link Here
93
%%PORTDOCS%%share/doc/mysql/Flags/ukraine.gif
93
%%PORTDOCS%%share/doc/mysql/Flags/ukraine.gif
94
%%PORTDOCS%%share/doc/mysql/Flags/usa.gif
94
%%PORTDOCS%%share/doc/mysql/Flags/usa.gif
95
%%PORTDOCS%%share/doc/mysql/Flags/yugoslavia.gif
95
%%PORTDOCS%%share/doc/mysql/Flags/yugoslavia.gif
96
%%PORTDOCS%%share/doc/mysql/include.texi
97
%%PORTDOCS%%share/doc/mysql/manual.html
96
%%PORTDOCS%%share/doc/mysql/manual.html
98
%%PORTDOCS%%share/doc/mysql/manual.ps
99
%%PORTDOCS%%share/doc/mysql/manual.texi
100
%%PORTDOCS%%share/doc/mysql/manual.txt
97
%%PORTDOCS%%share/doc/mysql/manual.txt
101
%%PORTDOCS%%share/doc/mysql/manual_toc.html
98
%%PORTDOCS%%share/doc/mysql/manual_toc.html
99
share/mysql/Description.plist
100
share/mysql/Info.plist
101
share/mysql/StartupParameters.plist
102
share/mysql/binary-configure
102
share/mysql/binary-configure
103
share/mysql/postinstall
104
share/mysql/preinstall
103
share/mysql/charsets/Index
105
share/mysql/charsets/Index
104
share/mysql/charsets/README
106
share/mysql/charsets/README
105
share/mysql/charsets/cp1251.conf
107
share/mysql/charsets/cp1251.conf
(-)mysql40-server/pkg-plist.client (+1 lines)
Lines 15-20 Link Here
15
include/mysql/m_string.h
15
include/mysql/m_string.h
16
include/mysql/my_alloc.h
16
include/mysql/my_alloc.h
17
include/mysql/my_config.h
17
include/mysql/my_config.h
18
include/mysql/my_dir.h
18
include/mysql/my_getopt.h
19
include/mysql/my_getopt.h
19
include/mysql/my_global.h
20
include/mysql/my_global.h
20
include/mysql/my_list.h
21
include/mysql/my_list.h

Return to bug 50130