[arch-commits] Commit in sane/repos/extra-x86_64 (11 files)
Antonio Rojas
arojas at archlinux.org
Sun Jan 5 21:01:12 UTC 2020
Date: Sunday, January 5, 2020 @ 21:01:12
Author: arojas
Revision: 372626
archrelease: copy trunk to extra-x86_64
Added:
sane/repos/extra-x86_64/0781f3fd.patch
(from rev 372625, sane/trunk/0781f3fd.patch)
sane/repos/extra-x86_64/PKGBUILD
(from rev 372625, sane/trunk/PKGBUILD)
sane/repos/extra-x86_64/network.patch
(from rev 372625, sane/trunk/network.patch)
sane/repos/extra-x86_64/sane.xinetd
(from rev 372625, sane/trunk/sane.xinetd)
sane/repos/extra-x86_64/saned.service
(from rev 372625, sane/trunk/saned.service)
sane/repos/extra-x86_64/saned.socket
(from rev 372625, sane/trunk/saned.socket)
Deleted:
sane/repos/extra-x86_64/PKGBUILD
sane/repos/extra-x86_64/network.patch
sane/repos/extra-x86_64/sane.xinetd
sane/repos/extra-x86_64/saned.service
sane/repos/extra-x86_64/saned.socket
----------------+
0781f3fd.patch | 13 ++++
PKGBUILD | 148 +++++++++++++++++++++++++++----------------------------
network.patch | 84 +++++++++++++++----------------
sane.xinetd | 22 ++++----
saned.service | 16 ++---
saned.socket | 18 +++---
6 files changed, 157 insertions(+), 144 deletions(-)
Copied: sane/repos/extra-x86_64/0781f3fd.patch (from rev 372625, sane/trunk/0781f3fd.patch)
===================================================================
--- 0781f3fd.patch (rev 0)
+++ 0781f3fd.patch 2020-01-05 21:01:12 UTC (rev 372626)
@@ -0,0 +1,13 @@
+diff -up sane-backends-1.0.28/backend/genesys_gl841.cc.genesys-regression sane-backends-1.0.28/backend/genesys_gl841.cc
+--- sane-backends-1.0.28/backend/genesys_gl841.cc.genesys-regression 2019-10-14 13:11:10.772763713 +0200
++++ sane-backends-1.0.28/backend/genesys_gl841.cc 2019-10-14 13:11:57.602389188 +0200
+@@ -5042,6 +5042,9 @@ gl841_init (Genesys_Device * dev)
+ /* Set analog frontend */
+ RIE (gl841_set_fe(dev, sensor, AFE_INIT));
+
++ // FIXME: slow_back_home modifies dev->calib_reg and requires it to be filled
++ dev->calib_reg = dev->reg;
++
+ /* Move home */
+ RIE (gl841_slow_back_home (dev, SANE_TRUE));
+
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-05 21:00:55 UTC (rev 372625)
+++ PKGBUILD 2020-01-05 21:01:12 UTC (rev 372626)
@@ -1,74 +0,0 @@
-# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
-# Contributor: Sarah Hay <sarahhay at mb.sympatico.ca>
-# Contributor: Simo L. <neotuli at yahoo.com>
-# Contributor: eric <eric at archlinux.org>
-
-pkgname=sane
-pkgver=1.0.28
-pkgrel=3
-pkgdesc="Scanner Access Now Easy"
-url="http://www.sane-project.org/"
-arch=('x86_64')
-license=('GPL')
-depends=('libtiff>=4.0.0' 'libgphoto2' 'libjpeg>=8' 'libusbx' 'libieee1284' 'v4l-utils' 'avahi' 'bash' 'net-snmp')
-makedepends=('texlive-latexextra')
-backup=(etc/sane.d/{abaton.conf,agfafocus.conf,apple.conf,artec.conf,artec_eplus48u.conf,avision.conf,bh.conf,canon.conf,canon630u.conf,canon_dr.conf,canon_pp.conf,cardscan.conf,coolscan2.conf,coolscan3.conf,coolscan.conf,dc25.conf,dc210.conf,dc240.conf,dell1600n_net.conf,dll.conf,dmc.conf,epjitsu.conf,epson.conf,epson2.conf,epsonds.conf,fujitsu.conf,genesys.conf,gphoto2.conf,gt68xx.conf,hp.conf,hp3900.conf,hp4200.conf,hp5400.conf,hpsj5s.conf,hs2p.conf,ibm.conf,kodak.conf,kodakaio.conf,leo.conf,lexmark.conf,ma1509.conf,magicolor.conf,matsushita.conf,microtek.conf,microtek2.conf,mustek.conf,mustek_pp.conf,mustek_usb.conf,nec.conf,net.conf,p5.conf,pie.conf,pieusb.conf,pixma.conf,plustek.conf,plustek_pp.conf,qcam.conf,ricoh.conf,rts8891.conf,s9036.conf,saned.conf,sceptre.conf,sharp.conf,sm3840.conf,snapscan.conf,sp15c.conf,st400.conf,stv680.conf,tamarack.conf,teco1.conf,teco2.conf,teco3.conf,test.conf,u12.conf,umax.conf,umax1220u.conf,umax_pp.conf,xerox_mfp.conf,v4l.conf} etc/xinetd.d/
sane)
-source=(https://gitlab.com/sane-project/backends/uploads/9e718daff347826f4cfe21126c8d5091/sane-backends-$pkgver.tar.gz
- 'sane.xinetd'
- 'saned.socket'
- 'saned.service'
- 'network.patch'
- 0781f3fd.patch)
-sha512sums=('84607739cea28c31f9a2f21df583c3d9f3ad1e7e87ad54fb8af8103450b22d2de6cf1670563eaa8310750491f840b377a2ca42c5eaee45aaec500a0a6792b3af'
- '8f9f18d432087e5445aa533be375a811daf320512069c108d41a79121868937e1a7ffa21ee7d33adcf9fbb670bca460ff06423ce39602f35151eccc243d9d4ec'
- '62654a59fae3216be9c0ae4f810375de1232133ab12732529a3e064cc83d94563560e01950dea4b25aa298294c5f0421436c5e095a3a00ad8ef78b471f3105f4'
- 'c4cd4427ee8e5cb128c5d54006fafbb4f846508582dffc293f16ab14ab638e6ee3dc5df0eb06f6d0d3839941ab74623c7163ac13bcdfec87b10308587a697536'
- '04b65a06d2c76dde6fce501ba823e999eb89ea41573f887f9e7d5347f3aa5e35310fad69313e99f873640e29a9849372d2ff995678593a0781fba73b464bec0d'
- '344066c099b574212a9cf78680cb8ecdf6c254bb1e39b3b247f12c4e6ef8af25abff9a268f5ac67cb6159948da7e39a9db522907a860990d3226bef5945d0918')
-
-prepare() {
- cd sane-backends-${pkgver}
- # fix http://vasks.debian.org/tracker/?func=detail&atid=410366&aid=313760&group_id=30186
- patch -Np1 -i "${srcdir}"/network.patch
- # fix some scanners not recognized in 1.0.28 https://gitlab.com/sane-project/backends/issues/136
- patch -p1 -i ../0781f3fd.patch
-}
-
-build() {
- cd sane-backends-${pkgver}
-
- ./configure --prefix=/usr --sbindir=/usr/bin \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --with-docdir=/usr/share/doc/sane \
- --enable-avahi \
- --enable-pthread \
- --disable-rpath \
- --enable-libusb_1_0 \
- --disable-locking
- make
-}
-
-package () {
- cd sane-backends-${pkgver}
- make DESTDIR="${pkgdir}" install
- # fix hp officejets
- echo "#hpaio" >> "${pkgdir}/etc/sane.d/dll.conf"
- # install udev files
- install -D -m0644 tools/udev/libsane.rules \
- "${pkgdir}/usr/lib/udev/rules.d/49-sane.rules"
- # fix udev rules
- sed -i 's|NAME="%k", ||g' "${pkgdir}/usr/lib/udev/rules.d/49-sane.rules"
-
- # install xinetd file
- install -D -m644 "${srcdir}/sane.xinetd" "${pkgdir}/etc/xinetd.d/sane"
-
- # Install the pkg-config file
- install -D -m644 tools/sane-backends.pc \
- "${pkgdir}/usr/lib/pkgconfig/sane-backends.pc"
- # install systemd files
- install -D -m644 ${srcdir}/saned.socket \
- "${pkgdir}/usr/lib/systemd/system/saned.socket"
- install -D -m644 ${srcdir}/saned.service \
- "${pkgdir}/usr/lib/systemd/system/saned at .service"
-}
Copied: sane/repos/extra-x86_64/PKGBUILD (from rev 372625, sane/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-01-05 21:01:12 UTC (rev 372626)
@@ -0,0 +1,74 @@
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: Sarah Hay <sarahhay at mb.sympatico.ca>
+# Contributor: Simo L. <neotuli at yahoo.com>
+# Contributor: eric <eric at archlinux.org>
+
+pkgname=sane
+pkgver=1.0.28
+pkgrel=3
+pkgdesc="Scanner Access Now Easy"
+url="http://www.sane-project.org/"
+arch=('x86_64')
+license=('GPL')
+depends=('libtiff>=4.0.0' 'libgphoto2' 'libjpeg>=8' 'libusbx' 'libieee1284' 'v4l-utils' 'avahi' 'bash' 'net-snmp')
+makedepends=('texlive-latexextra')
+backup=(etc/sane.d/{abaton.conf,agfafocus.conf,apple.conf,artec.conf,artec_eplus48u.conf,avision.conf,bh.conf,canon.conf,canon630u.conf,canon_dr.conf,canon_pp.conf,cardscan.conf,coolscan2.conf,coolscan3.conf,coolscan.conf,dc25.conf,dc210.conf,dc240.conf,dell1600n_net.conf,dll.conf,dmc.conf,epjitsu.conf,epson.conf,epson2.conf,epsonds.conf,fujitsu.conf,genesys.conf,gphoto2.conf,gt68xx.conf,hp.conf,hp3900.conf,hp4200.conf,hp5400.conf,hpsj5s.conf,hs2p.conf,ibm.conf,kodak.conf,kodakaio.conf,leo.conf,lexmark.conf,ma1509.conf,magicolor.conf,matsushita.conf,microtek.conf,microtek2.conf,mustek.conf,mustek_pp.conf,mustek_usb.conf,nec.conf,net.conf,p5.conf,pie.conf,pieusb.conf,pixma.conf,plustek.conf,plustek_pp.conf,qcam.conf,ricoh.conf,rts8891.conf,s9036.conf,saned.conf,sceptre.conf,sharp.conf,sm3840.conf,snapscan.conf,sp15c.conf,st400.conf,stv680.conf,tamarack.conf,teco1.conf,teco2.conf,teco3.conf,test.conf,u12.conf,umax.conf,umax1220u.conf,umax_pp.conf,xerox_mfp.conf,v4l.conf} etc/xinetd.d/
sane)
+source=(https://gitlab.com/sane-project/backends/uploads/9e718daff347826f4cfe21126c8d5091/sane-backends-$pkgver.tar.gz
+ 'sane.xinetd'
+ 'saned.socket'
+ 'saned.service'
+ 'network.patch'
+ 0781f3fd.patch)
+sha512sums=('84607739cea28c31f9a2f21df583c3d9f3ad1e7e87ad54fb8af8103450b22d2de6cf1670563eaa8310750491f840b377a2ca42c5eaee45aaec500a0a6792b3af'
+ '8f9f18d432087e5445aa533be375a811daf320512069c108d41a79121868937e1a7ffa21ee7d33adcf9fbb670bca460ff06423ce39602f35151eccc243d9d4ec'
+ '62654a59fae3216be9c0ae4f810375de1232133ab12732529a3e064cc83d94563560e01950dea4b25aa298294c5f0421436c5e095a3a00ad8ef78b471f3105f4'
+ 'c4cd4427ee8e5cb128c5d54006fafbb4f846508582dffc293f16ab14ab638e6ee3dc5df0eb06f6d0d3839941ab74623c7163ac13bcdfec87b10308587a697536'
+ '04b65a06d2c76dde6fce501ba823e999eb89ea41573f887f9e7d5347f3aa5e35310fad69313e99f873640e29a9849372d2ff995678593a0781fba73b464bec0d'
+ '344066c099b574212a9cf78680cb8ecdf6c254bb1e39b3b247f12c4e6ef8af25abff9a268f5ac67cb6159948da7e39a9db522907a860990d3226bef5945d0918')
+
+prepare() {
+ cd sane-backends-${pkgver}
+ # fix http://vasks.debian.org/tracker/?func=detail&atid=410366&aid=313760&group_id=30186
+ patch -Np1 -i "${srcdir}"/network.patch
+ # fix some scanners not recognized in 1.0.28 https://gitlab.com/sane-project/backends/issues/136
+ patch -p1 -i ../0781f3fd.patch
+}
+
+build() {
+ cd sane-backends-${pkgver}
+
+ ./configure --prefix=/usr --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-docdir=/usr/share/doc/sane \
+ --enable-avahi \
+ --enable-pthread \
+ --disable-rpath \
+ --enable-libusb_1_0 \
+ --disable-locking
+ make
+}
+
+package () {
+ cd sane-backends-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ # fix hp officejets
+ echo "#hpaio" >> "${pkgdir}/etc/sane.d/dll.conf"
+ # install udev files
+ install -D -m0644 tools/udev/libsane.rules \
+ "${pkgdir}/usr/lib/udev/rules.d/49-sane.rules"
+ # fix udev rules
+ sed -i 's|NAME="%k", ||g' "${pkgdir}/usr/lib/udev/rules.d/49-sane.rules"
+
+ # install xinetd file
+ install -D -m644 "${srcdir}/sane.xinetd" "${pkgdir}/etc/xinetd.d/sane"
+
+ # Install the pkg-config file
+ install -D -m644 tools/sane-backends.pc \
+ "${pkgdir}/usr/lib/pkgconfig/sane-backends.pc"
+ # install systemd files
+ install -D -m644 ${srcdir}/saned.socket \
+ "${pkgdir}/usr/lib/systemd/system/saned.socket"
+ install -D -m644 ${srcdir}/saned.service \
+ "${pkgdir}/usr/lib/systemd/system/saned at .service"
+}
Deleted: network.patch
===================================================================
--- network.patch 2020-01-05 21:00:55 UTC (rev 372625)
+++ network.patch 2020-01-05 21:01:12 UTC (rev 372626)
@@ -1,42 +0,0 @@
-diff --git a/sanei/sanei_tcp.c b/sanei/sanei_tcp.c
-index a57d7c7..d0a1e92 100644
---- a/sanei/sanei_tcp.c
-+++ b/sanei/sanei_tcp.c
-@@ -45,6 +45,7 @@
- #include <unistd.h>
- #include <stdlib.h>
- #include <string.h>
-+#include <time.h>
-
- #ifdef HAVE_WINSOCK2_H
- #include <winsock2.h>
-@@ -123,14 +124,27 @@ sanei_tcp_write(int fd, const u_char * buf, int count)
- ssize_t
- sanei_tcp_read(int fd, u_char * buf, int count)
- {
-- ssize_t bytes_recv = 0, rc = 1;
-+ ssize_t bytes_recv = 0, rc = 1;
-+ int retry = 5;
-
- while (bytes_recv < count && rc > 0)
- {
- rc = recv(fd, buf+bytes_recv, count-bytes_recv, 0);
-+ DBG(1, "%s: bytes received %d\n", __FUNCTION__, rc);
- if (rc > 0)
- bytes_recv += rc;
--
-+ else {
-+ if ( errno == EAGAIN && retry-- ) {
-+ DBG(1, "%s: waiting %d\n", __FUNCTION__, retry);
-+ /* wait for max 1s */
-+ struct timespec req;
-+ struct timespec rem;
-+ req.tv_sec = 0;
-+ req.tv_nsec= 100000000;
-+ nanosleep(&req, &rem);
-+ rc = 1;
-+ }
-+ }
- }
- return bytes_recv;
- }
Copied: sane/repos/extra-x86_64/network.patch (from rev 372625, sane/trunk/network.patch)
===================================================================
--- network.patch (rev 0)
+++ network.patch 2020-01-05 21:01:12 UTC (rev 372626)
@@ -0,0 +1,42 @@
+diff --git a/sanei/sanei_tcp.c b/sanei/sanei_tcp.c
+index a57d7c7..d0a1e92 100644
+--- a/sanei/sanei_tcp.c
++++ b/sanei/sanei_tcp.c
+@@ -45,6 +45,7 @@
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <time.h>
+
+ #ifdef HAVE_WINSOCK2_H
+ #include <winsock2.h>
+@@ -123,14 +124,27 @@ sanei_tcp_write(int fd, const u_char * buf, int count)
+ ssize_t
+ sanei_tcp_read(int fd, u_char * buf, int count)
+ {
+- ssize_t bytes_recv = 0, rc = 1;
++ ssize_t bytes_recv = 0, rc = 1;
++ int retry = 5;
+
+ while (bytes_recv < count && rc > 0)
+ {
+ rc = recv(fd, buf+bytes_recv, count-bytes_recv, 0);
++ DBG(1, "%s: bytes received %d\n", __FUNCTION__, rc);
+ if (rc > 0)
+ bytes_recv += rc;
+-
++ else {
++ if ( errno == EAGAIN && retry-- ) {
++ DBG(1, "%s: waiting %d\n", __FUNCTION__, retry);
++ /* wait for max 1s */
++ struct timespec req;
++ struct timespec rem;
++ req.tv_sec = 0;
++ req.tv_nsec= 100000000;
++ nanosleep(&req, &rem);
++ rc = 1;
++ }
++ }
+ }
+ return bytes_recv;
+ }
Deleted: sane.xinetd
===================================================================
--- sane.xinetd 2020-01-05 21:00:55 UTC (rev 372625)
+++ sane.xinetd 2020-01-05 21:01:12 UTC (rev 372626)
@@ -1,11 +0,0 @@
-service sane-port
-{
- port = 6566
- socket_type = stream
- wait = no
- user = nobody
- group = scanner
- server = /usr/bin/saned
- # disabled by default!
- disable = yes
- }
Copied: sane/repos/extra-x86_64/sane.xinetd (from rev 372625, sane/trunk/sane.xinetd)
===================================================================
--- sane.xinetd (rev 0)
+++ sane.xinetd 2020-01-05 21:01:12 UTC (rev 372626)
@@ -0,0 +1,11 @@
+service sane-port
+{
+ port = 6566
+ socket_type = stream
+ wait = no
+ user = nobody
+ group = scanner
+ server = /usr/bin/saned
+ # disabled by default!
+ disable = yes
+ }
Deleted: saned.service
===================================================================
--- saned.service 2020-01-05 21:00:55 UTC (rev 372625)
+++ saned.service 2020-01-05 21:01:12 UTC (rev 372626)
@@ -1,8 +0,0 @@
-[Unit]
-Description=Scanner Service
-
-[Service]
-Group=scanner
-ExecStart=/usr/bin/saned
-StandardInput=socket
-StandardError=syslog
Copied: sane/repos/extra-x86_64/saned.service (from rev 372625, sane/trunk/saned.service)
===================================================================
--- saned.service (rev 0)
+++ saned.service 2020-01-05 21:01:12 UTC (rev 372626)
@@ -0,0 +1,8 @@
+[Unit]
+Description=Scanner Service
+
+[Service]
+Group=scanner
+ExecStart=/usr/bin/saned
+StandardInput=socket
+StandardError=syslog
Deleted: saned.socket
===================================================================
--- saned.socket 2020-01-05 21:00:55 UTC (rev 372625)
+++ saned.socket 2020-01-05 21:01:12 UTC (rev 372626)
@@ -1,9 +0,0 @@
-[Unit]
-Description=saned incoming socket
-
-[Socket]
-ListenStream=6566
-Accept=yes
-
-[Install]
-WantedBy=sockets.target
Copied: sane/repos/extra-x86_64/saned.socket (from rev 372625, sane/trunk/saned.socket)
===================================================================
--- saned.socket (rev 0)
+++ saned.socket 2020-01-05 21:01:12 UTC (rev 372626)
@@ -0,0 +1,9 @@
+[Unit]
+Description=saned incoming socket
+
+[Socket]
+ListenStream=6566
+Accept=yes
+
+[Install]
+WantedBy=sockets.target
More information about the arch-commits
mailing list