--- brother-cups-wrapper-laser1-1.0.2-1.orig/debian/control +++ brother-cups-wrapper-laser1-1.0.2-1/debian/control @@ -0,0 +1,24 @@ +Source: brother-cups-wrapper-laser1 +Section: text +Priority: optional +Homepage: http://solutions.brother.com/linux/en_us/ +Maintainer: Ubuntu MOTU Team +XSBC-Original-Maintainer: Saïvann Carignan +Build-Depends: debhelper (>= 5), quilt +Standards-Version: 3.7.3 + +Package: brother-cups-wrapper-laser1 +Architecture: i386 amd64 +Depends: ${shlibs:Depends}, brother-lpr-drivers-laser1, ${misc:Depends} +Conflicts: cupswrapperdcp1000, cupswrapperdcp1400, cupswrapperdcp8020, cupswrapperdcp8025d, cupswrapperdcp8040, cupswrapperdcp8045d, cupswrapperfax2850, cupswrapperfax2900, cupswrapperfax3800, cupswrapperfax4100, cupswrapperfax4750e, cupswrapperfax5750e, cupswrapperhl1030, cupswrapperhl1230, cupswrapperhl1240, cupswrapperhl1250, cupswrapperhl1270n, cupswrapperhl1430, cupswrapperhl1440, cupswrapperhl1450, cupswrapperhl1470n, cupswrapperhl1650, cupswrapperhl1670n, cupswrapperhl1850, cupswrapperhl1870n, cupswrapperhl5030, cupswrapperhl5040, cupswrapperhl5050, cupswrapperhl5070n, cupswrapperhl5130, cupswrapperhl5140, cupswrapperhl5150d, cupswrapperhl5170dn, cupswrapperhl6050, cupswrapperhl6050d, cupswrappermfc4800, cupswrappermfc6800, cupswrappermfc8420, cupswrappermfc8440, cupswrappermfc8500, cupswrappermfc8820d, cupswrappermfc8840d, cupswrappermfc9030, cupswrappermfc9070, cupswrappermfc9160, cupswrappermfc9180, cupswrappermfc9660, cupswrappermfc9700, cupswrappermfc9760, cupswrappermfc9800, cupswrappermfc9860, cupswrappermfc9880 +Replaces: cupswrapperdcp1000, cupswrapperdcp1400, cupswrapperdcp8020, cupswrapperdcp8025d, cupswrapperdcp8040, cupswrapperdcp8045d, cupswrapperfax2850, cupswrapperfax2900, cupswrapperfax3800, cupswrapperfax4100, cupswrapperfax4750e, cupswrapperfax5750e, cupswrapperhl1030, cupswrapperhl1230, cupswrapperhl1240, cupswrapperhl1250, cupswrapperhl1270n, cupswrapperhl1430, cupswrapperhl1440, cupswrapperhl1450, cupswrapperhl1470n, cupswrapperhl1650, cupswrapperhl1670n, cupswrapperhl1850, cupswrapperhl1870n, cupswrapperhl5030, cupswrapperhl5040, cupswrapperhl5050, cupswrapperhl5070n, cupswrapperhl5130, cupswrapperhl5140, cupswrapperhl5150d, cupswrapperhl5170dn, cupswrapperhl6050, cupswrapperhl6050d, cupswrappermfc4800, cupswrappermfc6800, cupswrappermfc8420, cupswrappermfc8440, cupswrappermfc8500, cupswrappermfc8820d, cupswrappermfc8840d, cupswrappermfc9030, cupswrappermfc9070, cupswrappermfc9160, cupswrappermfc9180, cupswrappermfc9660, cupswrappermfc9700, cupswrappermfc9760, cupswrappermfc9800, cupswrappermfc9860, cupswrappermfc9880 +Description: Cups Wrapper drivers for laser1 brother printers + This package provides all cups wrapper drivers for DCP-1000 + DCP-1400 DCP-8020 DCP-8025D DCP-8040 DCP-8045D FAX-2850 + FAX-2900 FAX-3800 FAX-4100 FAX-4750e FAX-5750e HL-1030 HL-1230 + HL-1240 HL-1250 HL-1270N HL-1430 HL-1440 HL-1450 HL-1470N HL-1650 + HL-1670N HL-1850 HL-1870N HL-5030 HL-5040 HL-5050 HL-5070N HL-5130 + HL-5140 HL-5150D HL-5170DN HL-6050 HL-6050D MFC-4800 MFC-6800 + MFC-8420 MFC-8440 MFC-8500 MFC-8820D MFC-8840D MFC-9030 MFC-9070 + MFC-9160 MFC-9180 MFC-9660 MFC-9700 MFC-9760 MFC-9800 MFC-9860 + MFC-9880 --- brother-cups-wrapper-laser1-1.0.2-1.orig/debian/rules +++ brother-cups-wrapper-laser1-1.0.2-1/debian/rules @@ -0,0 +1,79 @@ +#!/usr/bin/make -f + +include /usr/share/quilt/quilt.make + +CC = gcc +CFLAGS = -g -Wall + +#export DH_VERBOSE=1 + + +install: build + dh_testdir + dh_testroot + mkdir -p debian/tmp/usr/Brother/cupswrapper/ + mkdir -p debian/tmp/usr/share/cups/model + mkdir -p debian/tmp/usr/lib/cups/filter/ + mkdir -p debian/tmp/scripts + + #remove HL2070, HL2040 and HL2030 which is a part of laser package, not laser1 + rm PARTS/cupswrapperHL2070N-1.0.2 + rm PARTS/cupswrapperHL2040-1.0.2 + rm PARTS/cupswrapperHL2030-1.0.2 + + # Remove stuff that cause problems or outputs when brother scripts are used to create ppd files. + cp PARTS/* debian/tmp/scripts/ + sed -i s_'/usr/local'_'/usr'_g debian/tmp/scripts/* + sed -i s/'ppd_file_name=\/usr'/'ppd_file_name=debian\/tmp\/usr'/g debian/tmp/scripts/* + sed -i s/'brotherlpdwrapper=\/usr'/'brotherlpdwrapper=debian\/tmp\/usr'/g debian/tmp/scripts/* + sed -i s/'mkdir -p \/usr\/Brother\/filter'// debian/tmp/scripts/* + sed -i s/'mkdir -p \/usr\/lib\/cups\/filter'// debian/tmp/scripts/* + sed -i s/' echo "ERROR : Brother LPD filter is not installed."'/'echo ""'/ debian/tmp/scripts/* + sed -i s/'chmod a+w'/'#chmod a+w'/g debian/tmp/scripts/* + sed -i s/'sleep 2s'// debian/tmp/scripts/* + sed -i s/'lpinfo -v'/'echo ""'/g debian/tmp/scripts/* + sed -i s/' cp $$brotherlpdwrapper $$brotherlpdwrapper64'/':'/ debian/tmp/scripts/* + sed -i '/^lpadmin/d' debian/tmp/scripts/* + sed -i s_'PPD=\"/usr/share/cups/model'_'PPD=\"/usr/share/ppd/Brother'_g debian/tmp/scripts/* + sed -i s/'rm -f \/usr\/\w*'/': '/ debian/tmp/scripts/* + sed -i s/'\/etc\/init.d\/\w*'/': '/ debian/tmp/scripts/* + + #Add missing "" in option choice fields of the PPDs + sed -i /'^\*'/s_':$$'_': ""'_ debian/tmp/scripts/* + + chmod +x debian/tmp/scripts/* + for i in `ls debian/tmp/scripts/` ; do \ + ./debian/tmp/scripts/$$i ; \ + done + + dh_install + +build: patch + gcc brcupsconfig/brcupsconfig.c -o brcupsconfig/brcupsconfig + +binary-indep: build install + +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installdocs -a + dh_installchangelogs -a + dh_strip -a + dh_compress -a + dh_fixperms -a + chmod a+x debian/brother-cups-wrapper-laser1/usr/lib/cups/filter/brlpdwrapper* + dh_installdeb -a + dh_link -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch + +.PHONY: binary binary-arch binary-indep clean checkroot + +clean: unpatch + dh_testdir + dh_clean + rm -f build --- brother-cups-wrapper-laser1-1.0.2-1.orig/debian/compat +++ brother-cups-wrapper-laser1-1.0.2-1/debian/compat @@ -0,0 +1 @@ +6 --- brother-cups-wrapper-laser1-1.0.2-1.orig/debian/brother-cups-wrapper-laser1.install +++ brother-cups-wrapper-laser1-1.0.2-1/debian/brother-cups-wrapper-laser1.install @@ -0,0 +1,4 @@ + brcupsconfig/brcupsconfig usr/Brother/cupswrapper/ + debian/tmp/usr/Brother/* usr/Brother/ + debian/tmp/usr/share/cups/model/* usr/share/ppd/Brother/ + debian/tmp/usr/lib/cups/filter/* usr/lib/cups/filter/ --- brother-cups-wrapper-laser1-1.0.2-1.orig/debian/changelog +++ brother-cups-wrapper-laser1-1.0.2-1/debian/changelog @@ -0,0 +1,57 @@ +brother-cups-wrapper-laser1 (1.0.2-1-0ubuntu8) quantal; urgency=low + + * debian/control: added ${misc:Depends} to dependencies line. + + -- Chris Schmidt Tue, 18 Sep 2012 18:32:50 +0200 + +brother-cups-wrapper-laser1 (1.0.2-1-0ubuntu7) jaunty; urgency=low + + * debian/control: Change "provide" to "provides" (again) (LP: #229346). + + -- Saïvann Carignan Sun, 16 Nov 2008 11:10:02 -0500 + +brother-cups-wrapper-laser1 (1.0.2-1-0ubuntu6) intrepid; urgency=low + + * debian/control: Remove not necessary csh dependency. (LP: #251972) + + -- Saïvann Carignan Thu, 28 Aug 2008 13:23:57 -0400 + +brother-cups-wrapper-laser1 (1.0.2-1-0ubuntu5) intrepid; urgency=low + + * debian/control: Change "provide" to "provides" (LP: #229346). + + -- Saïvann Carignan Tue, 13 May 2008 15:34:41 -0400 + +brother-cups-wrapper-laser1 (1.0.2-1-0ubuntu4) hardy; urgency=low + + * debian/rules: Add missing "" in option choice fields of the PPDs + (LP: #219509). Thanks to Saïvann Carignan for finding this. + * debian/rules: Removed more system manipulations from the generator + scripts for the PPDs and filters (LP: #220548). + * debian/copyright: Use verbatim license header of one of the generator + scripts for PPDs and filters. + + -- Till Kamppeter Tue, 22 Apr 2008 16:51:30 +0200 + +brother-cups-wrapper-laser1 (1.0.2-1-0ubuntu3) hardy; urgency=low + + * debian/control: Drop transitional packages. + * debian/compat: Update debhelper version to 6. + + -- Saïvann Carignan Fri, 21 Mar 2008 02:45:21 -0400 + +brother-cups-wrapper-laser1 (1.0.2-1-0ubuntu2) hardy; urgency=low + + * debian/rules: Fix wrong PPD= fields in filter files. + * debian/rules: Remove all references to /usr/local. + * debian/patches/fix-usr-local: Remove all references to /usr/local + in source files. + * debian/control: Add transitional packages. + + -- Saïvann Carignan Thu, 28 Feb 2008 22:00:24 -0500 + +brother-cups-wrapper-laser1 (1.0.2-1-0ubuntu1) hardy; urgency=low + + * Initial release + + -- Saïvann Carignan Fri, 15 Feb 2008 10:07:22 -0500 --- brother-cups-wrapper-laser1-1.0.2-1.orig/debian/copyright +++ brother-cups-wrapper-laser1-1.0.2-1/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Saïvann Carignan +Fri, 15 Feb 2008 10:07:22 -0500 + +brother-cups-wrapper-laser1 was downloaded from: http://solutions.brother.com/linux/en_us/ + + +Licence: GPL-2 (see /usr/share/common-licenses/GPL-2) + + 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 + +The Debian packaging is © 2008, Saïvann Carignan +and is licensed under the GPL2 (See /usr/share/common-licenses/GPL-2) + +Copyright (C) 2005 Brother. Industries, Ltd. --- brother-cups-wrapper-laser1-1.0.2-1.orig/debian/patches/fix-missing-string-header +++ brother-cups-wrapper-laser1-1.0.2-1/debian/patches/fix-missing-string-header @@ -0,0 +1,13 @@ +diff -ruN SRC.orig/brcupsconfig/brcupsconfig.c SRC/brcupsconfig/brcupsconfig.c +--- SRC.orig/brcupsconfig/brcupsconfig.c 2005-07-04 21:50:24.000000000 -0400 ++++ SRC/brcupsconfig/brcupsconfig.c 2008-02-13 18:18:01.000000000 -0500 +@@ -19,7 +19,8 @@ + + + #include +-#include ++#include ++#include + #include "brcups_commands.h" + + --- brother-cups-wrapper-laser1-1.0.2-1.orig/debian/patches/remove-usr-local +++ brother-cups-wrapper-laser1-1.0.2-1/debian/patches/remove-usr-local @@ -0,0 +1,12 @@ +diff -ruN SRC.orig/brcupsconfig/brcupsconfig.c SRC/brcupsconfig/brcupsconfig.c +--- SRC.orig/brcupsconfig/brcupsconfig.c 2008-02-29 11:09:55.000000000 -0500 ++++ SRC/brcupsconfig/brcupsconfig.c 2008-02-29 11:10:05.000000000 -0500 +@@ -47,7 +47,7 @@ + + + +-#define SETTINGFILE "/usr/local/Brother/cupswrapper/cupswrapperc" ++#define SETTINGFILE "/usr/Brother/cupswrapper/cupswrapperc" + int log_level = 0; + + --- brother-cups-wrapper-laser1-1.0.2-1.orig/debian/patches/series +++ brother-cups-wrapper-laser1-1.0.2-1/debian/patches/series @@ -0,0 +1,2 @@ +fix-missing-string-header +remove-usr-local