Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
1891f165
Commit
1891f165
authored
Mar 29, 2024
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add kyocera-sane
parent
e64d0e65
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
95 additions
and
0 deletions
+95
-0
kyocera-sane.sh
pack.d/kyocera-sane.sh
+27
-0
kyocera-sane.sh
play.d/kyocera-sane.sh
+12
-0
kyocera-sane.sh
repack.d/kyocera-sane.sh
+56
-0
No files found.
pack.d/kyocera-sane.sh
0 → 100755
View file @
1891f165
#!/bin/sh
TAR
=
"
$1
"
RETURNTARNAME
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
if
echo
"
$TAR
"
|
grep
-q
SANE_Driver_zip.download.zip
;
then
erc
$TAR
||
fatal
elif
echo
"
$TAR
"
|
grep
-q
SANE_Driver.zip
;
then
erc
$TAR
||
fatal
else
fatal
"Have no idea how to handle
$(
basename
$TAR
)
"
fi
cd
SANE_Driver
*
||
fatal
case
"
$(
epm print info
-p
)
"
in
rpm
)
PKG
=
"kyocera-sane-*.x86_64.rpm"
;;
*
)
PKG
=
"kyocera-sane_*_amd64.deb"
;;
esac
return_tar
$PKG
play.d/kyocera-sane.sh
0 → 100755
View file @
1891f165
#!/bin/sh
PKGNAME
=
kyocera-sane
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"Kyocera sane scanner support package"
URL
=
"https://www.kyoceradocumentsolutions.eu/en/support/downloads.name-L2V1L2VuL21mcC9FQ09TWVNNNjIzMENJRE4=.html"
.
$(
dirname
$0
)
/common.sh
URL
=
"https://www.kyoceradocumentsolutions.de/content/download-center/de/drivers/all/SANE_Driver_zip.download.zip"
epm pack
--install
$PKGNAME
"
$URL
"
repack.d/kyocera-sane.sh
0 → 100755
View file @
1891f165
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
# TODO: broken
# 40-scanner-permissions.rules
create_file
()
{
local
t
=
"
$1
"
local
l
=
"
$(
basename
$t
)
"
cat
>
$l
install_file
$l
$t
}
cat
<<
EOF
| create_file /etc/sane.d/dll.d/kyocera
# dll.conf snippet for kyocera
#
kyocera
kyocera_gdi_a3
kyocera_wc3
kyocera_wc3_usb
EOF
# fix vendor's broken mind (from post install script)
for
i
in
libkmip.so.1.0.
*
libkmscnapi.so libkmencapi.so libkmadrwapi.so libkmcmnapi2.so
;
do
to
=
$(
echo
usr/lib64/
$i
)
nn
=
${
i
/.so*/.so.1
}
ln
-s
$(
basename
$to
)
usr/lib64/
$nn
pack_file /usr/lib64/
$nn
done
# fix vendor's broken mind (from post install script)
for
i
in
libsane-kyocera.so.1.0.
*
libsane-kyocera_gdi_a3.so.1.0.
*
libsane-kyocera_wc3.so.1.0.
*
libsane-kyocera_wc3_usb.so.1.0.
*
;
do
to
=
$(
echo
usr/lib64/sane/
$i
)
nn
=
${
i
/.so*/.so.1
}
ln
-s
$(
basename
$to
)
usr/lib64/sane/
$nn
pack_file /usr/lib64/sane/
$nn
done
remove_dir /usr/local
#if [ ! -e /usr/lib64/libssl.so.1.1 ]; then
# ln -s /usr/local/kyocera/scanner/libssl.so.1.1 /usr/lib64/libssl.so.1.1
#fi
#if [ ! -e /usr/lib64/libcrypto.so.1.1 ]; then
# ln -s /usr/local/kyocera/scanner/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
#fi
add_libs_requires
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment