fix typo group name.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<PISI>
|
||||
<Name>hardware.scanner</Name>
|
||||
</PISI>
|
||||
@@ -0,0 +1,57 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
# Those are in gentoo ebuild too, but what are they for?
|
||||
# I couldn't find in docs, some comment would be helpful here -gurer
|
||||
shelltools.export("SANEI_JPEG", "sanei_jpeg.o")
|
||||
shelltools.export("SANEI_JPEG_LO", "sanei_jpeg.lo")
|
||||
|
||||
pisitools.cflags.add("-fPIC -fno-strict-aliasing")
|
||||
pisitools.ldflags.add("-pie")
|
||||
|
||||
shelltools.echo(".tarball-version", get.srcVERSION())
|
||||
shelltools.echo(".version", get.srcVERSION())
|
||||
|
||||
autotools.autoreconf("-fiv")
|
||||
|
||||
autotools.configure("--enable-ipv6 \
|
||||
--enable-avahi \
|
||||
--enable-libusb \
|
||||
--disable-rpath \
|
||||
--disable-locking \
|
||||
--disable-latex \
|
||||
--with-docdir=/usr/share/doc/%s \
|
||||
--with-gphoto2" % get.srcNAME())
|
||||
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
# Install udev rule
|
||||
pisitools.insinto("/lib/udev/rules.d", "tools/udev/libsane.rules", "65-libsane.rules")
|
||||
|
||||
# Add epson epkowa and brother2 backends also
|
||||
shelltools.echo("%s/etc/sane.d/dll.conf" % get.installDIR(),
|
||||
"# Epson 'epkowa' backend\n" +
|
||||
"# See http://www.sane-project.org/cgi-bin/driver.pl?manu=Epson&bus=any for supported scanners\n" +
|
||||
"# In order to use this backend, you have to install iscan package\nepkowa")
|
||||
|
||||
shelltools.echo("%s/etc/sane.d/dll.conf" % get.installDIR(),
|
||||
"\n# Brother backend\n" +
|
||||
"# See http://en.pardus-wiki.org/Brother_scanner_support_for_DCP_and_MFC_models for installation\n" +
|
||||
"brother\nbrother2\nbrother3")
|
||||
|
||||
shelltools.echo("%s/etc/sane.d/dll.conf" % get.installDIR(), "\n# Added for Xerox Phaser 3100 MFP\nXeroxPhaser3100\n")
|
||||
@@ -0,0 +1 @@
|
||||
SANE_CONFIG_DIR=/etc/sane.d
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
From 37523b867d411c2f82d08128246be7e38bc9812c Mon Sep 17 00:00:00 2001
|
||||
From: Paul Newall <quandry@ntlworld.com>
|
||||
Date: Mon, 14 Oct 2013 22:22:53 +0100
|
||||
Subject: [PATCH] Bugfix in kodakaio.c to fix segfault when non kodak scanners
|
||||
return unexpected data via avahi auto discovery
|
||||
|
||||
---
|
||||
backend/kodakaio.c | 43 ++++++++++++++++++++++++++++++----------
|
||||
doc/descriptions/kodakaio.desc | 2 +-
|
||||
3 files changed, 37 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/backend/kodakaio.c b/backend/kodakaio.c
|
||||
index 8c4583a..b442e50 100644
|
||||
--- a/backend/kodakaio.c
|
||||
+++ b/backend/kodakaio.c
|
||||
@@ -127,7 +127,7 @@ for ubuntu 12.10
|
||||
|
||||
#define KODAKAIO_VERSION 02
|
||||
#define KODAKAIO_REVISION 4
|
||||
-#define KODAKAIO_BUILD 6
|
||||
+#define KODAKAIO_BUILD 7
|
||||
|
||||
/* for usb (but also used for net though it's not required). */
|
||||
#define MAX_BLOCK_SIZE 32768
|
||||
@@ -2184,6 +2184,7 @@ static void resolve_callback(
|
||||
AvahiLookupResultFlags flags,
|
||||
AVAHI_GCC_UNUSED void* userdata) {
|
||||
|
||||
+ AvahiStringList *vid_pair_list = NULL, *pid_pair_list = NULL;
|
||||
char *pidkey, *pidvalue;
|
||||
char *vidkey, *vidvalue;
|
||||
size_t valuesize;
|
||||
@@ -2204,20 +2205,40 @@ static void resolve_callback(
|
||||
avahi_address_snprint(a, sizeof(a), address);
|
||||
|
||||
/* Output short for Kodak ESP */
|
||||
- DBG(min(10,DBG_AUTO), "%s:%u %s ", a,port,host_name);
|
||||
- avahi_string_list_get_pair(avahi_string_list_find(txt, "vid"),
|
||||
- &vidkey, &vidvalue, &valuesize);
|
||||
- DBG(min(10,DBG_AUTO), "%s=%s ", vidkey, vidvalue);
|
||||
- avahi_string_list_get_pair(avahi_string_list_find(txt, "pid"),
|
||||
- &pidkey, &pidvalue, &valuesize);
|
||||
- DBG(min(10,DBG_AUTO), "%s=%s\n", pidkey, pidvalue);
|
||||
+ DBG(min(10,DBG_AUTO), "%s:%u %s\n", a,port,host_name);
|
||||
|
||||
+ vid_pair_list = avahi_string_list_find(txt, "vid");
|
||||
+ if(vid_pair_list != NULL) {
|
||||
+ avahi_string_list_get_pair(vid_pair_list, &vidkey, &vidvalue, &valuesize);
|
||||
+ DBG(min(10,DBG_AUTO), "%s=%s ", vidkey, vidvalue);
|
||||
+ }
|
||||
+ else DBG(min(10,DBG_AUTO), "failed to find key vid\n");
|
||||
+
|
||||
+ pid_pair_list = avahi_string_list_find(txt, "pid");
|
||||
+ if(pid_pair_list != NULL) {
|
||||
+ avahi_string_list_get_pair(pid_pair_list, &pidkey, &pidvalue, &valuesize);
|
||||
+ DBG(min(10,DBG_AUTO), "%s=%s\n", pidkey, pidvalue);
|
||||
+ }
|
||||
+ else DBG(min(10,DBG_AUTO), "failed to find key pid\n");
|
||||
+
|
||||
+ if(pid_pair_list != NULL && vid_pair_list != NULL) {
|
||||
ProcessAvahiDevice(name, vidvalue, pidvalue, a);
|
||||
- avahi_free(vidkey); avahi_free(vidvalue);
|
||||
- avahi_free(pidkey); avahi_free(pidvalue);
|
||||
+ }
|
||||
+ else DBG(min(10,DBG_AUTO), "didn't call ProcessAvahiDevice\n");
|
||||
+
|
||||
+ if(vid_pair_list != NULL) {
|
||||
+ avahi_free(vidkey);
|
||||
+ avahi_free(vidvalue);
|
||||
+ DBG(min(15,DBG_AUTO), "vidkey and vidvalue freed\n");
|
||||
+ }
|
||||
+ if(pid_pair_list != NULL) {
|
||||
+ avahi_free(pidkey);
|
||||
+ avahi_free(pidvalue);
|
||||
+ DBG(min(15,DBG_AUTO), "pidkey and pidvalue freed\n");
|
||||
+ }
|
||||
}
|
||||
}
|
||||
-
|
||||
+ DBG(min(10,DBG_AUTO), "ending resolve_callback\n");
|
||||
avahi_service_resolver_free(r);
|
||||
}
|
||||
|
||||
diff --git a/doc/descriptions/kodakaio.desc b/doc/descriptions/kodakaio.desc
|
||||
index 7882513..5fb18ed 100644
|
||||
--- a/doc/descriptions/kodakaio.desc
|
||||
+++ b/doc/descriptions/kodakaio.desc
|
||||
@@ -1,6 +1,6 @@
|
||||
:backend "kodakaio"
|
||||
:url "http://sourceforge.net/projects/cupsdriverkodak/"
|
||||
-:version "2.4.6"
|
||||
+:version "2.4.7"
|
||||
:manpage "sane-kodakaio"
|
||||
:comment "Backend for Kodak AiO ESP and Hero printers. Also possibly Advent AWL10"
|
||||
:devicetype :scanner
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
--- backend/niash.c.orig 2006-02-04 12:34:28.000000000 +0100
|
||||
+++ backend/niash.c 2007-02-21 15:38:12.000000000 +0100
|
||||
@@ -89,7 +89,9 @@ typedef enum
|
||||
optLamp,
|
||||
|
||||
optCalibrate,
|
||||
- optGamma /* analog gamma = single number */
|
||||
+ optGamma, /* analog gamma = single number */
|
||||
+/* have optEndOfList only to define arrays with sufficient size */
|
||||
+ optEndOfList
|
||||
} EOptionIndex;
|
||||
|
||||
|
||||
@@ -105,8 +107,8 @@ typedef union
|
||||
|
||||
typedef struct
|
||||
{
|
||||
- SANE_Option_Descriptor aOptions[optLast];
|
||||
- TOptionValue aValues[optLast];
|
||||
+ SANE_Option_Descriptor aOptions[optEndOfList];
|
||||
+ TOptionValue aValues[optEndOfList];
|
||||
|
||||
TScanParams ScanParams;
|
||||
THWParams HWParams;
|
||||
@@ -0,0 +1,66 @@
|
||||
commit 7987b0332e6b660ac7992176daeede40cab98390
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Tue Jun 16 17:02:49 2009 +0200
|
||||
|
||||
patch: open-macro
|
||||
|
||||
Squashed commit of the following:
|
||||
|
||||
commit ab8fe801c4f82017988cb44cb79d82d286aa0de4
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Tue Jun 9 17:57:45 2009 +0200
|
||||
|
||||
don't inadvertently use glibc open() macro
|
||||
|
||||
diff --git a/backend/mustek_pp.c b/backend/mustek_pp.c
|
||||
index 8c3f06a..7e9d094 100644
|
||||
--- a/backend/mustek_pp.c
|
||||
+++ b/backend/mustek_pp.c
|
||||
@@ -1152,7 +1152,7 @@ sane_open (SANE_String_Const devicename, SANE_Handle * handle)
|
||||
|
||||
}
|
||||
|
||||
- if ((status = dev->func->open (dev->port, dev->caps, &fd)) != SANE_STATUS_GOOD) {
|
||||
+ if ((status = (dev->func->open) (dev->port, dev->caps, &fd)) != SANE_STATUS_GOOD) {
|
||||
|
||||
DBG (1, "sane_open: could not open device (%s)\n",
|
||||
sane_strstatus (status));
|
||||
diff --git a/backend/pixma_common.c b/backend/pixma_common.c
|
||||
index 2bcb3c1..c5e1e96 100644
|
||||
--- a/backend/pixma_common.c
|
||||
+++ b/backend/pixma_common.c
|
||||
@@ -511,7 +511,7 @@ pixma_open (unsigned devnr, pixma_t ** handle)
|
||||
strncpy (s->id, pixma_get_device_id (devnr), sizeof (s->id) - 1);
|
||||
s->ops = s->cfg->ops;
|
||||
s->scanning = 0;
|
||||
- error = s->ops->open (s);
|
||||
+ error = (s->ops->open) (s);
|
||||
if (error < 0)
|
||||
goto rollback;
|
||||
error = pixma_deactivate (s->io);
|
||||
diff --git a/backend/plustek_pp.c b/backend/plustek_pp.c
|
||||
index 13d1443..629e238 100644
|
||||
--- a/backend/plustek_pp.c
|
||||
+++ b/backend/plustek_pp.c
|
||||
@@ -258,7 +258,7 @@ static int drvopen( Plustek_Device *dev )
|
||||
|
||||
DBG( _DBG_INFO, "drvopen()\n" );
|
||||
|
||||
- handle = dev->open((const char*)dev->name, (void *)dev );
|
||||
+ handle = (dev->open)((const char*)dev->name, (void *)dev );
|
||||
|
||||
tsecs = 0;
|
||||
|
||||
diff --git a/sanei/sanei_scsi.c b/sanei/sanei_scsi.c
|
||||
index 69d5859..a594aba 100644
|
||||
--- a/sanei/sanei_scsi.c
|
||||
+++ b/sanei/sanei_scsi.c
|
||||
@@ -5328,7 +5328,7 @@ sanei_scsi_find_devices (const char *findvendor, const char *findmodel,
|
||||
(*plugInInterface)->Release (plugInInterface);
|
||||
IOObjectRelease (scsiDevice);
|
||||
|
||||
- ioReturnValue = (*scsiDeviceInterface)->open (scsiDeviceInterface);
|
||||
+ ioReturnValue = ((*scsiDeviceInterface)->open) (scsiDeviceInterface);
|
||||
if (ioReturnValue != kIOReturnSuccess)
|
||||
{
|
||||
DBG (5, "Error opening SCSI interface (0x%08x)\n", ioReturnValue);
|
||||
@@ -0,0 +1,47 @@
|
||||
From 305535e303032814b65bf6d889a95f00f08a9071 Mon Sep 17 00:00:00 2001
|
||||
From: Nils Philippsen <nils@redhat.com>
|
||||
Date: Wed, 5 May 2010 12:49:02 +0200
|
||||
Subject: [PATCH] patch: epson-expression800
|
||||
|
||||
Squashed commit of the following:
|
||||
|
||||
commit 3b501d7499357438a1fbd63fefb2f977ae3051f5
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Wed May 5 12:14:23 2010 +0200
|
||||
|
||||
Improve Epson Expression 800
|
||||
|
||||
Epson Expression 800 models announce themselves as "processor", not
|
||||
"scanner".
|
||||
---
|
||||
doc/descriptions/epson.desc | 1 +
|
||||
doc/descriptions/epson2.desc | 1 +
|
||||
2 files changed, 2 insertions(+), 0 deletions(-)
|
||||
|
||||
diff --git a/doc/descriptions/epson.desc b/doc/descriptions/epson.desc
|
||||
index a22325c..55a0136 100644
|
||||
--- a/doc/descriptions/epson.desc
|
||||
+++ b/doc/descriptions/epson.desc
|
||||
@@ -174,6 +174,7 @@
|
||||
:model "Expression 800"
|
||||
:interface "SCSI"
|
||||
:status :complete
|
||||
+:scsi "EPSON" "Expression800" "processor"
|
||||
|
||||
:model "Expression 1600"
|
||||
:interface "SCSI USB IEEE-1394"
|
||||
diff --git a/doc/descriptions/epson2.desc b/doc/descriptions/epson2.desc
|
||||
index 9a14f4f..56cabcd 100644
|
||||
--- a/doc/descriptions/epson2.desc
|
||||
+++ b/doc/descriptions/epson2.desc
|
||||
@@ -241,6 +241,7 @@
|
||||
:model "Expression 800" ; command spec
|
||||
:interface "SCSI"
|
||||
:status :complete
|
||||
+:scsi "EPSON" "Expression800" "processor"
|
||||
:comment "overseas version of the GT-9600"
|
||||
|
||||
:model "Expression 836XL" ; command spec
|
||||
--
|
||||
1.6.6.1
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
From d0c61e7e9b13185f424dff1f4ac697ec53089d69 Mon Sep 17 00:00:00 2001
|
||||
From: Nils Philippsen <nils@redhat.com>
|
||||
Date: Tue, 4 Sep 2012 16:45:14 +0200
|
||||
Subject: [PATCH] patch: sane-config-multilib
|
||||
|
||||
Squashed commit of the following:
|
||||
|
||||
commit 81aa4f41bf102b08258c8e1de1c0476835329ec5
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Tue Sep 4 16:43:34 2012 +0200
|
||||
|
||||
make installed sane-config multi-lib aware again
|
||||
|
||||
This partially reverts commit 77c4ea1a7aa680fb1c3ee4daa1404f21439b2c9b.
|
||||
---
|
||||
tools/sane-config.in | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/tools/sane-config.in b/tools/sane-config.in
|
||||
index 8e4b52a..1fae2e5 100644
|
||||
--- a/tools/sane-config.in
|
||||
+++ b/tools/sane-config.in
|
||||
@@ -10,10 +10,6 @@ scriptname="sane-config"
|
||||
prefix="@prefix@"
|
||||
exec_prefix="@exec_prefix@"
|
||||
|
||||
-# using our installed *.pc only - neither default nor user paths
|
||||
-export PKG_CONFIG_LIBDIR="@libdir@/pkgconfig"
|
||||
-export PKG_CONFIG_PATH=""
|
||||
-
|
||||
pkgconfig_package=sane-backends
|
||||
|
||||
usage ()
|
||||
--
|
||||
1.7.11.4
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
From 031cd8dd376ed6537afd06ca5aec5e67f5da0489 Mon Sep 17 00:00:00 2001
|
||||
From: Nils Philippsen <nils@redhat.com>
|
||||
Date: Fri, 31 Aug 2012 16:14:49 +0200
|
||||
Subject: [PATCH] patch: soname
|
||||
|
||||
Squashed commit of the following:
|
||||
|
||||
commit 2035ced803168210a70c4946814440764e5d0186
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Fri Aug 31 16:13:51 2012 +0200
|
||||
|
||||
don't use the same SONAME for backend libs and main lib
|
||||
---
|
||||
ltmain.sh | 19 -------------------
|
||||
1 file changed, 19 deletions(-)
|
||||
|
||||
diff --git a/ltmain.sh b/ltmain.sh
|
||||
index f3eb4c8..17d1508 100755
|
||||
--- a/ltmain.sh
|
||||
+++ b/ltmain.sh
|
||||
@@ -8101,25 +8101,6 @@ EOF
|
||||
dlname=$soname
|
||||
fi
|
||||
|
||||
- # Local change for sane-backends: internal name for every lib
|
||||
- # is "libsane" not "libsane-backendname". So linking to each
|
||||
- # backend is possible. Also the following test was moved to this
|
||||
- # location.
|
||||
- # If -module or -export-dynamic was specified, set the dlname
|
||||
- if test "$module" = yes || test "$export_dynamic" = yes; then
|
||||
- # On all known operating systems, these are identical.
|
||||
- dlname="$soname"
|
||||
- fi
|
||||
- case $host in
|
||||
- *mingw*)
|
||||
- ;;
|
||||
- *aix*)
|
||||
- ;;
|
||||
- *)
|
||||
- soname=`echo $soname | sed -e "s/libsane-[A-Za-z_0-9]*/libsane/g"`
|
||||
- esac
|
||||
- # End of local change
|
||||
-
|
||||
lib="$output_objdir/$realname"
|
||||
linknames=
|
||||
for link
|
||||
--
|
||||
1.7.11.4
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
From c7f5126447ed5335a54d9333ac37f35c2189fbf4 Mon Sep 17 00:00:00 2001
|
||||
From: Nils Philippsen <nils@redhat.com>
|
||||
Date: Mon, 10 Sep 2012 12:25:33 +0200
|
||||
Subject: [PATCH] patch: udev
|
||||
|
||||
Squashed commit of the following:
|
||||
|
||||
commit 3d19b3eaf91fa8c3c2a78956f570d3e0f4c3f342
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Mon Sep 10 12:25:16 2012 +0200
|
||||
|
||||
adapt generated udev rules for Fedora
|
||||
|
||||
commit 7017c3ad1dadc27edd2c47ceec04f8648c839d53
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Mon Sep 10 12:20:43 2012 +0200
|
||||
|
||||
use group and mode macros consistently
|
||||
---
|
||||
tools/sane-desc.c | 13 ++++++-------
|
||||
1 file changed, 6 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/tools/sane-desc.c b/tools/sane-desc.c
|
||||
index 7bbd012..5c5bbe9 100644
|
||||
--- a/tools/sane-desc.c
|
||||
+++ b/tools/sane-desc.c
|
||||
@@ -56,9 +56,9 @@
|
||||
#define COLOR_NEW "\"#F00000\""
|
||||
#define COLOR_UNKNOWN "\"#000000\""
|
||||
|
||||
-#define DEVMODE "0664"
|
||||
+#define DEVMODE "0644"
|
||||
#define DEVOWNER "root"
|
||||
-#define DEVGROUP "scanner"
|
||||
+#define DEVGROUP "root"
|
||||
|
||||
#ifndef PATH_MAX
|
||||
# define PATH_MAX 1024
|
||||
@@ -3543,7 +3543,8 @@ print_udev (void)
|
||||
}
|
||||
|
||||
printf("\n# The following rule will disable USB autosuspend for the device\n");
|
||||
- printf("ENV{libsane_matched}==\"yes\", RUN+=\"/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'\"\n");
|
||||
+ printf("ENV{libsane_matched}==\"yes\", TEST==\"power/control\", ATTR{power/control}=\"on\"\n");
|
||||
+ printf("ENV{libsane_matched}==\"yes\", TEST!=\"power/control\", TEST==\"power/level\", ATTR{power/level}=\"on\"\n");
|
||||
|
||||
printf ("\nLABEL=\"libsane_usb_rules_end\"\n\n");
|
||||
|
||||
@@ -3619,10 +3620,8 @@ print_udev (void)
|
||||
}
|
||||
printf ("LABEL=\"libsane_scsi_rules_end\"\n");
|
||||
|
||||
- if (mode == output_mode_udevacl)
|
||||
- printf("\nENV{libsane_matched}==\"yes\", RUN+=\"/bin/setfacl -m g:%s:rw $env{DEVNAME}\"\n", DEVGROUP);
|
||||
- else
|
||||
- printf ("\nENV{libsane_matched}==\"yes\", MODE=\"664\", GROUP=\"scanner\"\n");
|
||||
+ if (mode != output_mode_udevacl)
|
||||
+ printf ("\nENV{libsane_matched}==\"yes\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP);
|
||||
|
||||
printf ("\nLABEL=\"libsane_rules_end\"\n");
|
||||
}
|
||||
--
|
||||
1.7.11.4
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
From 252f347d59fff3ab1877f77a36613b318651725e Mon Sep 17 00:00:00 2001
|
||||
From: Nils Philippsen <nils@redhat.com>
|
||||
Date: Tue, 8 Oct 2013 16:29:13 +0200
|
||||
Subject: [PATCH] patch: udev
|
||||
|
||||
Squashed commit of the following:
|
||||
|
||||
commit fb6d1f4c0d17f1df33429bf03a64cd4fbb819ea5
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Tue Oct 8 16:24:49 2013 +0200
|
||||
|
||||
adapt generated udev rules for Fedora
|
||||
|
||||
commit 8bffaccc1eeb19ecbaddb4ac9da73954af4c5d4f
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Mon Sep 10 12:20:43 2012 +0200
|
||||
|
||||
use group and mode macros consistently
|
||||
---
|
||||
tools/sane-desc.c | 14 +++++++-------
|
||||
1 file changed, 7 insertions(+), 7 deletions(-)
|
||||
|
||||
diff --git a/tools/sane-desc.c b/tools/sane-desc.c
|
||||
index badc8ce..f992bf5 100644
|
||||
--- a/tools/sane-desc.c
|
||||
+++ b/tools/sane-desc.c
|
||||
@@ -57,9 +57,9 @@
|
||||
#define COLOR_NEW "\"#F00000\""
|
||||
#define COLOR_UNKNOWN "\"#000000\""
|
||||
|
||||
-#define DEVMODE "0664"
|
||||
+#define DEVMODE "0644"
|
||||
#define DEVOWNER "root"
|
||||
-#define DEVGROUP "scanner"
|
||||
+#define DEVGROUP "root"
|
||||
|
||||
#ifndef PATH_MAX
|
||||
# define PATH_MAX 1024
|
||||
@@ -3564,7 +3564,8 @@ print_udev (void)
|
||||
}
|
||||
|
||||
printf("\n# The following rule will disable USB autosuspend for the device\n");
|
||||
- printf("ENV{libsane_matched}==\"yes\", RUN+=\"/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo on > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo on > /sys/$env{DEVPATH}/power/level; fi'\"\n");
|
||||
+ printf("ENV{libsane_matched}==\"yes\", TEST==\"power/control\", ATTR{power/control}=\"on\"\n");
|
||||
+ printf("ENV{libsane_matched}==\"yes\", TEST!=\"power/control\", TEST==\"power/level\", ATTR{power/level}=\"on\"\n");
|
||||
|
||||
printf ("\nLABEL=\"libsane_usb_rules_end\"\n\n");
|
||||
|
||||
@@ -3641,10 +3642,8 @@ print_udev (void)
|
||||
}
|
||||
printf ("LABEL=\"libsane_scsi_rules_end\"\n");
|
||||
|
||||
- if (mode == output_mode_udevacl)
|
||||
- printf("\nENV{libsane_matched}==\"yes\", RUN+=\"/bin/setfacl -m g:%s:rw $env{DEVNAME}\"\n", DEVGROUP);
|
||||
- else
|
||||
- printf ("\nENV{libsane_matched}==\"yes\", MODE=\"664\", GROUP=\"scanner\"\n");
|
||||
+ if (mode != output_mode_udevacl)
|
||||
+ printf ("\nENV{libsane_matched}==\"yes\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP);
|
||||
|
||||
printf ("\nLABEL=\"libsane_rules_end\"\n");
|
||||
}
|
||||
@@ -3695,6 +3694,7 @@ print_udevhwdb (void)
|
||||
|
||||
printf("# The following rule will disable USB autosuspend for the device\n");
|
||||
printf("ENV{DEVTYPE}==\"usb_device\", ENV{libsane_matched}==\"yes\", TEST==\"power/control\", ATTR{power/control}=\"on\"\n\n");
|
||||
+ printf("ENV{DEVTYPE}==\"usb_device\", ENV{libsane_matched}==\"yes\", TEST!=\"power/control\", TEST==\"power/level\", ATTR{power/level}=\"on\"\n");
|
||||
|
||||
printf ("SUBSYSTEMS==\"scsi\", GOTO=\"libsane_scsi_rules_begin\"\n");
|
||||
printf ("GOTO=\"libsane_rules_end\"\n\n");
|
||||
--
|
||||
2.5.0
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
diff --git a/backend/epson2-ops.c b/backend/epson2-ops.c
|
||||
index 83a0169..573ebcf 100644
|
||||
--- a/backend/epson2-ops.c
|
||||
+++ b/backend/epson2-ops.c
|
||||
@@ -291,14 +291,14 @@ e2_dev_post_init(struct Epson_Device *dev)
|
||||
dev->need_reset_on_source_change = SANE_FALSE;
|
||||
|
||||
if (e2_dev_model(dev, "ES-9000H") || e2_dev_model(dev, "GT-30000")) {
|
||||
- dev->cmd->set_focus_position = 0;
|
||||
dev->cmd->feed = 0x19;
|
||||
+ dev->focusSupport = SANE_FALSE;
|
||||
}
|
||||
|
||||
if (e2_dev_model(dev, "GT-8200") || e2_dev_model(dev, "Perfection1650")
|
||||
|| e2_dev_model(dev, "Perfection1640") || e2_dev_model(dev, "GT-8700")) {
|
||||
dev->cmd->feed = 0;
|
||||
- dev->cmd->set_focus_position = 0;
|
||||
+ dev->focusSupport = SANE_FALSE;
|
||||
dev->need_reset_on_source_change = SANE_TRUE;
|
||||
}
|
||||
|
||||
@@ -825,12 +825,12 @@ e2_discover_capabilities(Epson_Scanner *s)
|
||||
|
||||
if (esci_request_focus_position(s, &s->currentFocusPosition) ==
|
||||
SANE_STATUS_GOOD) {
|
||||
- DBG(1, "setting focus is supported, current focus: %u\n", s->currentFocusPosition);
|
||||
+ DBG(1, "getting focus is supported, current focus: %u\n", s->currentFocusPosition);
|
||||
dev->focusSupport = SANE_TRUE;
|
||||
s->opt[OPT_FOCUS_POS].cap &= ~SANE_CAP_INACTIVE;
|
||||
s->val[OPT_FOCUS_POS].w = s->currentFocusPosition;
|
||||
} else {
|
||||
- DBG(1, "setting focus is not supported\n");
|
||||
+ DBG(1, "getting focus is not supported\n");
|
||||
dev->focusSupport = SANE_FALSE;
|
||||
s->opt[OPT_FOCUS_POS].cap |= SANE_CAP_INACTIVE;
|
||||
s->val[OPT_FOCUS_POS].w = FOCUS_ON_GLASS; /* just in case */
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1,33 @@
|
||||
--- a/backend/mustek_pp_ccd300.c.orig 2003-12-01 12:52:19.000000000 +0100
|
||||
+++ b/backend/mustek_pp_ccd300.c 2009-07-29 16:29:54.000000000 +0200
|
||||
@@ -940,10 +940,10 @@ get_color_line_101x (Mustek_pp_Handle *
|
||||
wait_bank_change (dev, priv->bank_count, 1);
|
||||
reset_bank_count (dev);
|
||||
if (priv->ccd_line >= (priv->line_step >> SANE_FIXED_SCALE_SHIFT))
|
||||
- priv->redline = ++priv->redline % priv->green_offs;
|
||||
+ priv->redline = (priv->redline + 1) % priv->green_offs;
|
||||
if (priv->ccd_line >=
|
||||
priv->blue_offs + (priv->line_step >> SANE_FIXED_SCALE_SHIFT))
|
||||
- priv->blueline = ++priv->blueline % priv->blue_offs;
|
||||
+ priv->blueline = (priv->blueline + 1) % priv->blue_offs;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -979,7 +979,7 @@ get_color_line_101x (Mustek_pp_Handle *
|
||||
|
||||
}
|
||||
|
||||
- priv->redline = ++priv->redline % priv->green_offs;
|
||||
+ priv->redline = (priv->redline + 1) % priv->green_offs;
|
||||
|
||||
if (priv->ccd_line >= priv->green_offs && gogreen)
|
||||
{
|
||||
@@ -1013,7 +1013,7 @@ get_color_line_101x (Mustek_pp_Handle *
|
||||
|
||||
if (priv->ccd_line >=
|
||||
priv->blue_offs + (priv->line_step >> SANE_FIXED_SCALE_SHIFT))
|
||||
- priv->blueline = ++priv->blueline % priv->blue_offs;
|
||||
+ priv->blueline = (priv->blueline + 1) % priv->blue_offs;
|
||||
|
||||
if (gogreen)
|
||||
{
|
||||
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>sane-backends</Name>
|
||||
<Homepage>http://www.sane-project.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<Icon>sane</Icon>
|
||||
<IsA>app:console</IsA>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Scanner access software</Summary>
|
||||
<Description>Scanner Access Now Easy (SANE) is a universal scanner interface. The SANE application programming interface provides standardized access to any raster image scanner hardware.</Description>
|
||||
<Archive sha1sum="f9c86b231d7d09619c297c70911d75d1aab51a99" type="targz">https://gitlab.com/sane-project/backends/-/archive/1.3.1/backends-1.3.1.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>curl-devel</Dependency>
|
||||
<Dependency>libxml2-devel</Dependency>
|
||||
<Dependency>gettext-devel</Dependency>
|
||||
<Dependency>libieee1284-devel</Dependency>
|
||||
<Dependency>libusb-compat-devel</Dependency>
|
||||
<Dependency>libusb-devel</Dependency>
|
||||
<Dependency>libpng-devel</Dependency>
|
||||
<Dependency>libnl-devel</Dependency>
|
||||
<Dependency>openssl-devel</Dependency>
|
||||
<Dependency>cups-devel</Dependency>
|
||||
<Dependency>libgphoto2-devel</Dependency>
|
||||
<Dependency>libv4l-devel</Dependency>
|
||||
<Dependency>avahi-devel</Dependency>
|
||||
<Dependency>libjpeg-turbo-devel</Dependency>
|
||||
<Dependency>tiff-devel</Dependency>
|
||||
<Dependency>net-snmp-devel</Dependency>
|
||||
<Dependency>autoconf-archive</Dependency>
|
||||
<Dependency>cairo-devel</Dependency>
|
||||
<Dependency>glib2-devel</Dependency>
|
||||
<Dependency>poppler-glib-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<!-- <Patch level="1">sane-backends-1.0.20-open-macro.patch</Patch> -->
|
||||
<Patch level="1">sane-backends-1.0.25-udev.patch</Patch>
|
||||
<!-- <Patch level="1">sane-backends-1.0.23-soname.patch</Patch> -->
|
||||
<Patch level="1">sane-backends-1.0.23-sane-config-multilib.patch</Patch>
|
||||
<!-- <Patch level="1">sane-epson2-disable-focus.patch</Patch> -->
|
||||
<!-- <Patch level="1">archlinux/network.patch</Patch> -->
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>sane-backends</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>curl</Dependency>
|
||||
<Dependency>libxml2</Dependency>
|
||||
<Dependency>libnl</Dependency>
|
||||
<Dependency>openssl</Dependency>
|
||||
<Dependency>libusb</Dependency>
|
||||
<Dependency>libpng</Dependency>
|
||||
<Dependency>libusb-compat</Dependency>
|
||||
<Dependency>libieee1284</Dependency>
|
||||
<Dependency>avahi-libs</Dependency>
|
||||
<Dependency>libgphoto2</Dependency>
|
||||
<Dependency>libv4l</Dependency>
|
||||
<Dependency>tiff</Dependency>
|
||||
<Dependency>libjpeg-turbo</Dependency>
|
||||
<Dependency>net-snmp</Dependency>
|
||||
<Dependency>cups</Dependency>
|
||||
<Dependency>libexif</Dependency>
|
||||
<Dependency>cairo</Dependency>
|
||||
<Dependency>glib2</Dependency>
|
||||
<Dependency>poppler-glib</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="data">/etc/sane.d/dll.d</Path>
|
||||
<Path fileType="data">/etc/env.d</Path>
|
||||
<Path fileType="config">/etc/sane.d</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="executable">/usr/libexec</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc/sane-backends/README</Path>
|
||||
<Path fileType="doc">/usr/share/doc/sane-backends/COPYING</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="data">/usr/share/pixmaps</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d</Path>
|
||||
<Path fileType="data">/usr/share/sane</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/pixmaps/sane.png">sane.png</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/env.d/30sane">30sane</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>sane-backends-devel</Name>
|
||||
<Summary>Development files for sane-backends</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">sane-backends</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>sane-backends-docs</Name>
|
||||
<Summary>Documentation for SANE backends</Summary>
|
||||
<Files>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="11">
|
||||
<Date>2024-12-28</Date>
|
||||
<Version>1.3.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="10">
|
||||
<Date>2023-04-08</Date>
|
||||
<Version>1.2.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="9">
|
||||
<Date>2022-12-06</Date>
|
||||
<Version>1.1.1</Version>
|
||||
<Comment>Rebuild.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="8">
|
||||
<Date>2022-07-02</Date>
|
||||
<Version>1.1.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2021-04-01</Date>
|
||||
<Version>1.0.32</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2020-02-23</Date>
|
||||
<Version>1.0.29</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>İdris Kalp</Name>
|
||||
<Email>idriskalp@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2018-08-03</Date>
|
||||
<Version>1.0.27</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2018-02-14</Date>
|
||||
<Version>1.0.27</Version>
|
||||
<Comment>Release Bump</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2017-04-10</Date>
|
||||
<Version>1.0.25</Version>
|
||||
<Comment>Release Bump</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2016-06-09</Date>
|
||||
<Version>1.0.25</Version>
|
||||
<Comment>Release Bump</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2016-04-01</Date>
|
||||
<Version>1.0.25</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>sane-backends</Name>
|
||||
<Summary xml:lang="tr">SANE (Scanner Access Now Easy) döküman ve resim tarayıcı sistemi araçları</Summary>
|
||||
<Description xml:lang="tr">SANE ve uygulama programlama arayüzü (API) ile herhangi bir görüntü tarayıcı donanımına standartlaştırlmış erişim sağlar.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>sane-backends-devel</Name>
|
||||
<Summary xml:lang="tr">sane-backends için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>sane-backends-docs</Name>
|
||||
<Summary xml:lang="tr">sane-backends için belgelendirme dosyaları</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.configure("--with-gnu-ld")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodoc("AUTHORS", "COPYING", "README")
|
||||
|
||||
# There's xsane instead
|
||||
pisitools.remove("/usr/bin/xscanimage")
|
||||
pisitools.remove("/usr/share/man/man1/xscanimage.1")
|
||||
pisitools.removeDir("/usr/share/sane")
|
||||
@@ -0,0 +1,40 @@
|
||||
commit c4cb247732767aed76502069d0b3040c4c4e5123
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Fri Jul 31 16:21:53 2009 +0200
|
||||
|
||||
patch: array-out-of-bounds
|
||||
|
||||
Squashed commit of the following:
|
||||
|
||||
commit 337bcefaa7a67931095b74317a266a1244978ab6
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Fri Jul 31 16:03:28 2009 +0200
|
||||
|
||||
fix array subscript out of bounds errors (#133121)
|
||||
|
||||
diff --git a/src/xcam.c b/src/xcam.c
|
||||
index 2d494a5..f6859b7 100644
|
||||
--- a/src/xcam.c
|
||||
+++ b/src/xcam.c
|
||||
@@ -1289,7 +1289,7 @@ save_frame_button (GtkWidget * widget, gpointer client_data,
|
||||
|
||||
/* test for pnm formats */
|
||||
strncpy (testfilename, preferences.filename, sizeof (testfilename));
|
||||
- testfilename[sizeof (testfilename)] = 0;
|
||||
+ testfilename[sizeof (testfilename) - 1] = 0;
|
||||
g_strreverse (testfilename);
|
||||
if (!((!strncmp (testfilename, "mnp.", 4)) ||
|
||||
(!strncmp (testfilename, "mgp.", 4)) ||
|
||||
diff --git a/src/xscanimage.c b/src/xscanimage.c
|
||||
index a36324f..065923d 100644
|
||||
--- a/src/xscanimage.c
|
||||
+++ b/src/xscanimage.c
|
||||
@@ -1284,7 +1284,7 @@ scan_dialog (GtkWidget * widget, gpointer call_data)
|
||||
{ /* We are running in standalone mode */
|
||||
/* test for pnm formats */
|
||||
strncpy (testfilename, preferences.filename, sizeof (testfilename));
|
||||
- testfilename[sizeof (testfilename)] = 0;
|
||||
+ testfilename[sizeof (testfilename) - 1] = 0;
|
||||
g_strreverse (testfilename);
|
||||
if (!((!strncmp (testfilename, "mnp.", 4)) ||
|
||||
(!strncmp (testfilename, "mgp.", 4)) ||
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
commit ddd90b1502a263d03938b1e45a57684d576993ba
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Fri Jul 31 16:25:58 2009 +0200
|
||||
|
||||
patch: sane-backends-1.0.20
|
||||
|
||||
Squashed commit of the following:
|
||||
|
||||
commit 0c84326fa37bb309481c4d2658ab6cb17c9f0e85
|
||||
Author: Nils Philippsen <nils@redhat.com>
|
||||
Date: Fri Jul 31 16:18:59 2009 +0200
|
||||
|
||||
use SANE_CAP_ALWAYS_SETTABLE only if available
|
||||
|
||||
diff --git a/src/gtkglue.c b/src/gtkglue.c
|
||||
index ba5cbf5..ec81f45 100644
|
||||
--- a/src/gtkglue.c
|
||||
+++ b/src/gtkglue.c
|
||||
@@ -1476,8 +1476,12 @@ gsg_set_sensitivity (GSGDialog * dialog, int sensitive)
|
||||
|| opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget)
|
||||
continue;
|
||||
|
||||
+#ifdef SANE_CAP_ALWAYS_SETTABLE
|
||||
if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
|
||||
gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
|
||||
+#else
|
||||
+ gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
|
||||
+#endif
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>sane-frontends</Name>
|
||||
<Homepage>http://www.sane-project.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2+</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Graphical frontend to SANE</Summary>
|
||||
<Description>sane-frontends includes the scanadf and xcam programs.</Description>
|
||||
<Archive sha1sum="063e11df3e32d7a43161fd37026a4dc601d5482d" type="targz">ftp://ftp.uwsg.indiana.edu/linux/gentoo/distfiles/sane-frontends-1.0.14.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>sane-backends-devel</Dependency>
|
||||
<Dependency>gimp-devel</Dependency>
|
||||
<Dependency>gtk2-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">sane-frontends-1.0.14-array-out-of-bounds.patch</Patch>
|
||||
<Patch level="1">sane-frontends-1.0.14-sane-backends-1.0.20.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>sane-frontends</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>sane-backends</Dependency>
|
||||
<Dependency>gtk2</Dependency>
|
||||
<Dependency>glib2</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="doc">/usr/share/doc/sane-frontends</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="6">
|
||||
<Date>2020-03-10</Date>
|
||||
<Version>1.0.14</Version>
|
||||
<Comment>Rebuild New T.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2018-09-01</Date>
|
||||
<Version>1.0.14</Version>
|
||||
<Comment>Rebuild New T.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2018-02-14</Date>
|
||||
<Version>1.0.14</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gamil.com</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2017-04-09</Date>
|
||||
<Version>1.0.14</Version>
|
||||
<Comment>Release Bump</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2016-06-09</Date>
|
||||
<Version>1.0.14</Version>
|
||||
<Comment>Release Bump</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2014-03-10</Date>
|
||||
<Version>1.0.14</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Varol Maksutoğlu</Name>
|
||||
<Email>waroi@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>sane-frontends</Name>
|
||||
<Summary xml:lang="tr">SANE için grafiksel arayüz paketi</Summary>
|
||||
<Description xml:lang="tr">sane-frontends, scanadf ve xcam grafiksel araçlarını içerir.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import kde6
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
kde6.configure()
|
||||
|
||||
def build():
|
||||
kde6.make()
|
||||
|
||||
def install():
|
||||
kde6.install()
|
||||
Executable
+150
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>skanlite</Name>
|
||||
<Homepage>http://www.kde.org</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2</License>
|
||||
<IsA>app:gui</IsA>
|
||||
<Summary>Lite scanning tool for KDE</Summary>
|
||||
<Description>Skanlite, provides to use scanner device plugged in your system with Sane backend.</Description>
|
||||
<Archive sha1sum="d9f5f3822b3ca40a97b9fb382fd89ebb0eac5c9c" type="tarxz">https://download.kde.org/stable/release-service/25.08.1/src/skanlite-25.08.1.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>extra-cmake-modules</Dependency>
|
||||
<Dependency>qt6-base-devel</Dependency>
|
||||
<Dependency>zlib-devel</Dependency>
|
||||
<Dependency>libpng-devel</Dependency>
|
||||
<Dependency>kcoreaddons-devel</Dependency>
|
||||
<Dependency>ki18n-devel</Dependency>
|
||||
<Dependency>kxmlgui-devel</Dependency>
|
||||
<Dependency>kio-devel</Dependency>
|
||||
<Dependency>kcrash-devel</Dependency>
|
||||
<Dependency>kdoctools-devel</Dependency>
|
||||
<Dependency>ktextwidgets-devel</Dependency>
|
||||
<Dependency>libksane-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>skanlite</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>kio</Dependency>
|
||||
<Dependency>ki18n</Dependency>
|
||||
<Dependency>libgcc</Dependency>
|
||||
<Dependency>kcrash</Dependency>
|
||||
<Dependency>libpng</Dependency>
|
||||
<Dependency>kconfig</Dependency>
|
||||
<Dependency>kxmlgui</Dependency>
|
||||
<Dependency>libksane</Dependency>
|
||||
<Dependency>qt6-base</Dependency>
|
||||
<Dependency>kcoreaddons</Dependency>
|
||||
<Dependency>kjobwidgets</Dependency>
|
||||
<Dependency>kconfigwidgets</Dependency>
|
||||
<Dependency>kwidgetsaddons</Dependency>
|
||||
<Dependency>sane-backends</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="12">
|
||||
<Date>2025-09-11</Date>
|
||||
<Version>25.08.1</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Pisi Linux Community</Name>
|
||||
<Email>admin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="11">
|
||||
<Date>2020-07-13</Date>
|
||||
<Version>2.2.0</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="10">
|
||||
<Date>2020-03-10</Date>
|
||||
<Version>2.1.0.1</Version>
|
||||
<Comment>Rebuild New T.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="9">
|
||||
<Date>2018-11-14</Date>
|
||||
<Version>2.1.0.1</Version>
|
||||
<Comment>Rebuild New T.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="8">
|
||||
<Date>2018-10-14</Date>
|
||||
<Version>2.1.0.1</Version>
|
||||
<Comment>Rebuild New T.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2018-09-01</Date>
|
||||
<Version>2.1.0.1</Version>
|
||||
<Comment>Rebuild New T.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2018-05-16</Date>
|
||||
<Version>2.1.0.1</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gamil.com</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2018-04-02</Date>
|
||||
<Version>2.1.0.1</Version>
|
||||
<Comment>Version Bump</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gamil.com</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2018-03-23</Date>
|
||||
<Version>2.0.1</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gamil.com</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2018-02-14</Date>
|
||||
<Version>2.0.1</Version>
|
||||
<Comment>Rebuild</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gamil.com</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2017-01-12</Date>
|
||||
<Version>2.0.1</Version>
|
||||
<Comment>Version Bump</Comment>
|
||||
<Name>Stefan Gronewold</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2016-05-23</Date>
|
||||
<Version>2.0</Version>
|
||||
<Comment>Release bump</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2016-02-02</Date>
|
||||
<Version>2.0</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Alihan Öztürk</Name>
|
||||
<Email>alihan@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>skanlite</Name>
|
||||
<Summary xml:lang="tr">KDE için hafif bir tarayıcı aracı</Summary>
|
||||
<Description xml:lang="tr">Skanlite, sisteminize takılı tarayıcı aygıtlarını Sane uygulaması ile birlikte kullanmanıza olanak sağlar.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user