# $OpenBSD: Makefile.inc,v 1.9 2013/04/15 08:08:09 jasper Exp $ PKG_ARCH ?= * COMMENT ?= centralised configuration management for networks DISTNAME ?= puppet-${VERSION} PKGNAME ?= ruby-${DISTNAME} HOMEPAGE ?= https://puppetlabs.com MASTER_SITES ?= ${HOMEPAGE}/downloads/puppet/ MAINTAINER ?= Robert Nagy NO_TEST ?= Yes NO_BUILD ?= Yes FILESDIR ?= ${.CURDIR}/../files PKGDIR ?= ${.CURDIR}/../pkg PLIST ?= ${.CURDIR}/pkg/PLIST CATEGORIES += sysutils net SUBST_VARS += RUBY # Ruby 1.8 supports both version 2 and 3 of Puppet # (http://docs.puppetlabs.com/guides/platforms.html). # For maintenance/ease of use, the following ports should use the same # Ruby version as Puppet: # databases/ruby-hiera # sysutils/mcollective # sysutils/ruby-augeas # sysutils/ruby-facter # www/puppet-dashboard MODULES += lang/ruby MODRUBY_REV ?= 1.8 BUILD_DEPENDS +=${RUN_DEPENDS} RUN_DEPENDS += converters/ruby-json,${MODRUBY_FLAVOR} \ sysutils/ruby-facter \ ${MODRUBY_ICONV_DEPENDS} # Apache PERMIT_PACKAGE_CDROM= Yes do-install: ${SUBST_CMD} ${WRKSRC}/lib/puppet/defaults.rb @cd ${WRKSRC} && ${ALL_FAKE_FLAGS} ${RUBY} install.rb mv ${WRKINST}${SYSCONFDIR}/puppet ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet ${INSTALL_DATA} ${WRKSRC}/conf/*.conf ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet ${INSTALL_DATA} ${FILESDIR}/puppet.conf ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet ${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp/ ${INSTALL_DATA} ${WRKSRC}/ext/emacs/* ${PREFIX}/share/emacs/site-lisp/