summaryrefslogtreecommitdiff
path: root/databases/mysql/Makefile
diff options
context:
space:
mode:
authorfrueauf <frueauf@pkgsrc.org>1999-02-04 21:35:01 +0000
committerfrueauf <frueauf@pkgsrc.org>1999-02-04 21:35:01 +0000
commit846e0302382fa3d6997c4c1203279f1e26d7db2b (patch)
tree30c67a96488a997756594489c80c64b1d44d944e /databases/mysql/Makefile
parente9be2ced122337622764a311189b2e99ebe1f800 (diff)
downloadpkgsrc-846e0302382fa3d6997c4c1203279f1e26d7db2b.tar.gz
Some cleanups:
- add -Dunix for some files which relied on it to be defined - run `mysqladmin shutdown` right after mysql_install_db to prevent blind running mysql daemon, pointed out in pr 6533 by Matthew Green - set NO_PACKAGE if we build/install the server case - mysql_install_db needs the data dir from the source distribution to work - this never worked for binary packages! Remove the bogus exec in PLIST-server too as consequence.
Diffstat (limited to 'databases/mysql/Makefile')
-rw-r--r--databases/mysql/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/databases/mysql/Makefile b/databases/mysql/Makefile
index 0d56e0a73c1..6bac0d8bfc0 100644
--- a/databases/mysql/Makefile
+++ b/databases/mysql/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 1999/02/04 15:47:35 frueauf Exp $
+# $NetBSD: Makefile,v 1.15 1999/02/04 21:35:01 frueauf Exp $
#
# note: if updated, update shlib version number in patch-aa
@@ -44,8 +44,10 @@ pre-configure:
@${ECHO} 'support library and clients will be built.'
@${ECHO} '##########################################'
.else
+NO_PACKAGE= "mysql_install_db needs data dir from distribution."
+
post-install:
- (cd ${WRKSRC}; ./scripts/mysql_install_db)
+ (cd ${WRKSRC}; ./scripts/mysql_install_db && mysqladmin shutdown)
@${CAT} ${PKGDIR}/PLIST-server >>${PLIST_SRC}
.endif