mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
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/
This commit is contained in:
parent
c4b00a2ad4
commit
5200bf35e9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=468097
9 changed files with 164 additions and 0 deletions
|
@ -889,6 +889,7 @@
|
||||||
SUBDIR += redigo
|
SUBDIR += redigo
|
||||||
SUBDIR += redis
|
SUBDIR += redis
|
||||||
SUBDIR += redis-devel
|
SUBDIR += redis-devel
|
||||||
|
SUBDIR += redisdesktopmanager
|
||||||
SUBDIR += retcl
|
SUBDIR += retcl
|
||||||
SUBDIR += riak
|
SUBDIR += riak
|
||||||
SUBDIR += riak2
|
SUBDIR += riak2
|
||||||
|
|
45
databases/redisdesktopmanager/Makefile
Normal file
45
databases/redisdesktopmanager/Makefile
Normal file
|
@ -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 <bsd.port.mk>
|
15
databases/redisdesktopmanager/distinfo
Normal file
15
databases/redisdesktopmanager/distinfo
Normal file
|
@ -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
|
|
@ -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
|
11
databases/redisdesktopmanager/files/patch-src_app_app.cpp
Normal file
11
databases/redisdesktopmanager/files/patch-src_app_app.cpp
Normal file
|
@ -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<Updater>(new Updater());
|
||||||
|
- connect(m_updater.data(), SIGNAL(updateUrlRetrived(QString &)), this, SLOT(OnNewUpdateAvailable(QString &)));
|
||||||
|
}
|
||||||
|
|
||||||
|
void Application::installTranslator()
|
36
databases/redisdesktopmanager/files/patch-src_main.cpp
Normal file
36
databases/redisdesktopmanager/files/patch-src_main.cpp
Normal file
|
@ -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 <sigwatch.h>
|
||||||
|
-#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();
|
||||||
|
}
|
31
databases/redisdesktopmanager/files/patch-src_rdm.pro
Normal file
31
databases/redisdesktopmanager/files/patch-src_rdm.pro
Normal file
|
@ -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
|
6
databases/redisdesktopmanager/files/patch-src_version.h
Normal file
6
databases/redisdesktopmanager/files/patch-src_version.h
Normal file
|
@ -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
|
8
databases/redisdesktopmanager/pkg-descr
Normal file
8
databases/redisdesktopmanager/pkg-descr
Normal file
|
@ -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/
|
Loading…
Add table
Reference in a new issue