components/snort/Makefile
changeset 7650 2e39c59b83f8
parent 6865 1cc50ab79b8c
child 7687 1093e2a9adbd
equal deleted inserted replaced
7649:69d7508f0d66 7650:2e39c59b83f8
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 BUILD_BITS= 64
    25 BUILD_BITS= 64
       
    26 COMPILER= gcc
    26 include ../../make-rules/shared-macros.mk
    27 include ../../make-rules/shared-macros.mk
    27 
    28 
    28 COMPONENT_NAME=		snort
    29 COMPONENT_NAME=		snort
    29 COMPONENT_VERSION=	2.9.6.2
    30 COMPONENT_VERSION=	2.9.9.0
    30 COMPONENT_ARCHIVE_HASH=	\
    31 COMPONENT_ARCHIVE_HASH=	\
    31     sha256:8e1d7fc5e1523a786d845ca0102cc474abfcebfcc7e964a1653680034b5b5d77
    32     sha256:71b147125e96390a12f3d55796ed5073df77206bd3563d84d3e5a1f19e7d7a56
    32 COMPONENT_PROJECT_URL=	http://www.snort.org/
    33 COMPONENT_PROJECT_URL=	http://www.snort.org/
    33 COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.6.2/$(COMPONENT_ARCHIVE)/download
    34 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)downloads/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
    34 
    35 
    35 TPNO=			19385
    36 TPNO=			33599
    36 
    37 
    37 TEST_TARGET= $(NO_TESTS)
    38 TEST_TARGET= $(NO_TESTS)
    38 include $(WS_MAKE_RULES)/common.mk
    39 include $(WS_MAKE_RULES)/common.mk
    39 
    40 
    40 PATCH_LEVEL =		0
    41 # snort 2.9.8.3 (and later) requires automake/autoconf >= 1.14, but Userland
    41 
    42 # default is older than what is needed. So hard-coding to the next available,
    42 # without this we bus error on sparc. sadly I don't see any patches
    43 # 1.15: "--add-missing" needed to use default "compile" script.
    43 # that might relate from the upstream (though maybe that's really
    44 AUTOMAKE=/usr/bin/automake-1.15 --add-missing
    44 # "happily", as this is simpler)
    45 ACLOCAL=/usr/bin/aclocal-1.15
    45 studio_ALIGN.sparc.64=  -xmemalign=1i
       
    46 
    46 
    47 # Need to recreate the configure script for gethrtime checks.
    47 # Need to recreate the configure script for gethrtime checks.
    48 COMPONENT_PREP_ACTION +=	(cd $(@D); autoconf);
    48 COMPONENT_PREP_ACTION +=	(cd $(@D); autoreconf -fiv);
    49 
    49 
    50 CONFIGURE_OPTIONS +=	--with-libpcre-libraries="$(USRLIBDIR64)"
    50 CONFIGURE_OPTIONS +=	--with-libpcre-libraries="$(USRLIBDIR64)"
    51 CONFIGURE_OPTIONS +=	--with-dnet-libraries="$(USRLIBDIR64)"
    51 CONFIGURE_OPTIONS +=	--with-dnet-libraries="$(USRLIBDIR64)"
    52 CONFIGURE_OPTIONS +=	--without-mysql
       
    53 CONFIGURE_OPTIONS +=	--without-postgresql
       
    54 CONFIGURE_OPTIONS +=	--enable-zlib
       
    55 CONFIGURE_OPTIONS +=	--enable-ipv6
       
    56 CONFIGURE_OPTIONS +=	--disable-static-daq
    52 CONFIGURE_OPTIONS +=	--disable-static-daq
    57 
    53 
    58 # cheesy, but if we turn off visibility then it doesn't
    54 REQUIRED_PACKAGES += compress/xz
    59 # save the CFLAGS right and then nulls them.
       
    60 CONFIGURE_OPTIONS +=   "gl_cv_cc_visibility=no"
       
    61 CONFIGURE_OPTIONS +=   gl_save_CFLAGS="$(CFLAGS)"
       
    62 
       
    63 # Move snort shared objects to 64-bit path to stop pkglint bitching.
       
    64 COMPONENT_POST_INSTALL_ACTION += \
       
    65 	$(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
       
    66 	$(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
       
    67 
       
    68 REQUIRED_PACKAGES += developer/lexer/flex
    55 REQUIRED_PACKAGES += developer/lexer/flex
    69 REQUIRED_PACKAGES += developer/parser/bison
    56 REQUIRED_PACKAGES += developer/parser/bison
       
    57 REQUIRED_PACKAGES += library/nghttp2
    70 REQUIRED_PACKAGES += library/pcre
    58 REQUIRED_PACKAGES += library/pcre
    71 REQUIRED_PACKAGES += library/security/openssl
    59 REQUIRED_PACKAGES += library/security/openssl
    72 REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
    60 REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
    73 REQUIRED_PACKAGES += library/zlib
    61 REQUIRED_PACKAGES += library/zlib
    74 REQUIRED_PACKAGES += shell/ksh93
    62 REQUIRED_PACKAGES += shell/ksh93