Makefile revision 1768
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
222N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= snort
0N/ACOMPONENT_VERSION= 2.9.2
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0N/ACOMPONENT_ARCHIVE_HASH= \
355N/A sha256:04d375b627dd256d6257f2cbe5a770e4552e3f35d5e2100b97f75426b600d8cb
0N/ACOMPONENT_PROJECT_URL= http://www.snort.org/
0N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dl/snort-current/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB= utility/snort
0N/A
0N/Ainclude ../../make-rules/prep.mk
0N/Ainclude ../../make-rules/configure.mk
0N/Ainclude ../../make-rules/ips.mk
0N/A
0N/A# without this we bus error on sparc. sadly I don't see any patches
0N/A# that might relate from the upstream (though maybe that's really
0N/A# "happily", as this is simpler)
0N/Astudio_ALIGN.sparc.64= -xmemalign=1i
0N/A
156N/A# Need to recreate the configure script for gethrtime checks.
0N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
0N/A
0N/ACONFIGURE_OPTIONS += --with-libpcre-libraries="/usr/lib/$(MACH64)"
0N/ACONFIGURE_OPTIONS += --with-dnet-libraries="/usr/lib/$(MACH64)"
0N/ACONFIGURE_OPTIONS += --without-mysql
0N/ACONFIGURE_OPTIONS += --without-postgresql
0N/ACONFIGURE_OPTIONS += --enable-zlib
222N/ACONFIGURE_OPTIONS += --enable-ipv6
222N/ACONFIGURE_OPTIONS += --disable-static-daq
0N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
0N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
0N/A
0N/A# Move snort shared objects to 64-bit path to stop pkglint bitching.
355N/ACOMPONENT_POST_INSTALL_ACTION += \
355N/A $(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
355N/A $(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
355N/A
0N/A# Enable ASLR for this component
0N/AASLR_MODE = $(ASLR_ENABLE)
0N/A
0N/A# common targets
0N/Abuild: $(BUILD_64)
0N/A
0N/Ainstall: $(INSTALL_64)
0N/A
0N/Atest: $(NO_TESTS)
0N/A
0N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
0N/A
0N/Ainclude ../../make-rules/depend.mk
0N/A