diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/libnids | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/libnids')
-rw-r--r-- | homebrew/libnids/.beer | 79 | ||||
-rw-r--r-- | homebrew/libnids/.make.sh-auto | 4 | ||||
-rw-r--r-- | homebrew/libnids/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/libnids/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/libnids/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/libnids/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/libnids/download.sh | 1 | ||||
-rwxr-xr-x | homebrew/libnids/patches.sh | 32 |
8 files changed, 120 insertions, 0 deletions
diff --git a/homebrew/libnids/.beer b/homebrew/libnids/.beer new file mode 100644 index 000000000..e7ab72c0d --- /dev/null +++ b/homebrew/libnids/.beer @@ -0,0 +1,79 @@ +{ + "name": "Libnids", + "description": "Implements E-component of network intrusion detection system", + "url": "https://downloads.sourceforge.net/project/libnids/libnids/1.24/libnids-1.24.tar.gz", + "mirror": null, + "homepage": "https://libnids.sourceforge.io/", + "depends": [ + { + "depend": "autoconf", + "build-depend": true + }, + { + "depend": "automake", + "build-depend": true + }, + { + "depend": "libtool", + "build-depend": true + }, + { + "depend": "pkg-config", + "build-depend": true + }, + { + "depend": "glib", + "build-depend": false + }, + { + "depend": "libnet", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [ + { + "url": null, + "data": [ + "--- a/src/Makefile.in\t2010-03-01 13:13:17.000000000 -0800\n", + "+++ b/src/Makefile.in\t2012-09-19 09:48:23.000000000 -0700\n", + "@@ -13,7 +13,7 @@\n", + " libdir\t\t= @libdir@\n", + " mandir\t\t= @mandir@\n", + " LIBSTATIC = libnids.a\n", + "-LIBSHARED = libnids.so.1.24\n", + "+LIBSHARED = libnids.1.24.dylib\n", + "\n", + " CC\t\t= @CC@\n", + " CFLAGS\t\t= @CFLAGS@ -DLIBNET_VER=@LIBNET_VER@ -DHAVE_ICMPHDR=@ICMPHEADER@ -DHAVE_TCP_STATES=@TCPSTATES@ -DHAVE_BSD_UDPHDR=@HAVE_BSD_UDPHDR@\n", + "@@ -65,7 +65,7 @@\n", + " \tar -cr $@ $(OBJS)\n", + " \t$(RANLIB) $@\n", + " $(LIBSHARED): $(OBJS_SHARED)\n", + "-\t$(CC) -shared -Wl,-soname,$(LIBSHARED) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB)\n", + "+\t$(CC) -dynamiclib -Wl,-dylib -Wl,-install_name,$(LIBSHARED) -Wl,-headerpad_max_install_names -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB)\n", + "\n", + " _install install: $(LIBSTATIC)\n", + " \t../mkinstalldirs $(install_prefix)$(libdir)\n", + "@@ -76,7 +76,7 @@\n", + " \t$(INSTALL) -c -m 644 libnids.3 $(install_prefix)$(mandir)/man3\n", + " _installshared installshared: install $(LIBSHARED)\n", + " \t$(INSTALL) -c -m 755 $(LIBSHARED) $(install_prefix)$(libdir)\n", + "-\tln -s -f $(LIBSHARED) $(install_prefix)$(libdir)/libnids.so\n", + "+\tln -s -f $(LIBSHARED) $(install_prefix)$(libdir)/libnids.dylib\n", + "\n", + " clean:\n", + " \trm -f *.o *~ $(LIBSTATIC) $(LIBSHARED)\n" + ] + } + ], + "install": [ + "system \"autoreconf\", \"-ivf\"", + "system \"./configure\", \"--prefix=#{prefix}\", \"--mandir=#{man}\",", + "\"--enable-shared\"", + "system \"make\", \"install\"" + ], + "version": "1.24", + "file": "libnids.rb" +}
\ No newline at end of file diff --git a/homebrew/libnids/.make.sh-auto b/homebrew/libnids/.make.sh-auto new file mode 100644 index 000000000..53a1e176e --- /dev/null +++ b/homebrew/libnids/.make.sh-auto @@ -0,0 +1,4 @@ +pkg:setup +autoreconf -ivf +pkg:configure --enable-shared +make DESTDIR=${PKG_DEST} install diff --git a/homebrew/libnids/_metadata/description b/homebrew/libnids/_metadata/description new file mode 100644 index 000000000..37962743e --- /dev/null +++ b/homebrew/libnids/_metadata/description @@ -0,0 +1 @@ +Implements E-component of network intrusion detection system diff --git a/homebrew/libnids/_metadata/homepage b/homebrew/libnids/_metadata/homepage new file mode 100644 index 000000000..4933b0c48 --- /dev/null +++ b/homebrew/libnids/_metadata/homepage @@ -0,0 +1 @@ +https://libnids.sourceforge.io/ diff --git a/homebrew/libnids/_metadata/name b/homebrew/libnids/_metadata/name new file mode 100644 index 000000000..6173171ba --- /dev/null +++ b/homebrew/libnids/_metadata/name @@ -0,0 +1 @@ +Libnids diff --git a/homebrew/libnids/_metadata/version b/homebrew/libnids/_metadata/version new file mode 100644 index 000000000..3900bcd9f --- /dev/null +++ b/homebrew/libnids/_metadata/version @@ -0,0 +1 @@ +1.24 diff --git a/homebrew/libnids/download.sh b/homebrew/libnids/download.sh new file mode 100755 index 000000000..058779247 --- /dev/null +++ b/homebrew/libnids/download.sh @@ -0,0 +1 @@ +wget https://downloads.sourceforge.net/project/libnids/libnids/1.24/libnids-1.24.tar.gz
\ No newline at end of file diff --git a/homebrew/libnids/patches.sh b/homebrew/libnids/patches.sh new file mode 100755 index 000000000..270c8a530 --- /dev/null +++ b/homebrew/libnids/patches.sh @@ -0,0 +1,32 @@ +echo 'Creating brew-patch.diff' +cat << EOF >> brew-patch.diff +--- a/src/Makefile.in 2010-03-01 13:13:17.000000000 -0800 ++++ b/src/Makefile.in 2012-09-19 09:48:23.000000000 -0700 +@@ -13,7 +13,7 @@ + libdir = @libdir@ + mandir = @mandir@ + LIBSTATIC = libnids.a +-LIBSHARED = libnids.so.1.24 ++LIBSHARED = libnids.1.24.dylib + + CC = @CC@ + CFLAGS = @CFLAGS@ -DLIBNET_VER=@LIBNET_VER@ -DHAVE_ICMPHDR=@ICMPHEADER@ -DHAVE_TCP_STATES=@TCPSTATES@ -DHAVE_BSD_UDPHDR=@HAVE_BSD_UDPHDR@ +@@ -65,7 +65,7 @@ + ar -cr $@ $(OBJS) + $(RANLIB) $@ + $(LIBSHARED): $(OBJS_SHARED) +- $(CC) -shared -Wl,-soname,$(LIBSHARED) -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB) ++ $(CC) -dynamiclib -Wl,-dylib -Wl,-install_name,$(LIBSHARED) -Wl,-headerpad_max_install_names -o $(LIBSHARED) $(OBJS_SHARED) $(LIBS) $(LNETLIB) $(PCAPLIB) + + _install install: $(LIBSTATIC) + ../mkinstalldirs $(install_prefix)$(libdir) +@@ -76,7 +76,7 @@ + $(INSTALL) -c -m 644 libnids.3 $(install_prefix)$(mandir)/man3 + _installshared installshared: install $(LIBSHARED) + $(INSTALL) -c -m 755 $(LIBSHARED) $(install_prefix)$(libdir) +- ln -s -f $(LIBSHARED) $(install_prefix)$(libdir)/libnids.so ++ ln -s -f $(LIBSHARED) $(install_prefix)$(libdir)/libnids.dylib + + clean: + rm -f *.o *~ $(LIBSTATIC) $(LIBSHARED) +EOF |