Makefile revision 2899
71092d70af35567dd154d3de2ce04ce62e157a7cLennart Poettering#
7c66aeba0f28cb82027d6015405ed71afa3b6059Kay Sievers# CDDL HEADER START
7c66aeba0f28cb82027d6015405ed71afa3b6059Kay Sievers#
c904f64d84db8c4eebedf210ba10893f19ba05edLennart Poettering# The contents of this file are subject to the terms of the
c904f64d84db8c4eebedf210ba10893f19ba05edLennart Poettering# Common Development and Distribution License (the "License").
f957632b960a0a42999b38ded7089fa602b41745Kay Sievers# You may not use this file except in compliance with the License.
f957632b960a0a42999b38ded7089fa602b41745Kay Sievers#
f957632b960a0a42999b38ded7089fa602b41745Kay Sievers# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f957632b960a0a42999b38ded7089fa602b41745Kay Sievers# or http://www.opensolaris.org/os/licensing.
9a36607584bbd1d78775353e022a51794b4e27b1Lennart Poettering# See the License for the specific language governing permissions
9a36607584bbd1d78775353e022a51794b4e27b1Lennart Poettering# and limitations under the License.
a40593a0d0d740efa387e35411e1e456a6c5aba7Lennart Poettering#
20ffc4c4a9226b0e45cc02ad9c0108981626c0bbKay Sievers# When distributing Covered Code, include this CDDL HEADER in each
26306aed13e73b6edbc4b3fd7b97e421e152b56bKay Sievers# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
26306aed13e73b6edbc4b3fd7b97e421e152b56bKay Sievers# If applicable, add the following below this CDDL HEADER, with the
26306aed13e73b6edbc4b3fd7b97e421e152b56bKay Sievers# fields enclosed by brackets "[]" replaced with your own identifying
26306aed13e73b6edbc4b3fd7b97e421e152b56bKay Sievers# information: Portions Copyright [yyyy] [name of copyright owner]
26306aed13e73b6edbc4b3fd7b97e421e152b56bKay Sievers#
26306aed13e73b6edbc4b3fd7b97e421e152b56bKay Sievers# CDDL HEADER END
26306aed13e73b6edbc4b3fd7b97e421e152b56bKay Sievers#
26306aed13e73b6edbc4b3fd7b97e421e152b56bKay Sievers
466784c8710e5cb0e0b86a16506d992d7ec5b619Kay Sievers#
3679d1126bae52e02f6cd60fca196f616b9e660dLennart Poettering# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
dc7adf202b82fc0054c457ce6ca3bcedb88dde57Lennart Poettering#
7b4da18c1717f811bae67ea3d39290495857c03eLennart Poettering
81d112a8f0522a09fcfe317f420363a2b728137cLennart Poetteringinclude ../../make-rules/shared-macros.mk
81d112a8f0522a09fcfe317f420363a2b728137cLennart Poettering
81d112a8f0522a09fcfe317f420363a2b728137cLennart PoetteringCOMPONENT_NAME= snort
55d32caf94d8df547ca763be52b0c35bb6388606Lennart PoetteringCOMPONENT_VERSION= 2.9.2
466784c8710e5cb0e0b86a16506d992d7ec5b619Kay SieversCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
55d32caf94d8df547ca763be52b0c35bb6388606Lennart PoetteringCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart PoetteringCOMPONENT_ARCHIVE_HASH= \
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poettering sha256:04d375b627dd256d6257f2cbe5a770e4552e3f35d5e2100b97f75426b600d8cb
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart PoetteringCOMPONENT_PROJECT_URL= http://www.snort.org/
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart PoetteringCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)dl/snort-current/$(COMPONENT_ARCHIVE)
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart PoetteringCOMPONENT_BUGDB= utility/snort
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poettering
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart PoetteringTPNO= 9027
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poettering
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poetteringinclude ../../make-rules/prep.mk
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poetteringinclude ../../make-rules/configure.mk
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poetteringinclude ../../make-rules/ips.mk
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poettering
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poettering# without this we bus error on sparc. sadly I don't see any patches
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poettering# that might relate from the upstream (though maybe that's really
049b4474b35d0b854f87b0795a5113665413f6a4Lennart Poettering# "happily", as this is simpler)
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart Poetteringstudio_ALIGN.sparc.64= -xmemalign=1i
431c72dc3d482732a01d3ab929aa9b2c36422d46Lennart Poettering
431c72dc3d482732a01d3ab929aa9b2c36422d46Lennart Poettering# Need to recreate the configure script for gethrtime checks.
bafb15bab99887d1b6b8a35136531bac6c3876a6Lennart PoetteringCOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
248aa28ff27418ad074439014d476ed8cd2e01dbLennart Poettering
248aa28ff27418ad074439014d476ed8cd2e01dbLennart PoetteringCONFIGURE_OPTIONS += --with-libpcre-libraries="/usr/lib/$(MACH64)"
eb124a97fb72d076014253b1acde69d428f15ecfLennart PoetteringCONFIGURE_OPTIONS += --with-dnet-libraries="/usr/lib/$(MACH64)"
154ff088d371bee5651eaa2bc9bde8a34c185656Lennart PoetteringCONFIGURE_OPTIONS += --without-mysql
e1b7e7ec9b34ae6ae54a4c8084395cbf2bfe9960Lennart PoetteringCONFIGURE_OPTIONS += --without-postgresql
e1b7e7ec9b34ae6ae54a4c8084395cbf2bfe9960Lennart PoetteringCONFIGURE_OPTIONS += --enable-zlib
e1b7e7ec9b34ae6ae54a4c8084395cbf2bfe9960Lennart PoetteringCONFIGURE_OPTIONS += --enable-ipv6
6aaa8c2f783cd1b3ac27c5ce40625d032e7e3d71Zbigniew Jędrzejewski-SzmekCONFIGURE_OPTIONS += --disable-static-daq
c3bb87dbab8b79bb9253407cb5b7f3e6fe8db395Lennart PoetteringCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
e7256c5c137e58fb3dc1ebca8e5845733a5f733cLennart PoetteringCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
e7256c5c137e58fb3dc1ebca8e5845733a5f733cLennart Poettering
042e33ae3a7feb08c8105f1345fd244315109405Lennart Poettering# Move snort shared objects to 64-bit path to stop pkglint bitching.
042e33ae3a7feb08c8105f1345fd244315109405Lennart PoetteringCOMPONENT_POST_INSTALL_ACTION += \
e1b7e7ec9b34ae6ae54a4c8084395cbf2bfe9960Lennart Poettering $(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
18d4e7c26e7806ac363d19989df7144d5058ce41Lennart Poettering $(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
36c0868b67a9387d39c97983d3d22cfce0fedc62Lennart Poettering
36c0868b67a9387d39c97983d3d22cfce0fedc62Lennart Poettering# Enable ASLR for this component
fa7deadb074dfbe473cf3bd942768dbd94cbf7c3Lennart PoetteringASLR_MODE = $(ASLR_ENABLE)
fa7deadb074dfbe473cf3bd942768dbd94cbf7c3Lennart Poettering
c5757cc8dbcddb3e8b13ebba4ea4b36589bfd3dbLennart Poettering# common targets
69af45035913e7119cffd94c542bd3039600e45dZbigniew Jędrzejewski-Szmekbuild: $(BUILD_64)
c5757cc8dbcddb3e8b13ebba4ea4b36589bfd3dbLennart Poettering
c5757cc8dbcddb3e8b13ebba4ea4b36589bfd3dbLennart Poetteringinstall: $(INSTALL_64)
c5757cc8dbcddb3e8b13ebba4ea4b36589bfd3dbLennart Poettering
c5757cc8dbcddb3e8b13ebba4ea4b36589bfd3dbLennart Poetteringtest: $(NO_TESTS)
69af45035913e7119cffd94c542bd3039600e45dZbigniew Jędrzejewski-Szmek
d907c2086716681936755f28ac80b3445c6d0196Lennart PoetteringBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
d907c2086716681936755f28ac80b3445c6d0196Lennart Poettering
d907c2086716681936755f28ac80b3445c6d0196Lennart Poetteringinclude ../../make-rules/depend.mk
049b4474b35d0b854f87b0795a5113665413f6a4Lennart Poettering