--- schedtool-1.2.9.orig/Makefile
+++ schedtool-1.2.9/Makefile
@@ -16,14 +16,12 @@
 clean:
 	rm -f *.o $(TARGET)
 
-distclean: clean unzipman
+distclean: clean
 	rm -f *~ *.s
 
-install: all install-doc zipman
+install: all
 	install -d $(DESTPREFIX)/$(DESTDIR)
 	install -c $(TARGET) $(DESTPREFIX)/$(DESTDIR)
-	install -d $(MANDIR)
-	install -c schedtool.8.gz $(MANDIR)
 
 install-doc:
 	install -d $(DESTPREFIX)/share/doc/schedtool
--- schedtool-1.2.9.orig/schedtool.c
+++ schedtool-1.2.9/schedtool.c
@@ -42,7 +42,9 @@
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/resource.h>
+#define __USE_GNU
 #include <sched.h>
+#undef __USE_GNU
 #include <unistd.h>
 #include <stdint.h>
 
@@ -81,7 +83,7 @@
 #define MODE_AFFINITY	0x4
 #define MODE_EXEC	0x8
 #define MODE_NICE       0x10
-#define VERSION "1.2.8"
+#define VERSION "1.2.9"
 
 /*
  constants are from the O(1)-sched kernel's include/sched.h
--- schedtool-1.2.9.orig/debian/dirs
+++ schedtool-1.2.9/debian/dirs
@@ -0,0 +1 @@
+usr/bin
--- schedtool-1.2.9.orig/debian/changelog
+++ schedtool-1.2.9/debian/changelog
@@ -0,0 +1,30 @@
+schedtool (1.2.9-4~bpo40+1) etch-backports; urgency=low
+
+  * etch backport.
+
+ -- Robert Millan <rmh@aybabtu.com>  Sun, 30 Dec 2007 22:21:27 +0100
+
+schedtool (1.2.9-4) unstable; urgency=low
+
+  * Reword description and fix typo on Con's name
+
+ -- Thibaut VARENE <varenet@debian.org>  Wed, 09 May 2007 01:57:36 +0200
+
+schedtool (1.2.9-3) unstable; urgency=low
+
+  * Did we say "1.2.9"? ;) Fix wrong version string.
+
+ -- Thibaut VARENE <varenet@debian.org>  Fri, 23 Feb 2007 03:43:27 +0100
+
+schedtool (1.2.9-2) unstable; urgency=low
+
+  * Upload to unstable after almost a month in experimental.
+
+ -- Thibaut VARENE <varenet@debian.org>  Tue, 20 Feb 2007 03:20:33 +0100
+
+schedtool (1.2.9-1) experimental; urgency=low
+
+  * Initial release (Closes: #377546)
+
+ -- Thibaut VARENE <varenet@debian.org>  Sat,  6 Jan 2007 23:25:50 +0100
+
--- schedtool-1.2.9.orig/debian/control
+++ schedtool-1.2.9/debian/control
@@ -0,0 +1,27 @@
+Source: schedtool
+Section: utils
+Priority: extra
+Maintainer: Thibaut VARENE <varenet@debian.org>
+Build-Depends: debhelper (>= 5), linux-kernel-headers
+Standards-Version: 3.7.2
+
+Package: schedtool
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Queries/alters process' scheduling policy and CPU affinity
+ Schedtool can query or alter a process' scheduling policy in Linux,
+ specifically assigning SCHED_NORMAL, _FIFO, _RR, _BATCH, _ISO or _IDLEPRIO. It
+ can set static priority for _FIFO and _RR. Setting CPU-affinity and (re)nicing
+ is also possible, making schedtool the definitive interface to Linux scheduler.
+ .
+ It can be used to avoid skips and glitches in A/V applications, to lock
+ processes onto given CPUs on SMP/NUMA systems, which may be beneficial for
+ networking or benchmarks, or to adjust nice-levels of lesser important jobs to
+ maintain a high amount of interactive responsiveness under high load. It is
+ also handy to manage realtime processes.
+ .
+ If you don't know about scheduling policies, you probably don't want to use
+ this program - or learn and read "man sched_setscheduler".
+ .
+ Some supported scheduling policies (such as SCHED_ISO, or SCHED_IDLEPRIO) need
+ a patched kernel (eg. Con Kolivas' -ck patchset).
--- schedtool-1.2.9.orig/debian/watch
+++ schedtool-1.2.9/debian/watch
@@ -0,0 +1,12 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage 
+# <Webpage URL> <string match>
+http://freequaos.host.sk/schedtool/ schedtool-(.*)\.tar\.bz2
+
--- schedtool-1.2.9.orig/debian/compat
+++ schedtool-1.2.9/debian/compat
@@ -0,0 +1 @@
+5
--- schedtool-1.2.9.orig/debian/rules
+++ schedtool-1.2.9/debian/rules
@@ -0,0 +1,97 @@
+#!/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
+
+
+
+
+CFLAGS = -Wall -g -fomit-frame-pointer -s -pipe
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -Os
+endif
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	# Add here commands to configure the package.
+
+	touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+
+	# Add here commands to compile the package.
+	$(MAKE) CFLAGS="$(CFLAGS)"
+
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+
+	# Add here commands to clean up after the build process.
+	-$(MAKE) clean
+
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	# Add here commands to install the package into debian/schedtool.
+	$(MAKE) DESTPREFIX=$(CURDIR)/debian/schedtool/usr install
+
+
+# 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 CHANGES
+	dh_installdocs
+	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 schedtool.8
+	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 configure
--- schedtool-1.2.9.orig/debian/docs
+++ schedtool-1.2.9/debian/docs
@@ -0,0 +1,4 @@
+README
+TODO
+SCHED_DESIGN
+TUNING
--- schedtool-1.2.9.orig/debian/copyright
+++ schedtool-1.2.9/debian/copyright
@@ -0,0 +1,29 @@
+This package was debianized by Thibaut VARENE <varenet@debian.org> on
+Sat,  6 Jan 2007 23:25:50 +0100.
+
+It was downloaded from http://freequaos.host.sk/schedtool/
+
+Upstream Author: Freek <http://freshmeat.net/projects/schedtool>
+
+Copyright: 2002-2006 Freek
+
+License:
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; version 2 of the License.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is (C) 2007, Thibaut VARENE <varenet@debian.org> and
+is licensed under the GPL, see above.
