LINUX.ORG.RU
решено ФорумTalks

[2DoctorSinus] scx-4x21


0

0

Завел сканер ?

# eix -s samsung
[I] net-print/samsung-unifieddriver [1]
     Available versions:  (~)3.00.62!m!s {qt4 scanner}
     Installed versions:  3.00.62!m!s(14:25:09 28/03/10)(scanner -qt4)
     Homepage:            http://www.samsung.com
     Description:         Samsung binary unified driver
% sane-find-scanner

found USB scanner (vendor=0x04e8 [Samsung], product=0x3419 [SCX-4x21 Series]) at libusb:003:004
scanimage -L

[sanei_debug] Setting debug level of dll to 255.
[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.20
[dll] sane_init/read_dlld: processing /etc/sane.d/dll.d ...
[dll] sane_init/read_dlld: done.
[dll] sane_init/read_config: reading dll.conf
[dll] add_backend: adding backend `smfp'
[dll] add_backend: adding backend `xerox_mfp'
[dll] sane_get_devices
[dll] load: searching backend `xerox_mfp' in `/usr/lib64/sane'
[dll] load: trying to load `/usr/lib64/sane/libsane-xerox_mfp.so.1'
[dll] load: dlopen()ing `/usr/lib64/sane/libsane-xerox_mfp.so.1'
[dll] init: initializing backend `xerox_mfp'
[dll] init: backend `xerox_mfp' is version 1.0.10
[dll] load: searching backend `smfp' in `/usr/lib64/sane'
[dll] load: trying to load `/usr/lib64/sane/libsane-smfp.so.1'
[dll] load: dlopen()ing `/usr/lib64/sane/libsane-smfp.so.1'
[dll] init: initializing backend `smfp'
[dll] init: backend `smfp' is version 1.0.1
[dll] sane_get_devices: found 0 devices

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
[dll] sane_exit: exiting
[dll] sane_exit: calling backend `xerox_mfp's exit function
[dll] sane_exit: calling backend `smfp's exit function
[dll] sane_exit: finished

чувак!!!!!

всё, завтра возвращаюсь в генту =)

DoctorSinus ★★★★★
()
Ответ на: комментарий от anotheranonymous

кастую тебя обратно в тред, через что заводил и cat конфигов :)

ezoteric
() автор топика

На всякий случай выкладываю ебилд (: мб я что упустил в проприетарных smfp

$ cat samsung-unifieddriver-3.00.62.ebuild

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"
inherit eutils multilib

DESCRIPTION="Samsung binary unified driver"
HOMEPAGE="http://www.samsung.com"
SRC_URI="http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?VPath=DR/200911/20091118145843093/UnifiedLinuxDriver.tar.gz -> ${P}.tar.gz"

LICENSE="samsung"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
# Parallel support looks ugly, not supported in this ebuild
IUSE="scanner qt4"
RESTRICT="mirror strip"

DEPEND=""
RDEPEND="net-print/cups
	!net-print/splix
	scanner? ( media-gfx/sane-backends )
	qt4? ( x11-libs/qt-core:4 )"

S=${WORKDIR}/cdroot/Linux

src_unpack() {
	# Trailing garbage error, do not die
	tar xozf ${DISTDIR}/${A}
}

src_prepare() {
	# Fix permissions
	find . -type d -exec chmod 755 '{}' \;
	find . -type f -exec chmod 644 '{}' \;
	find . -type f -name \*.sh -exec chmod 755 '{}' \;
	chmod 755 ./i386/at_root/usr/sbin/*
	chmod 755 ./i386/at_root/usr/lib/cups/filter/raster*
	chmod 755 ./i386/at_root/usr/lib/cups/filter/pscms
	chmod 755 ./i386/at_root/usr/lib/cups/backend/mfp
	chmod 755 ./i386/qt4apps/at_opt/bin/*
	chmod 755 ./x86_64/at_root/usr/sbin/*
	chmod 755 ./x86_64/at_root/usr/lib64/cups/filter/raster*
	chmod 755 ./x86_64/at_root/usr/lib64/cups/filter/pscms
	chmod 755 ./x86_64/at_root/usr/lib64/cups/backend/mfp
	chmod 755 ./x86_64/qt4apps/at_opt/bin/*
}

src_install() {
	SOPT="/opt/Samsung/mfp"
	if [ "${ABI}" == "amd64" ]; then
		SARCH="x86_64"
		SLIBDIR="lib64"
	else
		SARCH="i386"
		SLIBDIR="lib"
	fi

	# Printer files
	dodir /usr/libexec
	cp -r ${SARCH}/at_root/usr/${SLIBDIR}/cups "${D}"/usr/libexec
	dodir /usr/share/cups/model
	cp -r noarch/at_opt/share/ppd "${D}"/usr/share/cups/model/samsung
	gzip "${D}"/usr/share/cups/model/samsung/*.ppd
	dolib ${SARCH}/at_root/usr/${SLIBDIR}/libmfp.so.1.0.1

	if use scanner; then
		insinto /etc/sane.d
		doins noarch/at_root/etc/sane.d/smfp.conf

		exeinto /usr/$(get_libdir)/sane/
		doexe ${SARCH}/at_root/usr/${SLIBDIR}/sane/*
	fi

	if use qt4; then
		insinto ${SOPT}/share
		doins OEM.ini
		cp -r noarch/at_opt/share/V* noarch/at_opt/share/help \
			noarch/at_opt/share/images noarch/at_opt/share/ui \
			noarch/at_opt/share/utils "${D}"/${SOPT}/share

		exeinto ${SOPT}/lib
		doexe ${SARCH}/qt4apps/at_opt/lib/*
		exeinto ${SOPT}/libexec
		doexe ${SARCH}/qt4apps/at_opt/bin/*
		for i in ${SARCH}/qt4apps/at_opt/bin/*; do
			make_wrapper $(basename ${i}) ${SOPT}/libexec/$(basename ${i}) ${SOPT}/libexec ${SOPT}/lib ${SOPT}/bin
		done
	fi
}

pkg_postinst() {
	if use scanner; then
		elog "You need to add smfp to /etc/sane.d/dll.conf:"
		elog " # echo smfp >> /etc/sane.d/dll.conf"
	fi
}

ezoteric
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.