--- winexe-1.00.1.orig/debian/rules
+++ winexe-1.00.1/debian/rules
@@ -0,0 +1,87 @@
+#!/usr/bin/make -f
+# 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
+
+# This is the debhelper compatibility version to use.
+export DH_COMPAT=4
+
+CFLAGS = -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+CFLAGS += -O0
+else
+CFLAGS += -O2
+endif
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	cd source4 && ./autogen.sh
+	cd source4 && ./configure
+	cd source4 && make basics idl bin/winexe
+	# --- end custom part for compiling
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	# Add here commands to clean up after the build process.
+	test -f source4/config.status && make -C source4 distclean || true
+	# --- end custom part for cleaning up
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	# Add here commands to install the package
+	# The DESTDIR Has To Be Exactly  /usr/src/packages/BUILD/debian/winexe
+	install -Ds -m 0755 source4/bin/winexe /usr/src/packages/BUILD/debian/winexe/usr/bin/winexe
+	# --- end custom part for installing
+
+# 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_installdebconf
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+	dh_installcron
+	dh_installman
+	dh_installinfo
+#	dh_undocumented
+	dh_installchangelogs
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_makeshlibs
+	dh_installdeb
+#	dh_perl
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- winexe-1.00.1.orig/debian/control
+++ winexe-1.00.1/debian/control
@@ -0,0 +1,9 @@
+Source: winexe
+Section: winexe
+Priority: optional
+Maintainer: Andrzej Hajda <andrzej.hajda@wp.pl>
+
+Package: winexe
+Architecture: any
+Depends: ${shlibs:Depends}
+Description: winexe
--- winexe-1.00.1.orig/debian/changelog
+++ winexe-1.00.1/debian/changelog
@@ -0,0 +1,69 @@
+winexe (1.00.1-1) stable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Tue, 26 Aug 2014 12:32:30 +0000
+
+winexe (1.00.1) stable; urgency=low
+  * Added patch for win8 compatibility. 
+ -- Niko Wenselowski <n.wenselowski@uib.de>  Fri, 23 Jan 2014 10:35:00 +0200
+winexe (1.00) stable; urgency=low
+  * Added --runas-file option. Solved pipe bug. Solved high CPU usage bug.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Thu, 16 Jun 2011 01:05:28 +0200
+winexe (0.91) stable; urgency=low
+  * Samba version upgrade.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Tue, 20 Jul 2010 00:04:44 +0200
+winexe (0.90) stable; urgency=low
+  * Added 64bit version of winexesvc, and option --ostype=0|1|2. Where os type can be(0 - 32bit, 1 - 64bit, 2 - winexe will decide).
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Sat, 22 Nov 2008 00:00:00 +0100
+winexe (0.80) stable; urgency=low
+  * Added --interactive option. winexesvc is replaced only if version differs on more than last digit.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Fri, 26 Oct 2007 00:00:00 +0200
+winexe (0.77) stable; urgency=low
+  * Fixed bug causing winexe crash during service uninstallation.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Thu, 11 Oct 2007 00:00:00 +0200
+winexe (0.76) stable; urgency=low
+  * Service status is checked during service (un)installation. Corrected service installation code(case of deleted winexesvc.exe file).
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Wed, 10 Oct 2007 00:00:00 +0200
+winexe (0.75) stable; urgency=low
+  * Added workaround for delayed pipe handle destruction(error 0x000000E7). Removed token handle leaks in case of error condition.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Mon, 09 Jul 2007 00:00:00 +0200
+winexe (0.74) stable; urgency=low
+  * Added version checking and automatic service reinstallation. Pipe names now depends on ProcessID(should solve issue with unterminated winexe processes).
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Wed, 04 Jul 2007 00:00:00 +0200
+winexe (0.73) stable; urgency=low
+  * Corrected bug in signal handling.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Fri, 29 Jun 2007 00:00:00 +0200
+winexe (0.72) stable; urgency=low
+  * Added winexe INT/TERM signal handling.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Tue, 26 Jun 2007 00:00:00 +0200
+winexe (0.71) stable; urgency=low
+  * Workarounds for win2003sp2 service (re)installation issues. Removed token handle leaks in winexesvc 
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Tue, 22 May 2007 00:00:00 +0200
+winexe (0.7) stable; urgency=low
+  * Making code more pretty. By default commands run on user's account. Added --system - commands run on system account. Added --runas - any user can be impersonated(BEWARE: passwords are sent in clear text). Many changes in winexesvc.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Tue, 25 Jul 2006 00:00:00 +0200
+winexe (0.61) stable; urgency=low
+  * Fixed bug in svcctl.idl. Changed types of 'dependencies' and 'password' params in CreateServiceW.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Fri, 07 Jul 2006 00:00:00 +0200
+winexe (0.6) stable; urgency=low
+  * svcctl.idl cosmetics. Linux code style applied, semi automatic. Removed // style comments. Changed includes <xx.h> to <sys/xx.h>.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Fri, 07 Jul 2006 00:00:00 +0200
+winexe (0.5) stable; urgency=low
+  * Cleaned up winexe/service code. Changed deps in winexe/config.mk. Renamed directory service to winexesvc. STDIN read corrected. async_write serialized - now server should receive input in correct order.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Thu, 06 Jul 2006 00:00:00 +0200
+winexe (0.4) stable; urgency=low
+  * Added dependencies in winexe/config.mk to auto rebuild service. Turned off timeouts - proces do not disconnect after 60sec. Added some debug messages. Removed small leaks in winexesvc.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Sun, 02 Jul 2006 00:00:00 +0200
+winexe (0.3) stable; urgency=low
+  * winexe is fully integrated with smb_build system. Now there is no need to separately compile winexe/service. I have also removed symlink to winexesvc_exe.c, should be cleaner.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Sun, 02 Jul 2006 00:00:00 +0200
+winexe (0.2) stable; urgency=low
+  * Now it works with NT - all pipes are created with security  descriptor allowing admins to open it. Added options --reinstall/--uninstall. Added error messages, cleaned debug messages(-d 1). Some code cleaning. Added 'precompiled' winexe/service/winexesvc_exe.c, for users without  crosscompiler or windows compile enironment.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Sun, 02 Jul 2006 00:00:00 +0200
+winexe (0.1) stable; urgency=low
+  * In winexe dir added link to winexe/service/winexesvc_exe.c.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Sat, 01 Jul 2006 00:00:00 +0200
+winexe (0.0) stable; urgency=low
+  * Initial release.
+ -- Andrzej Hajda <andrzej.hajda@wp.pl>  Fri, 30 Jun 2006 00:00:00 +0200
