--- read-edid-2.0.0.orig/configure.in +++ read-edid-2.0.0/configure.in @@ -8,7 +8,9 @@ AC_PROG_CC -AC_CHECK_HEADER([libx86.h], [], [AC_MSG_ERROR([libx86.h not found])]) +dnl AC_CHECK_HEADER([libx86.h], [], [AC_MSG_ERROR([libx86.h not found])]) +echo - | $CC -E -dM - | grep '__i386__' > /dev/null +AM_CONDITIONAL(X86, test $? -eq 0 ) dnl Simple, huh? --- read-edid-2.0.0.orig/get-edid-powerpc +++ read-edid-2.0.0/get-edid-powerpc @@ -0,0 +1,60 @@ +#!/bin/sh +# +# Copyright (c) 2004 Colin Watson . +# +# This program 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; either version 2 of the License, or +# (at your option) any later version. +# +# This program 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 program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +set -e + +TREE=/proc/device-tree + +# Apparently some 2.4 kernels put OF aliases in aliases@0. +if [ -d /proc/device-tree/aliases ]; then + ALIASES=aliases +elif [ -d /proc/device-tree/aliases@0 ]; then + ALIASES=aliases@0 +else + echo "Can't find Open Firmware aliases directory" >&2 + exit 2 +fi + +if [ -f "$TREE/$ALIASES/screen" ]; then + SCREEN="`cat $TREE/$ALIASES/screen`" +else + echo "Can't find Open Firmware screen alias" >&2 + exit 2 +fi + +# Aliases start with a slash. +if [ -d "$TREE$SCREEN" ]; then + EDID= + # List gathered from files in drivers/video/ in the 2.6.7 kernel + # source. + for file in DFP,EDID LCD,EDID EDID EDID1 EDID2 EDID,B EDID,A; do + if [ -f "$TREE$SCREEN/$file" ]; then + EDID="$TREE$SCREEN/$file" + break + fi + done + if [ -z "$EDID" ]; then + echo "Can't find EDID file in $TREE$SCREEN" >&2 + exit 1 + fi +else + echo "Can't find target of Open Firmware screen alias ($TREE$SCREEN)" >&2 + exit 2 +fi + +cat "$EDID" --- read-edid-2.0.0.orig/Makefile.am +++ read-edid-2.0.0/Makefile.am @@ -1,4 +1,8 @@ +if X86 sbin_PROGRAMS = get-edid parse-edid +else +sbin_PROGRAMS = parse-edid +endif get_edid_SOURCES = get-edid.c get_edid_LDADD = -lx86 --- read-edid-2.0.0.orig/debian/rules +++ read-edid-2.0.0/debian/rules @@ -0,0 +1,87 @@ +#!/usr/bin/make -f +# Debian package build rules file for read-edid +# Copyright (C) 2000 Progeny Linux Systems, Inc. +# Author: Branden Robinson +# LIU Qi +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or . + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +CFLAGS=-g -Wall +# Does DEB_BUILD_OPTIONS contain the "noopt" flag? +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +# don't get rid of the space in the next line +CFLAGS+= -O2 +endif + +export CFLAGS + +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + +build: configure build-stamp +build-stamp: + dh_testdir +ifeq ($(DEB_HOST_ARCH),i386) + $(MAKE) +else ifeq ($(DEB_HOST_ARCH),powerpc) + $(MAKE) parse-edid + cp -a get-edid-powerpc get-edid +else + $(MAKE) parse-edid +endif + touch $@ + +configure: configure-stamp +configure-stamp: + dh_testdir + aclocal-1.10 + automake-1.10 --foreign --add-missing --copy + autoconf + ./configure + touch $@ + +clean: configure + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + $(MAKE) distclean + rm -f Makefile.in aclocal.m4 configure + dh_clean + +install: build configure + dh_testdir + dh_testroot + dh_prep + dh_installdirs + install -m 755 -d debian/read-edid/usr/bin +ifeq ($(DEB_HOST_ARCH),i386) + install -m 755 -d debian/read-edid/usr/sbin + install -m 755 get-edid debian/read-edid/usr/sbin +else ifeq ($(DEB_HOST_ARCH),powerpc) + install -m 755 get-edid debian/read-edid/usr/bin +endif + install -m 755 parse-edid debian/read-edid/usr/bin + install -m 755 -d debian/read-edid/usr/share/man/man1 + install -m 644 get-edid.man debian/read-edid/usr/share/man/man1/get-edid.1 + ln -s get-edid.1 debian/read-edid/usr/share/man/man1/parse-edid.1 + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs ChangeLog + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: + +binary: binary-arch binary-indep +.PHONY: build clean install binary-arch binary-indep binary --- read-edid-2.0.0.orig/debian/control +++ read-edid-2.0.0/debian/control @@ -0,0 +1,27 @@ +Source: read-edid +Section: utils +Priority: optional +Maintainer: LIU Qi +Build-Depends: debhelper (>= 7.0), texinfo, libx86-dev [i386], automake, autoconf +Homepage: http://www.polypux.org/projects/read-edid/ +Standards-Version: 3.8.1 + +Package: read-edid +Architecture: any +Depends: ${shlibs:Depends} +Description: hardware information-gathering tool for VESA PnP monitors + read-edid consists of two tools: + . + get-edid uses a VESA VBE 2 interrupt service routine request to read + a 128 byte EDID version 1 structure from your graphics card, which + retrieves this information from the monitor via the Data Display + Channel (DDC). + . + get-edid uses architecture-specific methods for querying the video + hardware (real-mode x86 instructions on i386, Open Firmware device + tree parsing on PowerMac) and is therefore only available for i386 and + powerpc architectures. + . + parse-edid parses this data structure and outputs data suitable for + inclusion into the XFree86 or X.org configuration file. It is available + for any architecture. --- read-edid-2.0.0.orig/debian/copyright +++ read-edid-2.0.0/debian/copyright @@ -0,0 +1,39 @@ +Debianized by Branden Robinson +New maintainer LIU Qi + +It was downloaded from: + + + +Upstream Authors: + + Matthew Kern + +Copyright: + (C) 2009 Matthew Kern + (C) 2004 Colin Watson (get-edid-powerpc) + (C) 2001 Progeny Linux Systems, Inc. (Debian package, manual page) + (C) 2001 John Fremlin and others (get-edid, parse-edid) + (C) 1998 Josh Vanderhoof (LRMI) + +License (Matthew Kern, Colin Watson, Progeny, John Fremlin): + + 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 dated June, 1991. + + 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. + + On Debian systems, the complete text of the GNU General Public License + can be found in . + +License (Josh Vanderhoof): + + You are free to distribute and modify this file, as long as you + do not remove this copyright notice and clearly label modified + versions as being modified. + + This software has NO WARRANTY. Use it at your own risk. --- read-edid-2.0.0.orig/debian/changelog +++ read-edid-2.0.0/debian/changelog @@ -0,0 +1,78 @@ +read-edid (2.0.0-1) unstable; urgency=low + + * new upstream version and maintainer (Closes: #502125) + - the new version uses libx86 instead of LRMI (Closes: #495131) + - libx86 will build on new kernel (Closes: #502126) + * add missing binary-indep in debian/rules (Closes: #395741) + * new version is modified to build on any architecture + - fixed the powerpc build problem (Closes: #406736) + - fixed the rebuild problem (Closes: #433713) + * install the read-edid in usr/sbin directory (Closes: #231307) + + -- LIU Qi Mon, 11 May 2009 13:14:40 +0800 + +read-edid (1.4.1-2.1) unstable; urgency=low + + * Non-Maintainer Upload. + * Merged PowerPC patch from Colin Watson (Closes: #262102): + - get-edid-powerpc: new shell implementation using /proc/device-tree. + - debian/copyright: document licence of get-edid-powerpc. + - debian/control: add powerpc to Architecture. + - debian/rules: install get-edid-powerpc as get-edid on powerpc. + * debian/control: + - Add missing Build-Depends on texinfo. + - Update long description to reflect PowerMac support. + - Bump Standards to 3.6.2 (changes to debian/copyright required). + * debian/copyright: + - Rewrite content to Policy 3.5.8 Section 12.7 compliance. + + -- Martin-Éric Racine Sun, 12 Mar 2006 15:12:35 +0200 + +read-edid (1.4.1-2) unstable; urgency=low + + * get-edid.man: wrote manpage for get-edid and parse-edid (Closes: #102233) + * debian/control: + - changed Section to "utils" (Closes: #145104) + - increment versioned build-dependency on debhelper to (>= 4.0) + - increment Standards-Version to 3.5.7 + * debian/copyright: + - note change to upstream source (manpage) + * debian/rules: + - use DH_COMPAT and set debhelper compatibility level to 4 + - set CFLAGS to include -g per Debian Policy 11.1 + - set CFLAGS to inclue -O2 unless DEB_BUILD_OPTIONS includes "noopt", per + Debian Policy 11.1 + - tweak install rule for debhelper 4 differences, and install new manpage + + -- Branden Robinson Thu, 3 Oct 2002 00:35:32 -0500 + +read-edid (1.4.1-1) unstable; urgency=low + + * new upstream version + * debian/copyright: + - updated URL of upstream source + - updated Debian copyright info + - remove obsolete notice of Debian changes to upstream code + * debian/control: + - declare build-dependency on debhelper (>> 2.0) + - explained why package is i386-only in extended description + - fixed typo in description (Closes: #125304) + * debian/rules: + - updated to call upstream configure program, since upstream + now uses automake/autoconf + - updated to call new distclean rule instead of clean + + -- Branden Robinson Tue, 18 Dec 2001 21:04:49 -0500 + +read-edid (1.4.0-2) unstable; urgency=low + + * Unfortunately, this is an i386-only package. Edited control file to + reflect this. (Closes: #78751) + + -- Branden Robinson Mon, 4 Dec 2000 14:27:00 -0500 + +read-edid (1.4.0-1) unstable; urgency=low + + * initial release + + -- Branden Robinson Tue, 28 Nov 2000 01:33:26 -0500 --- read-edid-2.0.0.orig/debian/compat +++ read-edid-2.0.0/debian/compat @@ -0,0 +1 @@ +7 --- read-edid-2.0.0.orig/debian/watch +++ read-edid-2.0.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.polypux.org/projects/read-edid/read-edid-(.*)\.tar\.gz