Gentoo Archives: gentoo-commits

From: "Brian Evans (grknight)" <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-db/mysql-init-scripts: mysql-init-scripts-2.1_alpha3.ebuild metadata.xml ChangeLog mysql-init-scripts-2.1_alpha2.ebuild
Date: Wed, 27 May 2015 21:01:10
Message-Id: 20150527210103.60DD8A0E@oystercatcher.gentoo.org
1 grknight 15/05/27 21:01:03
2
3 Modified: metadata.xml ChangeLog
4 Added: mysql-init-scripts-2.1_alpha3.ebuild
5 Removed: mysql-init-scripts-2.1_alpha2.ebuild
6 Log:
7 Version bump to correct s6 support for dependencies and sourcing
8
9 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D1F781EFF9F4A3B6)
10
11 Revision Changes Path
12 1.3 dev-db/mysql-init-scripts/metadata.xml
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-init-scripts/metadata.xml?rev=1.3&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-init-scripts/metadata.xml?rev=1.3&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-init-scripts/metadata.xml?r1=1.2&r2=1.3
17
18 Index: metadata.xml
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/metadata.xml,v
21 retrieving revision 1.2
22 retrieving revision 1.3
23 diff -u -r1.2 -r1.3
24 --- metadata.xml 27 May 2015 17:02:26 -0000 1.2
25 +++ metadata.xml 27 May 2015 21:01:03 -0000 1.3
26 @@ -2,7 +2,4 @@
27 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
28 <pkgmetadata>
29 <herd>mysql</herd>
30 - <use>
31 - <flag name='s6'>Install an OpenRC service that monitors using <pkg>sys-apps/s6</pkg> instead of using start-stop-daemon</flag>
32 - </use>
33 </pkgmetadata>
34
35
36
37 1.57 dev-db/mysql-init-scripts/ChangeLog
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-init-scripts/ChangeLog?rev=1.57&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-init-scripts/ChangeLog?rev=1.57&content-type=text/plain
41 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-init-scripts/ChangeLog?r1=1.56&r2=1.57
42
43 Index: ChangeLog
44 ===================================================================
45 RCS file: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/ChangeLog,v
46 retrieving revision 1.56
47 retrieving revision 1.57
48 diff -u -r1.56 -r1.57
49 --- ChangeLog 27 May 2015 17:02:26 -0000 1.56
50 +++ ChangeLog 27 May 2015 21:01:03 -0000 1.57
51 @@ -1,6 +1,13 @@
52 # ChangeLog for dev-db/mysql-init-scripts
53 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
54 -# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/ChangeLog,v 1.56 2015/05/27 17:02:26 grknight Exp $
55 +# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/ChangeLog,v 1.57 2015/05/27 21:01:03 grknight Exp $
56 +
57 +*mysql-init-scripts-2.1_alpha3 (27 May 2015)
58 +
59 + 27 May 2015; Brian Evans <grknight@g.o>
60 + +mysql-init-scripts-2.1_alpha3.ebuild, -mysql-init-scripts-2.1_alpha2.ebuild,
61 + files/init.d-s6, files/log-s6, files/run-s6, metadata.xml:
62 + Version bump to correct s6 support for dependencies and sourcing
63
64 *mysql-init-scripts-2.1_alpha2 (27 May 2015)
65
66
67
68
69 1.1 dev-db/mysql-init-scripts/mysql-init-scripts-2.1_alpha3.ebuild
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-init-scripts/mysql-init-scripts-2.1_alpha3.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-init-scripts/mysql-init-scripts-2.1_alpha3.ebuild?rev=1.1&content-type=text/plain
73
74 Index: mysql-init-scripts-2.1_alpha3.ebuild
75 ===================================================================
76 # Copyright 1999-2015 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-init-scripts/mysql-init-scripts-2.1_alpha3.ebuild,v 1.1 2015/05/27 21:01:03 grknight Exp $
79
80 EAPI=5
81
82 inherit systemd
83
84 DESCRIPTION="Gentoo MySQL init scripts."
85 HOMEPAGE="http://www.gentoo.org/"
86 SRC_URI=""
87
88 LICENSE="GPL-2"
89 SLOT="0"
90 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
91 IUSE=""
92
93 DEPEND=""
94 # This _will_ break with MySQL 5.0, 4.x, 3.x
95 # It also NEEDS openrc for the save_options/get_options builtins.
96 # The s6 support was added after openrc 0.16.2
97 RDEPEND="
98 !<dev-db/mysql-5.1
99 !<sys-apps/openrc-0.16.2
100 "
101 # Need to set S due to PMS saying we need it existing, but no SRC_URI
102 S=${WORKDIR}
103
104 src_install() {
105 newconfd "${FILESDIR}/conf.d-2.0" "mysql"
106
107 # s6 init scripts
108 if use amd64 || use x86 ; then
109 newconfd "${FILESDIR}/conf.d-2.0" "mysql-s6"
110 newinitd "${FILESDIR}/init.d-s6" "mysql-s6"
111 exeinto /var/svc.d/mysql-s6
112 newexe "${FILESDIR}/run-s6" "run"
113 exeinto /var/svc.d/mysql-s6/log
114 newexe "${FILESDIR}/log-s6" "run"
115 fi
116
117 newinitd "${FILESDIR}/init.d-2.0" "mysql"
118
119 # systemd unit installation
120 exeinto /usr/libexec
121 doexe "${FILESDIR}"/mysqld-wait-ready
122 systemd_dounit "${FILESDIR}/mysqld.service"
123 systemd_newunit "${FILESDIR}/mysqld_at.service" "mysqld@.service"
124 systemd_dotmpfilesd "${FILESDIR}/mysql.conf"
125
126 insinto /etc/logrotate.d
127 newins "${FILESDIR}/logrotate.mysql" "mysql"
128 }
129
130 pkg_postinst() {
131 einfo "To use the mysql-s6 script, you need to install the optional sys-apps/s6 package."
132 einfo "If you wish to use s6 logging support, "
133 einfo "comment out the log-error setting in your my.cnf"
134 }