--- libinklevel-0.8.0.orig/debian/control +++ libinklevel-0.8.0/debian/control @@ -0,0 +1,32 @@ +Source: libinklevel +Priority: optional +Maintainer: Adam Cécile (Le_Vert) +Build-Depends: debhelper (>= 5), dpatch, libieee1284-3-dev, xutils-dev, autotools-dev, pkg-config +Standards-Version: 3.8.2 +Section: libs +Homepage: http://libinklevel.sourceforge.net/ + +Package: libinklevel-dev +Section: libdevel +Architecture: any +Depends: libinklevel5 (= ${binary:Version}) +Description: development files for libinklevel5 + The aim of this library is to provide a way to check the ink level of a local + printer. + . + It supports printers attached via parallel port or usb. + . + Many HP, Epson and Canon printers are supported. + . + Development files. + +Package: libinklevel5 +Architecture: any +Depends: ${shlibs:Depends} +Description: library for checking the ink level of your local printer + The aim of this library is to provide a way to check the ink level of a local + printer. + . + It supports printers attached via parallel port or usb. + . + Many HP, Epson and Canon printers are supported. --- libinklevel-0.8.0.orig/debian/libinklevel5.install +++ libinklevel-0.8.0/debian/libinklevel5.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- libinklevel-0.8.0.orig/debian/copyright +++ libinklevel-0.8.0/debian/copyright @@ -0,0 +1,46 @@ +This package was debianized by Adam Cécile (Le_Vert) on +Sun, 10 Sep 2006 17:54:08 +0200. + +It was downloaded from http://libinklevel.sourceforge.net/ + +Upstream Authors: + Markus Heinz + Thierry Merle + Emmanuel Allaud + Peter Selke + Louis Lagendijk + +Copyright: + Copyright (C) 2003-2009 Markus Heinz + +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; either version 2 of the License, or + (at your option) any later version. + + 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'. + +All files except those listed below are distributed under the GPL with the +copyright above. + +"canon.c" is Copyright (C) 2006 Thierry Merle and +distributed under terms of GNU General Public License. + +"d4lib.h" and "d4lib.c" are Copyright (C) 2001 Jean-Jacques Sarton + and distributed under terms of GNU General Public +License. + +The Debian packaging is Copyright (C) 2006-2009 Adam Cécile (Le_Vert) + and is licensed under the GPL, see above. --- libinklevel-0.8.0.orig/debian/libinklevel-dev.install +++ libinklevel-0.8.0/debian/libinklevel-dev.install @@ -0,0 +1,2 @@ +usr/include/* +usr/lib/lib*.so --- libinklevel-0.8.0.orig/debian/rules +++ libinklevel-0.8.0/debian/rules @@ -0,0 +1,73 @@ +#!/usr/bin/make -f + +# Include dpatch targets +include /usr/share/dpatch/dpatch.make + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +CFLAGS += -fPIC -DPIC -I. + +# Helper to create README.Debian with (un)supported printer list +README.Debian: + $(shell python debian/make-supported-list.py > $(CURDIR)/debian/libinklevel5.README.Debian) + +config.status: configure patch +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=/usr/share/man \ + CFLAGS="$(CFLAGS)" \ + LDFLAGS="-Wl,-z,defs" + +build: build-stamp +build-stamp: config.status + dh_testdir + $(MAKE) + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp config.sub config.guess + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + +binary-indep: build install +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs ChangeLog + dh_install --sourcedir=$(CURDIR)/debian/tmp + # Remove libdev doc dir to allow symlinking it to the lib's one + rm -rf debian/libinklevel-dev/usr/share/doc/ + dh_link + dh_strip + dh_compress + dh_fixperms + 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 --- libinklevel-0.8.0.orig/debian/make-supported-list.py +++ libinklevel-0.8.0/debian/make-supported-list.py @@ -0,0 +1,55 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- + +import urllib2 +import re +from time import localtime, strftime + +htmloutput = urllib2.urlopen("http://libinklevel.sourceforge.net/index.html").read() +htmloutputlist = htmloutput.split("\n") + +i = 0 +startsup = None +for line in htmloutputlist: + if re.match(r'^

Printers supported

$',line.strip()): + startsup = i + 5 + if re.match(r'^',line.strip()) and startsup != None: + endsup = i + break + i = i + 1 + +j = 0 +startunsup = None +for line in htmloutputlist: + if re.match(r'

Printers not supported

$',line.strip()): + startunsup = j + 5 + if re.match(r'^',line.strip()) and startunsup != None: + endunsup = j + break + j = j + 1 + +print "libinklevel for Debian\n----------------------\n" + +print "Supported printer:" +for line in htmloutputlist[startsup:endsup]: + print " "+line.strip().strip('
  • ').strip('
  • ') + +print "\nUnsupported printer:" +for line in htmloutputlist[startunsup:endunsup]: + print " "+line.strip().strip('
  • ').strip('
  • ') + +print "\nA note about Canon printers:" +print " Some Canon printers transmit their ink levels as a binary value." +print " They report only that there is enough ink or not enough ink for a" +print " particular cartridge. Libinklevel then reports 100% or 20% " +print " respectively." + +print "\nA note about Epson printers:" +print " Under some circumstances, especially when one ink catridge is" +print " completely empty, it may take about 20 to 30 seconds to detect the ink" +print " level. Please take this into account before submitting a bug report." +print " When you query the ink levels before the printer is fully initialized" +print " a sheet of paper will be drawn in. But nothing will be printed. To avoid" +print " this do not query the ink levels before the printer is fully initialized." + +print "\n -- Adam Cécile (Le_Vert) , "+strftime("%a, %d %b %Y %H:%M:%S +0001", localtime()) --- libinklevel-0.8.0.orig/debian/libinklevel-dev.links +++ libinklevel-0.8.0/debian/libinklevel-dev.links @@ -0,0 +1 @@ +/usr/share/doc/libinklevel5 /usr/share/doc/libinklevel-dev --- libinklevel-0.8.0.orig/debian/changelog +++ libinklevel-0.8.0/debian/changelog @@ -0,0 +1,91 @@ +libinklevel (0.8.0-1.1) unstable; urgency=low + + * Non-maintainer upload. + * Fix bashism in debian/rules. Closes: #535380 + + -- Raphael Geissert Tue, 07 Jul 2009 13:20:36 -0500 + +libinklevel (0.8.0-1) unstable; urgency=low + + * New upstream release + * Regenerate README.Debian (with supported printers list). + * Bump Standards-Version. + + -- Adam Cécile (Le_Vert) Wed, 01 Jul 2009 20:34:45 +0200 + +libinklevel (0.8.0~rc2-1) unstable; urgency=low + + * New upstream release. + * Few packaging fix because upstream now uses autotools. + * Regenerate README.Debian (with supported printers list). + * Bump Standards-Version. + + -- Adam Cécile (Le_Vert) Thu, 30 Apr 2009 20:43:56 +0200 + +libinklevel (0.8.0~rc1-1) unstable; urgency=low + + * New upstream release. + * Fix debian/watch. + * Update debian/copyright. + * Bump Standards-Version. + * Add xutils-dev build dependency (provides makedepend tool). + * Bump library package name to match current soname. + + -- Adam Cécile (Le_Vert) Fri, 13 Feb 2009 20:21:35 +0100 + +libinklevel (0.7.3-1) unstable; urgency=low + + * New upstream release. + * Update debian/make-supported-list.py (generate README.Debian). + * Bump Standards-Version to 3.7.3. + * Move homepage to the new dpkg field. + + -- Adam Cécile (Le_Vert) Tue, 27 May 2008 23:04:14 +0200 + +libinklevel (0.7.2-1) unstable; urgency=low + + * New upstream release. + * Update debian/watch. + * Update README.Debian. + * Drop 000-Makefiles_improvements patch, fixed upstream. + + -- Adam Cécile (Le_Vert) Fri, 03 Aug 2007 21:32:42 +0200 + +libinklevel (0.7.1-3) unstable; urgency=low + + * Uploading to unstable (Closes: #416332). + + -- Adam Cécile (Le_Vert) Tue, 10 Apr 2007 18:24:54 +0200 + +libinklevel (0.7.1-2) experimental; urgency=low + + * Add "001-Fix _FTBFS_on_gnu-kfreebsd" patch, thanks to Cyril Brulebois (Closes: #416332). + + -- Adam Cécile (Le_Vert) Tue, 27 Mar 2007 16:32:42 +0200 + +libinklevel (0.7.1-1) experimental; urgency=low + + * New upstream release. + + -- Adam Cécile (Le_Vert) Mon, 19 Mar 2007 21:02:04 +0100 + +libinklevel (0.7.0-1) experimental; urgency=low + + * New upstream release. + * Update debian/watch. + * Add debian/make-supported-list.py to create (un)supported printers list. + (debian/rules README.Debian). + + -- Adam Cécile (Le_Vert) Thu, 15 Mar 2007 09:01:08 +0100 + +libinklevel (0.6.6~rc5-2) unstable; urgency=low + + * Update debian/watch. + + -- Adam Cécile (Le_Vert) Fri, 24 Nov 2006 00:48:11 +0100 + +libinklevel (0.6.6~rc5-1) unstable; urgency=low + + * Initial release (Closes: #386849). + + -- Adam Cécile (Le_Vert) Sun, 10 Sep 2006 17:54:08 +0200 --- libinklevel-0.8.0.orig/debian/watch +++ libinklevel-0.8.0/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/rc/~rc/" \ +http://sf.net/libinklevel/libinklevel-([0-9\.(rc)]+)\.tar\.gz --- libinklevel-0.8.0.orig/debian/compat +++ libinklevel-0.8.0/debian/compat @@ -0,0 +1 @@ +5 --- libinklevel-0.8.0.orig/debian/libinklevel5.README.Debian +++ libinklevel-0.8.0/debian/libinklevel5.README.Debian @@ -0,0 +1,213 @@ +libinklevel for Debian +---------------------- + +Supported printer: + Canon 860 + Canon BJC-6200 + Canon i550 + Canon i560 + Canon i850 + Canon i860 + Canon i865 + Canon i950 + Canon i960 + Canon i965 + Canon i990 + Canon i9100 + Canon iP1000 + Canon iP1500 + Canon iP1600 + Canon iP1800 + Canon iP2000 + Canon iP2200 + Canon iP3000 + Canon iP3100 + Canon iP3300 + Canon iP4000 + Canon iP4100 + Canon iP4200 + Canon iP4300 + Canon iP4500 + Canon iP5000 + Canon iP5200 + Canon S300 + Canon S500 + Canon S520 + Canon S820 + Canon MP160 + Canon MP360 + Canon MP530 + Canon MP600 + Canon Pixma 4000R + Epson Stylus C42 + Epson Stylus C44UX + Epson Stylus C46 + Epson Stylus C60 + Epson Stylus C62 + Epson Stylus C64 + Epson Stylus C65 + Epson Stylus C67 + Epson Stylus C70 + Epson Stylus C79 + Epson Stylus C82 + Epson Stylus C84 + Epson Stylus C86 + Epson Stylus C88 + Epson Stylus D68 + Epson Stylus D88 + Epson Stylus D92 + Epson Stylus CX3600 + Epson Stylus CX3900 + Epson Stylus CX5000 + Epson Stylus CX5400 + Epson Stylus DX3850 + Epson Stylus DX4050 + Epson Stylus DX4200 + Epson Stylus DX4850 + Epson Stylus DX6050 + Epson Stylus DX7450 + Epson Stylus Color 600 + Epson Stylus Color 640 + Epson Stylus Color 670 + Epson Stylus Color 680 + Epson Stylus Color 740 + Epson Stylus Color 750 + Epson Stylus Color 850 + Epson Stylus Color 880 + Epson Stylus Photo 780 + Epson Stylus Photo 790 + Epson Stylus Photo 810 + Epson Stylus Photo 820 + Epson Stylus Photo 830 + Epson Stylus Photo 890 + Epson Stylus Photo 900 + Epson Stylus Photo 915 + Epson Stylus Photo 1290S + Epson Stylus Photo 1400 + Epson Stylus Photo 2100 + Epson Stylus Photo R200 + Epson Stylus Photo R220 + Epson Stylus Photo R300 + Epson Stylus Photo RX620 + HP Business InkJet 1100 + HP Business InkJet 1200 + HP DeskJet 920C + HP DeskJet 930C + HP DeskJet 940C + HP DeskJet 950C + HP DeskJet 960C + HP DeskJet 970C + HP DeskJet 980C + HP DeskJet 990C + HP DeskJet 1220C + HP DeskJet 3320 + HP DeskJet 3325 + HP DeskJet 3550 + HP DeskJet 3650 + HP DeskJet 3740 + HP DeskJet 3820 + HP DeskJet 3940 + HP DeskJet 5100 + HP DeskJet 5440 + HP DeskJet 5550 + HP DeskJet 5650 + HP DeskJet 5652 + HP DeskJet 5740 + HP DeskJet 5900 + HP DeskJet 6122 + HP DeskJet 6520 + HP DeskJet 6540 + HP DeskJet 9300 + HP DeskJet 9600 + HP DeskJet D2400 Series + HP DeskJet F300 Series + HP OfficeJet 4100 Series + HP OfficeJet 5100 Series + HP OfficeJet 5600 Series + HP OfficeJet 6200 Series + HP OfficeJet G Series + HP OfficeJet K Series + HP OfficeJet V Series + HP PhotoSmart 1000 + HP PhotoSmart 1100 + HP PhotoSmart 1115 + HP PhotoSmart 1218 + HP PhotoSmart 1315 + HP PhotoSmart 7150 + HP PhotoSmart 7260 + HP PhotoSmart 7345 + HP PhotoSmart 7350 + HP PhotoSmart 7760 + HP PhotoSmart 7960 + HP Photosmart D5400 Series + HP PSC 700 Series + HP PSC 900 Series + HP PSC 1100 Series + HP PSC 1200 Series + HP PSC 1300 Series + HP PSC 1315 Series + HP PSC 1400 Series + HP PSC 1500 Series + HP PSC 2110 Series + HP PSC 2150 Series + HP PSC 2175 Series + HP PSC 2200 Series + HP PSC 2210 Series + HP PSC 2355 Series + HP PSC 6100 Series + +Unsupported printer: + Epson Stylus C120 + Epson Stylus CX3200 + Epson Stylus CX4200 + Epson Stylus CX5600 + Epson Stylus CX6600 + Epson Stylus CX7300 + Epson Stylus D120 + Epson Stylus Color C4UX + Epson Stylus Photo R270 + Epson Stylus Photo R280 + Epson Stylus Photo R285 + HP DeskJet 540 + HP DeskJet 670C + HP DeskJet 680C + HP DeskJet 690C + HP DeskJet 710C + HP DeskJet 720C + HP DeskJet 810C + HP DeskJet 840C + HP DeskJet 845C + HP DeskJet 890C + HP DeskJet 895C + HP DeskJet 1120C + HP DeskJet 3420 + HP OfficeJet LX + HP OfficeJet Pro 1150C + HP OfficeJet Pro 1170C + HP OfficeJet Pro 1175C + HP OfficeJet R Series + HP OfficeJet Series 300 + HP OfficeJet Series 500 + HP OfficeJet Series 600 + HP OfficeJet Series 700 + HP OfficeJet T Series + HP PSC 300 Series + HP PSC 500 Series + HP PSC 1610 Series + Sony All-in-One IJP-V100 + +A note about Canon printers: + Some Canon printers transmit their ink levels as a binary value. + They report only that there is enough ink or not enough ink for a + particular cartridge. Libinklevel then reports 100% or 20% + respectively. + +A note about Epson printers: + Under some circumstances, especially when one ink catridge is + completely empty, it may take about 20 to 30 seconds to detect the ink + level. Please take this into account before submitting a bug report. + When you query the ink levels before the printer is fully initialized + a sheet of paper will be drawn in. But nothing will be printed. To avoid + this do not query the ink levels before the printer is fully initialized. + + -- Adam Cécile (Le_Vert) , Wed, 01 Jul 2009 20:35:42 +0001 --- libinklevel-0.8.0.orig/debian/patches/000-Fix_FTBFS_on_gnu-kfreebsd +++ libinklevel-0.8.0/debian/patches/000-Fix_FTBFS_on_gnu-kfreebsd @@ -0,0 +1,21 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 001-Fix_FTBFS_on_gnu-kfreebsd.dpatch +## by Cyril Brulebois +## +## DP: Make libinklevel build on GNU/kFreeBSD. + +@DPATCH@ + +--- libinklevel-0.7.1~/linux.c 2006-09-10 17:41:52.000000000 +0200 ++++ libinklevel-0.7.1/linux.c 2007-03-27 02:24:42.000000000 +0200 +@@ -18,6 +18,10 @@ + #include + #include + ++#if defined(__FreeBSD_kernel__) ++#define _IOC_READ IOC_OUT ++#endif ++ + #define IOCNR_GET_DEVICE_ID 1 + #define LPIOC_GET_DEVICE_ID _IOC(_IOC_READ, 'P', IOCNR_GET_DEVICE_ID, BUFLEN) + --- libinklevel-0.8.0.orig/debian/patches/00list +++ libinklevel-0.8.0/debian/patches/00list @@ -0,0 +1 @@ +000-Fix_FTBFS_on_gnu-kfreebsd