components/openscap/Makefile
branchs11-update
changeset 2705 e39a44e3cb41
parent 2434 6c9bb5cf5610
child 2821 8add1494802c
equal deleted inserted replaced
2704:96a400628f41 2705:e39a44e3cb41
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 
    20 
    21 #
    21 #
    22 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
    22 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
    23 #
    23 #
    24 
    24 
    25 include ../../make-rules/shared-macros.mk
    25 include ../../make-rules/shared-macros.mk
    26 
    26 
    27 COMPONENT_NAME=		openscap
    27 COMPONENT_NAME=		openscap
    28 COMPONENT_VERSION=	0.8.1
    28 COMPONENT_VERSION=	0.9.7
    29 COMPONENT_PROJECT_URL=  http://www.open-scap.org/
    29 COMPONENT_PROJECT_URL=  http://www.open-scap.org
       
    30 COMPONENT_DOWNLOAD_URL= https://fedorahosted.org/releases/o/p/openscap
    30 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
    32 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
    32 COMPONENT_ARCHIVE_HASH= sha256:3365a5f4e7535e5f7134fdf386d4bd35d9b98f61d185be67606e946dc62efedc
    33 COMPONENT_ARCHIVE_HASH= sha256:0d9ae804026d69e60d44e27cf489e65dd1c2865895cde2cb174ff90fd7868a6a
    33 COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
    34 COMPONENT_ARCHIVE_URL=  $(COMPONENT_DOWNLOAD_URL)/$(COMPONENT_ARCHIVE)
    34 COMPONENT_BUGDB=	utility/openscap
    35 COMPONENT_BUGDB=        utility/openscap
    35 
    36 
    36 COMPILER=		gcc
    37 COMPILER=		gcc
    37 CFLAGS+=		-std=c99 -DNDEBUG
    38 CFLAGS+=		-std=c99
       
    39 CFLAGS+=		-DNDEBUG
    38 
    40 
    39 include $(WS_TOP)/make-rules/prep.mk
    41 include $(WS_TOP)/make-rules/prep.mk
    40 include $(WS_TOP)/make-rules/configure.mk
    42 include $(WS_TOP)/make-rules/configure.mk
    41 include $(WS_TOP)/make-rules/ips.mk
    43 include $(WS_TOP)/make-rules/ips.mk
    42 
    44 
    43 CPPFLAGS +=	"-I/usr/include/openldap"
    45 CPPFLAGS +=	-I/usr/include/openldap
       
    46 
       
    47 #Need to do cloney, so that the schema files
       
    48 #can get packaged.
       
    49 COMPONENT_PRE_CONFIGURE_ACTION = \
       
    50         ($(CLONEY) $(SOURCE_DIR) $(@D))
    44 
    51 
    45 # Perl related patch needs configure script recreation.
    52 # Perl related patch needs configure script recreation.
    46 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
    53 COMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
    47 
    54 
    48 # Needed to make "gmake test" work.
    55 # Needed to make "gmake test" work.
    49 CPPFLAGS +=	"-I$(SOURCE_DIR)/src/OVAL"
    56 CPPFLAGS +=	-I$(SOURCE_DIR)/src/OVAL
    50 CPPFLAGS +=	"-I$(SOURCE_DIR)/src/OVAL/probes"
    57 CPPFLAGS +=	-I$(SOURCE_DIR)/src/OVAL/probes
    51 CPPFLAGS +=	"-I/usr/include/pcre"
    58 CPPFLAGS +=	-I/usr/include/pcre
    52 
    59 
       
    60 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
    53 CONFIGURE_OPTIONS +=	CPPFLAGS="$(CPPFLAGS)"
    61 CONFIGURE_OPTIONS +=	CPPFLAGS="$(CPPFLAGS)"
    54 CONFIGURE_OPTIONS +=	--enable-debug=no
    62 CONFIGURE_OPTIONS +=	--enable-debug=no
       
    63 CONFIGURE_OPTIONS +=	--enable-sce=yes
       
    64 CONFIGURE_OPTIONS +=	--enable-perl=yes
    55 CONFIGURE_OPTIONS +=	--libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
    65 CONFIGURE_OPTIONS +=	--libexecdir=$(CONFIGURE_LIBDIR.$(BITS))
    56 CONFIGURE_OPTIONS +=	am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
    66 CONFIGURE_OPTIONS +=	am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES)
    57 CONFIGURE_OPTIONS +=	am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
    67 CONFIGURE_OPTIONS +=	am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES)
    58 CONFIGURE_OPTIONS +=	LIBS="-lsocket -lnsl -lldap_r"
    68 CONFIGURE_OPTIONS +=	LIBS="-lsocket -lnsl -lldap_r -lscf -ldlpi"
    59 
    69 
    60 # common targets
    70 # common targets
    61 build:		$(BUILD_32)
    71 build:		$(BUILD_32)
    62 
    72 
    63 install:	$(INSTALL_32)
    73 install:	$(INSTALL_32)