summaryrefslogtreecommitdiff
path: root/databases/mysql51-client
diff options
context:
space:
mode:
authorrodent <rodent>2014-04-14 00:02:49 +0000
committerrodent <rodent>2014-04-14 00:02:49 +0000
commit1d1687a068ccb95fd2f33fde9d371c9b795ff76a (patch)
treee2a8c1b0846cb4132dabce46b5860e84c3f34406 /databases/mysql51-client
parent79dda2690091407ba4158d0b2c21268c22e75588 (diff)
downloadpkgsrc-1d1687a068ccb95fd2f33fde9d371c9b795ff76a.tar.gz
Don't hardcode PID file. Instead, give the user the option to set it. The
rc.d script overrides my.cnf directives. Hardcoding the PID can cause a problem on systems transitioning to MySQL packages from pkgsrc.
Diffstat (limited to 'databases/mysql51-client')
-rw-r--r--databases/mysql51-client/Makefile.common4
1 files changed, 3 insertions, 1 deletions
diff --git a/databases/mysql51-client/Makefile.common b/databases/mysql51-client/Makefile.common
index 03b0b8aa62f..76a8f15616d 100644
--- a/databases/mysql51-client/Makefile.common
+++ b/databases/mysql51-client/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.30 2013/10/01 11:00:39 adam Exp $
+# $NetBSD: Makefile.common,v 1.31 2014/04/14 00:02:49 rodent Exp $
#
# used by databases/mysql51-client/Makefile
# used by databases/mysql51-server/Makefile
@@ -23,9 +23,11 @@ EXTRACT_USING= bsdtar
# MYSQL_GROUP group of the database administrator
# MYSQL_DATADIR home directory of the database administrator and
# location of the databases
+# MYSQL_PIDFILE process ID file
MYSQL_USER?= mysql
MYSQL_GROUP?= mysql
MYSQL_DATADIR?= ${VARBASE}/mysql
+MYSQL_PIDFILE?= ${MYSQL_DATADIR}/${HOST}.pid
PKG_USERS_VARS+= MYSQL_USER
PKG_GROUPS_VARS+= MYSQL_GROUP