213N/A#
213N/A# CDDL HEADER START
213N/A#
213N/A# The contents of this file are subject to the terms of the
213N/A# Common Development and Distribution License (the "License").
213N/A# You may not use this file except in compliance with the License.
213N/A#
213N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
213N/A# or http://www.opensolaris.org/os/licensing.
213N/A# See the License for the specific language governing permissions
213N/A# and limitations under the License.
213N/A#
213N/A# When distributing Covered Code, include this CDDL HEADER in each
213N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
213N/A# If applicable, add the following below this CDDL HEADER, with the
213N/A# fields enclosed by brackets "[]" replaced with your own identifying
213N/A# information: Portions Copyright [yyyy] [name of copyright owner]
213N/A#
213N/A# CDDL HEADER END
213N/A#
213N/A
213N/A#
5680N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
213N/A#
5680N/ABUILD_BITS= 64
213N/Ainclude ../../make-rules/shared-macros.mk
213N/A
213N/ACOMPONENT_NAME= snort
3433N/ACOMPONENT_VERSION= 2.9.6.2
844N/ACOMPONENT_ARCHIVE_HASH= \
3433N/A sha256:8e1d7fc5e1523a786d845ca0102cc474abfcebfcc7e964a1653680034b5b5d77
213N/ACOMPONENT_PROJECT_URL= http://www.snort.org/
3433N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.6.2/$(COMPONENT_ARCHIVE)/download
213N/A
3433N/ATPNO= 19385
2899N/A
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
213N/A
3433N/APATCH_LEVEL = 0
3433N/A
213N/A# without this we bus error on sparc. sadly I don't see any patches
213N/A# that might relate from the upstream (though maybe that's really
213N/A# "happily", as this is simpler)
1768N/Astudio_ALIGN.sparc.64= -xmemalign=1i
1768N/A
1768N/A# Need to recreate the configure script for gethrtime checks.
1768N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
213N/A
5680N/ACONFIGURE_OPTIONS += --with-libpcre-libraries="$(USRLIBDIR64)"
5680N/ACONFIGURE_OPTIONS += --with-dnet-libraries="$(USRLIBDIR64)"
1768N/ACONFIGURE_OPTIONS += --without-mysql
1768N/ACONFIGURE_OPTIONS += --without-postgresql
1768N/ACONFIGURE_OPTIONS += --enable-zlib
1768N/ACONFIGURE_OPTIONS += --enable-ipv6
1768N/ACONFIGURE_OPTIONS += --disable-static-daq
1768N/A
6863N/A# cheesy, but if we turn off visibility then it doesn't
6863N/A# save the CFLAGS right and then nulls them.
6863N/ACONFIGURE_OPTIONS += "gl_cv_cc_visibility=no"
6863N/ACONFIGURE_OPTIONS += gl_save_CFLAGS="$(CFLAGS)"
6863N/A
1768N/A# Move snort shared objects to 64-bit path to stop pkglint bitching.
1768N/ACOMPONENT_POST_INSTALL_ACTION += \
1768N/A $(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
1768N/A $(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
213N/A
3817N/AREQUIRED_PACKAGES += developer/lexer/flex
3817N/AREQUIRED_PACKAGES += developer/parser/bison
3817N/AREQUIRED_PACKAGES += library/pcre
3817N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/core-os
3817N/AREQUIRED_PACKAGES += system/library/libdaq
3817N/AREQUIRED_PACKAGES += system/library/libdnet
3817N/AREQUIRED_PACKAGES += system/library/libpcap
3817N/AREQUIRED_PACKAGES += system/library/math
3817N/AREQUIRED_PACKAGES += system/network