Proje Gitea'ya taşındı (Temiz başlangıç)
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user