Updated snort to v2.3.3, added debug and inline-mode options to -custom package, fixed makefile, changed source url in control files

SVN-Revision: 789
lede-17.01
Nicolas Thill 2005-05-03 01:36:33 +00:00
parent c6bd41147f
commit 128f9daeba
7 changed files with 6745 additions and 20 deletions

View File

@ -41,17 +41,30 @@ choice
select BR2_PACKAGE_LIBPCAP select BR2_PACKAGE_LIBPCAP
select BR2_PACKAGE_LIBPCRE select BR2_PACKAGE_LIBPCRE
config BR2_PACKAGE_SNORT_ENABLE_DEBUG
prompt "debug (enable debugging options, useful for bugreports)"
bool
default n
depends BR2_PACKAGE_SNORT_CUSTOM
config BR2_PACKAGE_SNORT_ENABLE_INLINE
prompt "inline mode (read packets from iptables instead of libpcap)"
bool
default n
depends BR2_PACKAGE_SNORT_CUSTOM
select BR2_PACKAGE_IPTABLES
config BR2_PACKAGE_SNORT_WITH_MYSQL config BR2_PACKAGE_SNORT_WITH_MYSQL
prompt "MySQL database support" prompt "MySQL database support"
bool bool
default y default n
depends BR2_PACKAGE_SNORT_CUSTOM depends BR2_PACKAGE_SNORT_CUSTOM
select BR2_PACKAGE_LIBMYSQLCLIENT select BR2_PACKAGE_LIBMYSQLCLIENT
config BR2_PACKAGE_SNORT_WITH_PGSQL config BR2_PACKAGE_SNORT_WITH_PGSQL
prompt "PostgreSQL database support" prompt "PostgreSQL database support"
bool bool
default y default n
depends BR2_PACKAGE_SNORT_CUSTOM depends BR2_PACKAGE_SNORT_CUSTOM
select BR2_PACKAGE_LIBPQ select BR2_PACKAGE_LIBPQ
@ -59,5 +72,5 @@ endchoice
config BR2_PACKAGE_SNORT config BR2_PACKAGE_SNORT
tristate tristate
default BR2_PACKAGE_SNORT_BASIC || BR2_PACKAGE_SNORT_MYSQL || BR2_PACKAGE_SNORT_PGSQL default BR2_PACKAGE_SNORT_BASIC || BR2_PACKAGE_SNORT_MYSQL || BR2_PACKAGE_SNORT_PGSQL || BR2_PACKAGE_SNORT_CUSTOM

View File

@ -3,9 +3,9 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=snort PKG_NAME:=snort
PKG_VERSION:=2.3.2 PKG_VERSION:=2.3.3
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_MD5SUM:=692602827ce9d1a611630149f8e50ec8 PKG_MD5SUM:=06bf140893e7cb120aaa9372d10a0100
PKG_SOURCE_URL:= \ PKG_SOURCE_URL:= \
http://www.snort.org/dl/current/ \ http://www.snort.org/dl/current/ \
@ -41,17 +41,12 @@ PKG_CONFIGURE_OPTS := \
--enable-shared \ --enable-shared \
--disable-static \ --disable-static \
--enable-flexresp \ --enable-flexresp \
--disable-smbalerts \
--with-libnet-includes="$(STAGING_DIR)/usr/include" \ --with-libnet-includes="$(STAGING_DIR)/usr/include" \
--with-libnet-libraries="$(STAGING_DIR)/usr/lib" \ --with-libnet-libraries="$(STAGING_DIR)/usr/lib" \
--with-libpcap-includes="$(STAGING_DIR)/usr/include" \ --with-libpcap-includes="$(STAGING_DIR)/usr/include" \
--with-libpcap-libraries="$(STAGING_DIR)/usr/lib" \ --with-libpcap-libraries="$(STAGING_DIR)/usr/lib" \
--with-libpcre-includes="$(STAGING_DIR)/usr/include" \ --with-libpcre-includes="$(STAGING_DIR)/usr/include" \
--with-libpcre-libraries="$(STAGING_DIR)/usr/lib" \ --with-libpcre-libraries="$(STAGING_DIR)/usr/lib" \
--without-odbc \
--without-openssl \
--without-oracle \
--without-snmp \
SNORT_BASIC_CONFIGURE_OPTS := \ SNORT_BASIC_CONFIGURE_OPTS := \
--without-mysql \ --without-mysql \
@ -67,11 +62,26 @@ SNORT_PGSQL_CONFIGURE_OPTS := \
SNORT_CUSTOM_CONFIGURE_OPTS := \ SNORT_CUSTOM_CONFIGURE_OPTS := \
ifeq ($(BR2_PACKAGE_SNORT_ENABLE_DEBUG),y)
SNORT_CUSTOM_CONFIGURE_OPTS += --enable-debug
else
SNORT_CUSTOM_CONFIGURE_OPTS += --disable-debug
endif
ifeq ($(BR2_PACKAGE_SNORT_ENABLE_INLINE),y)
SNORT_CUSTOM_CONFIGURE_OPTS += --enable-inline
SNORT_CUSTOM_CONFIGURE_OPTS += --with-libipq-includes="$(STAGING_DIR)/include/libipq"
SNORT_CUSTOM_CONFIGURE_OPTS += --with-libipq-libraries="$(STAGING_DIR)/lib"
else
SNORT_CUSTOM_CONFIGURE_OPTS += --disable-inline
endif
ifeq ($(BR2_PACKAGE_SNORT_WITH_MYSQL),y) ifeq ($(BR2_PACKAGE_SNORT_WITH_MYSQL),y)
SNORT_CUSTOM_CONFIGURE_OPTS += --with-mysql="$(STAGING_DIR)/usr" SNORT_CUSTOM_CONFIGURE_OPTS += --with-mysql="$(STAGING_DIR)/usr"
else else
SNORT_CUSTOM_CONFIGURE_OPTS += --without-mysql SNORT_CUSTOM_CONFIGURE_OPTS += --without-mysql
endif endif
ifeq ($(BR2_PACKAGE_SNORT_WITH_PGSQL),y) ifeq ($(BR2_PACKAGE_SNORT_WITH_PGSQL),y)
SNORT_CUSTOM_CONFIGURE_OPTS += --with-postgresql="$(STAGING_DIR)/usr" SNORT_CUSTOM_CONFIGURE_OPTS += --with-postgresql="$(STAGING_DIR)/usr"
else else
@ -85,6 +95,8 @@ BUILD_TARGETS += $(PKG_BUILD_DIR)/$(2)
endif endif
$(PKG_BUILD_DIR)/$(2): $(PKG_BUILD_DIR)/.prepared $(PKG_BUILD_DIR)/$(2): $(PKG_BUILD_DIR)/.prepared
touch -r $(PKG_BUILD_DIR)/Makefile.am $(PKG_BUILD_DIR)/configure.in
touch -r $(PKG_BUILD_DIR)/Makefile.in $(PKG_BUILD_DIR)/configure
-$(MAKE) -C $(PKG_BUILD_DIR) distclean -$(MAKE) -C $(PKG_BUILD_DIR) distclean
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \ (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
$(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_OPTS) \
@ -98,10 +110,7 @@ $(PKG_BUILD_DIR)/$(2): $(PKG_BUILD_DIR)/.prepared
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE) -C $(PKG_BUILD_DIR)
mv $(PKG_BUILD_DIR)/src/snort $(PKG_BUILD_DIR)/$(2) mv $(PKG_BUILD_DIR)/src/snort $(PKG_BUILD_DIR)/$(2)
$(PKG_INSTALL_DIR)/usr/sbin/$(2): $(PKG_BUILD_DIR)/$(2) $$(IPKG_$(1)): $(PKG_BUILD_DIR)/.installed $(PKG_BUILD_DIR)/$(2)
install -m0755 $(PKG_BUILD_DIR)/$(2) $(PKG_INSTALL_DIR)/usr/sbin/
$$(IPKG_$(1)): $(PKG_BUILD_DIR)/.installed $(PKG_INSTALL_DIR)/usr/sbin/$(2)
rm -rf $$(IDIR_$(1)) rm -rf $$(IDIR_$(1))
$(SCRIPT_DIR)/make-ipkg-dir.sh $$(IDIR_$(1)) ./ipkg/$(2).control $(3) $(4) $(SCRIPT_DIR)/make-ipkg-dir.sh $$(IDIR_$(1)) ./ipkg/$(2).control $(3) $(4)
install -m0644 ./ipkg/snort.conffiles $$(IDIR_$(1))/CONTROL/conffiles install -m0644 ./ipkg/snort.conffiles $$(IDIR_$(1))/CONTROL/conffiles
@ -118,7 +127,7 @@ $$(IPKG_$(1)): $(PKG_BUILD_DIR)/.installed $(PKG_INSTALL_DIR)/usr/sbin/$(2)
install -m0644 $(PKG_BUILD_DIR)/etc/threshold.conf $$(IDIR_$(1))/etc/snort/ install -m0644 $(PKG_BUILD_DIR)/etc/threshold.conf $$(IDIR_$(1))/etc/snort/
install -m0644 $(PKG_BUILD_DIR)/etc/unicode.map $$(IDIR_$(1))/etc/snort/ install -m0644 $(PKG_BUILD_DIR)/etc/unicode.map $$(IDIR_$(1))/etc/snort/
install -d -m0755 $$(IDIR_$(1))/usr/sbin install -d -m0755 $$(IDIR_$(1))/usr/sbin
cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/$(2) $$(IDIR_$(1))/usr/sbin/snort install -m0755 $(PKG_BUILD_DIR)/$(2) $$(IDIR_$(1))/usr/sbin/snort
$(RSTRIP) $$(IDIR_$(1)) $(RSTRIP) $$(IDIR_$(1))
mkdir -p $(PACKAGE_DIR) mkdir -p $(PACKAGE_DIR)
$(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR) $(IPKG_BUILD) $$(IDIR_$(1)) $(PACKAGE_DIR)

View File

@ -1,10 +1,10 @@
Package: snort Package: snort-custom
Priority: optional Priority: optional
Section: net Section: net
Version: [TBDL] Version: [TBDL]
Architecture: [TBDL] Architecture: [TBDL]
Maintainer: Nico <nthill@free.fr> Maintainer: Nico <nthill@free.fr>
Source: http://nthill.free.fr/openwrt/sources/snort/ Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/snort/
Description: a flexible Network Intrusion Detection System (NIDS), Description: a flexible Network Intrusion Detection System (NIDS),
built with custom options built with custom options
Depends: libnet, libpcap, libpcre Depends: libnet, libpcap, libpcre

View File

@ -4,7 +4,7 @@ Section: net
Version: [TBDL] Version: [TBDL]
Architecture: [TBDL] Architecture: [TBDL]
Maintainer: Nico <nthill@free.fr> Maintainer: Nico <nthill@free.fr>
Source: http://nthill.free.fr/openwrt/sources/snort/ Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/snort/
Description: a flexible Network Intrusion Detection System (NIDS), Description: a flexible Network Intrusion Detection System (NIDS),
built with MySQL database logging support built with MySQL database logging support
Depends: libnet, libpcap, libpcre, libmysqlclient Depends: libnet, libpcap, libpcre, libmysqlclient

View File

@ -4,7 +4,7 @@ Section: net
Version: [TBDL] Version: [TBDL]
Architecture: [TBDL] Architecture: [TBDL]
Maintainer: Nico <nthill@free.fr> Maintainer: Nico <nthill@free.fr>
Source: http://nthill.free.fr/openwrt/sources/snort/ Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/snort/
Description: a flexible Network Intrusion Detection System (NIDS), Description: a flexible Network Intrusion Detection System (NIDS),
built with PostgreSQL database logging support built with PostgreSQL database logging support
Depends: libnet, libpcap, libpcre, libpq Depends: libnet, libpcap, libpcre, libpq

View File

@ -4,7 +4,7 @@ Section: net
Version: [TBDL] Version: [TBDL]
Architecture: [TBDL] Architecture: [TBDL]
Maintainer: Nico <nthill@free.fr> Maintainer: Nico <nthill@free.fr>
Source: http://nthill.free.fr/openwrt/sources/snort/ Source: http://openwrt.org/cgi-bin/viewcvs.cgi/openwrt/package/snort/
Description: a flexible Network Intrusion Detection System (NIDS), Description: a flexible Network Intrusion Detection System (NIDS),
built without database logging support built without database logging support
Depends: libnet, libpcap, libpcre Depends: libnet, libpcap, libpcre

File diff suppressed because it is too large Load Diff