--- ripole-0.2.0+20081101.0215.orig/debian/control
+++ ripole-0.2.0+20081101.0215/debian/control
@@ -0,0 +1,17 @@
+Source: ripole
+Section: utils
+Priority: optional
+Maintainer: Adam Cécile (Le_Vert) <gandalf@le-vert.net>
+Build-Depends: debhelper (>= 5), dpatch
+Standards-Version: 3.8.1
+Homepage: http://www.pldaniels.com/ripole/
+
+Package: ripole
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Extract attachments from OLE2 data files (ie, MS Office docs)
+ ripOLE is a small program/library designed to pull out attachments from OLE2
+ data files.
+ .
+ It can handle most of Microsoft Office documents like "doc" (Word),
+ "xls" (Excel) or "ppt" (Powerpoint).
--- ripole-0.2.0+20081101.0215.orig/debian/manpages
+++ ripole-0.2.0+20081101.0215/debian/manpages
@@ -0,0 +1 @@
+debian/ripole.1
--- ripole-0.2.0+20081101.0215.orig/debian/changelog
+++ ripole-0.2.0+20081101.0215/debian/changelog
@@ -0,0 +1,32 @@
+ripole (0.2.0+20081101.0215-1) unstable; urgency=low
+
+  * New upstream release.
+  * Bump Standards-Version.
+  * Update debian/copyrigth.
+  * Fix manpage (hyphen-used-as-minus-sign).
+
+ -- Adam Cécile (Le_Vert) <gandalf@le-vert.net>  Mon, 30 Mar 2009 22:20:47 +0200
+
+ripole (0.2.0+20051231.1055-2) unstable; urgency=low
+
+  * Typo fixes in manpage, thanks to A. Costa (Closes: #470424).
+  * Bump to Standards-Version 3.7.3.
+  * Move homepage to the new dpkg field.
+  * Fix manpage SH NAME section (bad whatis).
+
+ -- Adam Cécile (Le_Vert) <gandalf@le-vert.net>  Tue, 01 Apr 2008 22:24:27 +0200
+
+ripole (0.2.0+20051231.1055-1) unstable; urgency=low
+
+  * New upstream release (latest devel snapshot).
+  * Add 000-Fix_segfault_when_outpath_is_not_set patch, thanks to Walter B.
+    Rasmann (Closes: #435810).
+  * Add dpatch to build-depends to handle patches.
+
+ -- Adam Cécile (Le_Vert) <gandalf@le-vert.net>  Fri, 14 Sep 2007 23:31:30 +0200
+
+ripole (0.2.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #422119).
+
+ -- Adam Cécile (Le_Vert) <gandalf@le-vert.net>  Thu,  3 May 2007 18:27:12 +0200
--- ripole-0.2.0+20081101.0215.orig/debian/copyright
+++ ripole-0.2.0+20081101.0215/debian/copyright
@@ -0,0 +1,48 @@
+This package was debianized by Adam Cécile (Le_Vert) <gandalf@le-vert.net> on
+Thu,  3 May 2007 18:27:12 +0200.
+
+It was downloaded from http://www.pldaniels.com/ripole/
+
+Upstream Author:
+    Paul L Daniels <pldaniels@pldaniels.com>
+
+Copyright:
+    Copyright (C) 2005-2008 Paul L Daniels
+
+License:
+
+    ripOLE is distributed under terms of a 4-clause BSD-license:
+
+    Redistribution and use in source and binary forms, with or
+    without modification, are permitted provided that the
+    following conditions are met:
+
+    * Redistributions of source code must retain the above
+    copyright notice, this list of conditions and the following
+    disclaimer.
+
+    * Redistributions in binary form must reproduce the above
+    copyright notice, this list of conditions and the following
+    disclaimer in the documentation and/or other materials provided
+    with the distribution.
+
+    * Neither the name of the PLD nor the names of its contributors
+    may be used to endorse or promote products derived from this software
+    without specific prior written permission.
+
+    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+    "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+    LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+    FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+    COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+    INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+    BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+    LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+    CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+    LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+    ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+    POSSIBILITY OF SUCH DAMAGE.
+
+The Debian packaging is Copyright (C) 2007-2009 Adam Cécile (Le_Vert)
+<gandalf@le-vert.net> and is licensed under the GPL,
+see `/usr/share/common-licenses/GPL'.
--- ripole-0.2.0+20081101.0215.orig/debian/watch
+++ ripole-0.2.0+20081101.0215/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.pldaniels.com/ripole/ripole-([0-9.]+).tar.gz
--- ripole-0.2.0+20081101.0215.orig/debian/rules
+++ ripole-0.2.0+20081101.0215/debian/rules
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+
+# Dpatch targets
+include /usr/share/dpatch/dpatch.make
+
+CFLAGS = -Wall -g -I.
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+build: build-stamp
+build-stamp: patch-stamp
+	dh_testdir
+	$(MAKE) CFLAGS="$(CFLAGS)"
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	$(MAKE) clean
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	install ripole -D $(CURDIR)/debian/ripole/usr/bin/ripole
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGELOG
+	dh_installdocs
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- ripole-0.2.0+20081101.0215.orig/debian/compat
+++ ripole-0.2.0+20081101.0215/debian/compat
@@ -0,0 +1 @@
+5
--- ripole-0.2.0+20081101.0215.orig/debian/ripole.1
+++ ripole-0.2.0+20081101.0215/debian/ripole.1
@@ -0,0 +1,61 @@
+.TH RIPOLE 1 "May 2007" "Version 0.2.0"
+
+.SH NAME
+ripole - extracts attachments from OLE2 data files (ie, MS Office docs).
+
+.SH SYNOPSIS
+.B ripole
+\-i <ole2_file> \-d <directory> [\-\-save-unknown-streams] [\-\-version|\-V] [\-\-verbose|\-v] [\-\-debug] [\-\-help|\-h]
+
+.SH DESCRIPTION
+.B ripole
+is a small program/library designed to pull out attachments from OLE2 data files.
+
+It can handle most of Microsoft Office documents like "doc" (Word), "xls" (Excel) or "ppt" (Powerpoint).
+
+.SH OPTIONS
+.TP
+.I -i <ole2_file>
+Input OLE2 file (usually any Microsoft Office document).
+.TP
+.I -d <directory>
+Extract attachments to <directory>.
+.TP
+.I --save-unknown-streams
+Extract unknown attachements too.
+.TP
+.I --version, -V
+Print ripOLE version.
+.TP
+.I --verbose, -v
+Print verbose output.
+.TP
+.I --debug
+Print debugging informations.
+.TP
+.I --help, -h
+Show this help.
+
+.SH EXAMPLE
+
+.B ripole
+\-i xam-doc1.doc \-v \-d tmp
+.br
+Decoding filename=short-XAMIME.dat
+.br
+Decoding filename=mp71.exe
+.br
+Decoding filename=MPSetup.exe
+
+.SH SEE ALSO
+
+.B Homepage:
+http://www.pldaniels.com/ripole/
+
+.SH AUTHOR
+
+This manual page was written by Adam Cecile <gandalf@le-vert.net> for the Debian system (but may be used by others).
+
+Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation.
+
+On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
--- ripole-0.2.0+20081101.0215.orig/debian/docs
+++ ripole-0.2.0+20081101.0215/debian/docs
@@ -0,0 +1 @@
+README
--- ripole-0.2.0+20081101.0215.orig/debian/patches/000-Fix_segfault_when_outpath_is_not_set.dpatch
+++ ripole-0.2.0+20081101.0215/debian/patches/000-Fix_segfault_when_outpath_is_not_set.dpatch
@@ -0,0 +1,61 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 000-Fix_segfault_when_outpath_is_not_set.dpatch
+## by Walter B. Rasmann <bs.x.ttp@recursor.net
+##
+## DP: ripOLE just crashes if -d (output directory path) parameter is not set 
+
+diff -U 8 -p ripole-0.2.0/ripole.c ripole-0.2.0-new/ripole.c
+--- ripole-0.2.0/ripole.c	2005-12-12 04:06:21.000000000 +0100
++++ ripole-0.2.0-new/ripole.c	2007-09-17 21:24:38.000000000 +0200
+@@ -38,17 +38,17 @@ static char help[]="ripOLE -i <OLE2 file
+ Comments:
+ 
+ --------------------------------------------------------------------
+ Changes:
+ 
+ \------------------------------------------------------------------*/
+ int ROLE_set_defaults( struct ripOLE_object *role )
+ {
+-	role->outputdir = defaultdir;
++	role->outputdir = strdup(defaultdir);
+ 	role->debug = 0;
+ 	role->verbose = 0;
+ 	role->save_unknown_streams = 0;
+ 	role->inputfile = NULL;
+ 
+ 	return 0;
+ }
+ 
+@@ -69,31 +69,30 @@ Comments:
+ Changes:
+ 
+ \------------------------------------------------------------------*/
+ int ROLE_parse_parameters( struct ripOLE_object *role, int argc, char **argv )
+ {
+ 	int i;
+ 	int result = 0;
+ 
+-	role->outputdir = defaultdir;
+-
+ 	for (i = 1; i < argc; i++)
+ 	{
+ 		if (argv[i][0] == '-')
+ 		{
+ 			switch (argv[i][1])
+ 			{
+ 				case 'i':
+ 					i++;
+ 					role->inputfile = strdup(argv[i]);
+ 					break;
+ 
+ 				case 'd':
+ 					i++;
++					free(role->outputdir);
+ 					role->outputdir = strdup(argv[i]);
+ 					break;
+ 
+ 				case 'v':
+ 					role->verbose = 1;
+ 					break;
+ 
+ 				case 'V':
--- ripole-0.2.0+20081101.0215.orig/debian/patches/00list
+++ ripole-0.2.0+20081101.0215/debian/patches/00list
@@ -0,0 +1 @@
+000-Fix_segfault_when_outpath_is_not_set.dpatch
