mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
network/barnyard2: Fix build on 15.0.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
70f7b78250
commit
8b188923ed
5 changed files with 54 additions and 2 deletions
11
network/barnyard2/barnyard2-1.13-free.patch
Normal file
11
network/barnyard2/barnyard2-1.13-free.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/src/output-plugins/spo_alert_unixsock.c
|
||||||
|
+++ b/src/output-plugins/spo_alert_unixsock.c
|
||||||
|
@@ -56,6 +56,8 @@
|
||||||
|
#include "spo_alert_unixsock.h"
|
||||||
|
#include "barnyard2.h"
|
||||||
|
|
||||||
|
+#include <stdlib.h>
|
||||||
|
+
|
||||||
|
#define UNSOCK_FILE "barnyard2_alert"
|
||||||
|
|
||||||
|
|
38
network/barnyard2/barnyard2-1.13-pcap-1.9.0.patch
Normal file
38
network/barnyard2/barnyard2-1.13-pcap-1.9.0.patch
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
--- a/src/output-plugins/spo_alert_fwsam.c
|
||||||
|
+++ b/src/output-plugins/spo_alert_fwsam.c
|
||||||
|
@@ -115,7 +115,7 @@
|
||||||
|
#include <sys/filio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-typedef int SOCKET;
|
||||||
|
+typedef int BY2_SOCKET;
|
||||||
|
|
||||||
|
#ifndef INVALID_SOCKET
|
||||||
|
#define INVALID_SOCKET -1
|
||||||
|
@@ -961,7 +961,7 @@
|
||||||
|
FWsamPacket sampacket;
|
||||||
|
FWsamStation *station=NULL;
|
||||||
|
FWsamList *fwsamlist;
|
||||||
|
- SOCKET stationsocket;
|
||||||
|
+ BY2_SOCKET stationsocket;
|
||||||
|
int i,len,deletestation,stationtry=0;
|
||||||
|
char *encbuf,*decbuf;
|
||||||
|
static unsigned long lastbsip[FWSAM_REPET_BLOCKS];
|
||||||
|
@@ -1387,7 +1387,7 @@
|
||||||
|
void FWsamCheckOut(FWsamStation *station)
|
||||||
|
{
|
||||||
|
FWsamPacket sampacket;
|
||||||
|
- SOCKET stationsocket;
|
||||||
|
+ BY2_SOCKET stationsocket;
|
||||||
|
int i,len;
|
||||||
|
char *encbuf,*decbuf;
|
||||||
|
|
||||||
|
@@ -1538,7 +1538,7 @@
|
||||||
|
int i,len,stationok=TRUE;
|
||||||
|
FWsamPacket sampacket;
|
||||||
|
char *encbuf,*decbuf;
|
||||||
|
- SOCKET stationsocket;
|
||||||
|
+ BY2_SOCKET stationsocket;
|
||||||
|
|
||||||
|
|
||||||
|
/* create a socket for the station */
|
|
@ -75,6 +75,9 @@ cd $TMP
|
||||||
rm -rf $PRGNAM-2-$VERSION
|
rm -rf $PRGNAM-2-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-2-$VERSION.tar.gz
|
tar xvf $CWD/$PRGNAM-2-$VERSION.tar.gz
|
||||||
cd $PRGNAM-2-$VERSION
|
cd $PRGNAM-2-$VERSION
|
||||||
|
# thanks gentoo maintainers
|
||||||
|
patch -p1 < $CWD/barnyard2-1.13-free.patch
|
||||||
|
patch -p1 < $CWD/barnyard2-1.13-pcap-1.9.0.patch
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
PRGNAM="barnyard2"
|
PRGNAM="barnyard2"
|
||||||
VERSION="1.13"
|
VERSION="1.13"
|
||||||
HOMEPAGE="http://www.securixlive.com/barnyard2/"
|
HOMEPAGE="https://github.com/firnsy/barnyard2"
|
||||||
DOWNLOAD="https://github.com/firnsy/barnyard2/archive/v2-1.13/barnyard2-2-1.13.tar.gz"
|
DOWNLOAD="https://github.com/firnsy/barnyard2/archive/v2-1.13/barnyard2-2-1.13.tar.gz"
|
||||||
MD5SUM="212066058364f18a4806720b271ffd87"
|
MD5SUM="212066058364f18a4806720b271ffd87"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
|
|
|
@ -14,6 +14,6 @@ barnyard2: tool for the parsing of Snort's binary log files to a variety of
|
||||||
barnyard2: output plugins, capable of asynchronously processing, while Snort
|
barnyard2: output plugins, capable of asynchronously processing, while Snort
|
||||||
barnyard2: continues it's job.
|
barnyard2: continues it's job.
|
||||||
barnyard2:
|
barnyard2:
|
||||||
barnyard2: Homepage: http://www.securixlive.com/barnyard2/
|
barnyard2: Homepage: https://github.com/firnsy/barnyard2
|
||||||
barnyard2:
|
barnyard2:
|
||||||
barnyard2:
|
barnyard2:
|
||||||
|
|
Loading…
Reference in a new issue