View | Details | Raw Unified | Return to bug 159670 | Differences between
and this patch

Collapse All | Expand All

(-)puppet/Makefile (-7 / +7 lines)
Lines 6-28 Link Here
6
#
6
#
7
7
8
PORTNAME=	puppet
8
PORTNAME=	puppet
9
PORTVERSION=	2.6.7
9
DISTVERSION=	2.7.3rc1
10
CATEGORIES=	sysutils
10
CATEGORIES=	sysutils
11
MASTER_SITES=	http://www.puppetlabs.com/downloads/puppet/
11
MASTER_SITES=	http://downloads.puppetlabs.com/puppet/
12
12
13
MAINTAINER=	raj@csub.edu
13
MAINTAINER=	raj@csub.edu
14
COMMENT=	A configuration management framework written in Ruby
14
COMMENT=	A configuration management framework written in Ruby
15
15
16
RUN_DEPENDS=	${RUBY_SITELIBDIR}/facter.rb:${PORTSDIR}/sysutils/facter \
16
RUN_DEPENDS=	facter>=0:${PORTSDIR}/sysutils/facter \
17
		rubygem-ruby-augeas>=0:${PORTSDIR}/textproc/rubygem-augeas \
17
		rubygem-ruby-augeas>=0:${PORTSDIR}/textproc/rubygem-augeas
18
		${RUBY_ARCHLIBDIR}/iconv.so:${PORTSDIR}/converters/ruby-iconv
19
18
20
CONFLICTS=	puppet-devel-[0-9]*
19
CONFLICTS=	puppet-devel-[0-9]*
21
20
22
NO_BUILD=	yes
21
NO_BUILD=	yes
23
USE_RUBY=	yes
22
USE_RUBY=	yes
23
USE_RUBY_FEATURES=	iconv
24
USE_RC_SUBR=	puppet puppetmaster
24
USE_RC_SUBR=	puppet puppetmaster
25
PORTDOCS=	CHANGELOG README LICENSE COPYING
25
PORTDOCS=	CHANGELOG LICENSE README.md
26
PORTEXAMPLES=	*
26
PORTEXAMPLES=	*
27
PUPPET_USER:=	puppet
27
PUPPET_USER:=	puppet
28
PUPPET_GROUP:=	${PUPPET_USER}
28
PUPPET_GROUP:=	${PUPPET_USER}
Lines 50-56 RUN_DEPENDS+= rubygem-mongrel>=0:${PORTSDIR}/www/rubygem-mongrel Link Here
50
50
51
.if defined(WITH_PACKAGE_ORIGIN)
51
.if defined(WITH_PACKAGE_ORIGIN)
52
EXTRA_PATCHES+=	${FILESDIR}/optpatch-package_origin
52
EXTRA_PATCHES+=	${FILESDIR}/optpatch-package_origin
53
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/bz2.so:${PORTSDIR}/archivers/ruby-bz2
53
RUN_DEPENDS+=	rubygem-bzip2>=0:${PORTSDIR}/archivers/rubygem-bzip2
54
.endif
54
.endif
55
55
56
.include <bsd.port.pre.mk>
56
.include <bsd.port.pre.mk>
(-)puppet/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (puppet-2.6.7.tar.gz) = 90c0741f66d15716cfd76f0b8cd15f5b867056f0180ba160ce868350c6dd4ddc
1
SHA256 (puppet-2.7.3rc1.tar.gz) = c1d0a08114f94b727b33d18cec60232ae7b48f107fd23495706e0444c5377036
2
SIZE (puppet-2.6.7.tar.gz) = 1530756
2
SIZE (puppet-2.7.3rc1.tar.gz) = 1710547
(-)puppet/files/optpatch-package_origin (-3 / +3 lines)
Lines 1-5 Link Here
1
diff --git lib/puppet/provider/package/freebsd.rb lib/puppet/provider/package/freebsd.rb
1
diff --git lib/puppet/provider/package/freebsd.rb lib/puppet/provider/package/freebsd.rb
2
index e10a20b..f36e29e 100755
2
index e10a20b..7f50e10 100755
3
--- lib/puppet/provider/package/freebsd.rb
3
--- lib/puppet/provider/package/freebsd.rb
4
+++ lib/puppet/provider/package/freebsd.rb
4
+++ lib/puppet/provider/package/freebsd.rb
5
@@ -1,37 +1,165 @@
5
@@ -1,37 +1,165 @@
Lines 11-17 index e10a20b..f36e29e 100755 Link Here
11
-    libraries."
11
-    libraries."
12
+require 'open-uri'
12
+require 'open-uri'
13
+require 'net/ftp'
13
+require 'net/ftp'
14
+require 'bz2'
14
+require 'bzip2'
15
 
15
 
16
-  commands :pkginfo => "/usr/sbin/pkg_info",
16
-  commands :pkginfo => "/usr/sbin/pkg_info",
17
-    :pkgadd => "/usr/sbin/pkg_add",
17
-    :pkgadd => "/usr/sbin/pkg_add",
Lines 99-105 index e10a20b..f36e29e 100755 Link Here
99
+        Puppet.debug "Fetching INDEX: #{uri.inspect}"
99
+        Puppet.debug "Fetching INDEX: #{uri.inspect}"
100
+        begin
100
+        begin
101
+          open(uri, "r") do |f|
101
+          open(uri, "r") do |f|
102
+            BZ2::Reader.open(f.path) do |f|
102
+            Bzip2::Reader.open(f.path) do |f|
103
+              while (line = f.gets)
103
+              while (line = f.gets)
104
+                fields = line.split("|")
104
+                fields = line.split("|")
105
+                pkg_info = self.class.parse_pkg_string(fields[0])
105
+                pkg_info = self.class.parse_pkg_string(fields[0])

Return to bug 159670