4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_VERSION
= 2.9.9.0
30 COMPONENT_SUMMARY
= snort
- Network Intrusion and Protection Detector
31 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
32 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
33 COMPONENT_ARCHIVE_HASH
= \
34 sha256
:71b147125e96390a12f3d55796ed5073df77206bd3563d84d3e5a1f19e7d7a56
35 COMPONENT_PROJECT_URL
= http
://www.snort.org
/
36 COMPONENT_ARCHIVE_URL
= https
://snort.org
/downloads
/archive
/snort
/$(COMPONENT_ARCHIVE
)
37 COMPONENT_FMRI
= diagnostic
/snort
38 COMPONENT_CLASSIFICATION
= Applications
/Internet
39 COMPONENT_LICENSE
= GPLv2
, BSD
, LGPLv2.1
41 include $(WS_MAKE_RULES
)/prep.mk
42 include $(WS_MAKE_RULES
)/configure.mk
43 include $(WS_MAKE_RULES
)/ips.mk
45 PATH
=/usr
/gnu
/bin
:/usr
/bin
47 # Need to recreate the configure script for gethrtime checks.
48 COMPONENT_PREP_ACTION
+= (cd
$(@D
); autoreconf
-f
-i
);
50 CONFIGURE_OPTIONS
+= --with-libpcre-libraries
="/usr/lib"
51 CONFIGURE_OPTIONS
+= --with-dnet-libraries
="/usr/lib"
52 CONFIGURE_OPTIONS
+= --enable-ipv6
53 CONFIGURE_OPTIONS
+= --disable-static-daq
55 #Our nghttp2 is too old
56 CONFIGURE_ENV
+= ac_cv_lib_nghttp2_nghttp2_option_new
=no
58 # Move snort shared objects to 64-bit path to stop pkglint bitching.
59 #COMPONENT_POST_INSTALL_ACTION += \
60 # $(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
61 # $(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
66 install: $(INSTALL_32
)
70 # Auto-generated dependencies
71 REQUIRED_PACKAGES
+= SUNWcs
72 REQUIRED_PACKAGES
+= compress
/xz
73 REQUIRED_PACKAGES
+= library
/pcre
74 REQUIRED_PACKAGES
+= library
/security
/openssl
75 REQUIRED_PACKAGES
+= library
/zlib
76 REQUIRED_PACKAGES
+= system
/library
77 REQUIRED_PACKAGES
+= system
/library
/libdaq
78 REQUIRED_PACKAGES
+= system
/library
/libdnet
79 REQUIRED_PACKAGES
+= system
/library
/libpcap
80 REQUIRED_PACKAGES
+= system
/library
/math