From d3acade0595120828727c14db4cb49e1e08c0cd4 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Wed, 23 Nov 2022 20:02:12 +0100 Subject: [PATCH] removed brother dcpj140w --- broken/brother-dcpj140w/APKBUILD | 53 ------------ broken/brother-dcpj140w/README.org | 10 --- .../brother-dcpj140w.post-install | 7 -- .../brother-dcpj140w.pre-deinstall | 5 -- broken/brother-dcpj140w/fix_lp.patch | 11 --- broken/brother-dcpj140w/lp_usr_share.patch | 11 --- .../brother-dcpj140w/wrapper_usr_share.patch | 84 ------------------- 7 files changed, 181 deletions(-) delete mode 100644 broken/brother-dcpj140w/APKBUILD delete mode 100644 broken/brother-dcpj140w/README.org delete mode 100644 broken/brother-dcpj140w/brother-dcpj140w.post-install delete mode 100644 broken/brother-dcpj140w/brother-dcpj140w.pre-deinstall delete mode 100644 broken/brother-dcpj140w/fix_lp.patch delete mode 100644 broken/brother-dcpj140w/lp_usr_share.patch delete mode 100644 broken/brother-dcpj140w/wrapper_usr_share.patch diff --git a/broken/brother-dcpj140w/APKBUILD b/broken/brother-dcpj140w/APKBUILD deleted file mode 100644 index 1211e59..0000000 --- a/broken/brother-dcpj140w/APKBUILD +++ /dev/null @@ -1,53 +0,0 @@ -# Contributor: Alessio Bianchi -# Contributor: Jacek Roszkowski -# Contributor: Javier Cordero -# Contributor: M. Arnout -# Maintainer: Jakob Meier - -pkgname=brother-dcpj140w -pkgver=1.1.3 -pkgrel=4 -pkgdesc="Driver for the Brother DCP-j140w wifi multifuncional printer" -url="http://solutions.brother.com/linux/en_us/index.html" -license="custom:brother" -makedepends="rpm2cpio" -depends="a2ps cups gcompat" -install="brother-dcpj140w.post-install -brother-dcpj140w.pre-deinstall" -arch="x86 x86_64" -options="!check" -source="fix_lp.patch -wrapper_usr_share.patch -lp_usr_share.patch -http://www.brother.com/pub/bsc/linux/dlf/dcpj140wlpr-$pkgver-6.i386.rpm -http://www.brother.com/pub/bsc/linux/dlf/dcpj140wcupswrapper-$pkgver-6.i386.rpm" - -prepare() { - rpm2cpio dcpj140wlpr-$pkgver-6.i386.rpm | cpio -idmv - rpm2cpio dcpj140wcupswrapper-$pkgver-6.i386.rpm | cpio -idmv -} - -build() { - cd "$srcdir" - patch -Np0 < fix_lp.patch - patch -Np0 < wrapper_usr_share.patch - patch -Np0 < lp_usr_share.patch -} - -post_install() { - /usr/share/brother/Printers/dcpj140w/cupswrapper/cupswrapperdcpj140w -} - -package() { - install -d $pkgdir/usr/bin - install -d $pkgdir/var/spool/lpd - install -Dm755 "$srcdir"/usr/bin/brprintconf_dcpj140w "$pkgdir"/usr/bin/ - cp -R $srcdir/opt $pkgdir/usr/share -} -sha512sums=" -804d289eded628dc61d8cd7d5e786d38b2c275e4d7c403554b94abf13c843f6dd087152e99911453f838210637ca7b58e2237d32b22e19c3f820ac8565a7e871 fix_lp.patch -cb908a52256a679796633113d40c8c70e7ab10086fb63badfbe8d56a8a061cf8589078249793ed80629d40091af9e411a6aacdf38e764368b53013e13acd73b9 wrapper_usr_share.patch -da0d8730bca6d37d455eb479ff072b6479f997e7f1fe0e513c88ef88e25038031b461c6f8d7aa46d2d0d4e31b9ef9f79ee6be6da85a50fbe6c3c6618d09c65db lp_usr_share.patch -34e92df28ee94508b956f56dc71a19f04639b5ca1415c25a6fa32e3226f3419e29de550e9f7b907cfd66ece1c2d752d7bb05475f58bc6c4a2e00fdd49cdf179b dcpj140wlpr-1.1.3-6.i386.rpm -2f59330b9d6e9a596371fbcd509aa933a28293238114c0bfb6d2067698a0c3aa60fc16982729d86881bfd72c6d8cbe58ecf0ca63bf23205066521bf796dbe7b0 dcpj140wcupswrapper-1.1.3-6.i386.rpm -" diff --git a/broken/brother-dcpj140w/README.org b/broken/brother-dcpj140w/README.org deleted file mode 100644 index e707353..0000000 --- a/broken/brother-dcpj140w/README.org +++ /dev/null @@ -1,10 +0,0 @@ -* Brother DCP-J140W -An attempt -to get the official brother DCP-J140W linux driver working in alpine linux. - -Might not be possible, -because alpine does not have multilib support. - -In order for this to work at all, -you will likely have to setup lpadmin and cups beforehand: -[[https://wiki.alpinelinux.org/wiki/Printer_Setup][You can find a guide here]] diff --git a/broken/brother-dcpj140w/brother-dcpj140w.post-install b/broken/brother-dcpj140w/brother-dcpj140w.post-install deleted file mode 100644 index 880d9f7..0000000 --- a/broken/brother-dcpj140w/brother-dcpj140w.post-install +++ /dev/null @@ -1,7 +0,0 @@ -# lpr -/usr/share/brother/Printers/dcpj140w/inf/setupPrintcapij dcpj140w -i - -# cupswrapper -/usr/share/brother/Printers/dcpj140w/cupswrapper/cupswrapperdcpj140w - -rc-service cupsd restart diff --git a/broken/brother-dcpj140w/brother-dcpj140w.pre-deinstall b/broken/brother-dcpj140w/brother-dcpj140w.pre-deinstall deleted file mode 100644 index 7aafb10..0000000 --- a/broken/brother-dcpj140w/brother-dcpj140w.pre-deinstall +++ /dev/null @@ -1,5 +0,0 @@ -# lpr -/usr/share/brother/Printers/dcpj140w/inf/setupPrintcapij dcpj140w -e - -# cupswrapper -/usr/share/brother/Printers/dcpj140w/cupswrapper/cupswrapperdcpj140w -e diff --git a/broken/brother-dcpj140w/fix_lp.patch b/broken/brother-dcpj140w/fix_lp.patch deleted file mode 100644 index a3cb76c..0000000 --- a/broken/brother-dcpj140w/fix_lp.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- opt/brother/Printers/dcpj140w/inf/setupPrintcapij.old 2008-09-15 22:01:07.000000000 +0200 -+++ opt/brother/Printers/dcpj140w/inf/setupPrintcapij 2008-09-15 22:01:26.000000000 +0200 -@@ -34,7 +34,7 @@ - if [ ! -d $SPOOLER_NAME ]; then - mkdir $SPOOLER_NAME - fi -- chown lp $SPOOLER_NAME -+ chown root $SPOOLER_NAME - chgrp lp $SPOOLER_NAME - chmod 700 $SPOOLER_NAME - diff --git a/broken/brother-dcpj140w/lp_usr_share.patch b/broken/brother-dcpj140w/lp_usr_share.patch deleted file mode 100644 index 5f2af91..0000000 --- a/broken/brother-dcpj140w/lp_usr_share.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- opt/brother/Printers/dcpj140w/inf/setupPrintcapij.old -+++ opt/brother/Printers/dcpj140w/inf/setupPrintcapij -@@ -48,7 +48,7 @@ - :sd=/var/spool/lpd/$BRPRINTER_MODEL:\\ - :sh:\\ - :lp=$DEVICE_IF:\\ -- :if=/opt/brother/Printers/$BRPRINTER_MODEL/lpd/filter$BRPRINTER_MODEL: -+ :if=/usr/share/brother/Printers/$BRPRINTER_MODEL/lpd/filter$BRPRINTER_MODEL: - EOF - ;; - -e) diff --git a/broken/brother-dcpj140w/wrapper_usr_share.patch b/broken/brother-dcpj140w/wrapper_usr_share.patch deleted file mode 100644 index 3cac8b7..0000000 --- a/broken/brother-dcpj140w/wrapper_usr_share.patch +++ /dev/null @@ -1,84 +0,0 @@ ---- opt/brother/Printers/dcpj140w/cupswrapper/cupswrapperdcpj140w.old -+++ opt/brother/Printers/dcpj140w/cupswrapper/cupswrapperdcpj140w -@@ -45,7 +45,7 @@ - rm -f /usr/share/ppd/Brother/brother_${printer_model}_printer_en.ppd - rm -f /usr/lib/cups/filter/brlpdwrapper${printer_model} - rm -f /usr/lib64/cups/filter/brlpdwrapper${printer_model} -- rm -f /opt/brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 -+ rm -f /usr/share/brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 - # rm -f /usr/local/Brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 - if [ -e /etc/init.d/cups ]; then - /etc/init.d/cups restart -@@ -72,10 +72,10 @@ - echo ' -r : remove printer' - exit 0 - fi --#mkdir -p /opt/brother/${device_model}/${printer_model}/filter -+#mkdir -p /usr/share/brother/${device_model}/${printer_model}/filter - #mkdir -p /usr/lib/cups/filter - --if [ -e "/opt/brother/${device_model}/${printer_model}/lpd/filter${printer_model}" ]; then -+if [ -e "/usr/share/brother/${device_model}/${printer_model}/lpd/filter${printer_model}" ]; then - : - else - echo "ERROR : Brother LPD filter is not installed." -@@ -87,12 +87,12 @@ - ppd_file_name=/usr/share/ppd/Brother/brother_${printer_model}_printer_en.ppd - fi - --if [ -e "/opt/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd" ]; then --cp "/opt/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd" $ppd_file_name -+if [ -e "/usr/share/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd" ]; then -+cp "/usr/share/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd" $ppd_file_name - else - echo "ERROR : copy failed." -- echo "/opt/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd." -- echo "/opt/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd" -+ echo "/usr/share/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd." -+ echo "/usr/share/brother/${device_model}/${printer_model}/cupswrapper/brother_${printer_model}_printer_en.ppd" - fi - - chmod 644 $ppd_file_name -@@ -218,25 +218,25 @@ - cat > \$INPUT_TEMP_PS - fi - fi --if [ -e "/opt/brother/${device_model}/${printer_model}/lpd/filter${printer_model}" ]; then -+if [ -e "/usr/share/brother/${device_model}/${printer_model}/lpd/filter${printer_model}" ]; then - : - else -- echo "ERROR: /opt/brother/${device_model}/${printer_model}/lpd/filter${printer_model} does not exist" >>\$LOGFILE -+ echo "ERROR: /usr/share/brother/${device_model}/${printer_model}/lpd/filter${printer_model} does not exist" >>\$LOGFILE - errorcode=30 - exit - fi - - CUPSOPTION=\`echo "\$5 Copies=\$4" | sed -e 's/BrMirror=OFF/MirrorPrint=OFF/' -e 's/BrMirror=ON/MirrorPrint=ON/' -e 's/BrChain/Chain/' -e 's/BrBrightness/Brightness/' -e 's/BrContrast/Contrast/' -e 's/BrHalfCut/HalfCut/' -e 's/BrAutoTapeCut/AutoCut/' -e 's/BrHalftonePattern/Halftone/' -e 's/Binary/Binary/' -e 's/Dither/Dither/' -e 's/ErrorDiffusion/ErrorDiffusion/' -e 's/PageSize/media/' -e 's/BrSheets/Sheets/' -e 's/multiple-document-handling/Collate/' -e 's/separate-documents-collated-copies/ON/' -e 's/separate-documents-uncollated-copies/OFF/'\` --if [ -e "/opt/brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1" ]; then -+if [ -e "/usr/share/brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1" ]; then - if [ \$DEBUG = 0 ]; then -- /opt/brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 ${printer_name} \$PPDC 0 "\$CUPSOPTION" "${printer_model}">> /dev/null -+ /usr/share/brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 ${printer_name} \$PPDC 0 "\$CUPSOPTION" "${printer_model}">> /dev/null - else -- /opt/brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 ${printer_name} \$PPDC \$LOGCLEVEL "\$CUPSOPTION" "${printer_model}">>\$LOGFILE -+ /usr/share/brother/${device_model}/${printer_model}/cupswrapper/brcupsconfpt1 ${printer_name} \$PPDC \$LOGCLEVEL "\$CUPSOPTION" "${printer_model}">>\$LOGFILE - fi - fi - - if [ \$DEBUG -lt 10 ]; then -- cat \$INPUT_TEMP_PS | /opt/brother/${device_model}/${printer_model}/lpd/filter${printer_model} "\$\$" "CUPS" "USB" -+ cat \$INPUT_TEMP_PS | /usr/share/brother/${device_model}/${printer_model}/lpd/filter${printer_model} "\$\$" "CUPS" "USB" - - if [ \$LOGLEVEL -gt 2 ]; then - if [ \$LOGFILE != "/dev/null" ]; then -@@ -277,8 +277,8 @@ - # - rm -f $tmp_filter - --chmod a+w /opt/brother/${device_model}/${printer_model}/inf/br${printer_model}rc --chmod a+w /opt/brother/${device_model}/${printer_model}/inf -+chmod a+w /usr/share/brother/${device_model}/${printer_model}/inf/br${printer_model}rc -+chmod a+w /usr/share/brother/${device_model}/${printer_model}/inf - if [ -e /etc/init.d/lpd ]; then - /etc/init.d/lpd stop - fi -- 2.38.5