From 5200bf35e9d0c7f443d0fb45a124a579aae26b4a Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Mon, 23 Apr 2018 15:33:47 +0000 Subject: [PATCH] databases/redisdesktopmanager: create port Redis Desktop Manager (aka RDM) - is a fast open source Redis database management application. It offers you an easy-to-use GUI to access your Redis DB and perform some basic operations: view keys as a tree, CRUD keys, execute commands via shell. RDM supports SSL/TLS encryption, SSH tunnels and cloud Redis instances such as: Amazon ElastiCache, Microsoft Azure Redis Cache and Redis Labs. WWW: https://redisdesktop.com/ --- databases/Makefile | 1 + databases/redisdesktopmanager/Makefile | 45 +++++++++++++++++++ databases/redisdesktopmanager/distinfo | 15 +++++++ .../files/patch-3rdparty_3rdparty.pri | 11 +++++ .../files/patch-src_app_app.cpp | 11 +++++ .../files/patch-src_main.cpp | 36 +++++++++++++++ .../files/patch-src_rdm.pro | 31 +++++++++++++ .../files/patch-src_version.h | 6 +++ databases/redisdesktopmanager/pkg-descr | 8 ++++ 9 files changed, 164 insertions(+) create mode 100644 databases/redisdesktopmanager/Makefile create mode 100644 databases/redisdesktopmanager/distinfo create mode 100644 databases/redisdesktopmanager/files/patch-3rdparty_3rdparty.pri create mode 100644 databases/redisdesktopmanager/files/patch-src_app_app.cpp create mode 100644 databases/redisdesktopmanager/files/patch-src_main.cpp create mode 100644 databases/redisdesktopmanager/files/patch-src_rdm.pro create mode 100644 databases/redisdesktopmanager/files/patch-src_version.h create mode 100644 databases/redisdesktopmanager/pkg-descr diff --git a/databases/Makefile b/databases/Makefile index 2ea33a0449ec..e07e7cfeed9c 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -889,6 +889,7 @@ SUBDIR += redigo SUBDIR += redis SUBDIR += redis-devel + SUBDIR += redisdesktopmanager SUBDIR += retcl SUBDIR += riak SUBDIR += riak2 diff --git a/databases/redisdesktopmanager/Makefile b/databases/redisdesktopmanager/Makefile new file mode 100644 index 000000000000..0187694e0f5f --- /dev/null +++ b/databases/redisdesktopmanager/Makefile @@ -0,0 +1,45 @@ +# $FreeBSD$ + +PORTNAME= redisdesktopmanager +PORTVERSION= 0.9.2 +CATEGORIES= databases + +MAINTAINER= swills@FreeBSD.org +COMMENT= Redis DB management tool + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libssh2.so:security/libssh2 + +USES= dos2unix kde:5 qmake ssl +DOS2UNIX_FILES= 3rdparty/3rdparty.pri +USE_GL= gl +USE_GITHUB= yes +BUILD_WRKSRC= ${WRKSRC}/src +CONFIGURE_WRKSRC= ${WRKSRC}/src +INSTALL_WRKSRC= ${WRKSRC}/bin/freebsd/release +PLIST_FILES= bin/rdm \ + share/pixmaps/rdm.png +DESKTOP_ENTRIES= "Redis Desktop Manager" "Redis Desktop Manager" "rdm.png" "rdm" "Development;" "" +GH_TUPLE= \ + uglide:RedisDesktopManager:${PORTVERSION}:DEFAULT/RedisDesktopManager-${PORTVERSION} \ + benlau:asyncfuture:4579d53:asyncfuture/3rdparty/asyncfuture \ + RedisDesktop:CrashReporter:3455308:crashreporter/3rdparty/crashreporter \ + easylogging:easyloggingpp:f926802:easylogging/3rdparty/easyloggingpp \ + uglide:qredisclient:34f1c5a:qredisclient/3rdparty/qredisclient \ + sijk:qt-unix-signals:d6a1d12:qtunixsignals/3rdparty/qt-unix-signals \ + redis:hiredis:53c3243:hiredis/3rdparty/qredisclient/3rdparty/hiredis +USE_QT5= buildtools_build charts concurrent core gui network qmake_build qml quick widgets + +post-patch: + @${REINPLACE_CMD} 's|%%PORTVERSION%%|${PORTVERSION}|g' ${WRKSRC}/src/version.h + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/share/pixmaps + cd ${INSTALL_WRKSRC} ; \ + ${STRIP_CMD} rdm ; \ + ${INSTALL_PROGRAM} rdm ${STAGEDIR}${PREFIX}/bin/rdm + ${INSTALL_DATA} ${BUILD_WRKSRC}/resources/rdm.png ${STAGEDIR}${PREFIX}/share/pixmaps/rdm.png + +.include diff --git a/databases/redisdesktopmanager/distinfo b/databases/redisdesktopmanager/distinfo new file mode 100644 index 000000000000..bc388de69e46 --- /dev/null +++ b/databases/redisdesktopmanager/distinfo @@ -0,0 +1,15 @@ +TIMESTAMP = 1524458931 +SHA256 (uglide-RedisDesktopManager-0.9.2_GH0.tar.gz) = da33fe0a0c0bfac775cf581ef8c7b0a4c48e44696d7c16db07f40828169240d8 +SIZE (uglide-RedisDesktopManager-0.9.2_GH0.tar.gz) = 1982837 +SHA256 (benlau-asyncfuture-4579d53_GH0.tar.gz) = ce5a3a4bc61f22f182eb8f932a3736289fc541e7487244fd57c93a141a038fe4 +SIZE (benlau-asyncfuture-4579d53_GH0.tar.gz) = 31928 +SHA256 (RedisDesktop-CrashReporter-3455308_GH0.tar.gz) = fb1a8a6c29b4e4acda5d4f479242a0364bfbddf05a7bd3f4ab353e91cd9b7c4f +SIZE (RedisDesktop-CrashReporter-3455308_GH0.tar.gz) = 14178 +SHA256 (easylogging-easyloggingpp-f926802_GH0.tar.gz) = 362294c79de7a5dfa76a56cbfcdcaf99e21bbd05b19ef5b76700fd576a2e1ff2 +SIZE (easylogging-easyloggingpp-f926802_GH0.tar.gz) = 463948 +SHA256 (uglide-qredisclient-34f1c5a_GH0.tar.gz) = 1cc99b148a6f8ee9a3cada1c340ceb1f095d7abd8e4b314651cf2655e22bf72d +SIZE (uglide-qredisclient-34f1c5a_GH0.tar.gz) = 226928 +SHA256 (sijk-qt-unix-signals-d6a1d12_GH0.tar.gz) = 8bbc578430ab2fd6665ff2f2f6fcf402b3346b6d3cdfcc16e8c1d8f5a8f75ea2 +SIZE (sijk-qt-unix-signals-d6a1d12_GH0.tar.gz) = 3792 +SHA256 (redis-hiredis-53c3243_GH0.tar.gz) = 38e38efff19715d5e2f49c77b9db35f7cd005d66ae3d0944630424c64cf3950d +SIZE (redis-hiredis-53c3243_GH0.tar.gz) = 58204 diff --git a/databases/redisdesktopmanager/files/patch-3rdparty_3rdparty.pri b/databases/redisdesktopmanager/files/patch-3rdparty_3rdparty.pri new file mode 100644 index 000000000000..67120c2449bd --- /dev/null +++ b/databases/redisdesktopmanager/files/patch-3rdparty_3rdparty.pri @@ -0,0 +1,11 @@ +--- 3rdparty/3rdparty.pri.orig 2018-04-23 05:41:30 UTC ++++ 3rdparty/3rdparty.pri +@@ -81,8 +81,6 @@ unix:!macx { # ubuntu & debian + #QMAKE_LFLAGS = -Wl,-rpath=/home/user/Qt5.9.3/5.9.3/gcc_64/lib + } + +- LIBS += $$BREAKPADDIR/client/linux/libbreakpad_client.a +- + # Unix signal watcher + HEADERS += $$PWD/qt-unix-signals/sigwatch.h + SOURCES += $$PWD/qt-unix-signals/sigwatch.cpp diff --git a/databases/redisdesktopmanager/files/patch-src_app_app.cpp b/databases/redisdesktopmanager/files/patch-src_app_app.cpp new file mode 100644 index 000000000000..b8157e594239 --- /dev/null +++ b/databases/redisdesktopmanager/files/patch-src_app_app.cpp @@ -0,0 +1,11 @@ +--- src/app/app.cpp.orig 2018-04-13 11:23:13 UTC ++++ src/app/app.cpp +@@ -210,8 +210,6 @@ void Application::initConnectionsManager() + + void Application::initUpdater() + { +- m_updater = QSharedPointer(new Updater()); +- connect(m_updater.data(), SIGNAL(updateUrlRetrived(QString &)), this, SLOT(OnNewUpdateAvailable(QString &))); + } + + void Application::installTranslator() diff --git a/databases/redisdesktopmanager/files/patch-src_main.cpp b/databases/redisdesktopmanager/files/patch-src_main.cpp new file mode 100644 index 000000000000..c9b113d4b249 --- /dev/null +++ b/databases/redisdesktopmanager/files/patch-src_main.cpp @@ -0,0 +1,36 @@ +--- src/main.cpp.orig 2018-04-13 11:23:13 UTC ++++ src/main.cpp +@@ -5,9 +5,7 @@ + #include "app/app.h" + #include "modules/crashhandler/crashhandler.h" + +-#ifdef Q_OS_LINUX + #include +-#endif + + int main(int argc, char *argv[]) + { +@@ -15,23 +13,14 @@ int main(int argc, char *argv[]) + QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling); + #endif + +- #ifndef QT_DEBUG +- QFileInfo appPath(QString::fromLocal8Bit(argv[0])); +- QString appDir(appPath.absoluteDir().path()); +- QString crashReporterPath = QString("%1/crashreporter").arg(appDir.isEmpty() ? "." : appDir); +- CrashHandler::instance()->Init(QDir::homePath(), appDir, crashReporterPath); +- #endif +- + Application a(argc, argv); + a.initModels(); + a.initQml(); + +- #ifdef Q_OS_LINUX + UnixSignalWatcher sigwatch; + sigwatch.watchForSignal(SIGINT); + sigwatch.watchForSignal(SIGTERM); + QObject::connect(&sigwatch, SIGNAL(unixSignal(int)), &a, SLOT(quit())); +- #endif + + return a.exec(); + } diff --git a/databases/redisdesktopmanager/files/patch-src_rdm.pro b/databases/redisdesktopmanager/files/patch-src_rdm.pro new file mode 100644 index 000000000000..4f28dff1ffe2 --- /dev/null +++ b/databases/redisdesktopmanager/files/patch-src_rdm.pro @@ -0,0 +1,31 @@ +--- src/rdm.pro.orig 2018-04-13 11:23:13 UTC ++++ src/rdm.pro +@@ -26,8 +26,6 @@ SOURCES += \ + $$PWD/modules/connections-tree/items/*.cpp \ + $$PWD/modules/console/*.cpp \ + $$PWD/modules/value-editor/*.cpp \ +- $$PWD/modules/crashhandler/*.cpp \ +- $$PWD/modules/updater/*.cpp \ + $$PWD/modules/bulk-operations/*.cpp \ + $$PWD/modules/common/*.cpp \ + $$PWD/modules/server-stats/*.cpp \ +@@ -42,8 +40,6 @@ HEADERS += \ + $$PWD/modules/connections-tree/items/*.h \ + $$PWD/modules/console/*.h \ + $$PWD/modules/value-editor/*.h \ +- $$PWD/modules/crashhandler/*.h \ +- $$PWD/modules/updater/*.h \ + $$PWD/modules/*.h \ + $$PWD/modules/bulk-operations/*.h \ + $$PWD/modules/common/*.h \ +@@ -97,8 +93,8 @@ unix:!macx { # ubuntu & debian + + QMAKE_CXXFLAGS += -Wno-sign-compare + +- release: DESTDIR = ./../bin/linux/release +- debug: DESTDIR = ./../bin/linux/debug ++ release: DESTDIR = ./../bin/freebsd/release ++ debug: DESTDIR = ./../bin/freebsd/debug + + #deployment + target.path = /usr/share/redis-desktop-manager/bin diff --git a/databases/redisdesktopmanager/files/patch-src_version.h b/databases/redisdesktopmanager/files/patch-src_version.h new file mode 100644 index 000000000000..3bad1dc9e745 --- /dev/null +++ b/databases/redisdesktopmanager/files/patch-src_version.h @@ -0,0 +1,6 @@ +--- src/version.h.orig 2018-04-23 05:38:55 UTC ++++ src/version.h +@@ -0,0 +1,3 @@ ++#ifndef RDM_VERSION ++ #define RDM_VERSION "%%PORTVERSION%%" ++#endif // !RDM_VERSION diff --git a/databases/redisdesktopmanager/pkg-descr b/databases/redisdesktopmanager/pkg-descr new file mode 100644 index 000000000000..77c9a835faf2 --- /dev/null +++ b/databases/redisdesktopmanager/pkg-descr @@ -0,0 +1,8 @@ +Redis Desktop Manager (aka RDM) - is a fast open source Redis database +management application. It offers you an easy-to-use GUI to access your Redis +DB and perform some basic operations: view keys as a tree, CRUD keys, execute +commands via shell. RDM supports SSL/TLS encryption, SSH tunnels and cloud +Redis instances such as: Amazon ElastiCache, Microsoft Azure Redis Cache and +Redis Labs. + +WWW: https://redisdesktop.com/