Adding debian version 0.1+svn20080716-2. debian/0.1+svn20080716-2
authorDaniel Baumann <daniel@debian.org>
Fri, 20 Apr 2012 14:54:01 +0000 (16:54 +0200)
committerDaniel Baumann <daniel@debian.org>
Fri, 20 Apr 2012 14:54:01 +0000 (16:54 +0200)
debian/changelog
debian/control
debian/patches/00list [new file with mode: 0644]
debian/patches/01_LVDS.dpatch [new file with mode: 0644]
debian/rules

index d643bbc..dae5fb7 100644 (file)
@@ -1,3 +1,10 @@
+lxrandr (0.1+svn20080716-2) unstable; urgency=low
+
+  * Applied a patch to solve the LVDS output cannot detect current 
+    resolution problem.
+
+ -- Andrew Lee <andrew@linux.org.tw>  Tue, 18 Nov 2008 18:13:25 +0800
+
 lxrandr (0.1+svn20080716-1) unstable; urgency=high
 
   * Solved segmentaion fault problem (Closes: #490766)
index ece8635..5d61074 100644 (file)
@@ -2,7 +2,7 @@ Source: lxrandr
 Section: x11
 Priority: extra
 Maintainer: Andrew Lee <andrew@linux.org.tw>
-Build-Depends: debhelper (>= 6), autotools-dev, libglib2.0-dev (>= 2.6.0), libgtk2.0-dev (>= 2.6.0), docbook-to-man
+Build-Depends: debhelper (>= 6), autotools-dev, libglib2.0-dev (>= 2.6.0), libgtk2.0-dev (>= 2.6.0), docbook-to-man, dpatch
 Standards-Version: 3.8.0.0
 DM-Upload-Allowed: yes
 Homepage: http://lxde.org
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644 (file)
index 0000000..17a1a28
--- /dev/null
@@ -0,0 +1 @@
+01_LVDS.dpatch
diff --git a/debian/patches/01_LVDS.dpatch b/debian/patches/01_LVDS.dpatch
new file mode 100644 (file)
index 0000000..0bb119b
--- /dev/null
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_LVDS.dpatch by Andrew Lee <andrew@linux.org.tw>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Fixed a bug that LVDS output cannot detect current resolution.
+
+@DPATCH@
+diff -urNad lxrandr-0.1+svn20080716~/src/lxrandr.c lxrandr-0.1+svn20080716/src/lxrandr.c
+--- lxrandr-0.1+svn20080716~/src/lxrandr.c     2008-07-16 06:27:04.000000000 +0800
++++ lxrandr-0.1+svn20080716/src/lxrandr.c      2008-11-18 18:11:27.714537756 +0800
+@@ -62,7 +62,7 @@
+         return _("Laptop LCD Monitor");
+     else if( g_str_has_prefix( m->name, "VGA" ) || g_str_has_prefix( m->name, "Analog" ) )
+         return _( LVDS ? "External VGA Monitor" : "VGA Monitor");
+-    else if( g_str_has_prefix( m->name, "DVI" ) || g_str_has_prefix(m->name, "TMDS") || g_str_has_prefix(m->name, "Digital") )
++    else if( g_str_has_prefix( m->name, "DVI" ) || g_str_has_prefix(m->name, "TMDS") || g_str_has_prefix(m->name, "Digital") || g_str_has_prefix(m->name, "LVDS") )
+         return _( LVDS ? "External DVI Monitor" : "DVI Monitor");
+     else if( g_str_has_prefix( m->name, "TV" ) || g_str_has_prefix(m->name, "S-Video") )
+         return _("TV");
index b74c578..d3ea139 100755 (executable)
@@ -20,9 +20,9 @@ else
 CROSS= --build $(DEB_BUILD_GNU_TYPE)
 endif
 
-#include /usr/share/dpatch/dpatch.make
+include /usr/share/dpatch/dpatch.make
 
-config.status: configure
+config.status: configure patch-stamp
        dh_testdir
        # Add here commands to configure the package.
 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
@@ -45,7 +45,7 @@ build-stamp:  config.status
 
        touch $@
 
-clean: 
+clean: unpatch 
        dh_testdir
        dh_testroot
        rm -f build-stamp