Commit 7ca99a67 authored by Ivan Mazhukin's avatar Ivan Mazhukin Committed by Vitaly Lipatov

epm play: add xerox-spl-driver (eterbug #17548)

parent 6c8f13ea
#!/bin/sh
TAR="$1"
RETURNTARNAME="$2"
. $(dirname $0)/common.sh
# Xerox_B215_Linux_PrintDriver_Utilities.tar.gz
BASENAME=$(basename $TAR .tar.gz)
erc unpack $TAR || fatal
cd *
mkdir usr
mkdir opt
mkdir etc
VERSION=$(cat "noarch/.version-printer")
# printer drivers install
mkdir -p "usr/share/cups/model/"
mv "noarch/share/ppd/" "usr/share/cups/model/xerox/"
install -Dm0755 "x86_64/libscmssc.so" "usr/lib/libscmssc.so"
install -Dm0755 "x86_64/smfpnetdiscovery" "usr/lib/cups/backend/smfpnetdiscovery"
install -Dm0755 "x86_64/pstosecps" "usr/lib/cups/filter/pstosecps"
install -Dm0755 "x86_64/rastertospl" "usr/lib/cups/filter/rastertospl"
# scanner drivers install
install -Dm0644 "x86_64/libsane-smfp.so.1.0.1" "usr/lib/sane/libsane-smfp.so.1.0.1"
pushd "usr/lib/sane/"
ln -s libsane-smfp.so.1.0.1 libsane-smfp.so.1
ln -s libsane-smfp.so.1.0.1 libsane-smfp.so
popd
install -Dm0644 "noarch/etc/smfp.conf" "etc/sane.d/smfp.conf"
install -dm0755 "etc/sane.d/dll.d"
echo smfp > "etc/sane.d/dll.d/smfp-scanner"
echo xerox_mfp-smfp > "etc/sane.d/dll.d/smfp-scanner-fix"
# part from aur, i don't know what is going on here
install -dm0755 "usr/lib/udev/rules.d"
(
OEM_FILE="noarch/oem.conf"
INSTALL_LOG_FILE=/dev/null
. "noarch/scripting_utils"
. "noarch/package_utils"
. "noarch/scanner-script.pkg"
fill_full_template "noarch/etc/smfp.rules.in" "usr/lib/udev/rules.d/60-smfp-xerox.rules"
)
install -Dm0644 "noarch/oem.conf" "opt/xerox/scanner/share/oem.conf"
PKGNAME=$PRODUCT-$VERSION
erc pack $PKGNAME.tar usr opt etc || fatal
return_tar $PKGNAME.tar
#!/bin/sh
PKGNAME=xerox-spl-driver
SUPPORTEDARCHES="x86_64"
VERSION="$2"
DESCRIPTION="Xerox SPL Linux Driver for printers and scanners"
URL="https://www.support.xerox.com"
. $(dirname $0)/common.sh
warn_version_is_not_supported
PKGURL="http://download.support.xerox.com/pub/drivers/B215/drivers/linux/ar/Xerox_B215_Linux_PrintDriver_Utilities.tar.gz"
install_pack_pkgurl
echo "Note: run
# serv cups restart
to enable new printer model in cups
"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment