libsnmp-ruby (1.0.2-1) debian-dir only changes

Summary

 debian/changelog                         |   45 +++++++++++++++++++++++++++
 debian/compat                            |    1 
 debian/control                           |   26 ++++++++++++++++
 debian/copyright                         |   13 ++++++++
 debian/docs                              |    1 
 debian/patches/avoid_diverting_mibs.diff |   28 +++++++++++++++++
 debian/patches/series                    |    1 
 debian/rules                             |   50 +++++++++++++++++++++++++++++++
 debian/watch                             |    2 +
 9 files changed, 167 insertions(+)

    
download this patch

Patch contents

--- libsnmp-ruby-1.0.2.orig/debian/docs
+++ libsnmp-ruby-1.0.2/debian/docs
@@ -0,0 +1 @@
+README
--- libsnmp-ruby-1.0.2.orig/debian/changelog
+++ libsnmp-ruby-1.0.2/debian/changelog
@@ -0,0 +1,45 @@
+libsnmp-ruby (1.0.2-1) unstable; urgency=low
+
+  * New upstream release.
+  * Switch from dpatch to quilt.
+    + Create avoid_diverting_mibs.diff by refreshing old
+      01_avoid_diverting_mibs.dpatch.
+  * Bump Standards-Version to 3.7.3.
+  * Add the Homepage field and remove it from the long description.
+  * Add the Vcs-Git/Vcs-Browser fields.
+  * Add the DM-Upload-Allowed field.
+
+ -- Aurélien GÉRÔME <ag@roxor.cx>  Thu, 07 Feb 2008 14:03:05 +0100
+
+libsnmp-ruby (1.0.1-1) unstable; urgency=low
+
+  * New maintainer. (Closes: #387550)
+  * New upstream release.
+  * Update Standards-Version to 3.7.2.
+  * Update package description with project homepage.
+  * Use architecture all instead of architecture any. (Closes: #389013)
+  * Add debian/watch file.
+  * Convert to dpatch.
+
+ -- Aurélien GÉRÔME <ag@roxor.cx>  Sun, 15 Oct 2006 19:50:02 +0200
+
+libsnmp-ruby (0.4.1-3) unstable; urgency=low
+
+  * Avoid diverting MIBs.
+  	- Thanks to Brandon Hale <brandon@ubuntu.com>.
+
+ -- David Moreno Garza <damog@debian.org>  Fri, 21 Oct 2005 00:45:22 -0500
+
+libsnmp-ruby (0.4.1-2) unstable; urgency=low
+
+  * Changed maintainer's address.
+  * Updated policy compliant version.
+
+ -- David Moreno Garza <damog@debian.org>  Fri,  2 Sep 2005 13:09:33 -0500
+
+libsnmp-ruby (0.4.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #311003).
+
+ -- David Moreno Garza <damog@damog.net>  Sun, 29 May 2005 15:49:02 -0500
+
--- libsnmp-ruby-1.0.2.orig/debian/watch
+++ libsnmp-ruby-1.0.2/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://rubyforge.org/frs/?group_id=280 .*/snmp-(.*)\.tgz
--- libsnmp-ruby-1.0.2.orig/debian/compat
+++ libsnmp-ruby-1.0.2/debian/compat
@@ -0,0 +1 @@
+4
--- libsnmp-ruby-1.0.2.orig/debian/control
+++ libsnmp-ruby-1.0.2/debian/control
@@ -0,0 +1,26 @@
+Source: libsnmp-ruby
+Section: devel
+Priority: optional
+Maintainer: Aurélien GÉRÔME <ag@roxor.cx>
+Build-Depends: debhelper (>= 4.0.0), quilt, ruby1.8
+Standards-Version: 3.7.3
+Homepage: http://snmplib.rubyforge.org/
+Vcs-Git: git://git.roxor.cx/git/libsnmp-ruby/
+Vcs-Browser: http://git.roxor.cx/?p=libsnmp-ruby
+DM-Upload-Allowed: yes
+
+Package: libsnmp-ruby
+Architecture: all
+Depends: libsnmp-ruby1.8
+Description: simple network management protocol bindings for ruby
+ This library implements SNMP (the Simple Network Management Protocol).
+ It is implemented in pure Ruby, so there are no dependencies on
+ external libraries like net-snmp.
+
+Package: libsnmp-ruby1.8
+Architecture: all
+Depends: ruby (>= 1.8)
+Description: simple network management protocol bindings for ruby 1.8
+ This library implements SNMP (the Simple Network Management Protocol).
+ It is implemented in pure Ruby, so there are no dependencies on
+ external libraries like net-snmp.
--- libsnmp-ruby-1.0.2.orig/debian/copyright
+++ libsnmp-ruby-1.0.2/debian/copyright
@@ -0,0 +1,13 @@
+This package was debianized by David Moreno Garza <damog@damog.net> on
+Sun, 29 May 2005 15:49:02 -0500.
+
+It was downloaded from http://snmplib.rubyforge.org/
+
+Copyright Holder: Dave Halliday <snmp@halliday.ca>
+
+License:
+
+This SNMP Library is Copyright (c) 2004 by David R. Halliday.  It is free
+software.  Redistribution is permitted under the same terms and conditions as
+the standard Ruby distribution.  See the COPYING file in the Ruby distribution
+for details.
--- libsnmp-ruby-1.0.2.orig/debian/rules
+++ libsnmp-ruby-1.0.2/debian/rules
@@ -0,0 +1,50 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; -*-
+# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp install-stamp Makefile *o *log InstalledFiles .config
+	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
+	rm -rf .pc
+	dh_clean
+
+install: install-stamp
+install-stamp: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	ruby1.8 setup.rb all \
+		--prefix=$(CURDIR)/debian/libsnmp-ruby1.8/usr \
+		--siteruby=$(CURDIR)/debian/libsnmp-ruby1.8/usr/lib/ruby \
+		--datadir=$(CURDIR)/debian/libsnmp-ruby1.8/usr/share/doc/libsnmp-ruby1.8/yaml
+	touch install-stamp
+
+binary-arch: build install
+
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_installdocs -i
+	dh_installexamples -i examples/*
+	dh_installchangelogs -i
+	dh_link -i
+	dh_strip -i
+	dh_compress -i -X.rb
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_shlibdeps -i 
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- libsnmp-ruby-1.0.2.orig/debian/patches/series
+++ libsnmp-ruby-1.0.2/debian/patches/series
@@ -0,0 +1 @@
+avoid_diverting_mibs.diff
--- libsnmp-ruby-1.0.2.orig/debian/patches/avoid_diverting_mibs.diff
+++ libsnmp-ruby-1.0.2/debian/patches/avoid_diverting_mibs.diff
@@ -0,0 +1,28 @@
+Index: libsnmp-ruby/lib/snmp/mib.rb
+===================================================================
+--- libsnmp-ruby.orig/lib/snmp/mib.rb	2008-02-07 14:00:39.077871969 +0100
++++ libsnmp-ruby/lib/snmp/mib.rb	2008-02-07 14:00:47.496207626 +0100
+@@ -18,9 +18,7 @@
+ 
+     #:stopdoc:
+     share_path = File.join(Config::CONFIG["datadir"], "ruby", "snmp", "mibs")
+-    data_path = File.expand_path(
+-        File.join(File.dirname(__FILE__), "..", "..", "data", "ruby", "snmp", "mibs")
+-    )
++    data_path = "/usr/share/doc/libsnmp-ruby1.8/yaml/"
+     if (File.exist?(share_path) && File.exist?(data_path))
+         warn "Found two MIB directories:\n  #{share_path}\n  #{data_path}\n" +
+              "Using MIB::DEFAULT_MIB_PATH=#{data_path}"
+Index: libsnmp-ruby/setup.rb
+===================================================================
+--- libsnmp-ruby.orig/setup.rb	2008-02-07 14:00:39.101878629 +0100
++++ libsnmp-ruby/setup.rb	2008-02-07 14:00:47.496207626 +0100
+@@ -1184,7 +1184,7 @@
+   end
+ 
+   def install_dir_data(rel)
+-    install_files collect_filenames_auto(), "#{config('datadir')}/#{rel}", 0644
++    install_files collect_filenames_auto(), "#{config('datadir')}", 0644
+   end
+ 
+   def install_files(list, dest, mode)