]> git.proxmox.com Git - mirror_smartmontools-debian.git/commitdiff
switch from dpatch to quilt
authorGuido Guenther <agx@sigxcpu.org>
Mon, 19 Mar 2007 21:51:07 +0000 (22:51 +0100)
committerGuido Guenther <agx@bogon.sigxcpu.org>
Mon, 19 Mar 2007 21:51:07 +0000 (22:51 +0100)
14 files changed:
debian/changelog
debian/control
debian/patches/00list [deleted file]
debian/patches/01_add-kfreebsd-support.diff [new file with mode: 0644]
debian/patches/02_remove-pragma.diff [new file with mode: 0644]
debian/patches/02_remove-pragma.dpatch [deleted file]
debian/patches/03_use-smartd-runner-by-default.diff [new file with mode: 0644]
debian/patches/03_use-smartd-runner-by-default.dpatch [deleted file]
debian/patches/04_remove-Id-from-smartd.conf.diff [new file with mode: 0644]
debian/patches/04_remove-Id-from-smartd.conf.dpatch [deleted file]
debian/patches/10_remove-redhatism.diff [new file with mode: 0644]
debian/patches/10_remove-redhatism.dpatch [deleted file]
debian/patches/series [new file with mode: 0644]
debian/rules

index a677558ba78551000d1f9217057f8a28fef6e3cd..eefd69121595c7c99baf09c8f60e9bd3cb70c83e 100644 (file)
@@ -1,3 +1,10 @@
+smartmontools (5.37-2) unstable; urgency=low
+
+  * UNRELEASED
+  * switch from dpatch to quilt 
+
+ -- Guido Guenther <agx@sigxcpu.org>  Mon, 19 Mar 2007 22:08:40 +0100
+
 smartmontools (5.37-1) unstable; urgency=low
 
   * New Upstream Version
index f258d657d8dcad079a385992d65440e44f4e1fcb..b2e03ec0382f60ec6d0c1f3ddb2a8c956c5b5393 100644 (file)
@@ -2,7 +2,7 @@ Source: smartmontools
 Section: utils
 Priority: optional
 Maintainer: Guido Guenther <agx@sigxcpu.org>
-Build-Depends: debhelper (>= 4), dpatch, libcam-dev [kfreebsd-i386 kfreebsd-amd64], automake1.9, autoconf
+Build-Depends: debhelper (>= 4), quilt, libcam-dev [kfreebsd-i386 kfreebsd-amd64], automake1.9, autoconf
 Standards-Version: 3.7.2
 
 Package: smartmontools
diff --git a/debian/patches/00list b/debian/patches/00list
deleted file mode 100755 (executable)
index 555746e..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-01_add-kfreebsd-support
-02_remove-pragma
-03_use-smartd-runner-by-default
-04_remove-Id-from-smartd.conf
-10_remove-redhatism
-#60_cciss
diff --git a/debian/patches/01_add-kfreebsd-support.diff b/debian/patches/01_add-kfreebsd-support.diff
new file mode 100644 (file)
index 0000000..7524084
--- /dev/null
@@ -0,0 +1,13 @@
+Index: smartmontools/configure.in
+===================================================================
+--- smartmontools.orig/configure.in    2007-03-19 21:44:06.000000000 +0100
++++ smartmontools/configure.in 2007-03-19 21:55:37.000000000 +0100
+@@ -135,7 +135,7 @@
+       *-*-linux*)
+               AC_SUBST([os_deps], ['os_linux.o']) 
+               AC_SUBST([os_libs], ['']) ;;
+-      *-*-freebsd*)
++      *-*-freebsd* | *-*-kfreebsd*-gnu)
+               AC_SUBST([os_deps], ['os_freebsd.o']) 
+               AC_SUBST([os_libs], ['-lcam']);;
+       sparc-*-solaris*) 
diff --git a/debian/patches/02_remove-pragma.diff b/debian/patches/02_remove-pragma.diff
new file mode 100644 (file)
index 0000000..8f1f7ef
--- /dev/null
@@ -0,0 +1,124 @@
+Index: smartmontools/atacmds.h
+===================================================================
+--- smartmontools.orig/atacmds.h       2007-03-19 21:44:06.000000000 +0100
++++ smartmontools/atacmds.h    2007-03-19 21:55:37.000000000 +0100
+@@ -105,7 +105,6 @@
+ // Needed parts of the ATA DRIVE IDENTIFY Structure. Those labeled
+ // word* are NOT used.
+-#pragma pack(1)
+ struct ata_identify_device {
+   unsigned short words000_009[10];
+   unsigned char  serial_no[20];
+@@ -127,7 +126,6 @@
+ ASSERT_SIZEOF_STRUCT(ata_identify_device, 512);
+ /* ata_smart_attribute is the vendor specific in SFF-8035 spec */ 
+-#pragma pack(1)
+ struct ata_smart_attribute {
+   unsigned char id;
+   // meaning of flag bits: see MACROS just below
+@@ -187,7 +185,6 @@
+ /* ata_smart_values is format of the read drive Attribute command */
+ /* see Table 34 of T13/1321D Rev 1 spec (Device SMART data structure) for *some* info */
+-#pragma pack(1)
+ struct ata_smart_values {
+   unsigned short int revnumber;
+   struct ata_smart_attribute vendor_attributes [NUMBER_ATA_SMART_ATTRIBUTES];
+@@ -219,7 +216,6 @@
+ */
+ /* Vendor attribute of SMART Threshold (compare to ata_smart_attribute above) */
+-#pragma pack(1)
+ struct ata_smart_threshold_entry {
+   unsigned char id;
+   unsigned char threshold;
+@@ -230,7 +226,6 @@
+ /* Format of Read SMART THreshold Command */
+ /* Compare to ata_smart_values above */
+-#pragma pack(1)
+ struct ata_smart_thresholds_pvt {
+   unsigned short int revnumber;
+   struct ata_smart_threshold_entry thres_entries[NUMBER_ATA_SMART_ATTRIBUTES];
+@@ -242,7 +237,6 @@
+ // Table 42 of T13/1321D Rev 1 spec (Error Data Structure)
+-#pragma pack(1)
+ struct ata_smart_errorlog_error_struct {
+   unsigned char reserved;
+   unsigned char error_register;
+@@ -261,7 +255,6 @@
+ // Table 41 of T13/1321D Rev 1 spec (Command Data Structure)
+-#pragma pack(1)
+ struct ata_smart_errorlog_command_struct {
+   unsigned char devicecontrolreg;
+   unsigned char featuresreg;
+@@ -277,7 +270,6 @@
+ ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_command_struct, 12);
+ // Table 40 of T13/1321D Rev 1 spec (Error log data structure)
+-#pragma pack(1)
+ struct ata_smart_errorlog_struct {
+   struct ata_smart_errorlog_command_struct commands[5];
+   struct ata_smart_errorlog_error_struct error_struct;
+@@ -286,7 +278,6 @@
+ ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_struct, 90);
+ // Table 39 of T13/1321D Rev 1 spec (SMART error log sector)
+-#pragma pack(1)
+ struct ata_smart_errorlog {
+   unsigned char revnumber;
+   unsigned char error_log_pointer;
+@@ -299,7 +290,6 @@
+ ASSERT_SIZEOF_STRUCT(ata_smart_errorlog, 512);
+ // Table 45 of T13/1321D Rev 1 spec (Self-test log descriptor entry)
+-#pragma pack(1)
+ struct ata_smart_selftestlog_struct {
+   unsigned char selftestnumber; // Sector number register
+   unsigned char selfteststatus;
+@@ -312,7 +302,6 @@
+ ASSERT_SIZEOF_STRUCT(ata_smart_selftestlog_struct, 24);
+ // Table 44 of T13/1321D Rev 1 spec (Self-test log data structure)
+-#pragma pack(1)
+ struct ata_smart_selftestlog {
+   unsigned short int revnumber;
+   struct ata_smart_selftestlog_struct selftest_struct[21];
+@@ -325,7 +314,6 @@
+ ASSERT_SIZEOF_STRUCT(ata_smart_selftestlog, 512);
+ // SMART LOG DIRECTORY Table 52 of T13/1532D Vol 1 Rev 1a
+-#pragma pack(1)
+ struct ata_smart_log_entry {
+   unsigned char numsectors;
+   unsigned char reserved;
+@@ -333,7 +321,6 @@
+ #pragma pack()
+ ASSERT_SIZEOF_STRUCT(ata_smart_log_entry, 2);
+-#pragma pack(1)
+ struct ata_smart_log_directory {
+   unsigned short int logversion;
+   struct ata_smart_log_entry entry[255];
+@@ -343,7 +330,6 @@
+ // SMART SELECTIVE SELF-TEST LOG Table 61 of T13/1532D Volume 1
+ // Revision 3
+-#pragma pack(1)
+ struct test_span {
+   uint64_t start;
+   uint64_t end;
+@@ -351,7 +337,6 @@
+ #pragma pack()
+ ASSERT_SIZEOF_STRUCT(test_span, 16);
+-#pragma pack(1)
+ struct ata_selective_self_test_log {
+   unsigned short     logversion;
+   struct test_span   span[5];
diff --git a/debian/patches/02_remove-pragma.dpatch b/debian/patches/02_remove-pragma.dpatch
deleted file mode 100755 (executable)
index c9362f8..0000000
+++ /dev/null
@@ -1,131 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 02_remove-progma.dpatch by Guido Guenther <agx@sigxcpu.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: remove #pragma since this causes trouble on arm
-
-@DPATCH@
-
-diff -u -Naur smartmontools-5.33+5.34cvs20050802.orig/atacmds.h smartmontools-5.33+5.34cvs20050802/atacmds.h
---- smartmontools-5.33+5.34cvs20050802.orig/atacmds.h  2005-05-10 21:15:47.000000000 +0200
-+++ smartmontools-5.33+5.34cvs20050802/atacmds.h       2006-02-28 17:38:26.000000000 +0100
-@@ -105,7 +105,6 @@
- // Needed parts of the ATA DRIVE IDENTIFY Structure. Those labeled
- // word* are NOT used.
--#pragma pack(1)
- struct ata_identify_device {
-   unsigned short words000_009[10];
-   unsigned char  serial_no[20];
-@@ -127,7 +126,6 @@
- ASSERT_SIZEOF_STRUCT(ata_identify_device, 512);
- /* ata_smart_attribute is the vendor specific in SFF-8035 spec */ 
--#pragma pack(1)
- struct ata_smart_attribute {
-   unsigned char id;
-   // meaning of flag bits: see MACROS just below
-@@ -187,7 +185,6 @@
- /* ata_smart_values is format of the read drive Attribute command */
- /* see Table 34 of T13/1321D Rev 1 spec (Device SMART data structure) for *some* info */
--#pragma pack(1)
- struct ata_smart_values {
-   unsigned short int revnumber;
-   struct ata_smart_attribute vendor_attributes [NUMBER_ATA_SMART_ATTRIBUTES];
-@@ -219,7 +216,6 @@
- */
- /* Vendor attribute of SMART Threshold (compare to ata_smart_attribute above) */
--#pragma pack(1)
- struct ata_smart_threshold_entry {
-   unsigned char id;
-   unsigned char threshold;
-@@ -230,7 +226,6 @@
- /* Format of Read SMART THreshold Command */
- /* Compare to ata_smart_values above */
--#pragma pack(1)
- struct ata_smart_thresholds_pvt {
-   unsigned short int revnumber;
-   struct ata_smart_threshold_entry thres_entries[NUMBER_ATA_SMART_ATTRIBUTES];
-@@ -242,7 +237,6 @@
- // Table 42 of T13/1321D Rev 1 spec (Error Data Structure)
--#pragma pack(1)
- struct ata_smart_errorlog_error_struct {
-   unsigned char reserved;
-   unsigned char error_register;
-@@ -261,7 +255,6 @@
- // Table 41 of T13/1321D Rev 1 spec (Command Data Structure)
--#pragma pack(1)
- struct ata_smart_errorlog_command_struct {
-   unsigned char devicecontrolreg;
-   unsigned char featuresreg;
-@@ -277,7 +270,6 @@
- ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_command_struct, 12);
- // Table 40 of T13/1321D Rev 1 spec (Error log data structure)
--#pragma pack(1)
- struct ata_smart_errorlog_struct {
-   struct ata_smart_errorlog_command_struct commands[5];
-   struct ata_smart_errorlog_error_struct error_struct;
-@@ -286,7 +278,6 @@
- ASSERT_SIZEOF_STRUCT(ata_smart_errorlog_struct, 90);
- // Table 39 of T13/1321D Rev 1 spec (SMART error log sector)
--#pragma pack(1)
- struct ata_smart_errorlog {
-   unsigned char revnumber;
-   unsigned char error_log_pointer;
-@@ -299,7 +290,6 @@
- ASSERT_SIZEOF_STRUCT(ata_smart_errorlog, 512);
- // Table 45 of T13/1321D Rev 1 spec (Self-test log descriptor entry)
--#pragma pack(1)
- struct ata_smart_selftestlog_struct {
-   unsigned char selftestnumber; // Sector number register
-   unsigned char selfteststatus;
-@@ -312,7 +302,6 @@
- ASSERT_SIZEOF_STRUCT(ata_smart_selftestlog_struct, 24);
- // Table 44 of T13/1321D Rev 1 spec (Self-test log data structure)
--#pragma pack(1)
- struct ata_smart_selftestlog {
-   unsigned short int revnumber;
-   struct ata_smart_selftestlog_struct selftest_struct[21];
-@@ -325,7 +314,6 @@
- ASSERT_SIZEOF_STRUCT(ata_smart_selftestlog, 512);
- // SMART LOG DIRECTORY Table 52 of T13/1532D Vol 1 Rev 1a
--#pragma pack(1)
- struct ata_smart_log_entry {
-   unsigned char numsectors;
-   unsigned char reserved;
-@@ -333,7 +321,6 @@
- #pragma pack()
- ASSERT_SIZEOF_STRUCT(ata_smart_log_entry, 2);
--#pragma pack(1)
- struct ata_smart_log_directory {
-   unsigned short int logversion;
-   struct ata_smart_log_entry entry[255];
-@@ -343,7 +330,6 @@
- // SMART SELECTIVE SELF-TEST LOG Table 61 of T13/1532D Volume 1
- // Revision 3
--#pragma pack(1)
- struct test_span {
-   uint64_t start;
-   uint64_t end;
-@@ -351,7 +337,6 @@
- #pragma pack()
- ASSERT_SIZEOF_STRUCT(test_span, 16);
--#pragma pack(1)
- struct ata_selective_self_test_log {
-   unsigned short     logversion;
-   struct test_span   span[5];
diff --git a/debian/patches/03_use-smartd-runner-by-default.diff b/debian/patches/03_use-smartd-runner-by-default.diff
new file mode 100644 (file)
index 0000000..2801abe
--- /dev/null
@@ -0,0 +1,13 @@
+Index: smartmontools/smartd.conf
+===================================================================
+--- smartmontools.orig/smartd.conf     2007-03-19 21:55:37.000000000 +0100
++++ smartmontools/smartd.conf  2007-03-19 21:55:37.000000000 +0100
+@@ -19,7 +19,7 @@
+ # Directives listed below, which will be applied to all devices that
+ # are found.  Most users should comment out DEVICESCAN and explicitly
+ # list the devices that they wish to monitor.
+-DEVICESCAN
++DEVICESCAN -m root -M exec /usr/share/smartmontools/smartd-runner
+ # Alternative setting to ignore temperature and power-on hours reports
+ # in syslog.
diff --git a/debian/patches/03_use-smartd-runner-by-default.dpatch b/debian/patches/03_use-smartd-runner-by-default.dpatch
deleted file mode 100755 (executable)
index ff99881..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 03_use-smartd-runner.dpatch by Guido Guenther <agx@sigxcpu.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: use smartd-runner by default in smartd.conf
-
-@DPATCH@
-
-diff -u -Naur smartmontools-5.33+5.34cvs20050802.orig/smartd.conf smartmontools-5.33+5.34cvs20050802/smartd.conf
---- smartmontools-5.33+5.34cvs20050802.orig/smartd.conf        2004-09-14 18:57:49.000000000 +0200
-+++ smartmontools-5.33+5.34cvs20050802/smartd.conf     2006-04-10 17:35:05.000000000 +0200
-@@ -20,7 +19,7 @@
- # Directives listed below, which will be applied to all devices that
- # are found.  Most users should comment out DEVICESCAN and explicitly
- # list the devices that they wish to monitor.
--DEVICESCAN
-+DEVICESCAN -m root -M exec /usr/share/smartmontools/smartd-runner
- # First (primary) ATA/IDE hard disk.  Monitor all attributes, enable
- # automatic online data collection, automatic Attribute autosave, and
diff --git a/debian/patches/04_remove-Id-from-smartd.conf.diff b/debian/patches/04_remove-Id-from-smartd.conf.diff
new file mode 100644 (file)
index 0000000..6637197
--- /dev/null
@@ -0,0 +1,16 @@
+Index: smartmontools/smartd.conf
+===================================================================
+--- smartmontools.orig/smartd.conf     2007-03-19 21:44:06.000000000 +0100
++++ smartmontools/smartd.conf  2007-03-19 21:57:47.000000000 +0100
+@@ -1,9 +1,8 @@
+-# Sample configuration file for smartd.  See man smartd.conf.
++# /etc/smartd.conf
++# Configuration file for smartd. Use "man smartd.conf" for more information.
+ # Home page is: http://smartmontools.sourceforge.net
+-# $Id: smartd.conf,v 1.45 2006/11/12 23:39:04 dpgilbert Exp $
+-
+ # smartd will re-read the configuration file if it receives a HUP
+ # signal
diff --git a/debian/patches/04_remove-Id-from-smartd.conf.dpatch b/debian/patches/04_remove-Id-from-smartd.conf.dpatch
deleted file mode 100755 (executable)
index cdbd9d0..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 03_use-smartd-runner.dpatch by Guido Guenther <agx@sigxcpu.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: remove $Id from smartd.conf to ease upgrades when the user
-## DP: uses a RCS for /etc
-
-@DPATCH@
-
-diff -u -Naur smartmontools-5.33+5.34cvs20050802.orig/smartd.conf smartmontools-5.33+5.34cvs20050802/smartd.conf
---- smartmontools-5.33+5.34cvs20050802.orig/smartd.conf        2004-09-14 18:57:49.000000000 +0200
-+++ smartmontools-5.33+5.34cvs20050802/smartd.conf     2006-04-10 17:35:05.000000000 +0200
-@@ -1,9 +1,8 @@
--# Sample configuration file for smartd.  See man smartd.conf.
-+# /etc/smartd.conf
-+# Configuration file for smartd. Use "man smartd.conf" for more information.
- # Home page is: http://smartmontools.sourceforge.net
--# $Id: smartd.conf,v 1.45 2006/11/12 23:39:04 dpgilbert Exp $
--
- # smartd will re-read the configuration file if it receives a HUP
- # signal
diff --git a/debian/patches/10_remove-redhatism.diff b/debian/patches/10_remove-redhatism.diff
new file mode 100644 (file)
index 0000000..8a902b4
--- /dev/null
@@ -0,0 +1,20 @@
+Index: smartmontools/smartd.8.in
+===================================================================
+--- smartmontools.orig/smartd.8.in     2007-03-19 21:44:06.000000000 +0100
++++ smartmontools/smartd.8.in  2007-03-19 21:55:37.000000000 +0100
+@@ -405,15 +405,6 @@
+ .B /usr/local/etc/rc.d/init.d/smartd stop
+ .fi
+-If you want \fBsmartd\fP to start running whenever your machine is
+-booted, this can be enabled by using the command:
+-.nf
+-.B /sbin/chkconfig --add smartd
+-.fi
+-and disabled using the command:
+-.nf
+-.B /sbin/chkconfig --del smartd
+-.fi
+ .\" DO NOT MODIFY THIS OR THE FOLLOWING TWO LINES. THIS MATERIAL
+ .\" IS AUTOMATICALLY INCLUDED IN THE FILE smartd.conf.5
diff --git a/debian/patches/10_remove-redhatism.dpatch b/debian/patches/10_remove-redhatism.dpatch
deleted file mode 100755 (executable)
index 6a8410d..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 10_remove-redhadism.dpatch by Guido Guenther <agx@sigxcpu.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: remove redhat specific parts from the documentation
-
-@DPATCH@
-
-diff -u -Naur smartmontools-5.33+5.34cvs20050802.orig/smartd.8.in smartmontools-5.33+5.34cvs20050802/smartd.8.in
---- smartmontools-5.33+5.34cvs20050802.orig/smartd.8.in        2005-04-08 21:17:53.000000000 +0200
-+++ smartmontools-5.33+5.34cvs20050802/smartd.8.in     2006-04-13 09:31:13.000000000 +0200
-@@ -376,15 +376,6 @@
- .B /usr/local/etc/rc.d/init.d/smartd stop
- .fi
--If you want \fBsmartd\fP to start running whenever your machine is
--booted, this can be enabled by using the command:
--.nf
--.B /sbin/chkconfig --add smartd
--.fi
--and disabled using the command:
--.nf
--.B /sbin/chkconfig --del smartd
--.fi
- .\" DO NOT MODIFY THIS OR THE FOLLOWING TWO LINES. THIS MATERIAL
- .\" IS AUTOMATICALLY INCLUDED IN THE FILE smartd.conf.5
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..b6dfa91
--- /dev/null
@@ -0,0 +1,5 @@
+01_add-kfreebsd-support.diff
+02_remove-pragma.diff
+03_use-smartd-runner-by-default.diff
+04_remove-Id-from-smartd.conf.diff
+10_remove-redhatism.diff
index 7df8041183e23ebb843411dc83d11233d0c943c6..a54e4bb52a71333aefb57d06249f579e64cf2848 100755 (executable)
@@ -5,8 +5,8 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# for dpatch
-include /usr/share/dpatch/dpatch.make
+# for quilt
+include /usr/share/quilt/quilt.make
 
 
 CFLAGS = -fsigned-char -Wall
@@ -23,7 +23,7 @@ endif
 
 
 configure: configure-stamp
-configure-stamp: patch-stamp
+configure-stamp: debian/stamp-patched
        dh_testdir
        ./autogen.sh
        CFLAGS="${CFLAGS}" ./configure --prefix=/usr             \
@@ -81,7 +81,7 @@ install: build
                $(CURDIR)/debian/smartmontools/etc/smartmontools/run.d/10mail
 
 # Build architecture-independent files here.
-binary-indep: build install
+binary-indep:
 # We have nothing to do by default.
 
 # Build architecture-dependent files here.