aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql54-server/Makefile
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2005-04-06 21:38:29 +0800
committerale <ale@FreeBSD.org>2005-04-06 21:38:29 +0800
commitf12aedb868cfb9ce2f3688fed0a7ce9eca65528e (patch)
tree6a5a6df1e5193d006cd6d28c82097811542b75be /databases/mysql54-server/Makefile
parent5b07065e0a3afb1d80efa59a85b58f60cc8201bf (diff)
downloadfreebsd-ports-gnome-f12aedb868cfb9ce2f3688fed0a7ce9eca65528e.tar.gz
freebsd-ports-gnome-f12aedb868cfb9ce2f3688fed0a7ce9eca65528e.tar.zst
freebsd-ports-gnome-f12aedb868cfb9ce2f3688fed0a7ce9eca65528e.zip
Update to 5.0.3 release:
- Add the possibility to specify the database directory in rc.conf - Move database creation from post-install stage into startup script - Add the possibility to specify additional command-line arguments to be passed to mysqld_safe on startup
Diffstat (limited to 'databases/mysql54-server/Makefile')
-rw-r--r--databases/mysql54-server/Makefile39
1 files changed, 11 insertions, 28 deletions
diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile
index a3d67959066a..a40f9be8d2a7 100644
--- a/databases/mysql54-server/Makefile
+++ b/databases/mysql54-server/Makefile
@@ -6,27 +6,28 @@
#
PORTNAME?= mysql
-PORTVERSION= 5.0.2
+PORTVERSION= 5.0.3
PORTREVISION?= 0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR= MySQL-5.0
PKGNAMESUFFIX?= -server
-DISTNAME= ${PORTNAME}-${PORTVERSION}-alpha
+DISTNAME= ${PORTNAME}-${PORTVERSION}-beta
MAINTAINER= ale@FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-alpha
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-beta
SLAVEDIRS= databases/mysql50-client
-PKGINSTALL?= ${WRKDIR}/pkg-install
-DB_DIR?= /var/db/mysql
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
-USE_RC_SUBR= yes
+
+.if ${PKGNAMESUFFIX} == "-server"
+USE_RC_SUBR= mysql-server.sh
+.endif
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ARGS= --localstatedir=${DB_DIR} \
+CONFIGURE_ARGS= --localstatedir=/var/db/mysql \
--without-debug \
--without-readline \
--without-libedit \
@@ -34,7 +35,6 @@ CONFIGURE_ARGS= --localstatedir=${DB_DIR} \
--without-extra-tools \
--with-libwrap \
--with-mysqlfs \
- --with-vio \
--with-low-memory \
--with-comment='FreeBSD port: ${PKGNAME}' \
--enable-thread-safe-client
@@ -111,15 +111,14 @@ LATEST_LINK= mysql50-server
CONFLICTS= mysql-server-3.* mysql-server-4.*
-PLIST_SUB= DB_DIR=${DB_DIR} \
- VER=${PORTVERSION}-alpha
+PLIST_SUB= VER=${PORTVERSION}-beta
.if defined(WITH_NDB)
PLIST_SUB+= NDB=""
.else
PLIST_SUB+= NDB="@comment "
.endif
-MAN1= isamchk.1 isamlog.1 mysqld.1 \
+MAN1= mysqld.1 \
mysqld_safe.1 perror.1 replace.1
.if !defined(NOPORTDOCS)
@@ -136,12 +135,9 @@ pre-fetch:
@${ECHO} " WITH_XCHARSET=list Define other built-in charsets (may be 'all')."
@${ECHO} " WITH_COLLATION=collate Define default collation (latin1_swedish_ci)."
@${ECHO} " WITH_OPENSSL=yes Enable secure connections."
- @${ECHO} " DB_DIR=directory Set alternate directory for database files"
- @${ECHO} " (default is /var/db/mysql)."
@${ECHO} " WITH_LINUXTHREADS=yes Use the linuxthreads pthread library."
@${ECHO} " WITH_PROC_SCOPE_PTH=yes Use process scope threads"
@${ECHO} " (try it if you use libpthread)."
- @${ECHO} " OVERWRITE_DB=yes Re-initialize default databases."
@${ECHO} " BUILD_OPTIMIZED=yes Enable compiler optimizations"
@${ECHO} " (use it if you need speed)."
@${ECHO} " BUILD_STATIC=yes Build a static version of mysqld."
@@ -161,22 +157,10 @@ post-patch:
@${REINPLACE_CMD} -e "s|PTHREAD_SCOPE_SYSTEM|PTHREAD_SCOPE_PROCESS|g" ${WRKSRC}/sql/mysqld.cc
.endif
-post-build:
- @${SED} "s|%%DB_DIR%%|${DB_DIR}|g" ${PKGDIR}/pkg-install > ${WRKDIR}/pkg-install
-
post-install:
.if !defined(PACKAGE_BUILDING)
-.if exists(${DB_DIR}) && defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no"
- @${RM} -r ${DB_DIR}/mysql ${DB_DIR}/test 2>/dev/null || true
+ @${SETENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
-.if !exists(${DB_DIR}) || (defined(OVERWRITE_DB) && ${OVERWRITE_DB:L} != "no")
- ${PREFIX}/bin/mysql_install_db --ldata=${DB_DIR}
-.endif
- @${SETENV} DB_DIR=${DB_DIR} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
-.endif
- @${SED} "s|%%RC_SUBR%%|${RC_SUBR}|g;s|%%PREFIX%%|${PREFIX}|g;s|%%DB_DIR%%|${DB_DIR}|g" < \
- ${FILESDIR}/mysql-server.sh > ${PREFIX}/etc/rc.d/mysql-server.sh
- @${CHMOD} 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
@@ -224,7 +208,6 @@ RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mys
RUN_DEPENDS+= ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
.endif
-
LATEST_LINK= mysql50-scripts
CONFLICTS= mysql-scripts-3.* mysql-scripts-4.*