Edit

IABSD.fr/ports/sysutils/ruby-puppet/Makefile.inc

Branch :

  • Show log

    Commit

  • Author : sebastia
    Date : 2016-09-21 20:29:31
    Hash : c09d1adb
    Message : Do not nail puppet to ruby 2.2, works well with ruby 2.3 feedback/OK jasper@

  • sysutils/ruby-puppet/Makefile.inc
  • # $OpenBSD: Makefile.inc,v 1.43 2016/09/21 20:29:31 sebastia Exp $
    
    PKG_ARCH ?=	*
    COMMENT ?=	centralised configuration management for networks
    DISTNAME ?=	puppet-${VERSION}
    HOMEPAGE ?=	https://puppet.com/
    MASTER_SITES ?=	https://downloads.puppetlabs.com/puppet/
    MAINTAINER ?=	Sebastian Reitenbach <sebastia@openbsd.org>
    NO_TEST ?=	Yes
    NO_BUILD ?=	Yes
    PKGDIR ?=	${.CURDIR}/../pkg
    PLIST ?=	${.CURDIR}/pkg/PLIST
    
    CATEGORIES +=	sysutils
    SUBST_VARS +=	RUBY
    
    # For maintenance/ease of use, the following ports should use the same
    # Ruby version as Puppet. Please consult this matrix before adjusting:
    # https://docs.puppet.com/guides/platforms.html#ruby-versions
    #
    # The Puppet 3 ports have been unhooked and should be removed after
    # removed after OpenBSD 6.1.
    #
    # Common:
    #   devel/ruby-rgen
    #   databases/ruby-hiera-eyaml
    #   databases/ruby-hiera-file
    #   net/ruby-msgpack
    #   sysutils/mcollective
    #   sysutils/ruby-augeas
    #   sysutils/ruby-shadow
    # Puppet 3:
    #   databases/puppetdb
    #   databases/ruby-hiera
    #   sysutils/ruby-facter
    #   www/puppet-dashboard
    # Puppet 4:
    #   databases/puppetdb4
    #   databases/ruby-hiera3
    #   sysutils/facter
    
    MODULES +=	lang/ruby
    
    MODULES +=		lang/python
    MODPY_BUILDDEP = 	No
    MODPY_RUNDEP =		No
    
    BUILD_DEPENDS +=${RUN_DEPENDS}
    RUN_DEPENDS +=	archivers/gtar \
    		sysutils/ruby-augeas,${MODRUBY_FLAVOR} \
    		sysutils/ruby-shadow,${MODRUBY_FLAVOR}>=2.3.4p1
    
    # Apache2
    PERMIT_PACKAGE_CDROM=	Yes
    
    FAKE_FLAGS +=		HOME=${WKRDIR}/home
    
    SUBST_VARS +=		MODRUBY_BINREV
    
    post-install:
    	find ${PREFIX} -type f \( -name '*.beforesubst' -or -name '*.orig' \) -exec rm {} \;
    	${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp/
    	${INSTALL_DATA} ${WRKSRC}/ext/emacs/* ${PREFIX}/share/emacs/site-lisp/
    	gunzip ${PREFIX}/man/*/*.gz