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
ad9e3fa6
Commit
ad9e3fa6
authored
Mar 27, 2024
by
Иван Мажукин
Committed by
Vitaly Lipatov
Mar 27, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add epson-printer-utility
parent
3bc11020
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
70 additions
and
0 deletions
+70
-0
epson-printer-utility.sh
play.d/epson-printer-utility.sh
+42
-0
epson-printer-utility.sh
repack.d/epson-printer-utility.sh
+28
-0
No files found.
play.d/epson-printer-utility.sh
0 → 100755
View file @
ad9e3fa6
#!/bin/sh
PKGNAME
=
epson-printer-utility
SUPPORTEDARCHES
=
"x86_64"
DESCRIPTION
=
"Epson Printer Utility - Linux Epson Printer Utility from the official site"
URL
=
"http://support.epson.net/linux/Printer/LSB_distribution_pages/en/utility.php"
# TODO: remove repo too
case
"
$1
"
in
"--remove"
)
epm remove
$(
epm qp
$PKGNAME
-
)
exit
;;
esac
.
$(
dirname
$0
)
/common.sh
pkgtype
=
$(
epm print info
-p
)
arch
=
"
$(
epm print info
-a
)
"
case
"
$pkgtype
-
$arch
"
in
rpm-x86_64
)
PKGURL
=
"https://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=JA&CN2=US&CTI=177&PRN=Linux%20rpm%2064bit%20package&OSC=LX&DL"
;;
*
-x86_64
)
PKGURL
=
"https://download.ebz.epson.net/dsc/du/02/DriverDownloadInfo.do?LG2=JA&CN2=US&CTI=177&PRN=Linux%20deb%2064bit%20package&OSC=LX&DL"
;;
*
)
fatal
"
$arch
arch is not supported"
;;
esac
repack
=
''
[
"
$(
epm print info
-s
)
"
=
"alt"
]
&&
repack
=
'--repack'
epm
install
$repack
"
$PKGURL
"
echo
echo
"Note: run
# serv ecbd on
to enable needed epson-printer-utility system service
"
repack.d/epson-printer-utility.sh
0 → 100755
View file @
ad9e3fa6
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
UNIREQUIRES
=
"udev libusb-1.0.so.0"
.
$(
dirname
$0
)
/common.sh
add_qt5_deps
# utility
add_bin_link_command
$PRODUCT
$PRODUCTDIR
/bin/
$PRODUCT
install_file opt/epson-printer-utility/rules/79-udev-epson.rules /etc/udev/rules.d/79-udev-epson.rules
install_file opt/epson-printer-utility/epson-printer-utility.desktop /usr/share/applications/epson-printer-utility.desktop
# backend
install_file usr/lib/epson-backend/ecbd.service /usr/lib/systemd/system/ecbd.service
mkdir
-p
/var/cache/epson-backend
pack_dir /var/cache/epson-backend
# if command -v semodule > /dev/null 2>&1;then
# semodule -i $BUILDROOT/usr/lib/epson-backend/epson_pol.pp
# fi
remove_dir /usr/lib/epson-backend/rc.d
remove_dir /usr/lib/epson-backend/scripts
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