--- esteidutil-0.9.18.orig/debian/compat
+++ esteidutil-0.9.18/debian/compat
@@ -0,0 +1 @@
+5
--- esteidutil-0.9.18.orig/debian/control
+++ esteidutil-0.9.18/debian/control
@@ -0,0 +1,19 @@
+Source: esteidutil
+Section: utils
+Priority: optional
+Maintainer: Kaido Kert <kaidokert@gmail.com>
+Build-Depends: debhelper (>= 5), autotools-dev, libwxgtk2.8-dev (> 2.8.3) | libwxgtk2.6-dev ( > 2.6.2),libpcsclite-dev,libssl-dev,netpbm,docbook-to-man,pkg-config
+Standards-Version: 3.8.0
+
+Package: esteidutil
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Suggests: libopensc2,libengine-pkcs11-openssl,libssl0.9.8,pcscd
+Description: EstEID smartcard management tool
+ Estonian national ID Card management GUI tool.
+ The functions it provides are:
+  * Card data reading and viewing
+  * Certificate management
+  * PIN management
+  * Smartcard subsystem diagnostics
+  * Testing the authentication functionality
--- esteidutil-0.9.18.orig/debian/copyright
+++ esteidutil-0.9.18/debian/copyright
@@ -0,0 +1,9 @@
+This package was debianized by Kaido Kert <kaidokert@gmail.com> on
+Tue, 27 Nov 2007 08:26:28 +0200.
+
+It was downloaded from http://esteidutil.sourceforge.net/
+
+Copyright: Kaido Kert 2007 kaidokert@gmail.com 
+
+This software is under a BSD Licence
+( See /usr/share/common-licenses/BSD )
--- esteidutil-0.9.18.orig/debian/rules
+++ esteidutil-0.9.18/debian/rules
@@ -0,0 +1,107 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	docbook-to-man debian/esteidutil.sgml > esteidutil.1
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+
+	# Add here commands to clean up after the build process.
+	[ ! -f Makefile ] || $(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/esteidutil.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/esteidutil
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs --exclude=COPYING
+	dh_installexamples
+#	dh_install
+	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_python
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman esteidutil.1
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
--- esteidutil-0.9.18.orig/debian/watch
+++ esteidutil-0.9.18/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/esteidutil/esteidutil-(\d+.*)\.tar\.gz
--- esteidutil-0.9.18.orig/debian/docs
+++ esteidutil-0.9.18/debian/docs
@@ -0,0 +1,2 @@
+NEWS
+README
--- esteidutil-0.9.18.orig/debian/menu
+++ esteidutil-0.9.18/debian/menu
@@ -0,0 +1,3 @@
+?package(esteidutil):needs="X11" section="Applications/System/Security"\
+  title="EsteidUtil" command="esteidutil" \
+  icon="/usr/share/pixmaps/esteidutil.xpm" hints="Utilities,Tools,KDE"
--- esteidutil-0.9.18.orig/debian/changelog
+++ esteidutil-0.9.18/debian/changelog
@@ -0,0 +1,34 @@
+esteidutil (0.9.18-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Added missing #include to src/utility/opensslObj.h, fixes
+    FTBFS with gcc4.4 (Closes: #505420)
+  * debian/watch added
+
+ -- David Paleino <dapal@debian.org>  Mon, 21 Dec 2009 10:44:48 +0100
+
+esteidutil (0.9.18-1) unstable; urgency=low
+
+  * New upstream, fixing camel-case binaries
+  * fixed man page options
+
+ -- Kaido Kert <kaidokert@gmail.com>  Wed, 13 Aug 2008 03:35:35 +0300
+
+esteidutil (0.9.17-3) unstable; urgency=low
+
+  * Include correct orig.tar again
+
+ -- Kaido Kert <kaidokert@gmail.com>  Thu, 31 Jul 2008 18:29:56 +0300
+
+esteidutil (0.9.17-2) unstable; urgency=low
+
+  * Repackaging for wx2.6 (closes: #477267)
+
+ -- Kaido Kert <kaidokert@gmail.com>  Fri, 11 Jul 2008 21:36:59 +0300
+
+esteidutil (0.9.17-1) experimental; urgency=low
+
+  * Initial release (closes: #477267)
+
+ -- Kaido Kert <kaidokert@gmail.com>  Sun, 27 Apr 2008 11:14:48 +0300
+
--- esteidutil-0.9.18.orig/debian/esteidutil.sgml
+++ esteidutil-0.9.18/debian/esteidutil.sgml
@@ -0,0 +1,130 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+	docbook-to-man $< > $@
+
+    
+	The docbook-to-man binary is found in the docbook-to-man package.
+	Please remember that if you create the nroff version in one of the
+	debian/rules file targets (such as build), you will need to include
+	docbook-to-man in your Build-Depends control field.
+
+  -->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Kaido</firstname>">
+  <!ENTITY dhsurname   "<surname>Kert</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>November 27, 2007</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>kaidokert@gmail.com</email>">
+  <!ENTITY dhusername  "Kaido Kert">
+  <!ENTITY dhucpackage "<refentrytitle>ESTEIDUTIL</refentrytitle>">
+  <!ENTITY dhpackage   "esteidutil">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2007</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose>EstEID smartcard management tool</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg><option>-h <replaceable>help message</replaceable></option></arg>
+
+      <arg><option>--verbose <replaceable>verbose logging</replaceable></option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+    <para>The <command>&dhpackage;</command> is a Estonian national ID Card 
+	management GUI tool.</para>
+
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+
+    <para>These programs follow the usual &gnu; command line syntax,
+      with long options starting with two dashes (`-').  A summary of
+      options is included below.  For a complete description, see the
+      <application>Info</application> files.</para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>-h</option>
+          <option>--help</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>-v</option>
+          <option>--verbose</option>
+        </term>
+        <listitem>
+          <para>generate verbose log messages.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+
+    <para>opensc-tool (1), pkcs11-tool (1).</para>
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+
+
