From 26bc21005e4c24dc8042b96c6dfd1cece6a14073 Mon Sep 17 00:00:00 2001 From: Vadim Misbakh-Soloviov Date: Wed, 4 Sep 2024 01:07:30 +0700 Subject: [PATCH] app-admin/winbox: new package Signed-off-by: Vadim Misbakh-Soloviov --- app-admin/winbox/Manifest | 1 + app-admin/winbox/metadata.xml | 13 ++++++++ app-admin/winbox/winbox-4.0_beta1.ebuild | 42 ++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 app-admin/winbox/Manifest create mode 100644 app-admin/winbox/metadata.xml create mode 100644 app-admin/winbox/winbox-4.0_beta1.ebuild diff --git a/app-admin/winbox/Manifest b/app-admin/winbox/Manifest new file mode 100644 index 00000000..aed36a94 --- /dev/null +++ b/app-admin/winbox/Manifest @@ -0,0 +1 @@ +DIST WinBox_Linux.zip 22001744 BLAKE2B 16ea190427ef4ea0e9021d3fb96ebc6ebfd3aadb5b812130c1ef7bb54d52c06f5c90c49dace9e5831a721b3877f3eeaba1dbd1124e91c0b907d174470afa7c33 SHA512 fccace58595ea883898df03064f33b1892f8cf0e127fdfb21bdb8594a88f4e44865e9c4517109ea12b18cb42688837f471134abb630a40cfab18f4238b9df9bd diff --git a/app-admin/winbox/metadata.xml b/app-admin/winbox/metadata.xml new file mode 100644 index 00000000..aea24e78 --- /dev/null +++ b/app-admin/winbox/metadata.xml @@ -0,0 +1,13 @@ + + + + + mva@gentoo.org + Also, you can find me on IRC (Libera.Chat) as mva, or in Telegram as @mva_name + Vadim A. Misbakh-Soloviov + + + wp-cli/wp-cli + https://github.com/wp-cli/wp-cli/issues + + diff --git a/app-admin/winbox/winbox-4.0_beta1.ebuild b/app-admin/winbox/winbox-4.0_beta1.ebuild new file mode 100644 index 00000000..645024c8 --- /dev/null +++ b/app-admin/winbox/winbox-4.0_beta1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop wrapper + +DESCRIPTION="Standalone client for Mikrotik routers" +HOMEPAGE="https://mikrotik.com/" +MY_PN="WinBox" +SRC_URI="https://download.mikrotik.com/routeros/${PN}/${PV//_}/${MY_PN}_Linux.zip" + +S="${WORKDIR}" + +LICENSE="EULA" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + media-libs/fontconfig + media-libs/freetype + media-libs/libglvnd + sys-libs/zlib + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/xcb-util-image + x11-libs/xcb-util-keysyms + x11-libs/xcb-util-renderutil + x11-libs/xcb-util-wm +" +DEPEND="app-arch/unzip" + +src_install() { + # TODO: bundle old libxcb as it doesn't work with current + local instdir="/opt/${PN}" + insinto "${instdir}" + doins -r assets + exeinto "${instdir}" + doexe "${MY_PN}" + make_wrapper "${PN}" "./${MY_PN}" "${instdir}" + make_desktop_entry "${PN}" "${MY_PN}" "${PN}" # "/opt/${PN}/lib" +}