aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--databases/mysql322-client/Makefile3
-rw-r--r--databases/mysql322-server/Makefile8
-rw-r--r--databases/mysql322-server/pkg-install38
-rw-r--r--databases/mysql322-server/pkg-plist34
-rw-r--r--databases/mysql323-client/Makefile3
-rw-r--r--databases/mysql323-server/Makefile8
-rw-r--r--databases/mysql323-server/pkg-install38
-rw-r--r--databases/mysql323-server/pkg-plist34
-rw-r--r--databases/mysql40-client/Makefile3
-rw-r--r--databases/mysql40-server/Makefile8
-rw-r--r--databases/mysql40-server/pkg-install38
-rw-r--r--databases/mysql40-server/pkg-plist34
-rw-r--r--databases/mysql41-client/Makefile3
-rw-r--r--databases/mysql41-server/Makefile8
-rw-r--r--databases/mysql41-server/pkg-install38
-rw-r--r--databases/mysql41-server/pkg-plist34
-rw-r--r--databases/mysql50-client/Makefile3
-rw-r--r--databases/mysql50-server/Makefile8
-rw-r--r--databases/mysql50-server/pkg-install38
-rw-r--r--databases/mysql50-server/pkg-plist34
-rw-r--r--databases/mysql51-client/Makefile3
-rw-r--r--databases/mysql51-server/Makefile8
-rw-r--r--databases/mysql51-server/pkg-install38
-rw-r--r--databases/mysql51-server/pkg-plist34
-rw-r--r--databases/mysql54-client/Makefile3
-rw-r--r--databases/mysql54-server/Makefile8
-rw-r--r--databases/mysql54-server/pkg-install38
-rw-r--r--databases/mysql54-server/pkg-plist34
-rw-r--r--databases/mysql55-client/Makefile3
-rw-r--r--databases/mysql55-server/Makefile8
-rw-r--r--databases/mysql55-server/pkg-install38
-rw-r--r--databases/mysql55-server/pkg-plist34
-rw-r--r--databases/mysql60-client/Makefile3
-rw-r--r--databases/mysql60-server/Makefile8
-rw-r--r--databases/mysql60-server/pkg-install38
-rw-r--r--databases/mysql60-server/pkg-plist34
-rw-r--r--databases/percona55-client/Makefile3
-rw-r--r--databases/percona55-server/Makefile8
-rw-r--r--databases/percona55-server/pkg-install38
-rw-r--r--databases/percona55-server/pkg-plist34
40 files changed, 790 insertions, 40 deletions
diff --git a/databases/mysql322-client/Makefile b/databases/mysql322-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/mysql322-client/Makefile
+++ b/databases/mysql322-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/mysql322-server/Makefile b/databases/mysql322-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/mysql322-server/Makefile
+++ b/databases/mysql322-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/mysql322-server/pkg-install b/databases/mysql322-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/mysql322-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/mysql322-server/pkg-plist b/databases/mysql322-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/mysql322-server/pkg-plist
+++ b/databases/mysql322-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch
diff --git a/databases/mysql323-client/Makefile b/databases/mysql323-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/mysql323-client/Makefile
+++ b/databases/mysql323-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/mysql323-server/Makefile b/databases/mysql323-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/mysql323-server/Makefile
+++ b/databases/mysql323-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/mysql323-server/pkg-install b/databases/mysql323-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/mysql323-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/mysql323-server/pkg-plist b/databases/mysql323-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/mysql323-server/pkg-plist
+++ b/databases/mysql323-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch
diff --git a/databases/mysql40-client/Makefile b/databases/mysql40-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/mysql40-client/Makefile
+++ b/databases/mysql40-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/mysql40-server/Makefile b/databases/mysql40-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/mysql40-server/Makefile
+++ b/databases/mysql40-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/mysql40-server/pkg-install b/databases/mysql40-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/mysql40-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/mysql40-server/pkg-plist b/databases/mysql40-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/mysql40-server/pkg-plist
+++ b/databases/mysql40-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch
diff --git a/databases/mysql41-client/Makefile b/databases/mysql41-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/mysql41-client/Makefile
+++ b/databases/mysql41-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/mysql41-server/Makefile b/databases/mysql41-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/mysql41-server/Makefile
+++ b/databases/mysql41-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/mysql41-server/pkg-install b/databases/mysql41-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/mysql41-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/mysql41-server/pkg-plist b/databases/mysql41-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/mysql41-server/pkg-plist
+++ b/databases/mysql41-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch
diff --git a/databases/mysql50-client/Makefile b/databases/mysql50-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/mysql50-client/Makefile
+++ b/databases/mysql50-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/mysql50-server/Makefile b/databases/mysql50-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/mysql50-server/Makefile
+++ b/databases/mysql50-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/mysql50-server/pkg-install b/databases/mysql50-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/mysql50-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/mysql50-server/pkg-plist b/databases/mysql50-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/mysql50-server/pkg-plist
+++ b/databases/mysql50-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch
diff --git a/databases/mysql51-client/Makefile b/databases/mysql51-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/mysql51-client/Makefile
+++ b/databases/mysql51-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/mysql51-server/Makefile b/databases/mysql51-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/mysql51-server/Makefile
+++ b/databases/mysql51-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/mysql51-server/pkg-install b/databases/mysql51-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/mysql51-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/mysql51-server/pkg-plist b/databases/mysql51-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/mysql51-server/pkg-plist
+++ b/databases/mysql51-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch
diff --git a/databases/mysql54-client/Makefile b/databases/mysql54-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/mysql54-client/Makefile
+++ b/databases/mysql54-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/mysql54-server/Makefile b/databases/mysql54-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/mysql54-server/Makefile
+++ b/databases/mysql54-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/mysql54-server/pkg-install b/databases/mysql54-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/mysql54-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/mysql54-server/pkg-plist b/databases/mysql54-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/mysql54-server/pkg-plist
+++ b/databases/mysql54-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch
diff --git a/databases/mysql55-client/Makefile b/databases/mysql55-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/mysql55-client/Makefile
+++ b/databases/mysql55-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/mysql55-server/Makefile b/databases/mysql55-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/mysql55-server/Makefile
+++ b/databases/mysql55-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/mysql55-server/pkg-install b/databases/mysql55-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/mysql55-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/mysql55-server/pkg-plist b/databases/mysql55-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/mysql55-server/pkg-plist
+++ b/databases/mysql55-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch
diff --git a/databases/mysql60-client/Makefile b/databases/mysql60-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/mysql60-client/Makefile
+++ b/databases/mysql60-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/mysql60-server/Makefile b/databases/mysql60-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/mysql60-server/Makefile
+++ b/databases/mysql60-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/mysql60-server/pkg-install b/databases/mysql60-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/mysql60-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/mysql60-server/pkg-plist b/databases/mysql60-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/mysql60-server/pkg-plist
+++ b/databases/mysql60-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch
diff --git a/databases/percona55-client/Makefile b/databases/percona55-client/Makefile
index c1fd62f4e868..ec5b8e2ad4ae 100644
--- a/databases/percona55-client/Makefile
+++ b/databases/percona55-client/Makefile
@@ -3,13 +3,14 @@
# Date created: Thu Jun 24 00:12:22 CEST 1999
# Whom: Dirk Froemberg <dirk@FreeBSD.org>
#
-# $Id: Makefile,v 1.59 1999/07/01 08:44:47 dirk Exp $
+# $Id: Makefile,v 1.60 1999/07/01 10:57:48 dirk Exp $
#
PKGNAME= ${DISTNAME:S/-/-client-/g}
MASTERDIR= ${.CURDIR}/../mysql322-server
COMMENT= ${PKGDIR}/COMMENT.client
+PKGINSTALL= mustnotexist
PLIST= ${PKGDIR}/PLIST.client
CLIENT_ONLY= yes
diff --git a/databases/percona55-server/Makefile b/databases/percona55-server/Makefile
index 8e7bbe5ed1a6..b93784998562 100644
--- a/databases/percona55-server/Makefile
+++ b/databases/percona55-server/Makefile
@@ -3,7 +3,7 @@
# Date created: 26 Jan 1998
# Whom: Josh Tiefenbach <josh@ican.net>
#
-# $Id: Makefile,v 1.56 1999/06/23 21:29:27 billf Exp $
+# $Id: Makefile,v 1.57 1999/07/01 08:44:48 dirk Exp $
#
DISTNAME= mysql-3.22.23b
@@ -78,21 +78,23 @@ pre-install:
post-install:
.if !defined(PACKAGE_BUILDING)
${PREFIX}/bin/mysql_install_db
+ @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
@${ECHO} "#!/bin/sh" > ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "#" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "if [ -x ${PREFIX}/bin/safe_mysqld ]" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "then" >> ${PREFIX}/etc/rc.d/mysql-server.sh
- @${ECHO} " ${PREFIX}/bin/safe_mysqld > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
+ @${ECHO} " ${PREFIX}/bin/safe_mysqld --user=mysql > /dev/null & && ${ECHO} -n ' mysql'" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@${ECHO} "fi" >> ${PREFIX}/etc/rc.d/mysql-server.sh
@/bin/chmod 750 ${PREFIX}/etc/rc.d/mysql-server.sh
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/mysql
+ ${MKDIR} ${PREFIX}/share/doc/mysql/Img
.for doc in manual.html manual.ps manual_toc.html manual.txt manual.texi include.texi
${INSTALL_DATA} ${WRKSRC}/Docs/${doc} ${PREFIX}/share/doc/mysql
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/Docs/Img/*.gif ${PREFIX}/share/doc/mysql/Img
${INSTALL_DATA} ${WRKSRC}/Docs/mysql.info ${PREFIX}/info
@install-info ${PREFIX}/info/mysql.info ${PREFIX}/info/dir
.endif
diff --git a/databases/percona55-server/pkg-install b/databases/percona55-server/pkg-install
new file mode 100644
index 000000000000..1c5dd869d825
--- /dev/null
+++ b/databases/percona55-server/pkg-install
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+PATH=/usr/sbin
+
+case $2 in
+POST-INSTALL)
+ USER=mysql
+ GROUP=${USER}
+ UID=88
+ GID=${UID}
+
+ if pw group show "${GROUP}" 2>/dev/null; then
+ echo "You already have a group \"${GROUP}\", so I will use it."
+ else
+ if pw groupadd ${GROUP} -g ${GID}; then
+ echo "Added group \"${GROUP}\"."
+ else
+ echo "Adding group \"${GROUP}\" failed..."
+ exit 1
+ fi
+ fi
+
+ if pw user show "${USER}" 2>/dev/null; then
+ echo "You already have a user \"${USER}\", so I will use it."
+ else
+ if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
+ -d /var/db/mysql -s /sbin/nologin -c "MySQL Daemon"
+ then
+ echo "Added user \"${USER}\"."
+ else
+ echo "Adding user \"${USER}\" failed..."
+ exit 1
+ fi
+ fi
+
+ chown -R ${USER}.${GROUP} /var/db/mysql
+ ;;
+esac
diff --git a/databases/percona55-server/pkg-plist b/databases/percona55-server/pkg-plist
index ad8ec6d06dd1..a3b826437b1a 100644
--- a/databases/percona55-server/pkg-plist
+++ b/databases/percona55-server/pkg-plist
@@ -23,6 +23,39 @@ lib/mysql/libmystrings.a
lib/mysql/libmysys.a
lib/mysql/libnisam.a
libexec/mysqld
+share/doc/mysql/Img/australia.gif
+share/doc/mysql/Img/austria.gif
+share/doc/mysql/Img/bulgaria.gif
+share/doc/mysql/Img/canada.gif
+share/doc/mysql/Img/chile.gif
+share/doc/mysql/Img/czech-republic.gif
+share/doc/mysql/Img/denmark.gif
+share/doc/mysql/Img/estonia.gif
+share/doc/mysql/Img/finland.gif
+share/doc/mysql/Img/france.gif
+share/doc/mysql/Img/germany.gif
+share/doc/mysql/Img/great-britain.gif
+share/doc/mysql/Img/greece.gif
+share/doc/mysql/Img/hungary.gif
+share/doc/mysql/Img/israel.gif
+share/doc/mysql/Img/italy.gif
+share/doc/mysql/Img/japan.gif
+share/doc/mysql/Img/mysql5.gif
+share/doc/mysql/Img/netherlands.gif
+share/doc/mysql/Img/poland.gif
+share/doc/mysql/Img/portugal.gif
+share/doc/mysql/Img/romania.gif
+share/doc/mysql/Img/russia.gif
+share/doc/mysql/Img/singapore.gif
+share/doc/mysql/Img/south-africa.gif
+share/doc/mysql/Img/south-africa1.gif
+share/doc/mysql/Img/south-korea.gif
+share/doc/mysql/Img/sweden.gif
+share/doc/mysql/Img/switzerland.gif
+share/doc/mysql/Img/taiwan.gif
+share/doc/mysql/Img/tcxlogo3.gif
+share/doc/mysql/Img/ukraine.gif
+share/doc/mysql/Img/usa.gif
share/doc/mysql/include.texi
share/doc/mysql/manual.html
share/doc/mysql/manual.ps
@@ -69,6 +102,7 @@ share/mysql/spanish/errmsg.sys
share/mysql/spanish/errmsg.txt
share/mysql/swedish/errmsg.sys
share/mysql/swedish/errmsg.txt
+@dirrm share/doc/mysql/Img
@dirrm share/doc/mysql
@dirrm share/mysql/czech
@dirrm share/mysql/dutch