Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Aug 2017 13:35:41 +0000 (UTC)
From:      =?UTF-8?Q?Romain_Tarti=c3=a8re?= <romain@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r447830 - in head/sysutils/puppet4: . files
Message-ID:  <201708121335.v7CDZfN4093416@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: romain
Date: Sat Aug 12 13:35:40 2017
New Revision: 447830
URL: https://svnweb.freebsd.org/changeset/ports/447830

Log:
  Update to 4.10.6
  
  - Ensure an UTF-8 locale is used to avoid problems with facter;
  - Ensure /usr/local/bin is in $PATH when puppet runs;
  - Update conflicts (remove old ones and register a new one for the upcomming
    puppet5);
  
  With hat:	puppet

Modified:
  head/sysutils/puppet4/Makefile
  head/sysutils/puppet4/distinfo
  head/sysutils/puppet4/files/puppet.in

Modified: head/sysutils/puppet4/Makefile
==============================================================================
--- head/sysutils/puppet4/Makefile	Sat Aug 12 13:21:07 2017	(r447829)
+++ head/sysutils/puppet4/Makefile	Sat Aug 12 13:35:40 2017	(r447830)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	puppet
-PORTVERSION=	4.10.4
+PORTVERSION=	4.10.6
 CATEGORIES=	sysutils
 MASTER_SITES=	http://downloads.puppetlabs.com/puppet/
 PKGNAMESUFFIX=	4
@@ -20,7 +20,7 @@ RUN_DEPENDS=	rubygem-hiera>=2.0:sysutils/rubygem-hiera
 
 USES=		cpe
 CPE_VENDOR=	puppetlabs
-CONFLICTS_INSTALL=	puppet38-* puppet37-*
+CONFLICTS_INSTALL=	puppet5-*
 NO_ARCH=	yes
 NO_BUILD=	yes
 USE_RUBY=	yes
@@ -75,7 +75,7 @@ post-patch:
 		${WRKSRC}/ext/rack/config.ru
 
 do-install:
-	@cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} ${RUBY} ${WRKSRC}/install.rb --no-configs --destdir=${STAGEDIR} \
+	@cd ${WRKSRC} && ${SETENV} PREFIX=${PREFIX} LC_ALL=C.UTF-8 ${RUBY} ${WRKSRC}/install.rb --no-configs --destdir=${STAGEDIR} \
 		--localedir=/var/puppet/share/locales
 
 post-install:
@@ -83,7 +83,7 @@ post-install:
 	${MKDIR} ${STAGEDIR}${ETCDIR}/modules
 	${MKDIR} ${STAGEDIR}/var/puppet
 	${INSTALL_DATA} ${WRKSRC}/conf/auth.conf ${STAGEDIR}${ETCDIR}/auth.conf-dist
-	${RUBY} -I ${STAGEDIR}/${RUBY_SITELIBDIR} ${STAGEDIR}${PREFIX}/bin/puppet agent --genconfig \
+	${SETENV} LC_ALL=C.UTF-8 ${RUBY} -I ${STAGEDIR}/${RUBY_SITELIBDIR} ${STAGEDIR}${PREFIX}/bin/puppet agent --genconfig \
 		--confdir=${ETCDIR} \
 		--rundir=/var/run/puppet \
 		--vardir=/var/puppet \

Modified: head/sysutils/puppet4/distinfo
==============================================================================
--- head/sysutils/puppet4/distinfo	Sat Aug 12 13:21:07 2017	(r447829)
+++ head/sysutils/puppet4/distinfo	Sat Aug 12 13:35:40 2017	(r447830)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1498495069
-SHA256 (puppet-4.10.4.tar.gz) = 59b8510ddf2f49342a39ccbe26bc7b2ea5e16d79de9dd572d929de58967aab90
-SIZE (puppet-4.10.4.tar.gz) = 2968202
+TIMESTAMP = 1502442267
+SHA256 (puppet-4.10.6.tar.gz) = 19250a3659339961953d48d71aa5951d52bcee3bac0a1e2f45042aa82fcf358a
+SIZE (puppet-4.10.6.tar.gz) = 2977099

Modified: head/sysutils/puppet4/files/puppet.in
==============================================================================
--- head/sysutils/puppet4/files/puppet.in	Sat Aug 12 13:21:07 2017	(r447829)
+++ head/sysutils/puppet4/files/puppet.in	Sat Aug 12 13:35:40 2017	(r447830)
@@ -30,4 +30,20 @@ unset puppet_flags
 pidfile="${puppet_rundir}/agent.pid"
 start_precmd="install -d -o puppet -g puppet ${pidfile%/*}"
 
+PATH="${PATH}:/usr/local/bin"
+
+# An UTF-8 locale is required
+: LC_ALL=${LC_ALL:=C.UTF-8}
+case $LC_ALL in
+    *.UTF-8)
+	;;
+    *.*)
+	LC_ALL="${LC_ALL%.*}.UTF-8"
+	;;
+    *)
+	LC_ALL=C.UTF-8
+	;;
+esac
+export LC_ALL
+
 run_rc_command "$1"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708121335.v7CDZfN4093416>