From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/kde:master commit in: media-sound/amarok/
Date: Tue, 4 May 2021 16:05:19 +0000 (UTC) [thread overview]
Message-ID: <1620143751.26e8ae85e284ba49fef6ac7b2c7e74b697b3c2ed.asturm@gentoo> (raw)
commit: 26e8ae85e284ba49fef6ac7b2c7e74b697b3c2ed
Author: band-a-prend <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Tue Apr 13 21:00:22 2021 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue May 4 15:55:51 2021 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=26e8ae85
media-sound/amarok: Add optfeature and pkg_config to create database
Add optfeature 'kde-apps/audiocd-kio' for Audio CD support.
Add additional pkg_postinst() elog messages with URLs to pages
with preliminary configuration of MySQL/MariaDB Server.
Add elog messages with steps to create Amarok external database
with 'emerge --config amarok' command and switching to use it.
Add simple short pkg_config() to create Amarok external database
with it's default username/password.
Committer-comment: Drop unrelated minor changes and fix mix of ewarn/einfo.
Closes: https://github.com/gentoo/kde/pull/899
Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
media-sound/amarok/amarok-9999.ebuild | 37 +++++++++++++++++++++++++++++++----
1 file changed, 33 insertions(+), 4 deletions(-)
diff --git a/media-sound/amarok/amarok-9999.ebuild b/media-sound/amarok/amarok-9999.ebuild
index 4f26e37cef..397a86c538 100644
--- a/media-sound/amarok/amarok-9999.ebuild
+++ b/media-sound/amarok/amarok-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=7
ECM_HANDBOOK="forceoptional"
KFMIN=5.74.0
QTMIN=5.15.2
-inherit ecm kde.org
+inherit ecm kde.org optfeature
DESCRIPTION="Advanced audio player based on KDE frameworks"
HOMEPAGE="https://amarok.kde.org/"
@@ -111,11 +111,40 @@ pkg_postinst() {
echo "${1} ($(has_version ${1} || echo "not ")installed)"
}
+ optfeature "Audio CD support" kde-apps/audiocd-kio
+
if [[ -z "${REPLACING_VERSIONS}" ]]; then
- elog "You'll have to configure amarok to use an external db server:"
- use mariadb && elog " $(pkg_is_installed dev-db/mariadb)" ||
+ elog "You'll have to configure amarok to use an external database server:"
+ if use mariadb ; then
+ elog " $(pkg_is_installed dev-db/mariadb)"
+ elog " For preliminary configuration of MariaDB Server please refer to"
+ elog " https://wiki.gentoo.org/wiki/MariaDB#Configuration"
+ else
elog " $(pkg_is_installed dev-db/mysql)"
+ elog " For preliminary configuration of MySQL Server please refer to"
+ elog " https://wiki.gentoo.org/wiki/MySQL#Configuration"
+ fi
elog "Please read https://community.kde.org/Amarok/Community/MySQL for details on how"
- elog "to configure the external db and migrate your data from the embedded database."
+ elog "to configure the external database and migrate your data from the embedded database."
+ elog "To create external amarok database with default user/password please:"
+ elog " 1. Make sure that MySQL or MariaDB is installed and configured (see above)"
+ elog " 2. Ensure that 'mysql' service is started and then run command 'emerge --config amarok'"
+ elog " 3. On 'Configure Amarok - Database' menu page check 'Use external MySQL database' and press OK"
+ fi
+}
+
+pkg_config() {
+ # Create external mysql database with amarok default user/password
+ local AMAROK_DB_NAME="amarokdb"
+ local AMAROK_DB_USER_NAME="amarokuser"
+ local AMAROK_DB_USER_PWD="password"
+
+ einfo "Initializing ${PN} MySQL database 'amarokdb':"
+ einfo "If prompted for a password, please enter your MySQL root password."
+ einfo
+
+ if [[ -e "${EROOT}"/usr/bin/mysql ]]; then
+ "${EROOT}"/usr/bin/mysql -u root -p -e "CREATE DATABASE IF NOT EXISTS ${AMAROK_DB_NAME}; GRANT ALL PRIVILEGES ON ${AMAROK_DB_NAME}.* TO '${AMAROK_DB_USER_NAME}' IDENTIFIED BY '${AMAROK_DB_USER_PWD}'; FLUSH PRIVILEGES;"
fi
+ einfo "${PN} MySQL database 'amarokdb' successfully initialized!"
}
next reply other threads:[~2021-05-04 16:05 UTC|newest]
Thread overview: 97+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-04 16:05 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-23 21:50 [gentoo-commits] proj/kde:master commit in: media-sound/amarok/ Andreas Sturmlechner
2025-02-22 9:49 Andreas Sturmlechner
2025-02-22 9:38 Andreas Sturmlechner
2025-02-21 22:46 Andreas Sturmlechner
2025-02-21 16:44 Andreas Sturmlechner
2025-02-21 16:44 Andreas Sturmlechner
2024-12-29 21:54 Andreas Sturmlechner
2024-10-15 20:10 Andreas Sturmlechner
2024-10-13 11:01 Andreas Sturmlechner
2024-05-16 11:49 Andreas Sturmlechner
2024-03-25 19:00 Andreas Sturmlechner
2024-02-27 19:11 Andreas Sturmlechner
2023-12-17 10:36 Andreas Sturmlechner
2023-12-17 10:03 Andreas Sturmlechner
2022-10-11 15:18 Andreas Sturmlechner
2021-05-04 16:05 Andreas Sturmlechner
2020-10-01 17:51 Andreas Sturmlechner
2020-04-26 11:00 Andreas Sturmlechner
2019-04-03 9:10 Andreas Sturmlechner
2019-02-26 11:54 Andreas Sturmlechner
2019-02-25 21:15 Andreas Sturmlechner
2019-02-07 22:50 Andreas Sturmlechner
2018-10-04 21:35 Andreas Sturmlechner
2018-10-04 13:39 Andreas Sturmlechner
2018-10-04 12:20 Andreas Sturmlechner
2018-10-02 19:53 Andreas Sturmlechner
2018-06-07 17:10 Andreas Sturmlechner
2018-05-27 5:44 Andreas Sturmlechner
2018-05-26 23:19 Andreas Sturmlechner
2018-05-06 8:12 Andreas Sturmlechner
2018-03-20 16:50 Andreas Sturmlechner
2018-03-20 16:50 Andreas Sturmlechner
2018-03-15 22:26 Andreas Sturmlechner
2018-03-15 22:26 Andreas Sturmlechner
2018-03-15 22:26 Andreas Sturmlechner
2018-03-15 22:26 Andreas Sturmlechner
2018-03-08 20:55 Andreas Sturmlechner
2018-03-03 17:29 Andreas Sturmlechner
2018-02-27 16:03 Andreas Sturmlechner
2018-02-22 21:14 Andreas Sturmlechner
2018-02-22 20:23 Andreas Sturmlechner
2018-01-07 17:52 Andreas Sturmlechner
2017-12-14 8:22 Andreas Sturmlechner
2017-12-14 8:20 Andreas Sturmlechner
2017-06-25 11:17 Andreas Sturmlechner
2016-07-21 9:41 Michael Palimaka
2016-03-28 12:24 Johannes Huber
2015-12-31 9:17 Michael Palimaka
2015-11-26 16:06 Michael Palimaka
2015-09-14 13:09 Michael Palimaka
2015-09-10 18:15 Michael Palimaka
2015-08-07 21:42 Johannes Huber
2015-02-17 13:53 Michael Palimaka
2015-01-29 14:34 Michael Palimaka
2015-01-29 0:10 Johannes Huber
2014-07-17 13:04 Michael Palimaka
2014-05-04 23:35 Johannes Huber
2014-03-14 14:52 Johannes Huber
2013-11-28 10:55 Michael Palimaka
2013-11-23 23:09 Johannes Huber
2013-10-06 19:57 Chris Reffett
2013-08-18 13:10 Manuel Rüger
2013-08-17 14:39 Michael Palimaka
2013-08-16 3:31 Manuel Rüger
2013-08-16 3:27 Manuel Rüger
2013-08-01 12:32 Michael Palimaka
2013-08-01 11:04 Michael Palimaka
2013-07-18 3:23 Manuel Rüger
2013-07-06 17:14 Manuel Rüger
2013-07-06 16:43 Manuel Rüger
2013-06-06 16:40 Michael Palimaka
2013-06-04 11:28 Michael Palimaka
2013-05-30 12:28 Michael Palimaka
2013-05-16 0:06 David Heidelberger
2013-04-29 20:26 Manuel Rüger
2013-01-07 11:15 Jorge Manuel B. S. Vicetto
2012-12-18 2:58 Paulos Ratis
2012-12-17 4:21 Jorge Manuel B. S. Vicetto
2012-12-10 16:17 Michael Palimaka
2012-09-17 11:55 Johannes Huber
2012-08-24 2:00 Chris Reffett
2012-07-14 18:01 Michael Palimaka
2012-07-09 9:37 Johannes Huber
2012-07-08 14:37 Jorge Manuel B. S. Vicetto
2012-07-08 14:29 Jorge Manuel B. S. Vicetto
2012-07-08 14:05 Jorge Manuel B. S. Vicetto
2012-06-04 19:16 Jorge Manuel B. S. Vicetto
2012-05-26 16:12 Alexey Shvetsov
2012-05-02 22:16 Johannes Huber
2012-02-09 15:38 Johannes Huber
2011-11-15 4:49 Jorge Manuel B. S. Vicetto
2011-11-15 4:22 Jorge Manuel B. S. Vicetto
2011-11-08 20:37 Johannes Huber
2011-08-23 21:56 Andreas Hüttel
2011-07-31 0:22 Jorge Manuel B. S. Vicetto
2011-07-10 0:33 Johannes Huber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1620143751.26e8ae85e284ba49fef6ac7b2c7e74b697b3c2ed.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox