mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
* Fix build against libcli 0.9.6
* Make dependance on ActiveMQ off by default. Feature safe: yes Approved by: eadler (mentor)
This commit is contained in:
parent
43c5928d90
commit
1f97bf62dc
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307471
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= dispatcher
|
||||
PORTVERSION= 0.5.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= SF/razorbacktm/Dispatcher
|
||||
PKGNAMEPREFIX= razorback-
|
||||
@ -23,7 +24,6 @@ LIB_DEPENDS= razorback_api:${PORTSDIR}/security/razorback-api \
|
||||
cli:${PORTSDIR}/devel/libcli
|
||||
|
||||
OPTIONS_DEFINE= DEBUG ASSERT ACTIVEMQ
|
||||
OPTIONS_DEFAULT=ACTIVEMQ
|
||||
ASSERT_DESC= Enable Asserts
|
||||
ACTIVEMQ_DESC= ActiveMQ runs locally
|
||||
|
||||
|
26
security/razorback-dispatcher/files/patch-src-console_cli.c
Normal file
26
security/razorback-dispatcher/files/patch-src-console_cli.c
Normal file
@ -0,0 +1,26 @@
|
||||
Index: src/console_cli.c
|
||||
===================================================================
|
||||
--- src/console_cli.c (revision 3997)
|
||||
+++ src/console_cli.c (working copy)
|
||||
@@ -24,10 +24,10 @@
|
||||
|
||||
#define MODE_CONFIG_NUGGET 10
|
||||
#define MODE_CONFIG_APP_TYPE 11
|
||||
-#define DECL_COMMAND(x) static int x(struct cli_def *cli, char *command, char *argv[], int argc)
|
||||
+#define DECL_COMMAND(x) static int x(struct cli_def *cli, const char *command, char **argv, int argc)
|
||||
|
||||
int
|
||||
-check_auth (char *username, char *password)
|
||||
+check_auth (const char *username, const char *password)
|
||||
{
|
||||
// TODO: Add support for other auth backends
|
||||
if (strcasecmp (username, g_sConsoleUser) != 0)
|
||||
@@ -38,7 +38,7 @@
|
||||
}
|
||||
|
||||
int
|
||||
-check_enable (char *password)
|
||||
+check_enable (const char *password)
|
||||
{
|
||||
// TODO: Add support for other auth backends
|
||||
return !strcasecmp (password, g_sConsoleEnablePassword);
|
Loading…
Reference in New Issue
Block a user