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