components/puppet/Makefile
branchs11-update
changeset 2771 8e4227dc2fc4
parent 2629 3666f503c6e7
child 2818 ff3cbef81e88
equal deleted inserted replaced
2767:82fe1f1d5d8d 2771:8e4227dc2fc4
    21 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 include ../../make-rules/shared-macros.mk
    23 include ../../make-rules/shared-macros.mk
    24 
    24 
    25 COMPONENT_NAME=		puppet
    25 COMPONENT_NAME=		puppet
    26 COMPONENT_VERSION=	3.1.1
    26 COMPONENT_VERSION=	3.2.4
    27 COMPONENT_PROJECT_URL=	http://puppetlabs.com/
    27 COMPONENT_PROJECT_URL=	http://puppetlabs.com/
    28 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    28 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    29 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    29 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
    30 COMPONENT_ARCHIVE_HASH=	\
    30 COMPONENT_ARCHIVE_HASH=	\
    31     sha256:4401f6388bb96b1301a107f247af6fa558127d78467bb5cef1a1e0ff66b4463d
    31     sha256:8b38f4adee6237b8dd7b1956d90af97f2d0091245d6e30b708bbc8e333001358
    32 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)downloads/puppet/$(COMPONENT_ARCHIVE)
    32 COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)downloads/puppet/$(COMPONENT_ARCHIVE)
    33 COMPONENT_BUGDB=	utility/puppet
    33 COMPONENT_BUGDB=	utility/puppet
    34 
    34 
    35 include $(WS_TOP)/make-rules/prep.mk
    35 include $(WS_TOP)/make-rules/prep.mk
    36 include $(WS_TOP)/make-rules/install.rb.mk
    36 include $(WS_TOP)/make-rules/install.rb.mk
    45 # set the bindir to /usr/sbin
    45 # set the bindir to /usr/sbin
    46 INSTALL_RB_BINDIR =	$(USRSBINDIR)
    46 INSTALL_RB_BINDIR =	$(USRSBINDIR)
    47 
    47 
    48 # common targets
    48 # common targets
    49 build:		$(BUILD_32)
    49 build:		$(BUILD_32)
       
    50 	# Ruby extension for auditing
       
    51 	(cd ext; $(RUBY) extconf.rb; $(GMAKE))
    50 
    52 
    51 # make sure facter is installed first
    53 # make sure facter is installed first
    52 install:	../facter/build/$(MACH32)/.installed $(INSTALL_32)
    54 install:	../facter/build/$(MACH32)/.installed $(INSTALL_32)
    53 
    55 
       
    56 clean::
       
    57 	@if [ -f ext/Makefile ]; then \
       
    58 		(cd ext; $(GMAKE) clean; $(RM) Makefile) \
       
    59 	fi
       
    60 
    54 # puppet requires the installation of the following rubygems to run
    61 # puppet requires the installation of the following rubygems to run
    55 # the unittests:  rspec rspec-expectations mocha rake rack hiera
    62 # the unittests:  rspec rspec-expectations mocha rake rack hiera rgen
    56 # Disable the tests until these rubygems are available.
    63 # Disable the tests until these rubygems are available.
    57 test:		$(NO_TESTS)
    64 test:		$(NO_TESTS)
    58 
    65 
    59 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    66 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    60 
    67