--- smbc-1.2.2.orig/debian/rules
+++ smbc-1.2.2/debian/rules
@@ -0,0 +1,114 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# 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
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	INSTALL_PROGRAM += -s
+endif
+
+config.status: configure
+	dh_testdir
+	# Add here commands to configure the package.
+	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
+					--build=$(DEB_BUILD_GNU_TYPE) \
+					--prefix=/usr \
+					--mandir=\$${prefix}/share/man \
+					--infodir=\$${prefix}/share/info
+
+
+build: build-stamp
+
+build-stamp:  config.status
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE)
+	#/usr/bin/docbook-to-man debian/smbc.sgml > smbc.1
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	rm -f po/ru.gmo
+
+	# 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
+
+	rm -f po/pl.gmo
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/smbc.
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/smbc
+	rm -rf $(CURDIR)/debian/smbc/usr/share/smbc/
+
+
+# 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
+	dh_installexamples
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+#	dh_python
+#	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 
--- smbc-1.2.2.orig/debian/compat
+++ smbc-1.2.2/debian/compat
@@ -0,0 +1 @@
+4
--- smbc-1.2.2.orig/debian/control
+++ smbc-1.2.2/debian/control
@@ -0,0 +1,21 @@
+Source: smbc
+Section: net
+Priority: optional
+Maintainer: Noèl Köthe <noel@debian.org>
+Build-Depends: debhelper (>= 4.0.0), gawk, gettext, libsmbclient-dev (>>3.0.0), libncurses5-dev, libpopt-dev
+Standards-Version: 3.7.3
+Homepage: http://smbc.airm.net/
+
+Package: smbc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: samba-commander - curses based samba network browser
+ Simple Samba Commander is a text mode SMB network commander. In SMBC, you
+ can browse the local network or you can use the search function to find the
+ files. You can also download/upload files and directories or create them
+ both locally and remotely. SMBC has a resume function and supports UTF-8
+ characters.
+ .
+ http://smbc.airm.net/
+ http://sf.net/projects/smbc/
+
--- smbc-1.2.2.orig/debian/watch
+++ smbc-1.2.2/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://sf.net/smbc/smbc-(.+)\.tar\.gz   debian  uupdate
+
--- smbc-1.2.2.orig/debian/dirs
+++ smbc-1.2.2/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/doc
--- smbc-1.2.2.orig/debian/changelog
+++ smbc-1.2.2/debian/changelog
@@ -0,0 +1,142 @@
+smbc (1.2.2-3) unstable; urgency=low
+
+  * acknowledge NMU
+    (Closes: #366580)
+  * fix watch file
+    (closes: #449940)
+  * debian/control update Standards Version
+  * debian/control add Homepage field
+  * fix lintian warnings:
+    - debian-rules-ignores-make-clean-error
+    - copyright-without-copyright-notice
+
+ -- Noèl Köthe <noel@debian.org>  Sun, 23 Mar 2008 13:57:32 +0100
+
+smbc (1.2.2-2.1) unstable; urgency=low
+
+  * NMU: fix AMD64 segfault (iconv wants size_t, not int !)
+    (Closes: #366580)
+
+ -- Vincent Fourmond <fourmond@debian.org>  Thu, 19 Apr 2007 21:41:37 +0200
+
+smbc (1.2.2-2) unstable; urgency=low
+
+  * updated Standards-Version
+  * removing 2. homepage (no smbc there anymore)
+  * fixing manpage with patch from A Costa <agcosta@gis.net>
+    (Thanks!) (Closes: Bug#326128, #326129)
+
+ -- Noèl Köthe <noel@debian.org>  Fri, 15 Sep 2006 20:02:58 +0200
+
+smbc (1.2.2-1) unstable; urgency=low
+
+  * new upstream from 2005-06-29
+  * updated Standards-Version
+  * added watch file
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 04 Jul 2005 20:22:26 +0200
+
+smbc (1.2.1-1) unstable; urgency=medium
+
+  * new upstream from 2005-03-18
+  * fixes segmentation fault in 1.2.0
+    (closes: Bug#302311)
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 11 Apr 2005 18:53:29 +0200
+
+smbc (1.2.0-1) unstable; urgency=low
+
+  * new upstream from 2005-03-17
+
+ -- Noèl Köthe <noel@debian.org>  Fri, 18 Mar 2005 08:39:58 +0100
+
+smbc (1.1.2-1) unstable; urgency=low
+
+  * new upstream from 2005-02-23
+
+ -- Noèl Köthe <noel@debian.org>  Wed, 23 Feb 2005 10:22:23 +0100
+
+smbc (1.1.1-1) unstable; urgency=low
+
+  * new upstream from 2005-02-14
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 14 Feb 2005 23:27:03 +0100
+
+smbc (1.1.0-1) unstable; urgency=low
+
+  * new upstream from 2005-02-10
+
+ -- Noèl Köthe <noel@debian.org>  Sat, 12 Feb 2005 21:08:30 +0100
+
+smbc (1.0.4-1) unstable; urgency=low
+
+  * new upstream from 2005-02-08
+
+ -- Noèl Köthe <noel@debian.org>  Wed, 09 Feb 2005 08:51:22 +0100
+
+smbc (1.0.3-1) unstable; urgency=low
+
+  * new upstream from 2005-02-06
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 07 Feb 2005 14:48:44 +0100
+
+smbc (1.0.1-1) unstable; urgency=low
+
+  * new upstream from 2005-01-01
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 10 Jan 2005 23:31:49 +0100
+
+smbc (1.0.0-1) unstable; urgency=low
+
+  * new upstream from 2004-09-30
+
+ -- Noèl Köthe <noel@debian.org>  Sat, 02 Oct 2004 16:08:42 +0200
+
+smbc (0.9.0-1) unstable; urgency=low
+
+  * new upstream from 2004-08-25
+
+ -- Noèl Köthe <noel@debian.org>  Mon, 13 Sep 2004 20:57:55 +0200
+
+smbc (0.8.3-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Noèl Köthe <noel@debian.org>  Tue, 10 Aug 2004 18:07:58 +0200
+
+smbc (0.8.2-1) unstable; urgency=low
+
+  * new upstream release
+
+ -- Noèl Köthe <noel@debian.org>  Wed, 28 Jul 2004 22:07:16 +0200
+
+smbc (0.8.1-2) unstable; urgency=low
+
+  * documentation were twice in the package and not in the
+    correct directory
+    (closes: Bug#255266)
+
+ -- Noèl Köthe <nk@koethe.net>  Sun, 20 Jun 2004 10:29:51 +0200
+
+smbc (0.8.1-1) unstable; urgency=low
+
+  * new release
+  * fixed problem with --help and -h
+    (closes: Bug#251818)
+
+ -- Noèl Köthe <noel@debian.org>  Sat, 19 Jun 2004 15:06:46 +0200
+
+smbc (0.8.0-1) unstable; urgency=low
+
+  * new upstream release
+  * added missing lib-ncurses5-dev, libpopt-dev dependency
+
+ -- Noèl Köthe <noel@debian.org>  Thu, 27 May 2004 16:47:35 +0200
+
+smbc (0.7.2-1) unstable; urgency=low
+
+  * Initial Release.
+    (closes: Bug#247405)
+
+ -- Noèl Köthe <noel@debian.org>  Fri,  7 May 2004 20:00:14 +0200
+
--- smbc-1.2.2.orig/debian/docs
+++ smbc-1.2.2/debian/docs
@@ -0,0 +1,4 @@
+README
+FAQ
+doc/sample.smbcrc
+
--- smbc-1.2.2.orig/debian/copyright
+++ smbc-1.2.2/debian/copyright
@@ -0,0 +1,13 @@
+This package was debianized
+by Noèl Köthe <noel@debian.org> on Fri,  7 May 2004 20:00:14 +0200.
+
+It was downloaded from https://sf.net/projects/smbc/
+			http://smbc.airm.net/
+
+Upstream Author: Rafal <rafim@data.pl>
+
+Copyright: (C) 2003 - 2005 Rafal Michniewicz
+
+Released under the terms of the GPL; see
+/usr/share/common-licenses/GPL.
+
