1
0
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:
Tom Judge 2012-11-16 03:44:09 +00:00
parent 43c5928d90
commit 1f97bf62dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307471
2 changed files with 27 additions and 1 deletions

View File

@ -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

View 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);