mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
New slave port to security/barnyard - adds patches for sguil6
PR: ports/92241 Submitted by: Paul Schmehl <pauls@utdallas.edu>
This commit is contained in:
parent
2934147446
commit
587c8499aa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=154503
@ -26,6 +26,7 @@
|
||||
SUBDIR += autossh
|
||||
SUBDIR += avcheck
|
||||
SUBDIR += barnyard
|
||||
SUBDIR += barnyard-sguil6
|
||||
SUBDIR += base
|
||||
SUBDIR += bcrypt
|
||||
SUBDIR += bcwipe
|
||||
|
18
security/barnyard-sguil/Makefile
Normal file
18
security/barnyard-sguil/Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
# New ports collection makefile for: barnyard-sguil6
|
||||
# Date created: 23 Jan 2006
|
||||
# Whom: pauls
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PKGNAMESUFFIX= -sguil6
|
||||
COMMENT= An output system for Snort (patched for sguil6)
|
||||
|
||||
LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../barnyard
|
||||
PATCHDIR= ${.CURDIR}/files
|
||||
|
||||
CONFIGURE_ARGS+= --enable-tcl --with-tcl=${PREFIX}/lib/tcl8.4
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
63
security/barnyard-sguil/files/patch-configure.in
Normal file
63
security/barnyard-sguil/files/patch-configure.in
Normal file
@ -0,0 +1,63 @@
|
||||
--- configure.in.orig Sat May 1 11:43:29 2004
|
||||
+++ configure.in Mon Jan 23 14:32:54 2006
|
||||
@@ -1,4 +1,4 @@
|
||||
-# $Id: configure.in,v 1.17 2004/05/01 16:43:29 andrewbaker Exp $
|
||||
+# $Id: configure.in,v 1.2 2005/03/08 20:37:40 bamm Exp $
|
||||
AC_INIT(src/barnyard.c)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(barnyard,0.2.0)
|
||||
@@ -281,13 +281,53 @@
|
||||
|
||||
dnl check for the header
|
||||
LDFLAGS="${LDFLAGS} -L${MYSQL_LIB_DIR}"
|
||||
- LIBS="${LIBS} -lz -lssl -lmysqlclient"
|
||||
+ LIBS="${LIBS} -lmysqlclient -lcrypto"
|
||||
AC_CHECK_LIB(mysqlclient, mysql_real_connect, FOUND=yes, FOUND=no)
|
||||
|
||||
if test "$FOUND" = "no"; then
|
||||
FAIL_MESSAGE("mysqlclient library", "$MYSQL_LIB_DIR")
|
||||
fi
|
||||
|
||||
+fi
|
||||
+
|
||||
+AC_ARG_ENABLE(tcl,
|
||||
+ [ --enable-tcl Enable Tcl language support.],,
|
||||
+ [enable_tcl="no"])
|
||||
+dnl AC_MSG_RESULT($enable_tcl)
|
||||
+
|
||||
+if test "yes" = "$enable_tcl"; then
|
||||
+
|
||||
+ dnl let tclsh tell us where it was
|
||||
+ dnl installed (prefer new tcl versions).
|
||||
+ AC_CHECK_PROGS(TCLSH, tclsh8.4 tclsh8.3 tclsh8.2 tclsh8.1 tclsh8.0 tclsh)
|
||||
+ if test "$TCLSH" != ""; then
|
||||
+ tclpath=`echo 'puts [[lindex $tcl_pkgPath 0]]' | $TCLSH`
|
||||
+ fi
|
||||
+
|
||||
+ dnl let the user overwrite the installation
|
||||
+ dnl directory which was just found.
|
||||
+ AC_ARG_WITH(tcl,
|
||||
+ [ --with-tcl=PATH Location of tclConfig.sh],
|
||||
+ tclpath="$withval")
|
||||
+
|
||||
+ dnl check, if tclConfig.sh can be found in
|
||||
+ dnl tclsh's installation directory.
|
||||
+ if test ! -r $tclpath/tclConfig.sh; then
|
||||
+ AC_MSG_RESULT(
|
||||
+ [
|
||||
+ Can't find Tcl libraries. Use --with-tcl to specify
|
||||
+ the directory containing tclConfig.sh on your system.
|
||||
+ Continuing build without Tcl support.])
|
||||
+ else
|
||||
+ dnl source tclsh's configuration file
|
||||
+ dnl and tell the user about the version.
|
||||
+ . $tclpath/tclConfig.sh
|
||||
+ AC_MSG_CHECKING([for the tcl version number])
|
||||
+ AC_MSG_RESULT([$TCL_VERSION, patchlevel $TCL_PATCH_LEVEL])
|
||||
+ LIBS="$LIBS $TCL_LIBS $TCL_LIB_SPEC"
|
||||
+ TCL_INCLUDE="$TCL_PREFIX/include/tcl$TCL_VERSION"
|
||||
+ CPPFLAGS="$CPPFLAGS -I$TCL_INCLUDE -DENABLE_TCL";
|
||||
+ fi
|
||||
fi
|
||||
|
||||
|
1873
security/barnyard-sguil/files/patch-op-sguil.c
Normal file
1873
security/barnyard-sguil/files/patch-op-sguil.c
Normal file
File diff suppressed because it is too large
Load Diff
20
security/barnyard-sguil/files/patch-op_plugbase.c
Normal file
20
security/barnyard-sguil/files/patch-op_plugbase.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/output-plugins/op_plugbase.c.orig Sun Mar 28 18:14:19 2004
|
||||
+++ src/output-plugins/op_plugbase.c Sun Jan 15 22:33:35 2006
|
||||
@@ -27,7 +27,7 @@
|
||||
#if defined(ENABLE_MYSQL) || defined(ENABLE_POSTGRES)
|
||||
#include "op_acid_db.h"
|
||||
#endif
|
||||
-#ifdef ENABLE_MYSQL
|
||||
+#ifdef ENABLE_TCL
|
||||
#include "op_sguil.h"
|
||||
#endif
|
||||
#include "op_alert_csv.h"
|
||||
@@ -47,7 +47,7 @@
|
||||
#if defined(ENABLE_MYSQL) || defined(ENABLE_POSTGRES)
|
||||
OpAcidDb_Init();
|
||||
#endif
|
||||
-#ifdef ENABLE_MYSQL
|
||||
+#ifdef ENABLE_TCL
|
||||
OpSguil_Init();
|
||||
#endif
|
||||
OpAlertCSV_Init();
|
26
security/barnyard-sguil/files/patch-op_sguil.h
Normal file
26
security/barnyard-sguil/files/patch-op_sguil.h
Normal file
@ -0,0 +1,26 @@
|
||||
--- src/output-plugins/op_sguil.h.orig Mon Mar 15 22:18:20 2004
|
||||
+++ src/output-plugins/op_sguil.h Sun Jan 15 22:32:07 2006
|
||||
@@ -1,8 +1,9 @@
|
||||
-/* $Id: op_sguil.h,v 1.2 2004/03/16 04:18:20 andrewbaker Exp $ */
|
||||
+/* $Id: op_sguil.h,v 1.2 2005/03/03 21:07:44 bamm Exp $ */
|
||||
+
|
||||
/*
|
||||
-** Copyright (C) 2001 Andrew R. Baker <andrewb@snort.org>
|
||||
+** Copyright (C) 2002-2004 Robert (Bamm) Visscher <bamm@sguil.net>
|
||||
**
|
||||
-** This program is distributed under the terms of version 1.0 of the
|
||||
+** This program is distributed under the terms of version 1.0 of the
|
||||
** Q Public License. See LICENSE.QPL for further details.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful,
|
||||
@@ -11,10 +12,4 @@
|
||||
**
|
||||
*/
|
||||
|
||||
-#ifndef __OP_SGUIL_H__
|
||||
-#define __OP_SGUIL_H__
|
||||
-
|
||||
void OpSguil_Init();
|
||||
-
|
||||
-#endif /* __OP_SGUIL_H__ */
|
||||
-
|
18
security/barnyard-sguil6/Makefile
Normal file
18
security/barnyard-sguil6/Makefile
Normal file
@ -0,0 +1,18 @@
|
||||
# New ports collection makefile for: barnyard-sguil6
|
||||
# Date created: 23 Jan 2006
|
||||
# Whom: pauls
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PKGNAMESUFFIX= -sguil6
|
||||
COMMENT= An output system for Snort (patched for sguil6)
|
||||
|
||||
LIB_DEPENDS+= tcl84.1:${PORTSDIR}/lang/tcl84
|
||||
|
||||
MASTERDIR= ${.CURDIR}/../barnyard
|
||||
PATCHDIR= ${.CURDIR}/files
|
||||
|
||||
CONFIGURE_ARGS+= --enable-tcl --with-tcl=${PREFIX}/lib/tcl8.4
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
63
security/barnyard-sguil6/files/patch-configure.in
Normal file
63
security/barnyard-sguil6/files/patch-configure.in
Normal file
@ -0,0 +1,63 @@
|
||||
--- configure.in.orig Sat May 1 11:43:29 2004
|
||||
+++ configure.in Mon Jan 23 14:32:54 2006
|
||||
@@ -1,4 +1,4 @@
|
||||
-# $Id: configure.in,v 1.17 2004/05/01 16:43:29 andrewbaker Exp $
|
||||
+# $Id: configure.in,v 1.2 2005/03/08 20:37:40 bamm Exp $
|
||||
AC_INIT(src/barnyard.c)
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE(barnyard,0.2.0)
|
||||
@@ -281,13 +281,53 @@
|
||||
|
||||
dnl check for the header
|
||||
LDFLAGS="${LDFLAGS} -L${MYSQL_LIB_DIR}"
|
||||
- LIBS="${LIBS} -lz -lssl -lmysqlclient"
|
||||
+ LIBS="${LIBS} -lmysqlclient -lcrypto"
|
||||
AC_CHECK_LIB(mysqlclient, mysql_real_connect, FOUND=yes, FOUND=no)
|
||||
|
||||
if test "$FOUND" = "no"; then
|
||||
FAIL_MESSAGE("mysqlclient library", "$MYSQL_LIB_DIR")
|
||||
fi
|
||||
|
||||
+fi
|
||||
+
|
||||
+AC_ARG_ENABLE(tcl,
|
||||
+ [ --enable-tcl Enable Tcl language support.],,
|
||||
+ [enable_tcl="no"])
|
||||
+dnl AC_MSG_RESULT($enable_tcl)
|
||||
+
|
||||
+if test "yes" = "$enable_tcl"; then
|
||||
+
|
||||
+ dnl let tclsh tell us where it was
|
||||
+ dnl installed (prefer new tcl versions).
|
||||
+ AC_CHECK_PROGS(TCLSH, tclsh8.4 tclsh8.3 tclsh8.2 tclsh8.1 tclsh8.0 tclsh)
|
||||
+ if test "$TCLSH" != ""; then
|
||||
+ tclpath=`echo 'puts [[lindex $tcl_pkgPath 0]]' | $TCLSH`
|
||||
+ fi
|
||||
+
|
||||
+ dnl let the user overwrite the installation
|
||||
+ dnl directory which was just found.
|
||||
+ AC_ARG_WITH(tcl,
|
||||
+ [ --with-tcl=PATH Location of tclConfig.sh],
|
||||
+ tclpath="$withval")
|
||||
+
|
||||
+ dnl check, if tclConfig.sh can be found in
|
||||
+ dnl tclsh's installation directory.
|
||||
+ if test ! -r $tclpath/tclConfig.sh; then
|
||||
+ AC_MSG_RESULT(
|
||||
+ [
|
||||
+ Can't find Tcl libraries. Use --with-tcl to specify
|
||||
+ the directory containing tclConfig.sh on your system.
|
||||
+ Continuing build without Tcl support.])
|
||||
+ else
|
||||
+ dnl source tclsh's configuration file
|
||||
+ dnl and tell the user about the version.
|
||||
+ . $tclpath/tclConfig.sh
|
||||
+ AC_MSG_CHECKING([for the tcl version number])
|
||||
+ AC_MSG_RESULT([$TCL_VERSION, patchlevel $TCL_PATCH_LEVEL])
|
||||
+ LIBS="$LIBS $TCL_LIBS $TCL_LIB_SPEC"
|
||||
+ TCL_INCLUDE="$TCL_PREFIX/include/tcl$TCL_VERSION"
|
||||
+ CPPFLAGS="$CPPFLAGS -I$TCL_INCLUDE -DENABLE_TCL";
|
||||
+ fi
|
||||
fi
|
||||
|
||||
|
1873
security/barnyard-sguil6/files/patch-op-sguil.c
Normal file
1873
security/barnyard-sguil6/files/patch-op-sguil.c
Normal file
File diff suppressed because it is too large
Load Diff
20
security/barnyard-sguil6/files/patch-op_plugbase.c
Normal file
20
security/barnyard-sguil6/files/patch-op_plugbase.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/output-plugins/op_plugbase.c.orig Sun Mar 28 18:14:19 2004
|
||||
+++ src/output-plugins/op_plugbase.c Sun Jan 15 22:33:35 2006
|
||||
@@ -27,7 +27,7 @@
|
||||
#if defined(ENABLE_MYSQL) || defined(ENABLE_POSTGRES)
|
||||
#include "op_acid_db.h"
|
||||
#endif
|
||||
-#ifdef ENABLE_MYSQL
|
||||
+#ifdef ENABLE_TCL
|
||||
#include "op_sguil.h"
|
||||
#endif
|
||||
#include "op_alert_csv.h"
|
||||
@@ -47,7 +47,7 @@
|
||||
#if defined(ENABLE_MYSQL) || defined(ENABLE_POSTGRES)
|
||||
OpAcidDb_Init();
|
||||
#endif
|
||||
-#ifdef ENABLE_MYSQL
|
||||
+#ifdef ENABLE_TCL
|
||||
OpSguil_Init();
|
||||
#endif
|
||||
OpAlertCSV_Init();
|
26
security/barnyard-sguil6/files/patch-op_sguil.h
Normal file
26
security/barnyard-sguil6/files/patch-op_sguil.h
Normal file
@ -0,0 +1,26 @@
|
||||
--- src/output-plugins/op_sguil.h.orig Mon Mar 15 22:18:20 2004
|
||||
+++ src/output-plugins/op_sguil.h Sun Jan 15 22:32:07 2006
|
||||
@@ -1,8 +1,9 @@
|
||||
-/* $Id: op_sguil.h,v 1.2 2004/03/16 04:18:20 andrewbaker Exp $ */
|
||||
+/* $Id: op_sguil.h,v 1.2 2005/03/03 21:07:44 bamm Exp $ */
|
||||
+
|
||||
/*
|
||||
-** Copyright (C) 2001 Andrew R. Baker <andrewb@snort.org>
|
||||
+** Copyright (C) 2002-2004 Robert (Bamm) Visscher <bamm@sguil.net>
|
||||
**
|
||||
-** This program is distributed under the terms of version 1.0 of the
|
||||
+** This program is distributed under the terms of version 1.0 of the
|
||||
** Q Public License. See LICENSE.QPL for further details.
|
||||
**
|
||||
** This program is distributed in the hope that it will be useful,
|
||||
@@ -11,10 +12,4 @@
|
||||
**
|
||||
*/
|
||||
|
||||
-#ifndef __OP_SGUIL_H__
|
||||
-#define __OP_SGUIL_H__
|
||||
-
|
||||
void OpSguil_Init();
|
||||
-
|
||||
-#endif /* __OP_SGUIL_H__ */
|
||||
-
|
Loading…
Reference in New Issue
Block a user