components/snort/Makefile
changeset 5682 94c0ca64c022
parent 5066 7e7b4d607ab6
child 6865 1cc50ab79b8c
equal deleted inserted replaced
5681:b8fe51f35344 5682:94c0ca64c022
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 BUILD_BITS= 64
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		snort
    28 COMPONENT_NAME=		snort
    29 COMPONENT_VERSION=	2.9.6.2
    29 COMPONENT_VERSION=	2.9.6.2
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    32 COMPONENT_ARCHIVE_HASH=	\
    30 COMPONENT_ARCHIVE_HASH=	\
    33     sha256:8e1d7fc5e1523a786d845ca0102cc474abfcebfcc7e964a1653680034b5b5d77
    31     sha256:8e1d7fc5e1523a786d845ca0102cc474abfcebfcc7e964a1653680034b5b5d77
    34 COMPONENT_PROJECT_URL=	http://www.snort.org/
    32 COMPONENT_PROJECT_URL=	http://www.snort.org/
    35 COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.6.2/$(COMPONENT_ARCHIVE)/download
    33 COMPONENT_ARCHIVE_URL=	http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.6.2/$(COMPONENT_ARCHIVE)/download
    36 COMPONENT_BUGDB=	utility/snort
       
    37 
    34 
    38 TPNO=			19385
    35 TPNO=			19385
    39 
    36 
    40 include $(WS_MAKE_RULES)/prep.mk
    37 TEST_TARGET= $(NO_TESTS)
    41 include $(WS_MAKE_RULES)/configure.mk
    38 include $(WS_MAKE_RULES)/common.mk
    42 include $(WS_MAKE_RULES)/ips.mk
       
    43 
    39 
    44 PATCH_LEVEL =		0
    40 PATCH_LEVEL =		0
    45 
    41 
    46 # without this we bus error on sparc. sadly I don't see any patches
    42 # without this we bus error on sparc. sadly I don't see any patches
    47 # that might relate from the upstream (though maybe that's really
    43 # that might relate from the upstream (though maybe that's really
    49 studio_ALIGN.sparc.64=  -xmemalign=1i
    45 studio_ALIGN.sparc.64=  -xmemalign=1i
    50 
    46 
    51 # Need to recreate the configure script for gethrtime checks.
    47 # Need to recreate the configure script for gethrtime checks.
    52 COMPONENT_PREP_ACTION +=	(cd $(@D); autoconf);
    48 COMPONENT_PREP_ACTION +=	(cd $(@D); autoconf);
    53 
    49 
    54 # This option has the side-effect of getting the bindir lines correct in
    50 CONFIGURE_OPTIONS +=	--with-libpcre-libraries="$(USRLIBDIR64)"
    55 # snort_output.pc, snort_preproc.pc and snort.pc under
    51 CONFIGURE_OPTIONS +=	--with-dnet-libraries="$(USRLIBDIR64)"
    56 # /usr/lib/$(MACH64)/pkgconfig/
       
    57 CONFIGURE_OPTIONS +=	--bindir=/usr/bin
       
    58 
       
    59 CONFIGURE_OPTIONS +=	--with-libpcre-libraries="/usr/lib/$(MACH64)"
       
    60 CONFIGURE_OPTIONS +=	--with-dnet-libraries="/usr/lib/$(MACH64)"
       
    61 CONFIGURE_OPTIONS +=	--without-mysql
    52 CONFIGURE_OPTIONS +=	--without-mysql
    62 CONFIGURE_OPTIONS +=	--without-postgresql
    53 CONFIGURE_OPTIONS +=	--without-postgresql
    63 CONFIGURE_OPTIONS +=	--enable-zlib
    54 CONFIGURE_OPTIONS +=	--enable-zlib
    64 CONFIGURE_OPTIONS +=	--enable-ipv6
    55 CONFIGURE_OPTIONS +=	--enable-ipv6
    65 CONFIGURE_OPTIONS +=	--disable-static-daq
    56 CONFIGURE_OPTIONS +=	--disable-static-daq
    66 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    67 CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
       
    68 
    57 
    69 # Move snort shared objects to 64-bit path to stop pkglint bitching.
    58 # Move snort shared objects to 64-bit path to stop pkglint bitching.
    70 COMPONENT_POST_INSTALL_ACTION += \
    59 COMPONENT_POST_INSTALL_ACTION += \
    71 	$(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
    60 	$(MV) $(PROTOUSRLIBDIR)/snort_dynamicengine $(PROTOUSRLIBDIR64); \
    72 	$(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
    61 	$(MV) $(PROTOUSRLIBDIR)/snort_dynamicpreprocessor $(PROTOUSRLIBDIR64) ;
    73 
       
    74 # Enable ASLR for this component
       
    75 ASLR_MODE = $(ASLR_ENABLE)
       
    76 
       
    77 # common targets
       
    78 configure:	$(CONFIGURE_64)
       
    79 
       
    80 build:		$(BUILD_64)
       
    81 
       
    82 install:	$(INSTALL_64)
       
    83 
       
    84 test:		$(NO_TESTS)
       
    85 
       
    86 system-test:    $(NO_TESTS)
       
    87 
       
    88 
    62 
    89 REQUIRED_PACKAGES += developer/lexer/flex
    63 REQUIRED_PACKAGES += developer/lexer/flex
    90 REQUIRED_PACKAGES += developer/parser/bison
    64 REQUIRED_PACKAGES += developer/parser/bison
    91 REQUIRED_PACKAGES += library/pcre
    65 REQUIRED_PACKAGES += library/pcre
    92 REQUIRED_PACKAGES += library/security/openssl
    66 REQUIRED_PACKAGES += library/security/openssl
    93 REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
    67 REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
    94 REQUIRED_PACKAGES += library/zlib
    68 REQUIRED_PACKAGES += library/zlib
    95 REQUIRED_PACKAGES += shell/ksh93
    69 REQUIRED_PACKAGES += shell/ksh93
    96 REQUIRED_PACKAGES += system/core-os
    70 REQUIRED_PACKAGES += system/core-os
    97 REQUIRED_PACKAGES += system/library
       
    98 REQUIRED_PACKAGES += system/library/libdaq
    71 REQUIRED_PACKAGES += system/library/libdaq
    99 REQUIRED_PACKAGES += system/library/libdnet
    72 REQUIRED_PACKAGES += system/library/libdnet
   100 REQUIRED_PACKAGES += system/library/libpcap
    73 REQUIRED_PACKAGES += system/library/libpcap
   101 REQUIRED_PACKAGES += system/library/math
    74 REQUIRED_PACKAGES += system/library/math
   102 REQUIRED_PACKAGES += system/network
    75 REQUIRED_PACKAGES += system/network