View | Details | Raw Unified | Return to bug 242977
Collapse All | Expand All

(-)net-mgmt/argus3-clients/Makefile (-2 / +14 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	argus-clients
4
PORTNAME=	argus-clients
5
PORTVERSION=	3.0.8.2
5
PORTVERSION=	3.0.8.2
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	net-mgmt security
7
CATEGORIES=	net-mgmt security
8
MASTER_SITES=	http://qosient.com/argus/src/ \
8
MASTER_SITES=	http://qosient.com/argus/src/ \
9
		ftp://qosient.com/pub/argus/src/
9
		ftp://qosient.com/pub/argus/src/
Lines 13-18 COMMENT= Client programs for the argus IP network transaction auditing tool Link Here
13
13
14
LICENSE=	GPLv3
14
LICENSE=	GPLv3
15
15
16
USES=		bison ncurses perl5 readline dos2unix
16
CONFLICTS=	argus-clients-2* argus-clients-sasl-2*
17
CONFLICTS=	argus-clients-2* argus-clients-sasl-2*
17
18
18
OPTIONS_DEFINE=	MYSQL SASL DOCS EXAMPLES
19
OPTIONS_DEFINE=	MYSQL SASL DOCS EXAMPLES
Lines 22-30 SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2 Link Here
22
SASL_CONFIGURE_ON=	--with-sasl=${LOCALBASE}
23
SASL_CONFIGURE_ON=	--with-sasl=${LOCALBASE}
23
MYSQL_USES=	mysql
24
MYSQL_USES=	mysql
24
25
25
USES=		bison ncurses perl5 readline
26
USE_CSTD=	gnu89
26
USE_CSTD=	gnu89
27
GNU_CONFIGURE=	yes
27
GNU_CONFIGURE=	yes
28
DOS2UNIX_FILES=	\
29
				examples/rapolicy/rapolicy.c \
30
				include/rapolicy.h
28
31
29
.include <bsd.port.options.mk>
32
.include <bsd.port.options.mk>
30
33
Lines 32-37 GNU_CONFIGURE= yes Link Here
32
PKGNAMESUFFIX+=	-sasl
35
PKGNAMESUFFIX+=	-sasl
33
.endif
36
.endif
34
37
38
pre-configure:
39
	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
40
		${WRKSRC}/clients/radium.c \
41
		${WRKSRC}/common/argus_auth.c \
42
		${WRKSRC}/common/argus_auth.c \
43
		${WRKSRC}/common/argus_util.c \
44
		${WRKSRC}/examples/ramysql/rasql.c \
45
		${WRKSRC}/examples/rapolicy/rapolicy.c
46
35
do-install:
47
do-install:
36
.for i in radark ragraph rahosts raips raplot raports
48
.for i in radark ragraph rahosts raips raplot raports
37
	@${REINPLACE_CMD} -e 's#/usr/bin/perl#${LOCALBASE}/bin/perl#' ${WRKSRC}/bin/$i
49
	@${REINPLACE_CMD} -e 's#/usr/bin/perl#${LOCALBASE}/bin/perl#' ${WRKSRC}/bin/$i
(-)net-mgmt/argus3-clients/files/patch-clients_radium.c (+11 lines)
Added Link Here
1
--- clients/radium.c.orig	2019-12-30 03:56:09 UTC
2
+++ clients/radium.c
3
@@ -131,7 +131,7 @@ ArgusClientInit (struct ArgusParserStruct *parser)
4
          RadiumParseResourceFile (parser, parser->ArgusFlowModelFile);
5
       } else {
6
          if (!(parser->Xflag)) {
7
-            RadiumParseResourceFile (parser, "/etc/radium.conf");
8
+            RadiumParseResourceFile (parser, "%%PREFIX%%/etc/radium.conf");
9
          }
10
       }
11
 
(-)net-mgmt/argus3-clients/files/patch-common_argus__auth.c (+11 lines)
Added Link Here
1
--- common/argus_auth.c.orig	2019-12-29 13:04:50 UTC
2
+++ common/argus_auth.c
3
@@ -131,7 +131,7 @@ int RaGetSecret(sasl_conn_t *, void *context, int, sas
4
 int ArgusSaslGetPath(void *context __attribute__((unused)), char **);
5
 int ArgusSaslLog (void *context __attribute__((unused)), int, const char *);
6
 
7
-#define PLUGINDIR "/usr/lib/sasl2"
8
+#define PLUGINDIR "%%PREFIX%%/lib/sasl2"
9
 char *searchpath = NULL;
10
 
11
 int
(-)net-mgmt/argus3-clients/files/patch-common_argus__util.c (+11 lines)
Added Link Here
1
--- common/argus_util.c.orig	2019-12-30 03:59:04 UTC
2
+++ common/argus_util.c
3
@@ -795,7 +795,7 @@ ArgusMainInit (struct ArgusParserStruct *parser, int a
4
          noconf++;
5
 
6
    if (!(noconf)) {
7
-      snprintf (path, MAXPATHNAMELEN - 1, "/etc/ra.conf");
8
+      snprintf (path, MAXPATHNAMELEN - 1, "%%PREFIX%%/etc/ra.conf");
9
 
10
       if (stat (path, &statbuf) == 0)
11
          ArgusParseResourceFile (parser, path);
(-)net-mgmt/argus3-clients/files/patch-examples_ramysql_rasql.c (+14 lines)
Added Link Here
1
--- examples/ramysql/rasql.c.orig	2019-12-30 04:18:22 UTC
2
+++ examples/ramysql/rasql.c
3
@@ -1023,9 +1023,9 @@ RaSQLProcessQueue (struct ArgusQueueStruct *queue)
4
                                  int RaPort = ArgusParser->ArgusPortNum ?  ArgusParser->ArgusPortNum : ARGUS_DEFAULTPORT;
5
 
6
                                  if (RaRoleString != NULL)
7
-                                    sprintf (command, "/usr/local/bin/ra -nnS %s:%d%s/%s/%s -w %s", RaHost, RaPort, RaArchive, RaRoleString, file, filenamebuf);
8
+                                    sprintf (command, "%%PREFIX%%/bin/ra -nnS %s:%d%s/%s/%s -w %s", RaHost, RaPort, RaArchive, RaRoleString, file, filenamebuf);
9
                                  else
10
-                                    sprintf (command, "/usr/local/bin/ra -nnS %s:%d%s/%s -w %s", RaHost, RaPort, RaArchive, file, filenamebuf);
11
+                                    sprintf (command, "%%PREFIX%%/bin/ra -nnS %s:%d%s/%s -w %s", RaHost, RaPort, RaArchive, file, filenamebuf);
12
 #ifdef ARGUSDEBUG
13
                                  ArgusDebug (2, "RaSQLProcessQueue: remote file caching command  %s\n", command);
14
 #endif
(-)net-mgmt/argus3-clients/files/patch-examples_rapolicy_rapolicy.c (+11 lines)
Added Link Here
1
--- examples/rapolicy/rapolicy.c.orig	2019-12-30 04:00:06 UTC
2
+++ examples/rapolicy/rapolicy.c
3
@@ -88,7 +88,7 @@ ArgusClientInit (struct ArgusParserStruct *parser)
4
          RaPolicyParseResourceFile (parser, parser->ArgusFlowModelFile, &RaPolicy);
5
       } else {
6
          if (!(parser->Xflag)) {
7
-            RaPolicyParseResourceFile (parser, "/etc/rapolicy.conf", &RaPolicy);
8
+            RaPolicyParseResourceFile (parser, "%%PREFIX%%/etc/rapolicy.conf", &RaPolicy);
9
          }
10
       }
11
    }

Return to bug 242977