Some package clea up.

* Add pkg_alternatives support.
* Since ruby-io-console is included in ruby{200,21}-base, no need to depend
  it.
* Utilize lang/ruby/json.mk.

Bump PKGREVISION.
This commit is contained in:
taca 2016-01-03 06:44:40 +00:00
parent 97ac39dd30
commit 55c90d3794
3 changed files with 14 additions and 11 deletions

View file

@ -0,0 +1 @@
bin/puppet @PREFIX@/bin/puppet@RUBY_SUFFIX@

View file

@ -1,6 +1,7 @@
# $NetBSD: Makefile,v 1.21 2015/11/23 15:46:59 taca Exp $
# $NetBSD: Makefile,v 1.22 2016/01/03 06:44:40 taca Exp $
DISTNAME= puppet-3.8.4
PKGREVISION= 1
CATEGORIES= sysutils
#MASTER_SITES= http://puppetlabs.com/downloads/puppet/
@ -9,16 +10,17 @@ HOMEPAGE= http://www.puppetlabs.com/
COMMENT= Configuration management framework written in Ruby
LICENSE= apache-2.0
DEPENDS+= ${RUBY_PKGPREFIX}-facter>=1.7.0<3:../../sysutils/ruby-facter
DEPENDS+= ${RUBY_PKGPREFIX}-hiera>=1.0.0<3:../../databases/ruby-hiera
DEPENDS+= ${RUBY_PKGPREFIX}-io-console>=0.3:../../devel/ruby-io-console
DEPENDS+= ${RUBY_PKGPREFIX}-json-pure>=0:../../textproc/ruby-json-pure
DEPENDS+= ${RUBY_PKGPREFIX}-minitest>=2.5.1:../../devel/ruby-minitest
DEPENDS+= ${RUBY_PKGPREFIX}-shadow>=2.0.0:../../security/ruby-shadow
DEPENDS+= ${RUBY_PKGPREFIX}-facter>=1.7.0<3:../../sysutils/ruby-facter
DEPENDS+= ${RUBY_PKGPREFIX}-hiera>=1.0.0<3:../../databases/ruby-hiera
DEPENDS+= ${RUBY_PKGPREFIX}-minitest>=2.5.1:../../devel/ruby-minitest
DEPENDS+= ${RUBY_PKGPREFIX}-shadow>=2.0.0:../../security/ruby-shadow
# io-console is bundled in ruby base package.
#DEPENDS+= ${RUBY_PKGPREFIX}-io-console>=0.3:../../devel/ruby-io-console
RUBY_VERSION_SUPPORTED= 200 21
CONFLICTS+= ruby[1-9][0-9]-puppet-[0-9]* puppet-[0-9]*
RUBY_JSON_REQD= 1.7.0
RUBY_JSON_TYPE= pure
RUBYGEM_OPTIONS+= --format-executable
PKG_SYSCONFSUBDIR= puppet
RCD_SCRIPTS= puppetd puppetmasterd

View file

@ -1,5 +1,5 @@
@comment $NetBSD: PLIST,v 1.15 2015/08/17 13:20:43 fhajny Exp $
bin/puppet
@comment $NetBSD: PLIST,v 1.16 2016/01/03 06:44:40 taca Exp $
bin/puppet${RUBY_SUFFIX}
${GEM_HOME}/cache/${GEM_NAME}.gem
${GEM_LIBDIR}/COMMITTERS.md
${GEM_LIBDIR}/CONTRIBUTING.md