Makefile revision 3433
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# CDDL HEADER START
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# The contents of this file are subject to the terms of the
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Common Development and Distribution License (the "License").
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# You may not use this file except in compliance with the License.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# or http://www.opensolaris.org/os/licensing.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# See the License for the specific language governing permissions
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# and limitations under the License.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# When distributing Covered Code, include this CDDL HEADER in each
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# If applicable, add the following below this CDDL HEADER, with the
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# fields enclosed by brackets "[]" replaced with your own identifying
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# information: Portions Copyright [yyyy] [name of copyright owner]
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# CDDL HEADER END
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey sha256:8e1d7fc5e1523a786d845ca0102cc474abfcebfcc7e964a1653680034b5b5d77
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyCOMPONENT_PROJECT_URL= http://www.snort.org/
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.6.2/$(COMPONENT_ARCHIVE)/download
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# without this we bus error on sparc. sadly I don't see any patches
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# that might relate from the upstream (though maybe that's really
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# "happily", as this is simpler)
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Need to recreate the configure script for gethrtime checks.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyCOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# This option has the side-effect of getting the bindir lines correct in
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# snort_output.pc, snort_preproc.pc and snort.pc under
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# /usr/lib/$(MACH64)/pkgconfig/
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyCONFIGURE_OPTIONS += --with-libpcre-libraries="/usr/lib/$(MACH64)"
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. MaskeyCONFIGURE_OPTIONS += --with-dnet-libraries="/usr/lib/$(MACH64)"
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Move snort shared objects to 64-bit path to stop pkglint bitching.
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey $(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey $(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# Enable ASLR for this component
6ba597c56d749c61b4f783157f63196d7b2445f0Anurag S. Maskey# common targets