aboutsummaryrefslogtreecommitdiff
path: root/sysutils/puppet
diff options
context:
space:
mode:
authorSteve Wills <swills@FreeBSD.org>2011-11-03 15:12:42 +0000
committerSteve Wills <swills@FreeBSD.org>2011-11-03 15:12:42 +0000
commita8cfef08356136a394f113a5f9a24694a6ce476c (patch)
tree1731f1df3dc2107bde0442ab9c10642b8e9b6707 /sysutils/puppet
parent5a1afee1cd1aa43c747e225631147aea4ae257a3 (diff)
downloadports-a8cfef08356136a394f113a5f9a24694a6ce476c.tar.gz
ports-a8cfef08356136a394f113a5f9a24694a6ce476c.zip
Notes
Diffstat (limited to 'sysutils/puppet')
-rw-r--r--sysutils/puppet/Makefile2
-rw-r--r--sysutils/puppet/distinfo4
-rw-r--r--sysutils/puppet/files/optpatch-package_origin31
3 files changed, 17 insertions, 20 deletions
diff --git a/sysutils/puppet/Makefile b/sysutils/puppet/Makefile
index e872624bf331..545dd9075024 100644
--- a/sysutils/puppet/Makefile
+++ b/sysutils/puppet/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= puppet
-PORTVERSION= 2.7.3
+PORTVERSION= 2.7.6
CATEGORIES= sysutils
MASTER_SITES= http://downloads.puppetlabs.com/puppet/
diff --git a/sysutils/puppet/distinfo b/sysutils/puppet/distinfo
index b052150b8d17..04df293fb3cf 100644
--- a/sysutils/puppet/distinfo
+++ b/sysutils/puppet/distinfo
@@ -1,2 +1,2 @@
-SHA256 (puppet-2.7.3.tar.gz) = 39df9b1ffe06c1331f4eba6d21e632acffb7859e4f4b9e2faeddd9b8b685cb09
-SIZE (puppet-2.7.3.tar.gz) = 1710562
+SHA256 (puppet-2.7.6.tar.gz) = aad52b0c212f237578a7606a9d4052ed2bc85d9614589b12da55a7f2aca1bda4
+SIZE (puppet-2.7.6.tar.gz) = 1737653
diff --git a/sysutils/puppet/files/optpatch-package_origin b/sysutils/puppet/files/optpatch-package_origin
index b3a678e1c7a9..3a5e3ad6c0a2 100644
--- a/sysutils/puppet/files/optpatch-package_origin
+++ b/sysutils/puppet/files/optpatch-package_origin
@@ -1,7 +1,5 @@
-diff --git lib/puppet/provider/package/freebsd.rb lib/puppet/provider/package/freebsd.rb
-index e10a20b..7f50e10 100755
---- lib/puppet/provider/package/freebsd.rb
-+++ lib/puppet/provider/package/freebsd.rb
+--- lib/puppet/provider/package/freebsd.rb.orig Thu Nov 3 10:58:56 2011
++++ lib/puppet/provider/package/freebsd.rb Thu Nov 3 10:59:02 2011
@@ -1,37 +1,165 @@
-Puppet::Type.type(:package).provide :freebsd, :parent => :openbsd do
- desc "The specific form of package management on FreeBSD. This is an
@@ -18,22 +16,22 @@ index e10a20b..7f50e10 100755
- :pkgdelete => "/usr/sbin/pkg_delete"
+Puppet::Type.type(:package).provide :freebsd, :parent => Puppet::Provider::Package do
+ include Puppet::Util::Execution
-+
+
+ desc "The specific form of package management on FreeBSD. Resource names must be
+ specified as the port origin: <port_category>/<port_name>."
+
+ commands :pkginfo => "/usr/sbin/pkg_info",
+ :pkgadd => "/usr/sbin/pkg_add",
+ :pkgdelete => "/usr/sbin/pkg_delete"
-
++
confine :operatingsystem => :freebsd
+ defaultfor :operatingsystem => :freebsd
-+
-+ @@lock = Mutex.new
-+ @@ports_index = nil
- def self.listcmd
- command(:pkginfo)
++ @@lock = Mutex.new
++ @@ports_index = nil
++
+ # fix bug in URI::FTP merge method that tries to set typecode
+ # even when other is a string.
+ class URI::FTP
@@ -54,7 +52,11 @@ index e10a20b..7f50e10 100755
+ :pkg_version => pkg_string.split("-")[-1],
+ }
+ end
-+
+
+- if @resource[:source] =~ /\/$/
+- if @resource[:source] =~ /^(ftp|https?):/
+- Puppet::Util::Execution::withenv :PACKAGESITE => @resource[:source] do
+- pkgadd "-r", @resource[:name]
+ def self.unparse_pkg_info(pkg_info)
+ [:pkg_name, :pkg_version].map { |key| pkg_info[key] }.join("-")
+ end
@@ -70,11 +72,7 @@ index e10a20b..7f50e10 100755
+ end
+ origin
+ end
-
-- if @resource[:source] =~ /\/$/
-- if @resource[:source] =~ /^(ftp|https?):/
-- Puppet::Util::Execution::withenv :PACKAGESITE => @resource[:source] do
-- pkgadd "-r", @resource[:name]
++
+ def self.instances
+ packages = []
+ output = pkginfo "-aoQ"
@@ -190,7 +188,7 @@ index e10a20b..7f50e10 100755
end
def query
-@@ -44,7 +172,7 @@ Puppet::Type.type(:package).provide :freebsd, :parent => :openbsd do
+@@ -44,6 +172,7 @@
end
def uninstall
@@ -199,4 +197,3 @@ index e10a20b..7f50e10 100755
+ output.split("\n").each { |pkg_name| pkgdelete([pkg_name]) }
end
end
--