Skip to content
Snippets Groups Projects
Commit 97add878 authored by Sertonix's avatar Sertonix Committed by Natanael Copa
Browse files

main/mariadb: split -client-perl for client tools which require perl

This allows installing mariadb-client without perl. When perl is installed
on the system mariadb-client-perl will be installed automatically when
mariadb-client is installed.
parent 944a4cf6
No related branches found
No related tags found
1 merge request!75545main/mariadb: split -client-perl for client tools which require perl
Pipeline #274552 skipped
......@@ -8,7 +8,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mariadb
pkgver=11.4.4
pkgrel=0
pkgrel=1
pkgdesc="A fast SQL database server"
url="https://www.mariadb.org/"
pkgusers="mysql"
......@@ -59,6 +59,7 @@ subpackages="
$pkgname-common
$pkgname-openrc
$pkgname-client
$pkgname-client-perl:_client_perl:noarch
$pkgname-bench
$pkgname-backup
$pkgname-embedded
......@@ -460,15 +461,11 @@ mytest() {
client() {
pkgdesc="Client for the MariaDB database"
# perl needed for mariadb-access
depends="mariadb-common=$pkgver-r$pkgrel perl"
install=""
local bins="myisam_ftdump mysql mysqlaccess mysqladmin
mysqlcheck mysqldump mysqldumpslow mysql_find_rows
mysql_fix_extensions mysqlimport mysqlshow mysql_waitpid
mariadb-secure-installation"
local symlinks="mariadb mariadb-access mariadb-admin mariadb-check
mariadb-dump mariadb-dumpslow mariadb-find-rows mariadb-fix-extensions
depends="mariadb-common=$pkgver-r$pkgrel"
local bins="myisam_ftdump mysql mysqladmin mysqlcheck mysqldump
mysqlimport mysqlshow mysql_waitpid mariadb-secure-installation"
local symlinks="mariadb mariadb-admin mariadb-check mariadb-dump
mariadb-import mariadb-show mariadb-waitpid mysql_secure_installation"
for i in $bins $symlinks; do
......@@ -476,6 +473,18 @@ client() {
done
}
_client_perl() {
pkgdesc="Client for the MariaDB database (perl tools)"
depends="mariadb-client=$pkgver-r$pkgrel perl"
install_if="mariadb-client=$pkgver-r$pkgrel perl"
for i in mysqlaccess mariadb-access mysql_find_rows \
mariadb-find-rows mysqldumpslow mariadb-dumpslow \
mysql_fix_extensions mariadb-fix-extensions; do
amove usr/bin/$i
done
}
bench() {
pkgdesc="MariaDB benchmark scripts and data"
replaces="mariadb"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment