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