From 1d97b8cc5e1633906d9d113e2574069b5093e5cc Mon Sep 17 00:00:00 2001 From: swills Date: Wed, 15 Jan 2014 17:01:38 +0000 Subject: - Update to 3.4.2 [1] - Remove Ruby 1.9 conditional, as 1.8 is gone. PR: ports/185549 [1] Submitted by: Bartek Rutkowski [1] --- sysutils/puppet/Makefile | 10 +++------- sysutils/puppet/distinfo | 4 ++-- sysutils/puppet/files/patch-ext__rack__config.ru | 13 +++++++++++++ sysutils/puppet/files/patch-ext__rack__files__config.ru | 13 ------------- 4 files changed, 18 insertions(+), 22 deletions(-) create mode 100644 sysutils/puppet/files/patch-ext__rack__config.ru delete mode 100644 sysutils/puppet/files/patch-ext__rack__files__config.ru (limited to 'sysutils') diff --git a/sysutils/puppet/Makefile b/sysutils/puppet/Makefile index 1aca8c430752..511f4fbf4190 100644 --- a/sysutils/puppet/Makefile +++ b/sysutils/puppet/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= puppet -PORTVERSION= 3.3.1 -PORTREVISION= 6 +PORTVERSION= 3.4.2 CATEGORIES= sysutils MASTER_SITES= http://downloads.puppetlabs.com/puppet/ @@ -50,10 +49,8 @@ BROKEN= PACKAGE_ROOT option patch is incompatable with PACKAGE_ORIGIN patch. .if ${PORT_OPTIONS:MPACKAGE_ORIGIN} EXTRA_PATCHES+= ${FILESDIR}/optpatch-package_origin -.if ${RUBY_VER} == 1.9 RUN_DEPENDS+= rubygem-bzip2>=0:${PORTSDIR}/archivers/rubygem-bzip2 .endif -.endif post-patch: @${REINPLACE_CMD} -e "s|/etc/puppet|${ETCDIR}|" \ @@ -69,7 +66,7 @@ post-patch: @${REINPLACE_CMD} -e "s|\$$confdir/ssl|/var/puppet/ssl|" \ ${WRKSRC}/lib/puppet/defaults.rb @${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|" \ - ${WRKSRC}/ext/rack/files/config.ru + ${WRKSRC}/ext/rack/config.ru do-install: @cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} ${RUBY} ${WRKSRC}/install.rb --no-configs --destdir=${STAGEDIR} @@ -93,11 +90,10 @@ post-install: @${FIND} ${STAGEDIR}${RUBY_SITELIBDIR}/${PORTNAME} -type d | ${SORT} -r | \ ${SED} 's,^${STAGEDIR}${PREFIX}/,@dirrm ,' >> ${TMPPLIST} @${MKDIR} ${STAGEDIR}${WWWDIR}/public - ${INSTALL_DATA} ${WRKSRC}/ext/rack/files/config.ru ${STAGEDIR}${WWWDIR} + ${INSTALL_DATA} ${WRKSRC}/ext/rack/config.ru ${STAGEDIR}${WWWDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/ext/rack/files/apache2.conf ${STAGEDIR}${EXAMPLESDIR} .include diff --git a/sysutils/puppet/distinfo b/sysutils/puppet/distinfo index be9543d49e6b..0037caf7f219 100644 --- a/sysutils/puppet/distinfo +++ b/sysutils/puppet/distinfo @@ -1,2 +1,2 @@ -SHA256 (puppet-3.3.1.tar.gz) = 152f9eaa6767c5f6cbd52befff891bd54e074d2f6487a649373da0113c09e284 -SIZE (puppet-3.3.1.tar.gz) = 1896023 +SHA256 (puppet-3.4.2.tar.gz) = 40ad847e7f8f7a2eb2b968280dcc60427de6770710bbdd289b8bd7d1ced69210 +SIZE (puppet-3.4.2.tar.gz) = 1951200 diff --git a/sysutils/puppet/files/patch-ext__rack__config.ru b/sysutils/puppet/files/patch-ext__rack__config.ru new file mode 100644 index 000000000000..505fac04bbe6 --- /dev/null +++ b/sysutils/puppet/files/patch-ext__rack__config.ru @@ -0,0 +1,13 @@ +--- ./ext/rack/config.ru.orig 2013-12-20 16:47:22.876896492 +0000 ++++ ./ext/rack/config.ru 2013-12-20 16:47:33.826895721 +0000 +@@ -14,8 +14,8 @@ + # Rack applications typically don't start as root. Set --confdir and --vardir + # to prevent reading configuration from ~puppet/.puppet/puppet.conf and writing + # to ~puppet/.puppet +-ARGV << "--confdir" << "/etc/puppet" +-ARGV << "--vardir" << "/var/lib/puppet" ++ARGV << "--confdir" << "%%PREFIX%%/etc/puppet" ++ARGV << "--vardir" << "/var/puppet" + + # NOTE: it's unfortunate that we have to use the "CommandLine" class + # here to launch the app, but it contains some initialization logic diff --git a/sysutils/puppet/files/patch-ext__rack__files__config.ru b/sysutils/puppet/files/patch-ext__rack__files__config.ru deleted file mode 100644 index 135f279ca1e5..000000000000 --- a/sysutils/puppet/files/patch-ext__rack__files__config.ru +++ /dev/null @@ -1,13 +0,0 @@ ---- ./ext/rack/files/config.ru.orig 2013-12-20 16:47:22.876896492 +0000 -+++ ./ext/rack/files/config.ru 2013-12-20 16:47:33.826895721 +0000 -@@ -14,8 +14,8 @@ - # Rack applications typically don't start as root. Set --confdir and --vardir - # to prevent reading configuration from ~puppet/.puppet/puppet.conf and writing - # to ~puppet/.puppet --ARGV << "--confdir" << "/etc/puppet" --ARGV << "--vardir" << "/var/lib/puppet" -+ARGV << "--confdir" << "%%PREFIX%%/etc/puppet" -+ARGV << "--vardir" << "/var/puppet" - - # NOTE: it's unfortunate that we have to use the "CommandLine" class - # here to launch the app, but it contains some initialization logic -- cgit