Browse Source

drop old packages: pcre, clamav, snort, ngrep, spandsp and freeswitch

Waldemar Brodkorb 5 months ago
parent
commit
d69e39a324

+ 0 - 48
package/clamav/Makefile

@@ -1,48 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(ADK_TOPDIR)/rules.mk
-
-PKG_NAME:=		clamav
-PKG_VERSION:=		0.103.4
-PKG_RELEASE:=		1
-PKG_HASH:=		def0ad15500fa6aff81d8e68b9f83aa75ee5b607a01335c1d26dbcc959932f85
-PKG_DESCR:=		anti-virus software
-PKG_SECTION:=		sys/misc
-PKG_DEPENDS:=		libressl zlib libpcre libncurses libcurl libmspack
-PKG_BUILDDEP:=		libressl zlib pcre ncurses curl libmspack
-PKG_NEEDS:=		c++ threads
-PKG_URL:=		http://www.clamav.net/
-PKG_SITES:=		http://www.clamav.net/downloads/production/
-
-DISTFILES:=             $(PKG_NAME)-$(PKG_VERSION).tar.gz
-
-include $(ADK_TOPDIR)/mk/package.mk
-
-$(eval $(call PKG_template,CLAMAV,clamav,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
-
-TARGET_LDFLAGS+=	-ltinfo
-CONFIGURE_ENV+=		ac_cv_c_mmap_private=yes
-CONFIGURE_ARGS+=	--enable-mempool \
-			--with-system-libmspack \
-			--disable-xml \
-			--disable-check \
-			--with-libcurl="$(STAGING_TARGET_DIR)/usr" \
-			--with-openssl="$(STAGING_TARGET_DIR)/usr" \
-			--with-pcre="$(STAGING_TARGET_DIR)/usr"
-
-clamav-install:
-	$(INSTALL_DIR) $(IDIR_CLAMAV)/etc
-	$(CP) $(WRKINST)/etc/* \
-		$(IDIR_CLAMAV)/etc
-	$(INSTALL_DIR) $(IDIR_CLAMAV)/usr/lib
-	$(CP) $(WRKINST)/usr/lib*/lib*.so* \
-		$(IDIR_CLAMAV)/usr/lib
-	$(INSTALL_DIR) $(IDIR_CLAMAV)/usr/bin
-	$(INSTALL_BIN) $(WRKINST)/usr/bin/* \
-		$(IDIR_CLAMAV)/usr/bin
-	$(INSTALL_DIR) $(IDIR_CLAMAV)/usr/sbin
-	$(INSTALL_BIN) $(WRKINST)/usr/sbin/clamd \
-		$(IDIR_CLAMAV)/usr/sbin
-
-include $(ADK_TOPDIR)/mk/pkg-bottom.mk

+ 0 - 10
package/clamav/patches/patch-clamdscan_proto_c

@@ -1,10 +0,0 @@
---- clamav-0.103.0.orig/clamdscan/proto.c	2020-09-13 02:27:09.000000000 +0200
-+++ clamav-0.103.0/clamdscan/proto.c	2021-01-28 04:40:12.604606645 +0100
-@@ -39,6 +39,7 @@
- #include <errno.h>
- #include <stdlib.h>
- #include <sys/types.h>
-+#include <sys/un.h>
- #include <sys/stat.h>
- #include <fcntl.h>
- #include <sys/types.h>

+ 0 - 11
package/clamav/patches/patch-libclamav_mbox_c

@@ -1,11 +0,0 @@
---- clamav-0.103.0.orig/libclamav/mbox.c	2020-09-13 02:27:10.000000000 +0200
-+++ clamav-0.103.0/libclamav/mbox.c	2021-01-28 04:48:50.156979494 +0100
-@@ -91,7 +91,7 @@
- #include <features.h>
- #endif
- 
--#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1
-+#if __GLIBC__ == 2 && __GLIBC_MINOR__ >= 1 && !defined(__UCLIBC__) || defined(__UCLIBC_HAS_BACKTRACE__)
- #define HAVE_BACKTRACE
- #endif
- #endif

+ 0 - 35
package/daq/Makefile

@@ -1,35 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(ADK_TOPDIR)/rules.mk
-
-PKG_NAME:=		daq
-PKG_VERSION:=		2.0.7
-PKG_RELEASE:=		1
-PKG_HASH:=		d1f6709bc5dbddee3fdf170cdc1e49fb926e2031d4869ecf367a8c47efc87279
-PKG_DESCR:=		data acquisition library
-PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		libpcap libdnet
-PKG_BUILDDEP:=		libpcap libdnet
-PKG_URL:=		http://www.snort.org
-PKG_SITES:=		https://www.snort.org/downloads/snort/
-PKG_OPTS:=		dev
-PKG_NOPARALLEL:=	1
-
-DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
-
-include $(ADK_TOPDIR)/mk/package.mk
-
-$(eval $(call PKG_template,DAQ,daq,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-
-AUTOTOOL_STYLE:=	autoreconf
-CONFIGURE_ARGS+=	--disable-ipfw-module
-
-daq-install:
-	$(INSTALL_DIR) $(IDIR_DAQ)/usr/lib/daq
-	$(CP) $(WRKINST)/usr/lib/daq/*.so \
-		$(IDIR_DAQ)/usr/lib/daq
-	$(CP) $(WRKINST)/usr/lib/*.so* \
-		$(IDIR_DAQ)/usr/lib
-
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 0 - 10
package/daq/patches/patch-configure_ac

@@ -1,10 +0,0 @@
---- daq-2.0.0.orig/configure.ac	2012-09-06 17:17:23.000000000 +0200
-+++ daq-2.0.0/configure.ac	2013-11-15 15:21:19.546122100 +0100
-@@ -179,7 +179,6 @@ AC_ARG_ENABLE(pcap-module,
-               [enable_pcap_module="$enableval"], [enable_pcap_module="$DEFAULT_ENABLE"])
- if test "$enable_pcap_module" = yes; then
-     AC_CHECK_HEADER([pcap.h], [], [enable_pcap_module=no])
--    AC_CHECK_PCAP_VER("1.0.0")
-     if test "$enable_pcap_module" = yes; then
-         STATIC_LIBS="${STATIC_LIBS} -lpcap"
-     fi

+ 0 - 58
package/freeswitch/Makefile

@@ -1,58 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(ADK_TOPDIR)/rules.mk
-
-PKG_NAME:=		freeswitch
-PKG_VERSION:=		1.10.11
-PKG_RELEASE:=		1
-PKG_HASH:=		4437edfa08558aa407c9fad5e4eed58f757357c53ca735aed9977e48aa1c53e3
-PKG_DESCR:=		cross-platform telephony platform
-PKG_SECTION:=		net/voip
-PKG_DEPENDS:=		libpcre libcurl zlib libjpeg-turbo libsqlite
-PKG_DEPENDS+=		libressl libopus spandsp sofia-sip
-PKG_BUILDDEP:=		util-linux zlib libjpeg-turbo sqlite curl pcre
-PKG_BUILDDEP+=		speex libressl opus spandsp sofia-sip
-PKG_URL:=		http://www.freeswitch.org/
-PKG_SITES:=		https://github.com/signalwire/freeswitch/archive/refs/tags/
-
-DISTFILES:=		v$(PKG_VERSION).tar.gz
-
-include $(ADK_TOPDIR)/mk/package.mk
-
-$(eval $(call PKG_template,FREESWITCH,freeswitch,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
-
-AUTOTOOL_STYLE:=	bootstrap
-CONFIGURE_ARGS+=	--disable-core-libedit-support \
-			--disable-libvpx
-CONFIGURE_ENV+=		ac_cv_file__dev_ptmx=yes \
-			ac_cv_file__dev_zero=yes \
-			ac_cv_file__dev_urandom=yes \
-			ac_cv_sizeof_ssize_t=4 \
-		 	ac_cv_func_realloc_0_nonnull=yes \
-		       	ac_cv_func_malloc_0_nonnull=yes \
-			ac_cv_gcc_supports_w_no_unused_result=no \
-			apr_cv_tcp_nodelay_with_cork=yes \
-			apr_cv_process_shared_works=no \
-			ac_cv_file_dbd_apr_dbd_mysql_c=no \
-			ac_cv_func_setpgrp_void=yes
-
-pre-configure:
-	$(SED) "/applications\/mod_av/d" $(WRKBUILD)/modules.conf
-	$(SED) "/applications\/mod_enum/d" $(WRKBUILD)/modules.conf
-	$(SED) "/applications\/mod_fsv/d" $(WRKBUILD)/modules.conf
-	$(SED) "/applications\/mod_signalwire/d" $(WRKBUILD)/modules.conf
-	$(SED) "/applications\/mod_spandsp/d" $(WRKBUILD)/modules.conf
-	$(SED) "/databases\/mod_pgsql/d" $(WRKBUILD)/modules.conf
-	$(SED) "/languages\/mod_lua/d" $(WRKBUILD)/modules.conf
-	$(SED) "/endpoints\/mod_sofia/d" $(WRKBUILD)/modules.conf
-	$(SED) "/endpoints\/mod_verto/d" $(WRKBUILD)/modules.conf
-	$(SED) "/codecs\/mod_vpx/d" $(WRKBUILD)/modules.conf
-	$(SED) "/formats\/mod_sndfile/d" $(WRKBUILD)/modules.conf
-
-freeswitch-install:
-	$(INSTALL_DIR) $(IDIR_FREESWITCH)/usr/bin
-	$(INSTALL_BIN) $(WRKINST)/usr/bin/freeswitch \
-		$(IDIR_FREESWITCH)/usr/bin
-
-include $(ADK_TOPDIR)/mk/pkg-bottom.mk

+ 0 - 22
package/freeswitch/patches/patch-libs_srtp_crypto_hash_hmac_ossl_c

@@ -1,22 +0,0 @@
---- freeswitch-1.10.11.orig/libs/srtp/crypto/hash/hmac_ossl.c	2023-12-22 19:08:31.000000000 +0100
-+++ freeswitch-1.10.11/libs/srtp/crypto/hash/hmac_ossl.c	2024-02-29 00:19:04.687821875 +0100
-@@ -80,7 +80,8 @@ static srtp_err_status_t srtp_hmac_alloc
- 
- /* OpenSSL 1.1.0 made HMAC_CTX an opaque structure, which must be allocated
-    using HMAC_CTX_new.  But this function doesn't exist in OpenSSL 1.0.x. */
--#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
-+	(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x30500000L)
-     {
-         /* allocate memory for auth and HMAC_CTX structures */
-         uint8_t *pointer;
-@@ -126,7 +127,8 @@ static srtp_err_status_t srtp_hmac_deall
- 
-     hmac_ctx = (HMAC_CTX *)a->state;
- 
--#if OPENSSL_VERSION_NUMBER < 0x10100000L || LIBRESSL_VERSION_NUMBER
-+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
-+	(defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x30500000L)
-     HMAC_CTX_cleanup(hmac_ctx);
- 
-     /* zeroize entire state*/

+ 0 - 31
package/ngrep/Makefile

@@ -1,31 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(ADK_TOPDIR)/rules.mk
-
-PKG_NAME:=		ngrep
-PKG_VERSION:=		1.45
-PKG_RELEASE:=		1
-PKG_HASH:=		aea6dd337da8781847c75b3b5b876e4de9c58520e0d77310679a979fc6402fa7
-PKG_DESCR:=		network grep
-PKG_SECTION:=		net/debug
-PKG_DEPENDS:=		libpcap libpcre
-PKG_BUILDDEP:=		libpcap pcre
-PKG_URL:=		http://ngrep.sourceforge.net/
-PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=ngrep/}
-
-DISTFILES:=             $(PKG_NAME)-$(PKG_VERSION).tar.bz2
-
-include $(ADK_TOPDIR)/mk/package.mk
-
-$(eval $(call PKG_template,NGREP,ngrep,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
-
-CONFIGURE_ARGS+=	--disable-pcap-restart \
-			--with-pcap-includes=$(STAGING_TARGET_DIR)/usr/include
-
-ngrep-install:
-	$(INSTALL_DIR) $(IDIR_NGREP)/usr/bin
-	$(INSTALL_BIN) $(WRKINST)/usr/bin/ngrep \
-		$(IDIR_NGREP)/usr/bin
-
-include $(ADK_TOPDIR)/mk/pkg-bottom.mk

+ 0 - 11
package/ngrep/patches/patch-Makefile_in

@@ -1,11 +0,0 @@
---- ngrep-1.45.orig/Makefile.in	2006-11-28 14:35:37.000000000 +0100
-+++ ngrep-1.45/Makefile.in	2016-02-08 06:24:48.000000000 +0100
-@@ -63,7 +63,7 @@ distclean: clean
- 	rm -f config.status config.cache config.log config.h Makefile 
- 
- $(REGEX_OBJS): $(REGEX_OBJS:.o=.c) $(REGEX_DIR)/*.h
--	$(MAKE) $(MAKEFLAGS) -C $(REGEX_DIR) $(notdir $(REGEX_OBJS))
-+	$(MAKE) -C $(REGEX_DIR) $(notdir $(REGEX_OBJS))
- 
- $(OBJS): Makefile ngrep.c ngrep.h
- 

+ 0 - 19
package/ngrep/patches/patch-regex-0_12_Makefile_in

@@ -1,19 +0,0 @@
---- ngrep-1.45.orig/regex-0.12/Makefile.in	2006-11-15 02:34:43.000000000 +0100
-+++ ngrep-1.45/regex-0.12/Makefile.in	2016-02-08 06:28:44.000000000 +0100
-@@ -26,13 +26,13 @@ version = 0.12
- #   -DEXTRACT_MACROS to use the macros EXTRACT_* (as opposed to
- #           the corresponding C procedures).  If not -DDEBUG, the macros
- #           are used.
--CPPFLAGS = 
-+CPPFLAGS ?= 
- 
- # Likewise, you can override CFLAGS to optimize, use -Wall, etc.
--CFLAGS = -g
-+CFLAGS ?= -g
- 
- # Ditto for LDFLAGS and LOADLIBES.
--LDFLAGS =
-+LDFLAGS ?=
- LOADLIBES =
- 
- srcdir = @srcdir@

+ 0 - 13
package/ngrep/patches/patch-regex-0_12_regex_c

@@ -1,13 +0,0 @@
---- ngrep-1.45.orig/regex-0.12/regex.c	2006-11-15 04:36:48.000000000 +0100
-+++ ngrep-1.45/regex-0.12/regex.c	2016-02-08 06:29:15.000000000 +0100
-@@ -39,10 +39,6 @@
- /* We need this for `regex.h', and perhaps for the Emacs include files.  */
- #include <sys/types.h>
- 
--#ifdef HAVE_CONFIG_H
--#include "config.h"
--#endif
--
- /* The `emacs' switch turns on certain matching commands
-    that make sense only in Emacs. */
- #ifdef emacs

+ 0 - 48
package/pcre/Makefile

@@ -1,48 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include ${ADK_TOPDIR}/rules.mk
-
-PKG_NAME:=		pcre
-PKG_VERSION:=		8.45
-PKG_RELEASE:=		1
-PKG_HASH:=		4e6ce03e0336e8b4a3d6c2b70b1c5e18590a5673a98186da90d4f33c23defc09
-PKG_DESCR:=		perl compatible regular expression library
-PKG_SECTION:=		libs/misc
-PKG_URL:=		http://www.pcre.org/
-PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=pcre/}
-PKG_LIBNAME:=		libpcre
-PKG_OPTS:=		dev
-
-DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
-
-PKG_SUBPKGS:=		LIBPCRE LIBPCRECPP
-PKGSD_LIBPCRECPP:=	pcre c++ library
-
-include ${ADK_TOPDIR}/mk/host.mk
-include ${ADK_TOPDIR}/mk/package.mk
-
-$(eval $(call HOST_template,PCRE,pcre,${PKG_VERSION}-${PKG_RELEASE}))
-$(eval $(call PKG_template,LIBPCRE,libpcre,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-$(eval $(call PKG_template,LIBPCRECPP,libpcrecpp,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBPCRECPP},${PKG_SECTION}))
-
-CONFIGURE_ARGS+=	--enable-utf \
-			--enable-unicode-properties
-XAKE_FLAGS+=		${TARGET_CONFIGURE_OPTS}
-
-ifeq ($(ADK_PACKAGE_LIBPCRECPP),y)
-CONFIGURE_ARGS+=	--enable-cpp
-else
-CONFIGURE_ARGS+=	--disable-cpp
-endif
-
-libpcre-install:
-	${INSTALL_DIR} ${IDIR_LIBPCRE}/usr/lib
-	${CP} ${WRKINST}/usr/lib/libpcre{,posix}.so* ${IDIR_LIBPCRE}/usr/lib
-
-libpcrecpp-install:
-	${INSTALL_DIR} ${IDIR_LIBPCRECPP}/usr/lib
-	${CP} ${WRKINST}/usr/lib/libpcrecpp.so* ${IDIR_LIBPCRECPP}/usr/lib
-
-include ${ADK_TOPDIR}/mk/host-bottom.mk
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 0 - 55
package/snort/Makefile

@@ -1,55 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include ${ADK_TOPDIR}/rules.mk
-
-PKG_NAME:=		snort
-PKG_VERSION:=		2.9.20
-PKG_RELEASE:=		1
-PKG_HASH:=		29400e13f53b1831e0b8b10ec1224a1cbaa6dc1533a5322a20dd80bb84b4981c
-PKG_DESCR:=		flexible network intrusion detection system
-PKG_SECTION:=		net/security
-PKG_DEPENDS:=		libnet libpcap libpcre libtirpc daq
-PKG_BUILDDEP:=		libnet libpcap pcre libtirpc daq
-PKG_URL:=		http://www.snort.org/
-PKG_SITES:=		https://www.snort.org/downloads/snort/
-PKG_NOPARALLEL:=	1
-
-DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
-
-PKG_LIBC_DEPENDS:=	uclibc-ng glibc
-
-include ${ADK_TOPDIR}/mk/package.mk
-
-$(eval $(call PKG_template,SNORT,snort,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-
-AUTOTOOL_STYLE:=	autoreconf
-TARGET_CPPFLAGS+=	-I$(STAGING_TARGET_DIR)/usr/include/tirpc
-TARGET_LDFLAGS+=	-ltirpc
-CONFIGURE_ENV+=		have_inaddr_none=yes
-CONFIGURE_ARGS+=	--disable-static-daq \
-			--disable-open-appid \
-			--with-libpcap-includes="${STAGING_TARGET_DIR}/usr/include" \
-			--with-libpcap-libraries="${STAGING_TARGET_DIR}/usr/lib" \
-			--with-libpcre-includes="${STAGING_TARGET_DIR}/usr/include" \
-			--with-libpcre-libraries="${STAGING_TARGET_DIR}/usr/lib" \
-			--with-dnet-includes="${STAGING_TARGET_DIR}/usr/include" \ 
-			--with-dnet-libraries="${STAGING_TARGET_DIR}/usr/lib" 
-
-snort-install:
-	${INSTALL_DIR} ${IDIR_SNORT}/usr/bin
-	${INSTALL_DIR} ${IDIR_SNORT}/etc/snort
-	${INSTALL_DATA} ${WRKBUILD}/etc/snort.conf ${IDIR_SNORT}/etc/snort
-	${INSTALL_DATA} ${WRKBUILD}/etc/classification.config \
-		${IDIR_SNORT}/etc/snort
-	${INSTALL_DATA} ${WRKBUILD}/etc/gen-msg.map \
-		${IDIR_SNORT}/etc/snort
-	${INSTALL_DATA} ${WRKBUILD}/etc/reference.config \
-		${IDIR_SNORT}/etc/snort
-	${INSTALL_DATA} ${WRKBUILD}/etc/threshold.conf \
-		${IDIR_SNORT}/etc/snort
-	${INSTALL_DATA} ${WRKBUILD}/etc/unicode.map \
-		${IDIR_SNORT}/etc/snort
-	${INSTALL_BIN} ${WRKINST}/usr/bin/snort ${IDIR_SNORT}/usr/bin
-
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 0 - 2
package/snort/files/snort.conffiles

@@ -1,2 +0,0 @@
-/etc/snort/snort.conf
-/etc/snort/threshold.conf

+ 0 - 23
package/snort/files/snort.init

@@ -1,23 +0,0 @@
-#!/bin/sh
-#PKG snort
-#INIT 60
-. /etc/rc.conf
-
-case $1 in
-autostop) ;;
-autostart)
-	test x"${snort:-NO}" = x"NO" && exit 0
-	test x"$snort" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
-	exec sh $0 start
-	;;
-start)
-	/usr/sbin/snort $snort_flags
-	;;
-stop)
-	kill $(pgrep -f /usr/sbin/snort)
-	;;
-*)
-	echo "usage: $0 {start | stop | restart}"
-	exit 1
-esac
-exit $?

+ 0 - 4
package/snort/files/snort.postinst

@@ -1,4 +0,0 @@
-#!/bin/sh
-. $IPKG_INSTROOT/etc/functions.sh
-add_rcconf snort NO
-add_rcconf snort_flags "-i eth0.0 -c /etc/snort/snort.conf -D -N -q -s"

+ 0 - 139
package/snort/patches/patch-configure

@@ -1,139 +0,0 @@
---- snort-2.9.14.1.orig/configure	2019-08-02 08:33:43.000000000 +0200
-+++ snort-2.9.14.1/configure	2019-10-08 14:35:23.506350397 +0200
-@@ -14408,50 +14408,6 @@ _ACEOF
- fi
- 
- 
--# In case INADDR_NONE is not defined (like on Solaris)
--have_inaddr_none="no"
--{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INADDR_NONE" >&5
--$as_echo_n "checking for INADDR_NONE... " >&6; }
--if test "$cross_compiling" = yes; then :
--  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
--  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h.  */
--
--#include <sys/types.h>
--#include <netinet/in.h>
--#include <arpa/inet.h>
--
--int
--main ()
--{
--
--	if (inet_addr("10,5,2") == INADDR_NONE);
--    return 0;
--
--  ;
--  return 0;
--}
--_ACEOF
--if ac_fn_c_try_run "$LINENO"; then :
--  have_inaddr_none="yes"
--else
--  have_inaddr_none="no"
--fi
--rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
--  conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
--
--{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_inaddr_none" >&5
--$as_echo "$have_inaddr_none" >&6; }
--if test "x$have_inaddr_none" = "xno"; then
--
--$as_echo "#define INADDR_NONE -1" >>confdefs.h
--
--fi
- 
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
- /* end confdefs.h.  */
-@@ -14861,45 +14817,6 @@ if test "x$LPCAP" = "xno"; then
-   fi
- fi
- 
--{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_lex_destroy" >&5
--$as_echo_n "checking for pcap_lex_destroy... " >&6; }
--if test "$cross_compiling" = yes; then :
--  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
--  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h.  */
--
--#include <pcap.h>
--
--int
--main ()
--{
--
--   pcap_lex_destroy();
--
--  ;
--  return 0;
--}
--_ACEOF
--if ac_fn_c_try_run "$LINENO"; then :
--  have_pcap_lex_destroy="yes"
--else
--  have_pcap_lex_destroy="no"
--fi
--rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
--  conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
--
--{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pcap_lex_destroy" >&5
--$as_echo "$have_pcap_lex_destroy" >&6; }
--if test "x$have_pcap_lex_destroy" = "xyes"; then
--
--$as_echo "#define HAVE_PCAP_LEX_DESTROY 1" >>confdefs.h
--
--fi
- 
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_lib_version" >&5
- $as_echo_n "checking for pcap_lib_version... " >&6; }
-@@ -15830,38 +15747,7 @@ fi
- 
- fi
- 
--{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daq address space ID" >&5
--$as_echo_n "checking for daq address space ID... " >&6; }
--if test "$cross_compiling" = yes; then :
--  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
--$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
--as_fn_error $? "cannot run test program while cross compiling
--See \`config.log' for more details" "$LINENO" 5; }
--else
--  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
--/* end confdefs.h.  */
--
--#include <daq.h>
--
--int
--main ()
--{
--
--   DAQ_PktHdr_t hdr;
--   hdr.address_space_id = 0;
--
--  ;
--  return 0;
--}
--_ACEOF
--if ac_fn_c_try_run "$LINENO"; then :
--  have_daq_address_space_id="yes"
--else
--  have_daq_address_space_id="no"
--fi
--rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
--  conftest.$ac_objext conftest.beam conftest.$ac_ext
--fi
-+have_daq_address_space_id="yes"
- 
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_daq_address_space_id" >&5
- $as_echo "$have_daq_address_space_id" >&6; }

+ 0 - 279
package/snort/patches/patch-configure_in

@@ -1,279 +0,0 @@
---- snort-2.9.14.1.orig/configure.in	2019-08-02 08:16:45.000000000 +0200
-+++ snort-2.9.14.1/configure.in	2019-10-08 14:40:16.073097068 +0200
-@@ -70,8 +70,10 @@ case "$host" in
-   *-linux*)
-     linux="yes"
-     AC_DEFINE([LINUX],[1],[Define if Linux])
--    AC_SUBST(extra_incl)
--    extra_incl="-I/usr/include/pcap"
-+    if test -z "x$with_libpcap_includes"; then
-+        AC_SUBST(extra_incl)
-+        extra_incl="-I/usr/include/pcap"
-+    fi
-     ;;
-   *-hpux10*|*-hpux11*)
-     AC_DEFINE([HPUX],[1],[Define if HP-UX 10 or 11])
-@@ -282,8 +284,8 @@ AC_CHECK_TYPES([int8_t,int16_t,int32_t,i
- AC_CHECK_TYPES([boolean])
- 
- # In case INADDR_NONE is not defined (like on Solaris)
-+AC_CACHE_CHECK([for INADDR_NONE], [have_inaddr_none], [
- have_inaddr_none="no"
--AC_MSG_CHECKING([for INADDR_NONE])
- AC_RUN_IFELSE(
- [AC_LANG_PROGRAM(
- [[
-@@ -296,7 +298,7 @@ AC_RUN_IFELSE(
-     return 0;
- ]])],
- [have_inaddr_none="yes"],
--[have_inaddr_none="no"])
-+[have_inaddr_none="no"])])
- AC_MSG_RESULT($have_inaddr_none)
- if test "x$have_inaddr_none" = "xno"; then
- 	AC_DEFINE([INADDR_NONE],[-1],[For INADDR_NONE definition])
-@@ -429,7 +431,7 @@ if test "x$LPCAP" = "xno"; then
- fi
- 
- AC_MSG_CHECKING([for pcap_lex_destroy])
--AC_RUN_IFELSE(
-+AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
- [[
- #include <pcap.h>
-@@ -717,17 +719,11 @@ fi
- AC_CHECK_FUNCS([daq_hup_apply] [daq_acquire_with_meta] [daq_dp_add_dc])
- 
- AC_MSG_CHECKING([for daq real addresses])
--AC_RUN_IFELSE(
--[AC_LANG_PROGRAM(
--[[
--#include <daq.h>
--]],
--[[
--   DAQ_PktHdr_t hdr;
--   hdr.n_real_dPort = 0;
--]])],
--[have_daq_real_addresses="yes"],
--[have_daq_real_addresses="no"])
-+
-+AC_CHECK_MEMBERS([DAQ_PktHdr_t hdr.n_real_dPort],
-+    [have_daq_real_addresses="yes"],
-+    [have_daq_real_addresses="no"],
-+    [[#include <daq.h>]])
- AC_MSG_RESULT($have_daq_real_addresses)
- if test "x$have_daq_real_addresses" = "xyes"; then
-     AC_DEFINE([HAVE_DAQ_REAL_ADDRESSES],[1],
-@@ -771,17 +767,11 @@ if test "x$ac_cv_func_daq_dp_add_dc" = "
- fi
- 
- AC_MSG_CHECKING([for daq address space ID])
--AC_RUN_IFELSE(
--[AC_LANG_PROGRAM(
--[[
--#include <daq.h>
--]],
--[[
--   DAQ_PktHdr_t hdr;
--   hdr.address_space_id = 0;
--]])],
--[have_daq_address_space_id="yes"],
--[have_daq_address_space_id="no"])
-+
-+AC_CHECK_MEMBERS([DAQ_PktHdr_t hdr.address_space_id],
-+    [have_daq_address_space_id="yes"],
-+    [have_daq_address_space_id="no"],
-+    [[#include <daq.h>]])
- AC_MSG_RESULT($have_daq_address_space_id)
- if test "x$have_daq_address_space_id" = "xyes"; then
-     AC_DEFINE([HAVE_DAQ_ADDRESS_SPACE_ID],[1],
-@@ -789,17 +779,10 @@ if test "x$have_daq_address_space_id" =
- fi
- 
- AC_MSG_CHECKING([for daq flow ID])
--AC_RUN_IFELSE(
--[AC_LANG_PROGRAM(
--[[
--#include <daq.h>
--]],
--[[
--   DAQ_PktHdr_t hdr;
--   hdr.flow_id = 0;
--]])],
--[have_daq_flow_id="yes"],
--[have_daq_flow_id="no"])
-+AC_CHECK_MEMBERS([DAQ_PktHdr_t hdr.flow_id],
-+    [have_daq_flow_id="yes"],
-+    [have_daq_flow_id="no"],
-+    [[#include <daq.h>]])
- AC_MSG_RESULT($have_daq_flow_id)
- if test "x$have_daq_flow_id" = "xyes"; then
-     AC_DEFINE([HAVE_DAQ_FLOW_ID],[1],
-@@ -807,19 +790,10 @@ if test "x$have_daq_flow_id" = "xyes"; t
- fi
- 
- AC_MSG_CHECKING([for daq extended flow modifiers])
--AC_RUN_IFELSE(
--[AC_LANG_PROGRAM(
--[[
--#include <daq.h>
--]],
--[[
--   DAQ_ModFlow_t mod;
--   mod.type = 0;
--   mod.length = 0;
--   mod.value = NULL;
--]])],
--[have_daq_ext_modflow="yes"],
--[have_daq_ext_modflow="no"])
-+AC_CHECK_MEMBERS([DAQ_ModFlow_t mod.type, DAQ_ModFlow_t mod.length, DAQ_ModFlow_t mod.value],
-+    [have_daq_ext_modflow="yes"],
-+    [have_daq_ext_modflow="no"],
-+    [[#include <daq.h>]])
- AC_MSG_RESULT($have_daq_ext_modflow)
- if test "x$have_daq_ext_modflow" = "xyes"; then
-     CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_EXT_MODFLOW"
-@@ -828,19 +802,11 @@ if test "x$have_daq_ext_modflow" = "xyes
- fi
- 
- AC_MSG_CHECKING([for daq query flow])
--AC_RUN_IFELSE(
--[AC_LANG_PROGRAM(
--[[
--#include <daq.h>
--]],
--[[
--   DAQ_QueryFlow_t mod;
--   mod.type = 0;
--   mod.length = 0;
--   mod.value = NULL;
--]])],
--[have_daq_queryflow="yes"],
--[have_daq_queryflow="no"])
-+
-+AC_CHECK_MEMBERS([DAQ_QueryFlow_t mod.type, DAQ_QueryFlow_t mod.length, DAQ_QueryFlow_t mod.value],
-+    [have_daq_queryflow="yes"],
-+    [have_daq_queryflow="no"],
-+    [[#include <daq.h>]])
- AC_MSG_RESULT($have_daq_queryflow)
- if test "x$have_daq_queryflow" = "xyes"; then
-     CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_QUERYFLOW"
-@@ -849,16 +815,11 @@ if test "x$have_daq_queryflow" = "xyes";
- fi
- 
- AC_MSG_CHECKING([for daq data channel flags])
--AC_RUN_IFELSE(
--[AC_LANG_PROGRAM(
--[[
--#include <daq.h>
--]],
--[[
--   DAQ_Data_Channel_Params_t params;
--]])],
--[have_daq_data_channel_flags="yes"],
--[have_daq_data_channel_flags="no"])
-+
-+AC_CHECK_MEMBERS([DAQ_Data_Channel_Params_t params.flags],
-+    [have_daq_data_channel_flags="yes"],
-+    [have_daq_data_channel_flags="no"],
-+    [[#include <daq.h>]])
- AC_MSG_RESULT($have_daq_data_channel_flags)
- if test "x$have_daq_data_channel_flags" = "xyes"; then
-     CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_DATA_CHANNEL_PARAMS"
-@@ -867,17 +828,10 @@ if test "x$have_daq_data_channel_flags"
- fi
- 
- AC_MSG_CHECKING([for separate IP versions on pinhole endpoints])
--AC_RUN_IFELSE(
--[AC_LANG_PROGRAM(
--[[
--#include <daq.h>
--]],
--[[
--   DAQ_DP_key_t dpKey;
--   dpKey.src_af = 0;
--]])],
--[have_daq_data_channel_separate_ip_versions="yes"],
--[have_daq_data_channel_separate_ip_versions="no"])
-+AC_CHECK_MEMBERS([DAQ_DP_key_t dpKey.src_af],
-+    [have_daq_data_channel_separate_ip_versions="yes"],
-+    [have_daq_data_channel_separate_ip_versions="no"],
-+    [[#include <daq.h>]])
- AC_MSG_RESULT($have_daq_data_channel_separate_ip_versions)
- if test "x$have_daq_data_channel_separate_ip_versions" = "xyes"; then
-     CCONFIGFLAGS="${CCONFIGFLAGS} -DHAVE_DAQ_DATA_CHANNEL_SEPARATE_IP_VERSIONS"
-@@ -886,7 +840,7 @@ if test "x$have_daq_data_channel_separat
- fi
- 
- AC_MSG_CHECKING([for DAQ_VERDICT_RETRY])
--AC_RUN_IFELSE(
-+AC_COMPILE_IFELSE(
- [AC_LANG_PROGRAM(
- [[
- #include <daq.h>
-@@ -904,17 +858,10 @@ if test "x$have_daq_verdict_retry" = "xy
- fi
- 
- AC_MSG_CHECKING([for daq packet trace])
--AC_RUN_IFELSE(
--[AC_LANG_PROGRAM(
--[[
--#include <daq.h>
--]],
--[[
--   DAQ_PktHdr_t hdr;
--   hdr.flags = DAQ_PKT_FLAG_TRACE_ENABLED;
--]])],
--[have_daq_packet_trace="yes"],
--[have_daq_packet_trace="no"])
-+AC_CHECK_MEMBERS([DAQ_PktHdr_t hdr.flags],
-+    [have_daq_packet_trace="yes"],
-+    [have_daq_packet_trace="no"],
-+    [[#include <daq.h>]])
- AC_MSG_RESULT($have_daq_packet_trace)
- if test "x$have_daq_packet_trace" = "xyes"; then
-     AC_DEFINE([HAVE_DAQ_PKT_TRACE],[1],
-@@ -924,17 +871,11 @@ else
- fi
- 
- AC_MSG_CHECKING([for daq verdict reason])
--AC_RUN_IFELSE(
--[AC_LANG_PROGRAM(
--[[
--#include <daq.h>
--]],
--[[
--   DAQ_ModFlow_t fl;
--   fl.type = DAQ_MODFLOW_TYPE_VER_REASON;
--]])],
--[have_daq_verdict_reason="yes"],
--[have_daq_verdict_reason="no"])
-+
-+AC_CHECK_MEMBERS([DAQ_ModFlow_t fl.type],
-+    [have_daq_verdict_reason="yes"],
-+    [have_daq_verdict_reason="no"],
-+    [[#include <daq.h>]])
- AC_MSG_RESULT($have_daq_verdict_reason)
- if test "x$have_daq_verdict_reason" = "xyes"; then
-     AC_DEFINE([HAVE_DAQ_VERDICT_REASON],[1],
-@@ -959,10 +900,8 @@ fi
- 
- # check for sparc %time register
- if eval "echo $host_cpu|grep -i sparc >/dev/null"; then
--    OLD_CFLAGS="$CFLAGS"
--    CFLAGS="$CFLAGS -mcpu=v9 "
-     AC_MSG_CHECKING([for sparc %time register])
--    AC_RUN_IFELSE(
-+    AC_COMPILE_IFELSE(
-     [AC_LANG_PROGRAM(
-     [[]],
-     [[
-@@ -974,8 +913,6 @@ if eval "echo $host_cpu|grep -i sparc >/
-     AC_MSG_RESULT($sparcv9)
-     if test "x$sparcv9" = "xyes"; then
-         AC_DEFINE([SPARCV9],[1],[For sparc v9 with %time register])
--    else
--        CFLAGS="$OLD_CFLAGS"
-     fi
- fi
- 

+ 0 - 11
package/snort/patches/patch-src_dynamic-preprocessors_appid_service_plugins_service_rpc_c

@@ -1,11 +0,0 @@
---- snort-2.9.14.1.orig/src/dynamic-preprocessors/appid/service_plugins/service_rpc.c	2019-08-02 08:16:46.000000000 +0200
-+++ snort-2.9.14.1/src/dynamic-preprocessors/appid/service_plugins/service_rpc.c	2019-10-08 14:40:22.925536140 +0200
-@@ -32,7 +32,7 @@
- #include "flow.h"
- #include "service_api.h"
- 
--#if defined(FREEBSD) || defined(OPENBSD)
-+#if defined(FREEBSD) || defined(OPENBSD) || (defined(LINUX) && defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__) || !defined(__GLIBC__))
- #include "rpc/rpc.h"
- #endif
- 

+ 0 - 11
package/snort/patches/patch-tools_u2boat_Makefile_in

@@ -1,11 +0,0 @@
---- snort-2.9.14.1.orig/tools/u2boat/Makefile.in	2019-08-02 08:33:42.000000000 +0200
-+++ snort-2.9.14.1/tools/u2boat/Makefile.in	2019-10-08 14:35:23.514350918 +0200
-@@ -327,7 +327,7 @@ top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- AUTOMAKE_OPTIONS = foreign
- u2boat_SOURCES = u2boat.c u2boat.h
--u2boat_CFLAGS = @CFLAGS@ $(AM_CFLAGS)
-+#u2boat_CFLAGS = @CFLAGS@ $(AM_CFLAGS)
- u2boat_LDADD = -lpcap
- dist_doc_DATA = README.u2boat
- all: all-am

+ 0 - 11
package/snort/patches/patch-tools_u2spewfoo_Makefile_in

@@ -1,11 +0,0 @@
---- snort-2.9.14.1.orig/tools/u2spewfoo/Makefile.in	2019-08-02 08:33:42.000000000 +0200
-+++ snort-2.9.14.1/tools/u2spewfoo/Makefile.in	2019-10-08 14:35:23.526351677 +0200
-@@ -298,7 +298,7 @@ top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
- AUTOMAKE_OPTIONS = foreign
- u2spewfoo_SOURCES = u2spewfoo.c
--u2spewfoo_CFLAGS = @CFLAGS@ $(AM_CFLAGS)
-+#u2spewfoo_CFLAGS = @CFLAGS@ $(AM_CFLAGS)
- EXTRA_DIST = \
- u2spewfoo.dsp
- 

+ 0 - 30
package/spandsp/Makefile

@@ -1,30 +0,0 @@
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(ADK_TOPDIR)/rules.mk
-
-PKG_NAME:=		spandsp
-PKG_VERSION:=		7b0b8cf3d42b725405bcc63145de5e280265ce4e
-PKG_GIT:=		hash
-PKG_RELEASE:=		1
-PKG_DESCR:=		dsp library
-PKG_SECTION:=		libs/misc
-PKG_BUILDDEP:=		libtiff
-PKG_DEPENDS:=		libtiff
-PKG_SITES:=		https://github.com/freeswitch/spandsp.git
-PKG_OPTS:=		dev
-
-include $(ADK_TOPDIR)/mk/package.mk
-
-$(eval $(call PKG_template,SPANDSP,spandsp,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION),$(PKG_OPTS)))
-
-AUTOTOOL_STYLE:=	autogen
-CONFIGURE_ENV+=		ac_cv_func_realloc_0_nonnull=yes
-CONFIGURE_ENV+=		ac_cv_func_malloc_0_nonnull=yes
-
-spandsp-install:
-	$(INSTALL_DIR) $(IDIR_SPANDSP)/usr/lib
-	$(CP) $(WRKINST)/usr/lib/libspandsp*.so* \
-		$(IDIR_SPANDSP)/usr/lib
-
-include $(ADK_TOPDIR)/mk/pkg-bottom.mk