pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Sat Jun 24 15:18:43 UTC 2017

Modified Files:
        pkgsrc/databases/mysql51-server: Makefile
        pkgsrc/databases/mysql51-server/files: mysqld.sh
        pkgsrc/databases/mysql55-server: Makefile
        pkgsrc/databases/mysql55-server/files: mysqld.sh
        pkgsrc/databases/mysql56-server: Makefile
        pkgsrc/databases/mysql56-server/files: mysqld.sh
        pkgsrc/databases/mysql57-server: Makefile
        pkgsrc/databases/mysql57-server/files: mysqld.sh

Log Message:
Disassociate from controlling terminal (using Perl, already a
dependency) and run the logger as ${mysqld_user}, not root.
Bump PKGREVISIONs.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/databases/mysql51-server/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/databases/mysql51-server/files/mysqld.sh
cvs rdiff -u -r1.31 -r1.32 pkgsrc/databases/mysql55-server/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/databases/mysql55-server/files/mysqld.sh
cvs rdiff -u -r1.31 -r1.32 pkgsrc/databases/mysql56-server/Makefile
cvs rdiff -u -r1.3 -r1.4 pkgsrc/databases/mysql56-server/files/mysqld.sh
cvs rdiff -u -r1.6 -r1.7 pkgsrc/databases/mysql57-server/Makefile
cvs rdiff -u -r1.1 -r1.2 pkgsrc/databases/mysql57-server/files/mysqld.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/mysql51-server/Makefile
diff -u pkgsrc/databases/mysql51-server/Makefile:1.29 pkgsrc/databases/mysql51-server/Makefile:1.30
--- pkgsrc/databases/mysql51-server/Makefile:1.29       Thu Apr 13 13:44:49 2017
+++ pkgsrc/databases/mysql51-server/Makefile    Sat Jun 24 15:18:42 2017
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2017/04/13 13:44:49 mef Exp $
+# $NetBSD: Makefile,v 1.30 2017/06/24 15:18:42 schmonz Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
+PKGREVISION=   1
 COMMENT=       MySQL 5, a free SQL database (server)
 
 CONFLICTS=             mysql3-server-[0-9]*

Index: pkgsrc/databases/mysql51-server/files/mysqld.sh
diff -u pkgsrc/databases/mysql51-server/files/mysqld.sh:1.3 pkgsrc/databases/mysql51-server/files/mysqld.sh:1.4
--- pkgsrc/databases/mysql51-server/files/mysqld.sh:1.3 Fri Dec  5 17:22:15 2014
+++ pkgsrc/databases/mysql51-server/files/mysqld.sh     Sat Jun 24 15:18:42 2017
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.3 2014/12/05 17:22:15 schmonz Exp $
+# $NetBSD: mysqld.sh,v 1.4 2017/06/24 15:18:42 schmonz Exp $
 #
 # PROVIDE: mysqld
 # REQUIRE: DAEMON LOGIN mountall
@@ -81,10 +81,10 @@ mysqld_start()
        @ECHO@ "Starting ${name}."
        ulimit -n 4096
        cd @PREFIX@
-       ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
+       @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
                   --pid-file=${mysqld_pidfile} ${mysqld_flags} \
                   ${thread_flags} \
-                  2>&1 | logger -t nbmysqld_safe \
+                  2>&1 | @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' @SU@ -m ${mysqld_user} -c 'logger -t nbmysqld_safe' \
                   &
 }
 

Index: pkgsrc/databases/mysql55-server/Makefile
diff -u pkgsrc/databases/mysql55-server/Makefile:1.31 pkgsrc/databases/mysql55-server/Makefile:1.32
--- pkgsrc/databases/mysql55-server/Makefile:1.31       Mon Apr 18 10:01:16 2016
+++ pkgsrc/databases/mysql55-server/Makefile    Sat Jun 24 15:18:42 2017
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2016/04/18 10:01:16 adam Exp $
+# $NetBSD: Makefile,v 1.32 2017/06/24 15:18:42 schmonz Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
+PKGREVISION=   1
 COMMENT=       MySQL 5, a free SQL database (server)
 
 CONFLICTS=     mysql3-server-[0-9]*

Index: pkgsrc/databases/mysql55-server/files/mysqld.sh
diff -u pkgsrc/databases/mysql55-server/files/mysqld.sh:1.3 pkgsrc/databases/mysql55-server/files/mysqld.sh:1.4
--- pkgsrc/databases/mysql55-server/files/mysqld.sh:1.3 Fri Dec  5 17:22:16 2014
+++ pkgsrc/databases/mysql55-server/files/mysqld.sh     Sat Jun 24 15:18:42 2017
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.3 2014/12/05 17:22:16 schmonz Exp $
+# $NetBSD: mysqld.sh,v 1.4 2017/06/24 15:18:42 schmonz Exp $
 #
 # PROVIDE: mysqld
 # REQUIRE: DAEMON LOGIN mountall
@@ -75,10 +75,10 @@ mysqld_start()
        @ECHO@ "Starting ${name}."
        ulimit -n 4096
        cd @PREFIX@
-       ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
+       @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
                   --pid-file=${mysqld_pidfile} ${mysqld_flags} \
                   ${thread_flags} \
-                  2>&1 | logger -t nbmysqld_safe \
+                  2>&1 | @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' @SU@ -m ${mysqld_user} -c 'logger -t nbmysqld_safe' \
                   &
 }
 

Index: pkgsrc/databases/mysql56-server/Makefile
diff -u pkgsrc/databases/mysql56-server/Makefile:1.31 pkgsrc/databases/mysql56-server/Makefile:1.32
--- pkgsrc/databases/mysql56-server/Makefile:1.31       Thu Sep  8 09:38:08 2016
+++ pkgsrc/databases/mysql56-server/Makefile    Sat Jun 24 15:18:42 2017
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2016/09/08 09:38:08 abs Exp $
+# $NetBSD: Makefile,v 1.32 2017/06/24 15:18:42 schmonz Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
+PKGREVISION=   1
 COMMENT=       MySQL 5, a free SQL database (server)
 
 CONFLICTS=     mysql3-server-[0-9]*

Index: pkgsrc/databases/mysql56-server/files/mysqld.sh
diff -u pkgsrc/databases/mysql56-server/files/mysqld.sh:1.3 pkgsrc/databases/mysql56-server/files/mysqld.sh:1.4
--- pkgsrc/databases/mysql56-server/files/mysqld.sh:1.3 Fri Dec  5 17:22:16 2014
+++ pkgsrc/databases/mysql56-server/files/mysqld.sh     Sat Jun 24 15:18:42 2017
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.3 2014/12/05 17:22:16 schmonz Exp $
+# $NetBSD: mysqld.sh,v 1.4 2017/06/24 15:18:42 schmonz Exp $
 #
 # PROVIDE: mysqld
 # REQUIRE: DAEMON LOGIN mountall
@@ -74,10 +74,10 @@ mysqld_start()
        @ECHO@ "Starting ${name}."
        ulimit -n 4096
        cd @PREFIX@
-       ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
+       @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
                   --pid-file=${mysqld_pidfile} ${mysqld_flags} \
                   ${thread_flags} \
-                  2>&1 | logger -t nbmysqld_safe \
+                  2>&1 | @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' @SU@ -m ${mysqld_user} -c 'logger -t nbmysqld_safe' \
                   &
 }
 

Index: pkgsrc/databases/mysql57-server/Makefile
diff -u pkgsrc/databases/mysql57-server/Makefile:1.6 pkgsrc/databases/mysql57-server/Makefile:1.7
--- pkgsrc/databases/mysql57-server/Makefile:1.6        Sun Apr 30 01:21:31 2017
+++ pkgsrc/databases/mysql57-server/Makefile    Sat Jun 24 15:18:42 2017
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.6 2017/04/30 01:21:31 ryoon Exp $
+# $NetBSD: Makefile,v 1.7 2017/06/24 15:18:42 schmonz Exp $
 
 PKGNAME=       ${DISTNAME:S/-/-server-/}
-PKGREVISION=   1
+PKGREVISION=   2
 COMMENT=       MySQL 5, a free SQL database (server)
 
 CONFLICTS=     mysql3-server-[0-9]*

Index: pkgsrc/databases/mysql57-server/files/mysqld.sh
diff -u pkgsrc/databases/mysql57-server/files/mysqld.sh:1.1 pkgsrc/databases/mysql57-server/files/mysqld.sh:1.2
--- pkgsrc/databases/mysql57-server/files/mysqld.sh:1.1 Fri Sep 16 06:49:12 2016
+++ pkgsrc/databases/mysql57-server/files/mysqld.sh     Sat Jun 24 15:18:42 2017
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: mysqld.sh,v 1.1 2016/09/16 06:49:12 adam Exp $
+# $NetBSD: mysqld.sh,v 1.2 2017/06/24 15:18:42 schmonz Exp $
 #
 # PROVIDE: mysqld
 # REQUIRE: DAEMON LOGIN mountall
@@ -74,10 +74,10 @@ mysqld_start()
        @ECHO@ "Starting ${name}."
        ulimit -n 4096
        cd @PREFIX@
-       ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
+       @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' ${command} --user=${mysqld_user} --datadir=${mysqld_datadir} \
                   --pid-file=${mysqld_pidfile} ${mysqld_flags} \
                   ${thread_flags} \
-                  2>&1 | logger -t nbmysqld_safe \
+                  2>&1 | @PERL5@ -e 'use POSIX qw(setsid); setsid(); { exec (@ARGV) }' @SU@ -m ${mysqld_user} -c 'logger -t nbmysqld_safe' \
                   &
 }
 



Home | Main Index | Thread Index | Old Index