--- pe-ruby-stomp-1.2.9.orig/debian/changelog
+++ pe-ruby-stomp-1.2.9/debian/changelog
@@ -0,0 +1,35 @@
+pe-ruby-stomp (1.2.9-1puppet2) lucid squeeze precise wheezy; urgency=low
+
+  * Repackage stomp as a library and rename to pe-ruby-stomp
+
+ -- Moses Mendoza <moses@puppetlabs.com>  Thu, 09 Apr 2013 15:59:28 +0000
+
+pe-rubygem-stomp (1.2.9-1puppet1) lucid squeeze precise wheezy; urgency=low
+
+  * Update to stomp 1.2.9
+
+ -- Matthaus Owens <matthaus@puppetlabs.com>  Fri, 12 Apr 2013 04:42:28 +0000
+
+pe-rubygem-stomp (1.2.3-1puppet1.1.9) lucid squeeze precise wheezy; urgency=low
+
+  * 'Update' stomp gem to 1.1.9
+
+ -- Matthaus Owens <matthaus@puppetlabs.com>  Wed, 03 Apr 2013 18:48:25 +0000
+
+pe-rubygem-stomp (1.2.3-1puppet1) precise lenny lucid squeeze; urgency=low
+
+  * Update stomp gem to 1.2.3
+
+ -- Moses Mendoza <moses@puppetlabs.com>  Sat, 23 Jun 2012 13:31:37 -0800
+
+pe-rubygem-stomp (1.1.9-1puppet2) precise lenny lucid squeeze; urgency=low
+
+  * Patch gem to specify SSLv3 connection explicitly, add precise to dist list.
+
+ -- Moses Mendoza <moses@puppetlabs.com>  Thu, 19 Apr 2012 17:36:37 -0800
+
+pe-rubygem-stomp (1.1.9-1puppet1) lenny lucid squeeze; urgency=low
+
+  * Package the stomp GEM for Debian.
+
+ -- Micheal Stahnke <stahnma@puppetlabs.com>  Mon, 25 Jul 2011 19:03:37 -0800
--- pe-ruby-stomp-1.2.9.orig/debian/rmshebang.sh
+++ pe-ruby-stomp-1.2.9/debian/rmshebang.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+target_dir=$1
+for f in `find "$target_dir" -name '*.rb' -type f 2>/dev/null`
+do
+  sed -e '1,1{
+    /^#!/d
+  }' < $f > $f.tmp
+  if ! cmp $f $f.tmp >/dev/null
+  then
+      mv -f $f.tmp $f
+  else
+      rm -f $f.tmp
+  fi
+done
--- pe-ruby-stomp-1.2.9.orig/debian/docs
+++ pe-ruby-stomp-1.2.9/debian/docs
@@ -0,0 +1,5 @@
+CHANGELOG.rdoc
+examples
+LICENSE
+README.rdoc
+Rakefile
--- pe-ruby-stomp-1.2.9.orig/debian/lintian-overrides
+++ pe-ruby-stomp-1.2.9/debian/lintian-overrides
@@ -0,0 +1,5 @@
+pe-ruby-stomp binary: dir-or-file-in-opt opt/puppet/*
+pe-ruby-stomp binary: wrong-path-for-interpreter opt/puppet/bin/catstomp (#!/opt/puppet/bin/ruby != /usr/bin/ruby)
+pe-ruby-stomp binary: ruby-script-but-no-ruby-dep opt/puppet/bin/catstomp
+pe-ruby-stomp binary: wrong-path-for-interpreter opt/puppet/bin/stompcat (#!/opt/puppet/bin/ruby != /usr/bin/ruby)
+pe-ruby-stomp binary: ruby-script-but-no-ruby-dep opt/puppet/bin/stompcat
--- pe-ruby-stomp-1.2.9.orig/debian/control
+++ pe-ruby-stomp-1.2.9/debian/control
@@ -0,0 +1,18 @@
+Source: pe-ruby-stomp
+Section: ruby
+Priority: optional
+Maintainer: Puppet Labs <info@puppetlabs.com>
+Uploaders: Puppet Labs <info@puppetlabs.com>
+Build-Depends: cdbs, debhelper (>> 7)
+Build-Depends-Indep: pe-ruby
+Standards-Version: 3.8.4
+Homepage: http://stomp.codehaus.org/Ruby+Client
+
+Package: pe-ruby-stomp
+Architecture: all
+Depends: ${shlibs:Depends}, ${misc:Depends}, pe-ruby
+Conflicts: pe-rubygem-stomp, pe-rubygem-stomp-doc
+Replaces: pe-rubygem-stomp, pe-rubygem-stomp-doc
+Provides: pe-rubygem-stomp
+Description: Ruby client for the Stomp messaging protocol
+  Client implements stomp
--- pe-ruby-stomp-1.2.9.orig/debian/fixshebang.sh
+++ pe-ruby-stomp-1.2.9/debian/fixshebang.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+for target_dir in $@
+do
+  for f in `find "$target_dir" -type f 2>/dev/null`
+  do
+    textflag=0
+    filetype="`file -b $f`"
+    for ft in $filetype
+    do
+      if [ "${#ft}" -lt 4 ]
+      then
+        continue
+      fi
+      if [ "${ft:0:4}" == "text" ]
+      then
+        textflag=1
+        break
+      fi 
+    done
+
+    if [ "$textflag" -eq 0 ]
+    then
+      continue
+    fi
+
+    cp -pf $f $f.tmp
+    sed -e '1,1s,^#![ 	]*\([^ 	]*\)/\(ruby\|env ruby\)$,#!/opt/puppet/bin/ruby,' \
+        -e '1,1s,^#![ 	]*\([^ 	]*\)/\(wish\|perl\)$,#!/usr/bin/\2,' < $f > $f.tmp
+    if ! cmp $f $f.tmp >/dev/null
+    then
+        mv -f $f.tmp $f
+    else
+        rm -f $f.tmp
+    fi
+  done
+done
--- pe-ruby-stomp-1.2.9.orig/debian/rules
+++ pe-ruby-stomp-1.2.9/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/buildcore.mk
+
+version = 1.2.9
+pe_prefix = opt/puppet
+name=stomp
+
+RUBY = /opt/puppet/bin/ruby
+
+bin_dir = $(pe_prefix)/bin
+ruby_sitelib = $(shell $(RUBY) -e 'puts RbConfig::CONFIG["sitelibdir"]' 2> /dev/null)
+
+DEB_INSTALL_DIRS += $(pe_prefix)/bin
+DEB_INSTALL_DIRS += $(pe_prefix)/lib
+
+binary-install/pe-ruby-stomp::
+	mkdir -p $(CURDIR)/debian/$(cdbs_curpkg)/$(bin_dir)
+	mkdir -p $(CURDIR)/debian/$(cdbs_curpkg)/$(ruby_sitelib)
+	cp -r lib/* $(CURDIR)/debian/$(cdbs_curpkg)/$(ruby_sitelib)
+	cp -r bin/* $(CURDIR)/debian/$(cdbs_curpkg)/$(bin_dir)
+
+binary-post-install/pe-ruby-stomp::
+	bash $(CURDIR)/debian/fixshebang.sh \
+			'$(CURDIR)/debian/$(cdbs_curpkg)/$(bin_dir)'
+	sh $(CURDIR)/debian/rmshebang.sh \
+	    '$(CURDIR)/debian/$(cdbs_curpkg)/$(ruby_sitelib)'
+clean::
+
--- pe-ruby-stomp-1.2.9.orig/debian/gbp.conf
+++ pe-ruby-stomp-1.2.9/debian/gbp.conf
@@ -0,0 +1,29 @@
+[DEFAULT]
+snapshot-number = os.popen("git-log --pretty=oneline | wc -l").readlines()[0]
+postbuild = lintian --suppress-tags bad-distribution-in-changes-file,multiple-distributions-in-changes-file $GBP_CHANGES_FILE
+# tell git-buildpackage howto clean the source tree
+cleaner = fakeroot debian/rules clean
+# this is how we invoke pbuilder, arguments passed to git-buildpackage will be
+# passed to dpkg-buildpackge in the chroot
+pbuilder = True
+# Sign tags by default:
+sign-tags = True
+#keyid = 0x3f3e6426
+# use pristine tar by defaul
+pristine-tar = False
+
+
+[git-dch]
+git-log=--no-merges
+# Parse meta tags like Closes: from commit messages
+meta = True
+# Add seven digits of the commits sha1 to the commit message
+id-length = 7
+# Regex for matching bugs to close
+meta-closes = Closes|LP|BZ
+# Ignore these in commit messages
+ignore-regex = (Signed-off|Acked)-by:
+
+[git-import-orig]
+# Automatically forward the changelog after importing a new upstream version
+postimport = git-dch -N%(version)s -S -a --debian-branch=$GBP_BRANCH
--- pe-ruby-stomp-1.2.9.orig/debian/compat
+++ pe-ruby-stomp-1.2.9/debian/compat
@@ -0,0 +1 @@
+7
--- pe-ruby-stomp-1.2.9.orig/debian/copyright
+++ pe-ruby-stomp-1.2.9/debian/copyright
@@ -0,0 +1,7 @@
+This package was debianized by Michael Stahnke <stahnma@puppetlabs.com> on
+Tue, 26 Jul 2011 09:30:16 -0700
+
+It was downloaded from the Ruby GEMS system.
+
+
+License: Apache-2.0
