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> |