maridb: split mytop into it's own package

this is done to ensure, that there is no cyclic dep betwenn
mariadb and perl-DBD-mysql
This commit is contained in:
John 2020-12-30 22:45:21 +01:00 committed by John Zimmermann
parent 7803b652ed
commit e73b11762b
3 changed files with 18 additions and 8 deletions

View file

@ -78,6 +78,7 @@ post_install() {
# Remove unneeded stuff.
rm -rf ${DESTDIR}/usr/{sql-bench,mysql-test,data}
rm -f ${DESTDIR}/usr/share/man/man1/mysql-test-run.pl.1
rm -f ${DESTDIR}/usr/bin/mytop
# Configuration file.
install -Dm644 ${DESTDIR}/usr/share/mysql/my-medium.cnf ${DESTDIR}/etc/mysql/my.cnf
@ -133,13 +134,6 @@ mariadb-client_package() {
done
}
}
mytop_package() {
depends="${sourcepkg}>=${version}_${revision} perl-Term-ReadKey perl-DBD-mysql"
short_desc="Top-like query monitor for MariaDB"
pkg_install() {
vmove usr/bin/mytop
}
}
libmysqlclient_package() {
build_style=meta

View file

@ -1 +0,0 @@
mariadb

17
srcpkgs/mytop/template Normal file
View file

@ -0,0 +1,17 @@
# Template file for 'mytop'
pkgname=mytop
version=10.1.47
revision=3
create_wrksrc=yes
depends="mariadb perl-Term-ReadKey perl-DBD-mysql"
short_desc="Top-like query monitor for MariaDB"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later"
homepage="https://mariadb.org/"
distfiles="https://raw.githubusercontent.com/MariaDB/server/mariadb-${version}/scripts/mytop.sh"
checksum=69c200bd7a03a454f2e314eb94396686e78d59aa8d089d8a0defef9287ec8950
skip_extraction="mytop.sh"
do_install() {
vbin ${XBPS_SRCDISTDIR}/${pkgname}-${version}/mytop.sh mytop
}