Tags: patch

Hello,

in the attachment is a new version of the patch, which includes a updated 
watch file and a manpage. It also gets rid of all lintian warnings.


With best regards,
Julian Wollrath
diff -upNr powertop-1.97/debian/changelog powertop/debian/changelog
--- powertop-1.97/debian/changelog	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/changelog	2012-05-26 17:23:17.617289923 +0200
@@ -1,3 +1,13 @@
+powertop (2.0-0.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * New upstream version (Closes: #667329, #665695, #650063, #667329, #656421)
+  * Almost complete rewrite of the debianization
+  * Add patch fix_libnl_version.patch to fix building with libnl-3-dev
+  * Add minimal manpage (Closes: #564847)
+
+ -- Julian Wollrath <jwollr...@web.de>  Sat, 26 May 2012 16:47:30 +0200
+
 powertop (1.97-2) unstable; urgency=low
 
   * Fix a build failure on ia64
diff -upNr powertop-1.97/debian/compat powertop/debian/compat
--- powertop-1.97/debian/compat	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/compat	2012-05-26 17:23:17.617289923 +0200
@@ -1 +1 @@
-5
+9
diff -upNr powertop-1.97/debian/control powertop/debian/control
--- powertop-1.97/debian/control	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/control	2012-05-26 17:23:17.617289923 +0200
@@ -3,12 +3,13 @@ Section: utils
 Priority: optional
 Maintainer: Patrick Winnertz <win...@debian.org>
 Uploaders: Jose Luis Rivas <ghostba...@gmail.com>
-Build-Depends: cdbs, debhelper (>= 5), libncursesw5-dev, libncurses5-dev, libnl2-dev, pkg-config, libpci-dev
-Standards-Version: 3.9.1
-Homepage: http://www.linuxpowertop.org
+Build-Depends: autopoint, debhelper (>= 9), dh-autoreconf, libncurses5-dev, libncursesw5-dev, libnl-3-dev, libnl-genl-3-dev, libpci-dev, pkg-config, quilt
+Standards-Version: 3.9.3
+Homepage: https://01.org/powertop/
 
 Package: powertop
 Architecture: any
+Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: cpufrequtils, laptop-mode-tools
 Description: Linux tool to find out what is using power on a laptop
diff -upNr powertop-1.97/debian/copyright powertop/debian/copyright
--- powertop-1.97/debian/copyright	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/copyright	2012-05-26 17:23:17.617289923 +0200
@@ -1,33 +1,30 @@
-This package was debianized by Petter Reinholdtsen <p...@hungry.com> on
-Sat May 12 23:22:21 CEST 2007.
-
-It was downloaded from http://www.linuxpowertop.org/download/
-
-Upstream Author: 
-
-    Arjan van de Ven <ar...@linux.intel.com>
-
-Copyright: 
-
-    Copyright 2007 Intel Corporation
-
-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 copyrighted 2007, Petter Reinholdtsen <p...@hungry.com> and
-is licensed under the GPL, see above.
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: PowerTOP
+Upstream-Contact: power...@lists.01.org
+Source: https://01.org/powertop/
+
+Files: *
+Copyright: 2010 Intel Corporation
+License: GPL-2
+
+Files: debian/*
+Copyright: 2007 Petter Reinholdtsen <p...@hungry.com>
+           2012 Julian Wollrath <jwollr...@web.de>
+License: GPL-2
+
+License: GPL-2
+ 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'.
diff -upNr powertop-1.97/debian/install powertop/debian/install
--- powertop-1.97/debian/install	1970-01-01 01:00:00.000000000 +0100
+++ powertop/debian/install	2012-05-26 17:23:17.617289923 +0200
@@ -0,0 +1 @@
+README usr/share/doc/powertop
diff -upNr powertop-1.97/debian/patches/fix_csstoh_on_sparc powertop/debian/patches/fix_csstoh_on_sparc
--- powertop-1.97/debian/patches/fix_csstoh_on_sparc	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/patches/fix_csstoh_on_sparc	1970-01-01 01:00:00.000000000 +0100
@@ -1,13 +0,0 @@
-Index: powertop/csstoh.c
-===================================================================
---- powertop.orig/csstoh.c	2011-03-17 16:16:33.576642103 +0100
-+++ powertop/csstoh.c	2011-03-17 16:16:51.384730406 +0100
-@@ -65,4 +65,6 @@
- 	fprintf(out, "#endif\n");
- 	fclose(out);
- 	fclose(in);
--}
-\ No newline at end of file
-+
-+	return(0);
-+}
diff -upNr powertop-1.97/debian/patches/fix_libnl_version.patch powertop/debian/patches/fix_libnl_version.patch
--- powertop-1.97/debian/patches/fix_libnl_version.patch	1970-01-01 01:00:00.000000000 +0100
+++ powertop/debian/patches/fix_libnl_version.patch	2012-05-26 17:23:17.617289923 +0200
@@ -0,0 +1,11 @@
+--- powertop.orig/configure.ac	2012-05-11 10:34:37.444265028 +0200
++++ powertop/configure.ac	2012-05-12 15:00:10.886684276 +0200
+@@ -56,7 +56,7 @@ PKG_CHECK_MODULES([LIBZ], [zlib],[],[
+ 
+ has_libnl_ver=0
+ PKG_CHECK_MODULES([LIBNL], [libnl-1], [has_libnl_ver=1], [
+-	AC_SEARCH_LIBS([nl_socket_alloc], [nl], [has_libnl_ver=2], [
++	AC_SEARCH_LIBS([nl_socket_alloc], [libnl-2.0], [has_libnl_ver=2], [
+ 		     PKG_CHECK_MODULES([LIBNL], [libnl-3.0 libnl-genl-3.0], [has_libnl_ver=3],
+ 				       [AC_SEARCH_LIBS([nl_socket_alloc], [nl-3 nl-genl-3], [has_libnl_ver=3], [], [])])
+ 	], [])
diff -upNr powertop-1.97/debian/patches/fix_NR_perf_event_open_on_ia64.patch powertop/debian/patches/fix_NR_perf_event_open_on_ia64.patch
--- powertop-1.97/debian/patches/fix_NR_perf_event_open_on_ia64.patch	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/patches/fix_NR_perf_event_open_on_ia64.patch	1970-01-01 01:00:00.000000000 +0100
@@ -1,19 +0,0 @@
-Index: powertop/perf/perf.cpp
-===================================================================
---- powertop.orig/perf/perf.cpp	2011-03-17 15:10:23.496955539 +0100
-+++ powertop/perf/perf.cpp	2011-03-17 15:10:43.861056526 +0100
-@@ -41,6 +41,14 @@
- 
- #include "perf_event.h"
- 
-+/* __NR_perf_event_open in ia64 and alpha is defined elsewhere */
-+#ifdef __ia64__
-+#include <asm-generic/unistd.h>
-+#endif
-+#ifdef __alpha__
-+#include <asm-generic/unistd.h>
-+#endif
-+
- #include "perf.h"
- #include "../lib.h"
- #include "../display.h"
diff -upNr powertop-1.97/debian/patches/fix_prefix_in_manpage.patch powertop/debian/patches/fix_prefix_in_manpage.patch
--- powertop-1.97/debian/patches/fix_prefix_in_manpage.patch	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/patches/fix_prefix_in_manpage.patch	1970-01-01 01:00:00.000000000 +0100
@@ -1,13 +0,0 @@
-diff --git a/Makefile b/Makefile
-index 166a16f..0382fea 100644
---- a/Makefile
-+++ b/Makefile
-@@ -69,7 +69,7 @@ powertop: $(OBJS) $(HEADERS)
- install: powertop
- 	mkdir -p ${DESTDIR}${BINDIR}
- 	cp powertop ${DESTDIR}${BINDIR}
--	mkdir -p ${DESTDIR}${PREFIX}/var/cache/powertop
-+	mkdir -p ${DESTDIR}/var/cache/powertop
- 	@(cd po/ && env LOCALESDIR=$(LOCALESDIR) DESTDIR=$(DESTDIR) $(MAKE) $@)
- 	
- 
diff -upNr powertop-1.97/debian/patches/series powertop/debian/patches/series
--- powertop-1.97/debian/patches/series	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/patches/series	2012-05-26 17:23:17.617289923 +0200
@@ -1,3 +1 @@
-fix_prefix_in_manpage.patch
-fix_NR_perf_event_open_on_ia64.patch
-fix_csstoh_on_sparc
+fix_libnl_version.patch
diff -upNr powertop-1.97/debian/powertop.1 powertop/debian/powertop.1
--- powertop-1.97/debian/powertop.1	1970-01-01 01:00:00.000000000 +0100
+++ powertop/debian/powertop.1	2012-05-26 17:23:17.617289923 +0200
@@ -0,0 +1,45 @@
+.TH POWERTOP "1" "May 26, 2012" "PowerTOP version 2.0"
+.SH NAME
+PowerTOP \- Linux tool to find out what is using power on a laptop
+.SH SYNOPSIS
+.B powertop [OPTIONS]
+.SH DESCRIPTION
+This manual page documents briefly the
+.B powertop
+command.
+.PP
+\fBPowerTOP\fP is a Linux tool that finds the software component(s) that make
+your laptop use more power than necessary while it is idle. As of Linux kernel
+version 2.6.21, the kernel no longer has a fixed 1000Hz timer tick. This will
+(in theory) give a huge power savings because the CPU stays in low power mode
+for longer periods of time during system idle.
+
+However... there are many things that can ruin the party, both inside the
+kernel and in userspace. PowerTOP combines various sources of information from
+the kernel into one convenient screen so that you can see how well your system
+is doing, and which components are the biggest problem.
+.SH OPTIONS
+\fB\-\-debug\fR                  run in "debug" mode
+.P
+\fB\-\-version\fR                print version information
+.P
+\fB\-\-calibrate\fR              runs powertop in calibration mode
+.P
+\fB\-\-extech\fR=\fIdevnode\fR         uses an Extech Power Analyzer for
+measurements
+.P
+\fB\-\-html\fR[=\fIFILENAME\fR]        generate a html report
+.P
+\fB\-\-csv\fR[=\fIFILENAME\fR]         generate a csv report
+.P
+\fB\-\-time\fR[=\fIsecs\fR]            generate a report for 'x' secs
+.P
+\fB\-\-iteration\fR[=\fIiterations\fR] number of times to run each test
+.P
+\fB\-\-help\fR                   print the help
+.SH SEE ALSO
+For more help please refer to the README.
+.PP
+This minimal manual page is based on the output of powertop --help and was
+written by Julian Wollrath <jwollr...@web.de> for the Debian project (and may
+be used by others).
diff -upNr powertop-1.97/debian/powertop.manpages powertop/debian/powertop.manpages
--- powertop-1.97/debian/powertop.manpages	1970-01-01 01:00:00.000000000 +0100
+++ powertop/debian/powertop.manpages	2012-05-26 17:23:17.625289922 +0200
@@ -0,0 +1 @@
+debian/powertop.1
diff -upNr powertop-1.97/debian/rules powertop/debian/rules
--- powertop-1.97/debian/rules	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/rules	2012-05-26 17:23:17.617289923 +0200
@@ -1,8 +1,36 @@
 #!/usr/bin/make -f
 
-include /usr/share/cdbs/1/class/makefile.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
-#include /usr/share/cdbs/1/rules/dpatch.mk
+export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
+export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
+export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
 
-DEB_MAKE_INSTALL_TARGET = install BINDIR=/usr/sbin DESTDIR=`pwd`/debian/powertop
-DEB_MAKE_EXTRA_ARGS = 
+clean:
+	dh clean
+	dh_autoreconf_clean
+	dh_quilt_unpatch
+	rm -rf debian/powertop.debhelper.log
+
+configure:
+	dh_testdir
+	dh_quilt_patch
+	dh_autoreconf
+	dh_auto_configure
+
+build: configure build-arch build-indep
+
+build-arch: build-stamp
+
+build-indep: build-stamp
+
+build-stamp:
+	dh_auto_build
+	dh_auto_test
+
+binary:
+	dh binary
+
+binary-arch:
+	dh binary-arch
+
+binary-indep:
+	dh binary-indep
diff -upNr powertop-1.97/debian/watch powertop/debian/watch
--- powertop-1.97/debian/watch	2011-03-17 16:25:01.000000000 +0100
+++ powertop/debian/watch	2012-05-26 17:23:17.617289923 +0200
@@ -1,2 +1,2 @@
 version=3
-http://www.kernel.org/pub/linux/status/powertop/powertop-([\d\.]*).tar.gz
+https://01.org/powertop/downloads https://01.org/powertop/sites/default/files/downloads/powertop-([\d\.]*).tar.bz2

Reply via email to