openbsd-ports/sysutils/ruby-puppet/Makefile.inc
ajacoutot f2bf574479 Factorize a bit more since both ports version share a lot.
While here, fix the rc script to start the master instead of the client
and vice-versa.

ok robert@ (maintainer)
2013-03-13 14:35:38 +00:00

35 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile.inc,v 1.5 2013/03/13 14:35:38 ajacoutot Exp $
COMMENT ?= centralised configuration management for networks
DISTNAME ?= puppet-${VERSION}
PKGNAME ?= ruby-${DISTNAME}
HOMEPAGE ?= https://puppetlabs.com
MASTER_SITES ?= ${HOMEPAGE}/downloads/puppet/
MAINTAINER ?= Robert Nagy <robert@openbsd.org>
NO_TEST ?= Yes
NO_BUILD ?= Yes
FILESDIR ?= ${.CURDIR}/../files
PKGDIR ?= ${.CURDIR}/../pkg
PLIST ?= ${.CURDIR}/pkg/PLIST
CATEGORIES += sysutils net
MODULES += lang/ruby
SUBST_VARS += RUBY
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/