1
0

Added bundled-qt5 USE flag and README file

This commit is contained in:
acn128 2015-04-10 16:11:55 +02:00
parent 4ba7c9152f
commit 390767de41
7 changed files with 191 additions and 23 deletions

View File

@ -1 +1,69 @@
# Gentoo-ecodms # Gentoo-ecodms
Dieses Repository für Gentoo Linux enthält ebuilds, im die Client-Komponenten des Dokumentenmanagementsystems [ecoDMS](http://www.ecodms/) unter Gentoo Linux nutzen zu können.
Die ebuilds sind nur insofern getestet, daß ich sie selbst auf meinen eigenen Rechnern nutzen kann, es ist auch nur die amd64-Fassung getestet.
Diese ebuilds werden von mir privat, nicht-kommerziell und ohne jegliche Rücksprache mit der applord GmbH hier angeboten.
Es wird keinerlei Code von ecoDMS benutzt.
Die ebuilds nutzen jene .deb-Pakete, die für Debian Wheezy gedacht sind.
## Einbinden in Gentoo Linux
Um das Repository nutzen zu können, nutzt man am einfachsten "layman".
Im Abschnitt `overlays` fügt man nun folgende Zeile hinzu:
`https://raw.github.com/acn128/gentoo-ecodms/master/repositories.xml`
Dies sieht dann z.B. so aus:
`overlays : `
` https://raw.github.com/acn128/gentoo-ecodms/master/repositories.xml`
Nun kann das Repository durch `layman -a ecoDMS` aktiviert werden.
## Pakete
Folgende Pakete sind verfügbar:
* `app-office/ecodmsclient`: Der eigentliche Client
* `app-office/ecoice`: Der Scan- und Indexierungs-Client
* `net-print/ecodmsprinter`: Der PDF/A-Drucker (via CUPS)
## USE-Flags
* `bundled-qt5`: Ist dieses Flag aktiv, werden die von Upstream mitgebrachten Qt5-Bibliotheken installiert und es erfolgt keine Abhängigkeit zu den Qt5-Bibliotheken von Gentoo. Ist das Flag nicht aktiv, müssen die Qt5-Bibliotheken via Gentoo installiert werden -- aktuell müssen hierfür etliche Einträge in `package.accept_keywords` vorgenommen werden.
* `english` (ecodmsclient, ecoice): Wenn gesetzt, wird statt der deutschen Sprachdatei die englische Sprachdatei benutzt.
## Tray-Icon
So wie es aussieht, gibt es aktuell Probleme bei Qt5 mit der Darstellung des Tray-Icons des Connection Managers.
Wird ein Compositor benutzt (z.B. von XFCE), ist das Icon im Systray-Bereich nicht sichtbar. Sobald der Compositor deaktiviert wird, ist das Icon zu sehen.
## LibreOffice-Plugin
Um das LibreOffice-Plugin (verfügbar unter [www.ecodms.de](www.ecodms.de)) benutzen zu können, muß bei LibreOffice das USE-Flag `java` gesetzt sein und eine Java-JRE der Version 7 installiert sein.
Beispiel-Konfiguration:
* `packace.accept_keywords`:
* `dev-java/icedtea-bin:7 ~amd64`
* `package.use`:
* `app-office/libreoffice-bin java`
Nun `icedtea-bin:7` installieren und mittels `eselect java-vm` die Version 7 aktivieren.
## "Security problem"
Bei der Installation der ecoDMS-Komponenten werden von `scanelf` mehrere Meldungen wie die folgende anzeigen:
`scanelf: rpath_security_checks(): Security problem with relative DT_RPATH ` (...)
Dies betrifft die original von applord kommenden ecoDMS-Binaries. Hierbei ist jener Pfad auch auf "." gesetzt, in welchem nach Bibliotheken gesucht wird.
## Server-Komponente
Da ich selbst meinen ecoDMS-Server unter Debian Linux betreibe, gibt es von mir aktuell kein ebuild für den ecoDMS-Server.
Sorry!

View File

@ -1,3 +1,3 @@
DIST ecodmsclient-14.08-9_amd64.deb 123548246 SHA256 8818f4ce88d82b0834f4ae6976037c734e875c581b520ae5076a7a2e658c73b4 SHA512 6894ff24a20c0a78387d90807afb875ebfca8b0fc5d79fdebd9fc2b346284ae5046311381e13d4ce075e25acc46c6ea5b405c9cdbf55684181ac4f224c763dec WHIRLPOOL 0ab1ef7ab3d8c062003bdd538a372d2bfde7e42451cc0c10d4805cd5e125f2d2e2f65ea98bcbf9e684b379cc43f6d18f8a077a3a044c35f6f0fd096296533153 DIST ecodmsclient-14.08-9_amd64.deb 84384346 SHA256 80213824917a617ad0f84fa7ce8293524d2818567d4bb1398b4f06202ae0d695 SHA512 ff4436c578b3233ef423be22f0561370697d6ce21f74acf54d01acf08b4712f4908ba507b9029cbdf415ee0f61239517c8e20c2254faabeedc29ca3485b25b64 WHIRLPOOL d4784f4faa63e7e8fc9c98544cd11823040f5801fa4114a6da64543344ad60897c95020762d83dea14e2988d10619e4b626093084dd4f37cb18e020799855dde
DIST ecodmsclient-14.08-9_i386.deb 119596708 SHA256 591deb2ecd998761f320e64d7f8ae31f3f4bf412b60f20156791c92ed848cd20 SHA512 d7ec891e11b091a3cc78a5f36d78338e1cb548ce390b40e85885fd481847c01a4450fd93a8f23369605facbfcd5a294da8728a54da18a8137be9f2883d85e79e WHIRLPOOL b8002374cd5e568577ec80680e8f4234b237d64c16219b1de523af14df67469df3149c150cc60a60ae40b300f834de7e52c403d2325f66ffa72af6da9c25ba8a DIST ecodmsclient-14.08-9_i386.deb 84138580 SHA256 f24f1ae06c626f6f34708671a8887c1ef5e0a772db5005ea7a14642a88579fae SHA512 243751884d66e843ff305cc0860101dd0c08a28e15a18a7a6477c9bcad54313834b836a3b8d7772c584b5555a24cc6f3fab93aefcc412c88ea3769310355d7bf WHIRLPOOL 9470ac26479a1181efb20c1ae07bbe3a7856f2d9756068cef810e6f32f5e3f09f5c888d38d237a92eaac352b22bc92d2339643f6806e5eaf0b5c73f17cb2e87d
EBUILD ecodmsclient-14.08.9.ebuild 2173 SHA256 eb014a71c7e48138d5bc57168c7c012a3d72b4e7d39740ce3d456b955d427645 SHA512 6e6ecb2eb2cd891524c55e3de89d3943d3b0b78206fa16ed96ae1057b14cd119ba0f27518f0c03af7b8cc21ab3d3bc944778f7b95c55a566dd324eb561649497 WHIRLPOOL 5de5a7b08fbef76b12f1c550cc99b0e15175e05886320920a80fa194a7b47b46af292a114eda702da2f93e999bf0c5e6222d6a64d23262128962b709383ba38f EBUILD ecodmsclient-14.08.9.ebuild 4339 SHA256 544b05dff2a12849edc93efac4956b7fbc8b25b0efe9c74297641ca0b479cbc6 SHA512 dc4993fc4649937a481026b2809e9a56e06daa3c86068a209bf47c25f3ac365a1ee90e2e242e5576a4af43739c665bb480a043c84823c97f46bf54a1b6e436a6 WHIRLPOOL f32140d583f10b747670fc2cb94b200bdfe465867112cb06df9919908d382e30e5c7122566fef10667d49da148d33e4b462373aae3e5802ca5c1cc07008b1612

View File

@ -19,14 +19,48 @@ SRC_URI="
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
RESTRICT="mirror strip" RESTRICT="mirror strip"
IUSE="english" IUSE="english bundled-qt5"
QA_PREBUILT="*" QA_PREBUILT="*"
DEPEND="" DEPEND=""
RDEPEND="${DEPEND} RDEPEND="${DEPEND}
dev-libs/libappindicator !bundled-qt5? ( dev-qt/qtwebkit:5 )
media-libs/tiff" !bundled-qt5? ( dev-qt/qtxml:5 )
!bundled-qt5? ( dev-qt/qtwidgets:5 )
!bundled-qt5? ( dev-qt/qtsvg:5 )
!bundled-qt5? ( dev-qt/qtgui:5[evdev] )
!bundled-qt5? ( dev-qt/qtcore:5[icu] )
!bundled-qt5? ( dev-qt/qtopengl:5 )
!bundled-qt5? ( dev-qt/qtsql:5 )
!bundled-qt5? ( dev-qt/qtprintsupport:5 )
!bundled-qt5? ( dev-qt/qtx11extras:5 )
!bundled-qt5? ( dev-qt/qtdbus:5 )
!bundled-qt5? ( dev-qt/qtnetwork:5 )
!bundled-qt5? ( dev-qt/qthelp:5 )
!bundled-qt5? ( dev-qt/qtsensors:5 )
!bundled-qt5? ( dev-qt/qtconcurrent:5 )
!bundled-qt5? ( dev-qt/qtpositioning:5[geoclue] )
!bundled-qt5? ( dev-qt/qtmultimedia:5 )
!bundled-qt5? ( dev-qt/qtimageformats:5 )
dev-libs/libappindicator
dev-libs/libpcre
media-libs/freeimage
media-libs/jpeg:8
media-libs/libpng:1.2
media-libs/tiff:3
media-libs/opencv
media-libs/libdmtx
dev-libs/icu
media-libs/tiff"
# !bundled-qt5? ( dev-qt/qtquick1:5 )
# !bundled-qt5? ( dev-qt/qtscript:5 )
# !bundled-qt5? ( dev-qt/qtxmlpatterns:5 )
# !bundled-qt5? ( dev-qt/qttest:5 )
# !bundled-qt5? ( dev-qt/qtdeclarative:5 )
S=${WORKDIR} S=${WORKDIR}
@ -41,17 +75,32 @@ src_install() {
ECOHOME=/opt/ecodms/ecodmsclient ECOHOME=/opt/ecodms/ecodmsclient
dosym /usr/$(get_libdir)/libappindicator3.so ${ECOHOME}/libappindicator.so.1 dosym /usr/$(get_libdir)/libappindicator3.so ${ECOHOME}/libappindicator.so.1
dosym /usr/$(get_libdir)/libpcreposix.so ${ECOHOME}/libpcre.so.3
use english && cp ${INSHOME}/language_en.qm ${INSHOME}/language.qm use english && cp ${INSHOME}/language_en.qm ${INSHOME}/language.qm
use english || cp ${INSHOME}/language_de.qm ${INSHOME}/language.qm use english || cp ${INSHOME}/language_de.qm ${INSHOME}/language.qm
doins -r opt # if the bundled Qt5 should be used, just install everything
# it is no problem if some files will be overwritten later :)
if use bundled-qt5; then
doins -r opt
fi
insinto ${ECOHOME}
exeinto ${ECOHOME} exeinto ${ECOHOME}
for i in PDFA_def.ps eciRGB_v2.icc ecodmssteppdfconvert.ini header.ps language.qm language_en.qm language_de.qm; do
doins opt/ecodms/ecodmsclient/$i
done;
for i in advert advert3 icons tessdata plugins; do
doins -r opt/ecodms/ecodmsclient/$i
done;
for i in libecodmsclassifyplugin.so libclassifyclient.so libecoactivemqclient.so libecoarchiveclient.so; do
doexe opt/ecodms/ecodmsclient/$i
done
for i in pdfoverlay printcomworker ecodmssinglesignon ecodmsprinthandler ecodmsclient; do for i in pdfoverlay printcomworker ecodmssinglesignon ecodmsprinthandler ecodmsclient; do
doexe opt/ecodms/ecodmsclient/$i doexe opt/ecodms/ecodmsclient/$i
done done
doexe opt/ecodms/ecodmsclient/*.sh doexe opt/ecodms/ecodmsclient/*.sh
make_desktop_entry ${ECOHOME}/ecodmsconmgr.sh "ecoDMS Connection Manager" ${ECOHOME}/icons/signon.png Office "Path=${ECOHOME}\nStartupNotify=true" make_desktop_entry ${ECOHOME}/ecodmsconmgr.sh "ecoDMS Connection Manager" ${ECOHOME}/icons/signon.png Office "Path=${ECOHOME}\nStartupNotify=true"
make_desktop_entry ${ECOHOME}/ecodmsclient.sh "ecoDMS Client" ${ECOHOME}/icons/ecodms.png Office "Path=${ECOHOME}\nStartupNotify=true" make_desktop_entry ${ECOHOME}/ecodmsclient.sh "ecoDMS Client" ${ECOHOME}/icons/ecodms.png Office "Path=${ECOHOME}\nStartupNotify=true"
@ -66,6 +115,8 @@ pkg_postinst() {
gnome2_icon_cache_update gnome2_icon_cache_update
optfeature "PDF/A printer" net-print/ecodmsprinter optfeature "PDF/A printer" net-print/ecodmsprinter
optfeature "ecoICE Image Correction Editor" app-office/ecoice optfeature "ecoICE Image Correction Editor" app-office/ecoice
elog "Notice: If the Profile Manager's icon does not appear in the systray"
elog "try switching off an active compositor. This seems to be a bug in Qt."
} }
#pkg_postrm() { #pkg_postrm() {

View File

@ -1,3 +1,3 @@
DIST ecoice-14.08-9_amd64.deb 128462588 SHA256 be688ab3fc6486bbbe0b67e7e12f7ef7634b23ad17f6f98bff9390f9a41184af SHA512 1531af8f75824a29979f4a296020ac94f8cb105a5cc639619f3a1b592eb9d9e07ada413221ab355a534f9716c03ad4f3b266c2b1091b9eed8ea785d4b3fb18eb WHIRLPOOL b07f6d0202000801a512cce1f2a7267275adca015da24ddcaf65fb3e64c1f477efc30864608f4237f329dad9bf9e535b8b32837c2701fd5c200618201541dfb3 DIST ecoice-14.08-9_amd64.deb 128462588 SHA256 be688ab3fc6486bbbe0b67e7e12f7ef7634b23ad17f6f98bff9390f9a41184af SHA512 1531af8f75824a29979f4a296020ac94f8cb105a5cc639619f3a1b592eb9d9e07ada413221ab355a534f9716c03ad4f3b266c2b1091b9eed8ea785d4b3fb18eb WHIRLPOOL b07f6d0202000801a512cce1f2a7267275adca015da24ddcaf65fb3e64c1f477efc30864608f4237f329dad9bf9e535b8b32837c2701fd5c200618201541dfb3
DIST ecoice-14.08-9_i386.deb 124764154 SHA256 f0541b6fdbf79126a0b89d97466414daf108f7677adc8c70ed7f06e4982383ab SHA512 bbd2a39c0cf8027470ff60c8253ac15f13aa9ddc945cc0c6aa963d9e8debba357c66096026541e792705f8260feabd26a2e6fffecd3d658945d2d0a1f7f82eab WHIRLPOOL ddd7b4d35be6d6c53b255cf88ee9ad20798da97e17594fbae304ed3c9612781638d3af9ac438ffef4b0272b586aaef9020c0856c28c65df94a4d119fdcae3067 DIST ecoice-14.08-9_i386.deb 124764154 SHA256 f0541b6fdbf79126a0b89d97466414daf108f7677adc8c70ed7f06e4982383ab SHA512 bbd2a39c0cf8027470ff60c8253ac15f13aa9ddc945cc0c6aa963d9e8debba357c66096026541e792705f8260feabd26a2e6fffecd3d658945d2d0a1f7f82eab WHIRLPOOL ddd7b4d35be6d6c53b255cf88ee9ad20798da97e17594fbae304ed3c9612781638d3af9ac438ffef4b0272b586aaef9020c0856c28c65df94a4d119fdcae3067
EBUILD ecoice-14.08.9.ebuild 1753 SHA256 ad6dc7c05d102acaae85b178b37f42e52b8a02651006ef39c3297503fe84f922 SHA512 a4f69bc41cd9efe2f6135e221197e12edece507f45bf0a6964f243c87cb9929e9df0c971b34f98968af11ec63121a631093ce2d63852b74b73014134680fc15a WHIRLPOOL 7a19318d28ea87ed93e96f3b556c929a5fdeb5c60fc4ed4b886a2a0333fa5fb0b723e4b62284599b9c4ea3142501852eaf036b6b3c9258c6ff1bb6f33d550008 EBUILD ecoice-14.08.9.ebuild 3275 SHA256 b9be9aae7bdaa946984a6ae188b5bacc556a101342f04b4b7046d22d0da81add SHA512 ac229f444ae0227573326fb6f14c784f1796e4621879f0536955f13dd8a502f75d3f847e75d8d3d505e32d21cfcdd68bba3084af4a4ce6f748d46ade80e24287 WHIRLPOOL ef1636566c89deea7170eb846b55f860e435b19adc0e2fd14e3141fc16883fba10c2619d6e1c310e46662aedfb52ea9ed355aea04e5ba26dca06c10c74a67c96

View File

@ -19,16 +19,39 @@ SRC_URI="
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
RESTRICT="mirror strip" RESTRICT="mirror strip"
IUSE="english" IUSE="english bundled-qt5"
QA_PREBUILT="*" QA_PREBUILT="*"
DEPEND="" DEPEND=""
RDEPEND="${DEPEND} RDEPEND="${DEPEND}
!bundled-qt5? ( dev-qt/qtwebkit:5 )
!bundled-qt5? ( dev-qt/qtxml:5 )
!bundled-qt5? ( dev-qt/qtwidgets:5 )
!bundled-qt5? ( dev-qt/qtsvg:5 )
!bundled-qt5? ( dev-qt/qtgui:5[evdev] )
!bundled-qt5? ( dev-qt/qtcore:5[icu] )
!bundled-qt5? ( dev-qt/qtopengl:5 )
!bundled-qt5? ( dev-qt/qtsql:5 )
!bundled-qt5? ( dev-qt/qtprintsupport:5 )
!bundled-qt5? ( dev-qt/qtx11extras:5 )
!bundled-qt5? ( dev-qt/qtdbus:5 )
!bundled-qt5? ( dev-qt/qtnetwork:5 )
!bundled-qt5? ( dev-qt/qthelp:5 )
!bundled-qt5? ( dev-qt/qtsensors:5 )
!bundled-qt5? ( dev-qt/qtconcurrent:5 )
!bundled-qt5? ( dev-qt/qtpositioning:5[geoclue] )
!bundled-qt5? ( dev-qt/qtmultimedia:5 )
!bundled-qt5? ( dev-qt/qtimageformats:5 )
dev-libs/icu
dev-libs/libpcre
media-gfx/sane-backends media-gfx/sane-backends
media-libs/freeimage
media-libs/opencv
media-libs/libdmtx
media-libs/libpng:1.2 media-libs/libpng:1.2
media-libs/jpeg:8 media-libs/jpeg:8
dev-libs/libpcre
media-libs/tiff:3" media-libs/tiff:3"
S=${WORKDIR} S=${WORKDIR}
@ -46,12 +69,23 @@ src_install() {
use english && cp ${INSHOME}/language_en.qm ${INSHOME}/language.qm use english && cp ${INSHOME}/language_en.qm ${INSHOME}/language.qm
use english || cp ${INSHOME}/language_de.qm ${INSHOME}/language.qm use english || cp ${INSHOME}/language_de.qm ${INSHOME}/language.qm
doins -r opt # if the bundled Qt5 should be used, just install everything
# it is no problem if some files will be overwritten later :)
if use bundled-qt5; then
doins -r opt
fi
insinto ${ECOHOME}
exeinto ${ECOHOME} exeinto ${ECOHOME}
for i in ecoice ecoice.sh; do for i in Vera.ttf eciRGB_v2.icc language.qm language_de.qm language_en.qm; do
doexe opt/ecodms/ecoice/$i doins opt/ecodms/ecoice/$i
done done;
for i in icons intro plugins tessdata; do
doins -r opt/ecodms/ecoice/$i
done;
for i in ecoice libclassifyclient.so libecoactivemqclient.so libecoarchiveclient.so libecodmsclassifyplugin.so libecodmspreviewclient.so libhpdf-2.3.0-dev.so libqmimage.so.1 libqpdf.so.10; do
doexe opt/ecodms/ecoice/$i
done
make_desktop_entry ${ECOHOME}/ecoice.sh "ecoICE" ${ECOHOME}/icons/ecoice.png Office "Path=${ECOHOME}\nStartupNotify=true" make_desktop_entry ${ECOHOME}/ecoice.sh "ecoICE" ${ECOHOME}/icons/ecoice.png Office "Path=${ECOHOME}\nStartupNotify=true"
} }

View File

@ -1,3 +1,4 @@
AUX ecodms 2418 SHA256 224c7c96dd8c24b11ea43d37539de914c45b94894625eec9cbdbd1bcf5196595 SHA512 2d4820b9ec0037d104861e8a5bef45b8d85663a9b7a092200a024267cd03487fd25573f97a294006153ff68e3ad2ecbe9be78cdad4c826a777f25ea2a02fb03b WHIRLPOOL a9fc6b36aec5ee7b42bc2fcb10c9d8d5d0f4551b0ed97db43a8b6ad3f216420df9002731c41bd9f79295f7a4cba24d0d581b81786a0510e7139fecf94b12fda1
DIST ecodmsprinter-14.08-9_amd64.deb 15215248 SHA256 379b43c75504f438351888faf82620758995f7cf2668a6453a1ab718ee7c834c SHA512 0500bb77c89839f2cba2a35aafab0977bca3837605c193d713674715f36f3af3f4f561f1cbb3936ae9c71ef870c7248f98d0391a6bd6a5696d277edf1fc88d12 WHIRLPOOL 557a416035e3e0f12af44f6faa61abb5dc1af8fcdfb2e368573b904d487a2c9090fa0c9adbd63a8617a5b2a3bbd03c027aa868d7653eeaa9140c3923d3c36e9e DIST ecodmsprinter-14.08-9_amd64.deb 15215248 SHA256 379b43c75504f438351888faf82620758995f7cf2668a6453a1ab718ee7c834c SHA512 0500bb77c89839f2cba2a35aafab0977bca3837605c193d713674715f36f3af3f4f561f1cbb3936ae9c71ef870c7248f98d0391a6bd6a5696d277edf1fc88d12 WHIRLPOOL 557a416035e3e0f12af44f6faa61abb5dc1af8fcdfb2e368573b904d487a2c9090fa0c9adbd63a8617a5b2a3bbd03c027aa868d7653eeaa9140c3923d3c36e9e
DIST ecodmsprinter-14.08-9_i386.deb 15285516 SHA256 75761675c16abb8857204e7c9da81afbef66607f8ca585cc39514b41a142bc37 SHA512 8a35272c7767d84692382bcc61ac5f1570b67a2642b7063f2523f967d17d16ee46e460334ea248abb865942efbf1f10ddbe325e1ed409f0dab80ff6ae01f91b0 WHIRLPOOL 25fcb0ae8ad28a3cc141754f0bc382911bd7944439990d76bc9adff1bde2fdfbc3419ee192e908f2c76150972cbb6a986496b5f84a56a77efaef6e72d4ef5a96 DIST ecodmsprinter-14.08-9_i386.deb 15285516 SHA256 75761675c16abb8857204e7c9da81afbef66607f8ca585cc39514b41a142bc37 SHA512 8a35272c7767d84692382bcc61ac5f1570b67a2642b7063f2523f967d17d16ee46e460334ea248abb865942efbf1f10ddbe325e1ed409f0dab80ff6ae01f91b0 WHIRLPOOL 25fcb0ae8ad28a3cc141754f0bc382911bd7944439990d76bc9adff1bde2fdfbc3419ee192e908f2c76150972cbb6a986496b5f84a56a77efaef6e72d4ef5a96
EBUILD ecodmsprinter-14.08.9.ebuild 1863 SHA256 c4ecd3ba33ea7e645f9bad844450b3134a7f16e6279698d1b966ed74f299cfbf SHA512 4c73656afaabd543390162b80b3bb4da7ae881603bd3a35e9643c0a762ba7cf97aadda07cfad9e13ed53dd449ae2b2cfd5695885b083c7a4f08e6679f4bf47ec WHIRLPOOL c2e2cfc3eee9f810adca7eed7b9b4e8caf202dc8e370b4003eb428c1ac7255062a93fc6e37f57898729fc29d65a46c619068057202b11edb4f16ec2d3e6fbe3e EBUILD ecodmsprinter-14.08.9.ebuild 2282 SHA256 36da4809536b4cf3f4a043fb9a15fffdea4ebc8ccea1d391795cbb8020b931b2 SHA512 5c7fead2d3d0a1df67f4be4aba7d8a0b55cd26e9d48c7a3b7b1c89af4f049afc811c9fb10eecf386f8c3db13dd71dfaa2e7b29e2b91f36520fc69d7250ae639c WHIRLPOOL 73a10ec14e58ea21c0ab92d11e6aa4e8ea7bf99a8b19116a77165a99a04463cd7cd55c6a9e893281563ada49bf2f2f8bd1d95809f65fac9c8b5e443e1c22de72

View File

@ -19,13 +19,19 @@ SRC_URI="
SLOT="0" SLOT="0"
KEYWORDS="~amd64 ~x86" KEYWORDS="~amd64 ~x86"
RESTRICT="mirror strip" RESTRICT="mirror strip"
IUSE="bundled-qt5"
QA_PREBUILT="*" QA_PREBUILT="*"
DEPEND="" DEPEND=""
RDEPEND="${DEPEND} RDEPEND="${DEPEND}
net-print/cups !bundled-qt5? ( dev-qt/qtcore:5[icu] )
app-text/poppler" !bundled-qt5? ( dev-qt/qtdbus:5 )
!bundled-qt5? ( dev-qt/qtxml:5 )
dev-libs/icu
net-print/cups
app-text/poppler"
S=${WORKDIR} S=${WORKDIR}
@ -37,10 +43,14 @@ src_prepare() {
src_install() { src_install() {
exeinto /usr/libexec/cups/backend exeinto /usr/libexec/cups/backend
doexe usr/lib/cups/backend/ecodms # use my changed backend-file instead of upstream version
doexe ${FILESDIR}/ecodms
#doexe usr/lib/cups/backend/ecodms
insinto /usr/libexec/cups/ecodms if use bundled-qt5; then
doins usr/lib/cups/ecodms/lib* insinto /usr/libexec/cups/ecodms
doexe usr/lib/cups/ecodms/lib*
fi
exeinto /usr/libexec/cups/ecodms exeinto /usr/libexec/cups/ecodms
doexe usr/lib/cups/ecodms/ecodmsprinter doexe usr/lib/cups/ecodms/ecodmsprinter
@ -49,12 +59,15 @@ src_install() {
doins usr/share/cups/model/*.ppd doins usr/share/cups/model/*.ppd
dodir /var/spool/ecodms dodir /var/spool/ecodms
fperms 1777 /var/spool/ecodms
} }
#pkg_preinst() { #pkg_preinst() {
#} #}
pkg_postinst() { pkg_postinst() {
chmod g+w /var/spool/ecodms
chgrp lp /var/spool/ecodms
elog "Restarting CUPS..." elog "Restarting CUPS..."
service cupsd restart service cupsd restart
elog "Removing ecodmsprinter (may print an error if it does not exist) from CUPS..." elog "Removing ecodmsprinter (may print an error if it does not exist) from CUPS..."
@ -69,3 +82,4 @@ pkg_postrm() {
elog "Restarting CUPS..." elog "Restarting CUPS..."
service cupsd restart service cupsd restart
} }