Makefile revision 5680
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User#
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User# The contents of this file are subject to the terms of the
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# Common Development and Distribution License (the "License").
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# You may not use this file except in compliance with the License.
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1f4c645185bd8fc70048e0a69eee46193a284e5cTinderbox User# or http://www.opensolaris.org/os/licensing.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# See the License for the specific language governing permissions
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# and limitations under the License.
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews#
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserBUILD_BITS= 64
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinclude ../../make-rules/shared-macros.mk
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_NAME= snort
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_VERSION= 2.9.6.2
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_HASH= \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User sha256:8e1d7fc5e1523a786d845ca0102cc474abfcebfcc7e964a1653680034b5b5d77
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_PROJECT_URL= http://www.snort.org/
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.6.2/$(COMPONENT_ARCHIVE)/download
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsTPNO= 19385
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsTEST_TARGET= $(NO_TESTS)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Userinclude $(WS_MAKE_RULES)/common.mk
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserPATCH_LEVEL = 0
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User# without this we bus error on sparc. sadly I don't see any patches
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# that might relate from the upstream (though maybe that's really
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# "happily", as this is simpler)
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox Userstudio_ALIGN.sparc.64= -xmemalign=1i
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Need to recreate the configure script for gethrtime checks.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox User
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --with-libpcre-libraries="$(USRLIBDIR64)"
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS += --with-dnet-libraries="$(USRLIBDIR64)"
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox UserCONFIGURE_OPTIONS += --without-mysql
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox UserCONFIGURE_OPTIONS += --without-postgresql
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS += --enable-zlib
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox UserCONFIGURE_OPTIONS += --enable-ipv6
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += --disable-static-daq
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Move snort shared objects to 64-bit path to stop pkglint bitching.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_POST_INSTALL_ACTION += \
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater $(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += developer/lexer/flex
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += developer/parser/bison
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterREQUIRED_PACKAGES += library/pcre
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += library/security/openssl
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox UserREQUIRED_PACKAGES += library/zlib
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += shell/ksh93
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterREQUIRED_PACKAGES += system/core-os
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += system/library/libdaq
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsREQUIRED_PACKAGES += system/library/libdnet
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += system/library/libpcap
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += system/library/math
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsREQUIRED_PACKAGES += system/network
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews