aboutsummaryrefslogtreecommitdiff
path: root/databases/mysql41-server/Makefile
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2005-02-15 22:57:02 +0000
committerAlex Dupre <ale@FreeBSD.org>2005-02-15 22:57:02 +0000
commit110771c2d93c0e2d3bc93f91156fdaf1c5fa1574 (patch)
tree58141596e88167925961d2412bb021fc330a9d4d /databases/mysql41-server/Makefile
parent502b9a2ca90d3be8cd25442cea22e4f8e273dbd5 (diff)
Notes
Diffstat (limited to 'databases/mysql41-server/Makefile')
-rw-r--r--databases/mysql41-server/Makefile32
1 files changed, 8 insertions, 24 deletions
diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile
index c082526e15da..a463dac5c9e0 100644
--- a/databases/mysql41-server/Makefile
+++ b/databases/mysql41-server/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME?= mysql
-PORTVERSION= 4.1.9
+PORTVERSION= 4.1.10
PORTREVISION?= 0
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL}
@@ -17,14 +17,15 @@ MAINTAINER= ale@FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
SLAVEDIRS= databases/mysql41-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 \
@@ -106,15 +107,13 @@ LATEST_LINK= mysql41-server
CONFLICTS= mysql-server-3.* mysql-server-4.[02-9].* mysql-server-5.*
-PLIST_SUB= DB_DIR=${DB_DIR} \
- VER=${PORTVERSION}
+PLIST_SUB= VER=${PORTVERSION}
.if defined(WITH_NDB)
PLIST_SUB+= NDB=""
.else
PLIST_SUB+= NDB="@comment "
.endif
-
MAN1= isamchk.1 isamlog.1 mysqld.1 \
mysqld_safe.1 perror.1 replace.1
@@ -131,8 +130,6 @@ pre-fetch:
@${ECHO} " WITH_CHARSET=charset Define the primary built-in charset (latin1)."
@${ECHO} " WITH_XCHARSET=list Define other built-in charsets (may be 'all')."
@${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)."
@@ -156,22 +153,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}
@@ -219,7 +204,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= mysql41-scripts
CONFLICTS= mysql-scripts-3.* mysql-scripts-4.[02-9].* mysql-scripts-5.*