pkgsrc/sysutils/puppet/Makefile
fhajny 16d711d0b5 Update sysutils/puppet to 3.8.2.
Puppet 3.8.1-3.8.2
- Bug fixes
- Minor improvements
- Improvements for future migration to 4.0

Puppet 3.8.0
- Back-end Support for Upgrade Previews
- Logging as JSON
- Bug fixes and improvements

Release notes for 3.8.x:
  https://docs.puppetlabs.com/puppet/3.8/reference/release_notes.html

Puppet 3.7.1-3.7.5
- Bug fixes
- Security fix for the POODLE vulnerability in the WEBrick master process

Puppet 3.7.0
- A nearly-final implementation of the Puppet 4 language
- Preview support for a new, fast, natively compiled Facter
- Lots of deprecations to prepare for Puppet 4.0
- Bug fixes and minor improvements

Release notes for 3.7.x:
  https://docs.puppetlabs.com/puppet/3.7/reference/release_notes.html

Puppet 3.6.1-3.6.2
- Security fixes for CVE-2014-3248 and CVE-2014-3250.
- Bug fixes.

Puppet 3.6.0
- Improvements to directory environments, and the deprecation
  of config file environments
- Support for purging unmanaged ssh_authorized_key resources
- Support for installing gems for a custom provider as part of a Puppet run
- A configurable global logging level
- A configurable hashing algorithm (for FIPS compliance and other purposes)
- Improvements to the experimental future parser
- Bug fixes and minor improvements

Release notes for 3.6.x:
  https://docs.puppetlabs.com/puppet/3.6/reference/release_notes.html

Puppet 3.5.1
- Bug fixes.

Puppet 3.5.0
- A new way to set up environments, which replaces the popular
  "dynamic environments" pattern
- A cleaner replacement for the classic import nodes/*.pp pattern
- Scriptable configuration with a new puppet config set command
- A new global $facts hash
- Early support for hashes and arrays in fact values
- Improvements to the future parser
- Support for RHEL 7, Ruby 2.1, and Facter 2.0
- Bug fixes and minor improvements

Release notes for 3.5.x:
  https://docs.puppetlabs.com/puppet/3.5/reference/release_notes.html

Puppet 3.4.1-3.4.3
- Bug fixes.
- Security fix for CVE-2013-4969.

Puppet 3.4.0
- Fixes for some high-profile bugs, including the "anchor pattern" issue
  and broken RDoc on Ruby 1.9+
- New certificate autosigning behavior to help quickly and securely
  add new nodes in elastic environments
- Windows improvements, especially for file resources
- Trusted node data in the compiler
- Bug fixes and minor improvements

Puppet 3.3.1-3.3.2
- Bug fixes

Puppet 3.3.0
- Configurable Resource Ordering
- Data in Modules
- YAML Over the Network is Now Deprecated
- Regex Capture Variables from Node Definitions ($1, etc.)
- Redirect Response Handling
- Filebucket Improvements
- Internal Format and API Improvements
- Improvements to Resource Types
- Bug fixes and minor improvements

Puppet 3.2.1-3.2.4
- Bug fixes
- Security fixes for CVE-2013-4761 and CVE-2013-4956
- Security fix for CVE-2013-3567

Puppet 3.2.0
- An optional, experimental "Future" parser
- Ruby 2.0 support
- OpenWRT OS support
- External CA support
- A new modulo (%) operator
- New slow catalog profiling capabilities
- Bug fixes and minor improvements

Release notes for for 3.2.x-3.4.x:
-  https://docs.puppetlabs.com/puppet/3/reference/release_notes.html
2015-08-17 13:20:43 +00:00

113 lines
4.1 KiB
Makefile

# $NetBSD: Makefile,v 1.19 2015/08/17 13:20:43 fhajny Exp $
DISTNAME= puppet-3.8.2
CATEGORIES= sysutils
#MASTER_SITES= http://puppetlabs.com/downloads/puppet/
MAINTAINER= tonnerre@NetBSD.org
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
RUBY_VERSION_SUPPORTED= 200 193 21
CONFLICTS+= ruby[1-9][0-9]-puppet-[0-9]* puppet-[0-9]*
PKG_SYSCONFSUBDIR= puppet
RCD_SCRIPTS= puppetd puppetmasterd
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= post-patch
SUBST_FILES.prefix= install.rb
SUBST_FILES.prefix+= lib/puppet/face/module/changes.rb
SUBST_FILES.prefix+= lib/puppet/face/module/install.rb
SUBST_FILES.prefix+= lib/puppet/face/module/list.rb
SUBST_FILES.prefix+= lib/puppet/face/module/uninstall.rb
SUBST_FILES.prefix+= lib/puppet/face/module/upgrade.rb
SUBST_FILES.prefix+= lib/puppet/parser/functions/extlookup.rb
SUBST_FILES.prefix+= lib/puppet/reference/configuration.rb
SUBST_FILES.prefix+= lib/puppet/util/run_mode.rb
SUBST_FILES.prefix+= ext/solaris/smf/puppetd.xml
SUBST_FILES.prefix+= ext/solaris/smf/puppetmasterd.xml
SUBST_FILES.prefix+= man/man5/puppet.conf.5
SUBST_FILES.prefix+= man/man8/puppet-apply.8
SUBST_FILES.prefix+= man/man8/puppet-device.8
SUBST_FILES.prefix+= man/man8/puppet-doc.8
SUBST_FILES.prefix+= man/man8/puppet-module.8
SUBST_FILES.prefix+= man/man8/puppet-parser.8
SUBST_FILES.prefix+= spec/unit/util/run_mode_spec.rb
SUBST_FILES.prefix+= spec/unit/util/selinux_spec.rb
SUBST_FILES.prefix+= spec/unit/indirector/catalog/static_compiler_spec.rb
SUBST_SED.prefix= -e "s|/etc/puppet|${PKG_SYSCONFDIR}|g"
SUBST_SED.prefix+= -e "s|/opt/csw/lib|${PREFIX}/lib|g"
EGDIR= share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/puppet.conf ${PKG_SYSCONFDIR}/puppet.conf
## Since these users are needed only for puppet server,
## puppet-server package should be created.
#SUBST_CLASSES+= user
#SUBST_STAGE.user= post-patch
#SUBST_FILES.user= lib/puppet/defaults.rb
#SUBST_SED.user= -e "s|@PUPPET_GROUP@|${PUPPET_GROUP}|g"
#SUBST_SED.user+= -e "s|@PUPPET_USER@|${PUPPET_USER}|g"
#
#PKG_GROUPS_VARS= PUPPET_GROUP
#PKG_USERS_VARS= PUPPET_USER
#
#PKG_GROUPS= ${PUPPET_GROUP}
#PKG_USERS= ${PUPPET_USER}:${PUPPET_GROUP}
#PKG_GECOS.${PUPPET_USER}= Puppet configuration management pseudo-user
PLIST_SUBST+= EGDIR=${EGDIR}
PLIST_VARS+= sunos
BUILD_DEFS+= VARBASE
INSTALLATION_DIRS+= ${EGDIR}
.include "../../mk/bsd.prefs.mk"
#PUPPET_GROUP?= puppet
#PUPPET_USER?= puppet
.if ${OPSYS} == "SunOS"
INSTALLATION_DIRS+= lib/svc/method ${EGDIR}/svc
CONF_DIRS+= ${VARBASE}/svc/manifest
CONF_FILES+= ${EGDIR}/svc/puppetd.xml ${VARBASE}/svc/manifest/puppetd.xml
CONF_FILES+= ${EGDIR}/svc/puppetmasterd.xml ${VARBASE}/svc/manifest/puppetmasterd.xml
PLIST.sunos= yes
.endif
pre-build:
cd ${WRKSRC} && ${FIND} . -type f -exec ${CHMOD} g-w {} \;
cd ${WRKSRC} && \
${FIND} lib/puppet spec -type f -exec ${CHMOD} -x {} \;
cd ${WRKSRC} && ${RUBY} -Ilib bin/puppet agent \
--confdir=${PKG_SYSCONFDIR:Q} --rundir=${VARBASE:Q}/run \
--genconfig | \
${SED} -e 's/genconfig = true/# genconfig = false/' \
> examples/puppet.conf
post-install:
${INSTALL_DATA} ${WRKSRC}/examples/puppet.conf \
${DESTDIR}${PREFIX}/${EGDIR}
.if ${OPSYS} == "SunOS"
${INSTALL_DATA} ${WRKSRC}/ext/solaris/smf/puppetd.xml \
${DESTDIR}${PREFIX}/${EGDIR}/svc
${INSTALL_DATA} ${WRKSRC}/ext/solaris/smf/puppetmasterd.xml \
${DESTDIR}${PREFIX}/${EGDIR}/svc
${INSTALL_SCRIPT} ${WRKSRC}/ext/solaris/smf/svc-puppetd \
${DESTDIR}${PREFIX}/lib/svc/method
${INSTALL_SCRIPT} ${WRKSRC}/ext/solaris/smf/svc-puppetmasterd \
${DESTDIR}${PREFIX}/lib/svc/method
.endif
.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"