2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
9 PKG_VERSION
:=3.0.0-beta
10 PKG_VERSION_SHORT
:=3.0.0
13 PKG_SOURCE
:=snort-
$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=https
://www.snort.org
/downloads
/snortplus
/
15 PKG_HASH
:=ea4079c551002e4d83586f05b3ecdae72706a46ec223339b87ce60f7ae30b8a2
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)/snort-
$(PKG_VERSION_SHORT
)
18 PKG_MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
19 PKG_LICENSE
:=GPL-2.0
-only
20 PKG_LICENSE_FILES
:=COPYING
21 PKG_CPE_ID
:=cpe
:/a
:snort
:snort
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
32 DEPENDS
:=+libstdcpp
+libdaq
+libdnet
+libopenssl
+libpcap
+libpcre
+libpthread
+libuuid
+zlib
+libhwloc
+libtirpc
+luajit
33 TITLE
:=Lightweight Network Intrusion Detection System
34 URL
:=http
://www.snort.org
/
38 define Package
/snort3
/description
39 Snort is an open source network intrusion detection and prevention system.
40 It is capable of performing real-time traffic analysis
, alerting
, blocking
41 and packet logging on IP networks. It utilizes a combination of protocol
42 analysis and pattern matching in order to detect anomalies
, misuse and
47 -DENABLE_STATIC_DAQ
:BOOL
=NO \
48 -DENABLE_COREFILES
:BOOL
=NO \
49 -DENABLE_GDB
:BOOL
=NO \
51 -DMAKE_HTML_DOC
:BOOL
=NO \
52 -DMAKE_PDF_DOC
:BOOL
=NO \
53 -DMAKE_TEXT_DOC
:BOOL
=NO \
56 TARGET_CFLAGS
+= -I
$(STAGING_DIR
)/usr
/include/tirpc
57 TARGET_LDFLAGS
+= -ltirpc
59 define Package
/snort3
/conffiles
63 define Package
/snort3
/install
64 $(INSTALL_DIR
) $(1)/usr
/bin
66 $(PKG_INSTALL_DIR
)/usr
/bin
/snort \
70 $(PKG_INSTALL_DIR
)/usr
/bin
/u2
{boat
,spewfoo
} \
73 $(INSTALL_DIR
) $(1)/usr
/lib
/snort
75 $(PKG_INSTALL_DIR
)/usr
/lib
/snort
/daqs
/daq_hext.so \
79 $(PKG_INSTALL_DIR
)/usr
/lib
/snort
/daqs
/daq_file.so \
82 $(INSTALL_DIR
) $(1)/usr
/share
/lua
84 $(PKG_INSTALL_DIR
)/usr
/include/snort
/lua
/snort_plugin.lua \
88 $(PKG_INSTALL_DIR
)/usr
/include/snort
/lua
/snort_config.lua \
91 $(INSTALL_DIR
) $(1)/etc
/snort
93 $(INSTALL_DIR
) $(1)/etc
/init.d
98 $(INSTALL_DIR
) $(1)/etc
/config
100 .
/files
/snort.config \
101 $(1)/etc
/config
/snort
104 $(eval
$(call BuildPackage
,snort3
))