Proje Gitea'ya taşındı (Temiz başlangıç)

This commit is contained in:
Erkan IŞIK
2026-06-27 23:27:13 +03:00
commit c077995f65
683 changed files with 315285 additions and 0 deletions
@@ -0,0 +1,13 @@
#!/usr/bin/python
# Created For PisiLinux
from pisi.actionsapi import shelltools, get, pisitools
WorkDir = "."
def install():
shelltools.system("rpm2targz dcp135ccupswrapper-1.0.1-1.i386.rpm")
shelltools.system("tar -zxvf dcp135ccupswrapper-1.0.1-1.i386.tar.gz")
pisitools.insinto("/", "usr")
shelltools.system("rm -rf *")
@@ -0,0 +1,12 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
if not os.path.exists("/usr/local/Brother/cupswrapper/cupswrapperDCP135c-1.0.1"):
os.system("/usr/local/Brother/cupswrapper/cupswrapperDCP135c-1.0.1 -i")
def preRemove():
if os.path.exists("/usr/local/Brother/cupswrapper/cupswrapperDCP135c-1.0.1"):
os.system("/usr/local/Brother/cupswrapper/cupswrapperDCP135c-1.0.1 -e")
@@ -0,0 +1,46 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>dcp135ccupswrapper-1.0.1</Name>
<Homepage>http://solutions.brother.com/linux</Homepage>
<Packager>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Packager>
<Summary>CUPS drivers for Brother DCP-135C printer</Summary>
<Description>CUPS drivers for Brother DCP-135C printer.</Description>
<License>as-is</License>
<IsA>data</IsA>
<IsA>app:console</IsA>
<Archive sha1sum="57812fb70c7835286ac9294c3cb9337b99e24c03">http://www.brother.com/pub/bsc/linux/dlf/dcp135ccupswrapper-1.0.1-1.i386.rpm</Archive>
<BuildDependencies>
<Dependency>rpm2targz</Dependency>
<Dependency>tar</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>dcp135ccupswrapper-1.0.1</Name>
<RuntimeDependencies>
<Dependency>cups</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/local/Brother/Printer/dcp135c/cupswrapper</Path>
<Path fileType="executable">/usr/local/Brother/printer/dcp135c/cupswrapper</Path>
</Files>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<History>
<Update release="1">
<Date>2016-04-11</Date>
<Version>1.0.1</Version>
<Comment>First Release</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,13 @@
#!/usr/bin/python
# Created For PisiLinux
from pisi.actionsapi import shelltools, get, pisitools
WorkDir = "."
def install():
shelltools.system("rpm2targz dcp135clpr-1.0.1-1.i386.rpm")
shelltools.system("tar -zxvf dcp135clpr-1.0.1-1.i386.tar.gz")
pisitools.insinto("/", "usr")
shelltools.system("rm -rf *")
@@ -0,0 +1,42 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>dcp135clpr-1.0.1</Name>
<Homepage>http://solutions.brother.com/linux</Homepage>
<Packager>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Packager>
<Summary>lpr Driver for Brother dcp135c</Summary>
<Description>LPR Driver for Brother DCP135c</Description>
<License>as-is+</License>
<IsA>data</IsA>
<IsA>app:console</IsA>
<Archive sha1sum="48ff8b594f2bae70094dff883ec4e8153408eeae">http://www.brother.com/pub/bsc/linux/dlf/dcp135clpr-1.0.1-1.i386.rpm</Archive>
<BuildDependencies>
<Dependency>rpm2targz</Dependency>
<Dependency>tar</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>dcp135clpr-1.0.1</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/local/Brother/Printer/dcp135c/inf</Path>
<Path fileType="executable">/usr/local/Brother/Printer/dcp135c/lpd</Path>
<Path fileType="data">/var/spool/lpd/brother-dcp7030</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-04-11</Date>
<Version>1.0.1</Version>
<Comment>First Release</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,22 @@
#!/usr/bin/python
# Created For PisiLinux
from pisi.actionsapi import pisitools, shelltools, get
def install():
pisitools.dosym("/usr/local/Brother/sane/brsaneconfig2","/usr/bin/brsaneconfig2")
pisitools.dosym("/usr/lib/libbrcolm2.so.1","/usr/lib/libbrcolm2.so")
pisitools.dosym("/usr/lib/libbrcolm2.so.1.0.1","/usr/lib/libbrcolm2.so.1")
pisitools.dosym("/usr/lib/libbrscandec2.so.1","/usr/lib/libbrscandec2.so")
pisitools.dosym("/usr/lib/libbrscandec2.so.1.0.0","/usr/lib/libbrscandec2.so.1")
pisitools.dosym("/usr/lib/sane/libsane-brother2.so.1","/usr/lib/sane/libsane-brother2.so")
pisitools.dosym("/usr/lib/sane/libsane-brother2.so.1.0.7","/usr/lib/sane/libsane-brother2.so.1")
@@ -0,0 +1,43 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>brscan2</Name>
<Homepage></Homepage>
<Packager>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Packager>
<Summary>Sane scanner drivers for Brother DCP and MFC multifunction printers.</Summary>
<Description>brscan2 scanner driver is a sane backend which supports numerous Brother multifunction printers.</Description>
<License>as-is</License>
<IsA>library</IsA>
<Archive sha1sum="5ff7ec01fb8a43ba0e27aa9f8cad929903587558" type="binary">https://github.com/groni/Sources/raw/master/brscan2-0.2.5-1.x86_64.tar.gz</Archive>
</Source>
<Package>
<Name>brscan2</Name>
<RuntimeDependencies>
<Dependency>sane-backends</Dependency>
<Dependency>libusb-compat</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/local/Brother/sane/GrayCmData</Path>
<Path fileType="data">/usr/local/Brother/sane/models2</Path>
<Path fileType="data">/usr/local/Brother/sane</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="library">/usr/lib/sane</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-04-11</Date>
<Version>0.2.5</Version>
<Comment>First Release</Comment>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,14 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
def install():
pisitools.insinto("/usr/local", "./local/*")
pisitools.insinto("/usr/lib/", "./lib64/libbrscandec3.so.1.0.0")
pisitools.insinto("/usr/lib/", "./lib64/sane/libsane-brother3.so.1.0.7")
pisitools.insinto("/usr/lib/sane/", "./lib64/libbrscandec3.so.1.0.0")
pisitools.insinto("/usr/lib/sane/", "./lib64/sane/libsane-brother3.so.1.0.7")
pisitools.insinto("/usr/bin/", "./local/Brother/sane/brsaneconfig3*")
@@ -0,0 +1,45 @@
ACTION=="add", ATTR{idVendor}=="04f9", GOTO="brscan3"
GOTO="brscan3_end"
LABEL="brscan3"
ATTR{idProduct}=="0206", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0204", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0205", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0201", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0200", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01ff", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01fe", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01fd", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01fb", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01fa", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f9", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f8", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f7", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f6", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f5", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f4", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f1", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f3", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f2", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01f0", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01ef", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0207", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0208", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0203", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0202", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01fc", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01ee", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01ed", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01eb", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01ea", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01e9", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01e8", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01e7", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01e6", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="01e5", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0218", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="021f", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0217", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0216", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
ATTR{idProduct}=="0215", MODE="0664", GROUP="scanner", SYMLINK+="scanner%n"
LABEL="brscan3_end"
@@ -0,0 +1,47 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>brscan3</Name>
<Homepage>http://support.brother.com/g/s/id/linux/en</Homepage>
<Packager>
<Name>Stefan Gronewold</Name>
<Email>groni@pisilinux.org</Email>
</Packager>
<License>GPL, custom:brother</License>
<IsA>library</IsA>
<PartOf>applications.printing</PartOf>
<Summary>Brother SANE drivers for brscan3-compatible models.</Summary>
<Description>brscan3 scanner driver is a sane backend which supports numerous Brother multifunction printers.</Description>
<Archive sha1sum="cb58bc1ea1c1f279b75c68f42722fc178fda79a6" type="targz">https://github.com/groni/Sources/raw/master/brscan3-0.2.13-1.tar.gz</Archive>
</Source>
<Package>
<Name>brscan3</Name>
<RuntimeDependencies>
<Dependency>libusb-compat</Dependency>
<Dependency>sed</Dependency>
<Dependency>sane-backends</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/local</Path>
<Path fileType="executable">/usr/bin/</Path>
<Path fileType="library">/usr/lib/</Path>
<Path fileType="library">/usr/lib/sane</Path>
<Path fileType="data">/lib/udev/rules.d</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/lib/udev/rules.d/brscan3.rules">brscan3.rules</AdditionalFile>
</AdditionalFiles>
</Package>
<History>
<Update release="1">
<Date>2016-04-28</Date>
<Version>0.2.11</Version>
<Comment>First release.</Comment>
<Name>Stefan Gronewold</Name>
<Email>groni@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,13 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
from pisi.actionsapi import pisitools
WorkDir = "."
def install():
pisitools.insinto("/usr/local/brother/scanner/brscan4", "./opt/brother/scanner/brscan4/*")
pisitools.insinto("/usr/lib/sane/libsane-brother4.so.1", "./usr/lib64/sane/libsane-brother4.so.1.0.7")
pisitools.insinto("/usr/bin/", "./opt/brother/scanner/brscan4/brsaneconfig4")
@@ -0,0 +1,5 @@
ACTION=="add", ATTR{idVendor}=="04f9", GOTO="brscan4"
GOTO="brscan4_end"
LABEL="brscan4"
ATTR{idProduct}=="0248", MODE="0664", GROUP="lp", ENV{libsane_matched}="yes"
LABEL="brscan4_end"
@@ -0,0 +1,46 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>brscan4</Name>
<Homepage>http://solutions.brother.com/linux/sol/printer/linux/sane_drivers.html</Homepage>
<Packager>
<Name>Pisi Linux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>as-is</License>
<IsA>library</IsA>
<PartOf>applications.printing</PartOf>
<Summary>Sane scanner drivers for Brother DCP and MFC multifunction printers.</Summary>
<Description>brscan4 scanner driver is a sane backend which supports numerous Brother multifunction printers.</Description>
<Archive sha1sum="07e6eb15cc56f0496255a7879497f05d419881b4" type="targz">https://github.com/groni/Sources/raw/master/brscan4-0.4.2-1.tar.gz</Archive>
</Source>
<Package>
<Name>brscan4</Name>
<RuntimeDependencies>
<Dependency>sane-backends</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/local/brother/scanner/brscan4</Path>
<!--<Path fileType="data">/usr/local/Brother/sane/models4</Path>-->
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="library">/usr/lib/sane</Path>
<Path fileType="data">/lib/udev/rules.d</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/lib/udev/rules.d/brscan4.rules">brscan4.rules</AdditionalFile>
</AdditionalFiles>
</Package>
<History>
<Update release="1">
<Date>2014-08-03</Date>
<Version>0.4.2</Version>
<Comment>First release.</Comment>
<Name>Stefan Gronewold (groni)</Name>
<Email>groni@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,25 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.system("rpm2targz -v %s/hl1210wlpr-3.0.1-1.i386.rpm" %get.workDIR())
shelltools.system("rpm2targz -v %s/hl1210wcupswrapper-3.0.1-1.i386.rpm" %get.workDIR())
shelltools.system("tar xfvz %s/hl1210wlpr-3.0.1-1.i386.tar.gz" %get.workDIR())
shelltools.system("tar xfvz %s/hl1210wcupswrapper-3.0.1-1.i386.tar.gz" %get.workDIR())
def install():
pisitools.dodir("/usr/share/cups/model")
pisitools.dodir("/usr/lib/cups/filter")
pisitools.dodir("/opt")
pisitools.insinto("/usr/share/cups/model","%s/opt/brother/Printers/HL1210W/cupswrapper/brother-HL1210W-cups-en.ppd" % get.workDIR())
pisitools.insinto("/usr/lib/cups/filter","%s/opt/brother/Printers/HL1210W/cupswrapper/brother_lpdwrapper_HL1210W" % get.workDIR())
pisitools.insinto("/opt", "opt/*")
@@ -0,0 +1,172 @@
#! /bin/sh
#
# CUPS filter for HL1210W
# Copyright Brother Industries,Ltd 2006-2014
#
# Ver1.05
# 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
#
LOGFILE="/dev/null"
LOGCLEVEL="7"
DEBUG=0
LOG_LATESTONLY=1
PRINTER=HL1210W
BASEDIR=/usr/share/cups/model/$PRINTER/
LATESTINFO=/tmp/HL1210W_latest_print_info
rm -f $LATESTINFO
touch $LATESTINFO
options="$5"
if [ "$(echo $options | grep 'force-debug=1')" != '' ];then
DEBUG=1
elif [ "$(echo $options | grep 'force-debug=2')" != '' ];then
DEBUG=2
elif [ "$(echo $options | grep 'force-debug=3')" != '' ];then
DEBUG=3
elif [ "$(echo $options | grep 'force-debug=4')" != '' ];then
DEBUG=4
fi
errorcode=0
set +o noclobber
if [ $DEBUG != 0 ]; then
LOGFILE=/tmp/br_cupsfilter_debug_log
fi
if [ "$PPD" = "" ]; then
PPD="/usr/share/cups/model/$PRINTER.ppd"
fi
if [ $LOGFILE != "/dev/null" ]; then
if [ $LOG_LATESTONLY = "1" ]; then
rm -f $LOGFILE
date >$LOGFILE
else
if [ -e $LOGFILE ]; then
date >>$LOGFILE
else
date >$LOGFILE
fi
fi
echo "arg0 = $0" >>$LOGFILE
echo "arg1 = $1" >>$LOGFILE
echo "arg2 = $2" >>$LOGFILE
echo "arg3 = $3" >>$LOGFILE
echo "arg4 = $4" >>$LOGFILE
echo "arg5 = $5" >>$LOGFILE
echo "arg6 = $6" >>$LOGFILE
echo "PPD = $PPD" >>$LOGFILE
fi
TMP_RC=/tmp/brHL1210Wrc_$$
cp /opt/brother/Printers/$PRINTER//inf/brHL1210Wrc $TMP_RC
export BRPRINTERRCFILE=$TMP_RC
if [ $DEBUG != 0 ]; then
echo BRPRINTERRCFILE=$BRPRINTERRCFILE >>$LOGFILE
fi
if [ -e "/$BASEDIR/lpd/filter_"${PRINTER}"" ]; then
:
else
echo "ERROR: /$BASEDIR/lpd/filter_"$PRINTER" does not exist" >>$LOGFILE
echo "ERROR: /$BASEDIR/lpd/filter_"$PRINTER" does not exist" >> $LATESTINFO
errorcode=2
rm $TMP_RC
exit
fi
if [ -e "/opt/brother/Printers/$PRINTER//cupswrapper/brcupsconfig4" ]; then
if [ $DEBUG = 0 ]; then
/opt/brother/Printers/$PRINTER//cupswrapper/brcupsconfig4 $PRINTER $PPD 0 "$options" >> /dev/null
else
/opt/brother/Printers/$PRINTER//cupswrapper/brcupsconfig4 $PRINTER $PPD $LOGCLEVEL "$options" >>$LOGFILE
fi
fi
if [ $DEBUG = 0 ]; then
if [ $# -ge 7 ]; then
cat $6 | /$BASEDIR/lpd/filter_"$PRINTER"
else
cat | /$BASEDIR/lpd/filter_"$PRINTER"
fi
echo brHL1210Wrc_$$ >> $LATESTINFO
cat $TMP_RC >> $LATESTINFO
rm $TMP_RC
exit $errorcode
else
## ---------------- for debug
echo --------------------------- >>$LOGFILE
cat $BRPRINTERRCFILE >>$LOGFILE
echo --------------------------- >>$LOGFILE
INPUT_TEMP_PS=`mktemp /tmp/br_input_ps.XXXXXX`
if [ $# -ge 7 ]; then
cat $6 > $INPUT_TEMP_PS
else
cat > $INPUT_TEMP_PS
fi
case $DEBUG in
1)
export LPD_DEBUG=1
cat $INPUT_TEMP_PS | /$BASEDIR/lpd/filter_"$PRINTER"
;;
2)
export LPD_DEBUG=2
echo "" >>$LOGFILE
echo " ------PostScript Data-------" >>$LOGFILE
cat $INPUT_TEMP_PS >>$LOGFILE
cat $INPUT_TEMP_PS | /$BASEDIR/lpd/filter_"$PRINTER"
;;
3)
export LPD_DEBUG=3
echo "" >>$LOGFILE
echo " ------PostScript Data-------" >>$LOGFILE
cat $INPUT_TEMP_PS >>$LOGFILE
;;
4)
export LPD_DEBUG=4
echo "" >>$LOGFILE
echo " ------PostScript Data-------" >>$LOGFILE
cat $INPUT_TEMP_PS >>$LOGFILE
echo " ------Print Data-------" >>$LOGFILE
cat $INPUT_TEMP_PS | /$BASEDIR/lpd/filter_"$PRINTER" | hexdump -C >>$LOGFILE
;;
esac
rm
echo brHL1210Wrc_$$ >> $LATESTINFO
cat $TMP_RC >> $LATESTINFO
rm $TMP_RC
fi
exit
@@ -0,0 +1,172 @@
#! /bin/sh
#
# CUPS filter for HL1210W
# Copyright Brother Industries,Ltd 2006-2014
#
# Ver1.05
# 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
#
LOGFILE="/dev/null"
LOGCLEVEL="7"
DEBUG=0
LOG_LATESTONLY=1
PRINTER=HL1210W
BASEDIR=/opt/brother/Printers/$PRINTER/
LATESTINFO=/tmp/HL1210W_latest_print_info
rm -f $LATESTINFO
touch $LATESTINFO
options="$5"
if [ "$(echo $options | grep 'force-debug=1')" != '' ];then
DEBUG=1
elif [ "$(echo $options | grep 'force-debug=2')" != '' ];then
DEBUG=2
elif [ "$(echo $options | grep 'force-debug=3')" != '' ];then
DEBUG=3
elif [ "$(echo $options | grep 'force-debug=4')" != '' ];then
DEBUG=4
fi
errorcode=0
set +o noclobber
if [ $DEBUG != 0 ]; then
LOGFILE=/tmp/br_cupsfilter_debug_log
fi
if [ "$PPD" = "" ]; then
PPD="/usr/share/cups/model/$PRINTER.ppd"
fi
if [ $LOGFILE != "/dev/null" ]; then
if [ $LOG_LATESTONLY = "1" ]; then
rm -f $LOGFILE
date >$LOGFILE
else
if [ -e $LOGFILE ]; then
date >>$LOGFILE
else
date >$LOGFILE
fi
fi
echo "arg0 = $0" >>$LOGFILE
echo "arg1 = $1" >>$LOGFILE
echo "arg2 = $2" >>$LOGFILE
echo "arg3 = $3" >>$LOGFILE
echo "arg4 = $4" >>$LOGFILE
echo "arg5 = $5" >>$LOGFILE
echo "arg6 = $6" >>$LOGFILE
echo "PPD = $PPD" >>$LOGFILE
fi
TMP_RC=/tmp/brHL1210Wrc_$$
cp /opt/brother/Printers/$PRINTER//inf/brHL1210Wrc $TMP_RC
export BRPRINTERRCFILE=$TMP_RC
if [ $DEBUG != 0 ]; then
echo BRPRINTERRCFILE=$BRPRINTERRCFILE >>$LOGFILE
fi
if [ -e "/$BASEDIR/lpd/filter_"${PRINTER}"" ]; then
:
else
echo "ERROR: /$BASEDIR/lpd/filter_"$PRINTER" does not exist" >>$LOGFILE
echo "ERROR: /$BASEDIR/lpd/filter_"$PRINTER" does not exist" >> $LATESTINFO
errorcode=2
rm $TMP_RC
exit
fi
if [ -e "/opt/brother/Printers/$PRINTER//cupswrapper/brcupsconfig4" ]; then
if [ $DEBUG = 0 ]; then
/opt/brother/Printers/$PRINTER//cupswrapper/brcupsconfig4 $PRINTER $PPD 0 "$options" >> /dev/null
else
/opt/brother/Printers/$PRINTER//cupswrapper/brcupsconfig4 $PRINTER $PPD $LOGCLEVEL "$options" >>$LOGFILE
fi
fi
if [ $DEBUG = 0 ]; then
if [ $# -ge 7 ]; then
cat $6 | /$BASEDIR/lpd/filter_"$PRINTER"
else
cat | /$BASEDIR/lpd/filter_"$PRINTER"
fi
echo brHL1210Wrc_$$ >> $LATESTINFO
cat $TMP_RC >> $LATESTINFO
rm $TMP_RC
exit $errorcode
else
## ---------------- for debug
echo --------------------------- >>$LOGFILE
cat $BRPRINTERRCFILE >>$LOGFILE
echo --------------------------- >>$LOGFILE
INPUT_TEMP_PS=`mktemp /tmp/br_input_ps.XXXXXX`
if [ $# -ge 7 ]; then
cat $6 > $INPUT_TEMP_PS
else
cat > $INPUT_TEMP_PS
fi
case $DEBUG in
1)
export LPD_DEBUG=1
cat $INPUT_TEMP_PS | /$BASEDIR/lpd/filter_"$PRINTER"
;;
2)
export LPD_DEBUG=2
echo "" >>$LOGFILE
echo " ------PostScript Data-------" >>$LOGFILE
cat $INPUT_TEMP_PS >>$LOGFILE
cat $INPUT_TEMP_PS | /$BASEDIR/lpd/filter_"$PRINTER"
;;
3)
export LPD_DEBUG=3
echo "" >>$LOGFILE
echo " ------PostScript Data-------" >>$LOGFILE
cat $INPUT_TEMP_PS >>$LOGFILE
;;
4)
export LPD_DEBUG=4
echo "" >>$LOGFILE
echo " ------PostScript Data-------" >>$LOGFILE
cat $INPUT_TEMP_PS >>$LOGFILE
echo " ------Print Data-------" >>$LOGFILE
cat $INPUT_TEMP_PS | /$BASEDIR/lpd/filter_"$PRINTER" | hexdump -C >>$LOGFILE
;;
esac
rm
echo brHL1210Wrc_$$ >> $LATESTINFO
cat $TMP_RC >> $LATESTINFO
rm $TMP_RC
fi
exit
@@ -0,0 +1,46 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org.tr/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>brother-1210w</Name>
<Homepage></Homepage>
<Packager>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<Icon>brother-1210w</Icon>
<IsA>app:gui</IsA>
<Summary>Brother HL-1210W CUPS driver. After installing this, install printer from CUPS web interface</Summary>
<Description>Brother HL-1210W CUPS driver. After installing this, install printer from CUPS web interface</Description>
<Archive sha1sum="74a6e2ad6bd1373ddb04a231c0ab61fae4b67347" type="binary">http://download.brother.com/welcome/dlf101549/hl1210wlpr-3.0.1-1.i386.rpm</Archive>
<Archive sha1sum="279ed55b210f57943e92c7ccb72a90830bbdbeb6" type="binary">http://download.brother.com/welcome/dlf101548/hl1210wcupswrapper-3.0.1-1.i386.rpm</Archive>
<BuildDependencies>
<Dependency>rpm2targz</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>brother-1210w</Name>
<RuntimeDependencies>
<Dependency>cups</Dependency>
<Dependency>ghostscript</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/opt</Path>
<Path fileType="library">/usr/lib/cups</Path>
<Path fileType="data">/usr/share/cups</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2020-04-06</Date>
<Version>3.0.1</Version>
<Comment>First release</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,27 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get, pisitools, shelltools
#NoStrip = ["/usr"]
IgnoreAutodep = True
Version = get.srcVERSION()
def setup():
shelltools.system("pwd")
shelltools.system("ar xf dcpt510wpdrv-%s-0.i386.deb" % get.srcVERSION())
shelltools.system("tar xf data.tar.gz")
def install():
pisitools.dodir("/usr/share/cups/model")
pisitools.dodir("/usr/lib/cups/filter")
pisitools.insinto("/usr/share/cups/model","%s/opt/brother/Printers/dcpt510w/cupswrapper/brother_dcpt510w_printer_en.ppd" % get.workDIR())
pisitools.insinto("/usr/lib/cups/filter","%s/opt/brother/Printers/dcpt510w/cupswrapper/brother_lpdwrapper_dcpt510w" % get.workDIR())
pisitools.insinto("/", "usr")
pisitools.insinto("/", "opt")
shelltools.chmod("%s/usr/lib/cups/filter/brother_lpdwrapper_dcpt510w" % get.installDIR(), 4711)
@@ -0,0 +1,68 @@
#! /bin/sh
#
# Brother Print filter
# Copyright (C) 2003-2017 Brother. Industries, Ltd.
# 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
#
BRPRINTER_MODEL=$1
BRPRINTER_NAME=`echo $BRPRINTER_MODEL | tr '[a-z]' '[A-Z]'`
PRINTCAP_NAME=/etc/printcap.local
SPOOLER_NAME=/var/spool/lpd/$BRPRINTER_MODEL
DEVICE_IF=/dev/usb/lp0
if [ ! -f $PRINTCAP_NAME ]; then
PRINTCAP_NAME=/etc/printcap
fi
case "$2" in
-i)
if [ ! -d $SPOOLER_NAME ]; then
mkdir -p $SPOOLER_NAME
fi
chown root $SPOOLER_NAME
chgrp lp $SPOOLER_NAME
chmod 700 $SPOOLER_NAME
if [ "$3" = "USB" ]; then
DEVICE_IF=/dev/usb/lp0
fi
cat <<EOF >>$PRINTCAP_NAME
${BRPRINTER_NAME}:\\
:mx=0:\\
:sd=/var/spool/lpd/$BRPRINTER_MODEL:\\
:sh:\\
:lp=$DEVICE_IF:\\
:if=/opt/brother/Printers/$BRPRINTER_MODEL/lpd/filter_$BRPRINTER_MODEL:
EOF
;;
-e)
#
# mv $PRINTCAP_NAME $PRINTCAP_NAME.tmp
#
set +o noclobber
cp $PRINTCAP_NAME $PRINTCAP_NAME.tmp
cat ${PRINTCAP_NAME}.tmp | eval sed "/${BRPRINTER_NAME}:/,/filter_$BRPRINTER_MODEL:/d" > ${PRINTCAP_NAME}
rm -f ${PRINTCAP_NAME}.tmp
rm -Rf $SPOOLER_NAME
;;
*)
;;
esac
@@ -0,0 +1,41 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>brother-dcpt510w</Name>
<Homepage>https://support.brother.com</Homepage>
<Packager>
<Name>Erkan IŞIK</Name>
<Email>erkanisik@pisilinux.org</Email>
</Packager>
<Summary>Brother Inkjet Printer (LPR/CUPS) Driver</Summary>
<Description>Brother Inkjet Printer (LPR/CUPS) Driver</Description>
<License>custom</License>
<Archive sha1sum="565cc4f06130c035b6e8f23827cdb68dea8eacd5" type="binary">
https://download.brother.com/welcome/dlf103620/dcpt510wpdrv-1.0.1-0.i386.deb
</Archive>
</Source>
<Package>
<RuntimeDependencies>
<Dependency>cups</Dependency>
</RuntimeDependencies>
<Name>brother-dcpt510w</Name>
<Files>
<Path fileType="executable">/opt</Path>
<Path fileType="data">/usr</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0755" target="/opt/brother/Printers/dcpt510w/inf/setupPrintcapij">setupPrintcapij</AdditionalFile>
</AdditionalFiles>
</Package>
<History>
<Update release="1">
<Date>2025-01-14</Date>
<Version>1.0.1</Version>
<Comment>First release</Comment>
<Name>Erkan IŞIK</Name>
<Email>erkanisik@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>obsidian</Name>
<Summary xml:lang="tr">Obsidian, düşünme şeklinize uyum sağlayan özel ve esnek bir yazma uygulamasıdır.</Summary>
<Description xml:lang="tr">Obsidian, düşünme şeklinize uyum sağlayan özel ve esnek bir yazma uygulamasıdır.</Description>
</Source>
</PISI>
@@ -0,0 +1,17 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
from pisi.actionsapi import pisitools
def install():
pisitools.insinto("/usr/lib/cups/backend", "./lib64/cups/backend/*")
pisitools.insinto("/usr/lib/cups/filter", "./lib64/cups/filter/pstocanonij")
pisitools.dobin("./local/bin/cngpij", "/usr/local/bin/")
pisitools.insinto("usr/share/doc", "./share/doc/cnijfilter-common-3.40/LICENSE-cnijfilter-3.40EN.txt")
pisitools.insinto("usr/share/doc","./share/doc/cnijfilter-common-3.40/LICENSE-cnijfilter-3.40FR.txt")
pisitools.insinto("usr/share/doc","./share/doc/cnijfilter-common-3.40/LICENSE-cnijfilter-3.40JP.txt")
pisitools.insinto("usr/share/doc","./share/doc/cnijfilter-common-3.40/LICENSE-cnijfilter-3.40SC.txt")
@@ -0,0 +1,41 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM 'http://www.pardus.org.tr/projeler/pisi/pisi-spec.dtd'>
<PISI>
<Source>
<Name>cnijfilter-common</Name>
<Homepage>http://software.canon-europe.com</Homepage>
<Packager>
<Name>Stefan Gronewold</Name>
<Email>groni@pisilinux.org</Email>
</Packager>
<License>custom</License>
<IsA>driver</IsA>
<PartOf>applications.printing</PartOf>
<Summary>Canon IJ Printer Driver (Common package) x86_64</Summary>
<Description>Canon printing drivers which supports MP600 multifunction printer.</Description>
<Archive sha1sum="246491bdd78a333a5d88855ac3688848fbbd5984" type="targz">https://github.com/groni/Sources/raw/master/cnijfilter-common-3.40-x86_64.tar.gz</Archive>
</Source>
<Package>
<Name>cnijfilter-common</Name>
<RuntimeDependencies>
<Dependency>cups</Dependency>
<Dependency>popt</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/local/bin</Path>
<Path fileType="executable">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2016-04-26</Date>
<Version>3.40</Version>
<Comment>First Release</Comment>
<Name>Stefan Gronewold</Name>
<Email>groni@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,3 @@
<PISI>
<Name>hardware.printer-and-scanner</Name>
</PISI>