GNU bug report logs - #38355
[PATCH] gnu: Add scanbd.

Previous Next

Package: guix-patches;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Sun, 24 Nov 2019 00:44:02 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38355 in the body.
You can then email your comments to 38355 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#38355; Package guix-patches. (Sun, 24 Nov 2019 00:44:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 24 Nov 2019 00:44:14 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add scanbd.
Date: Sun, 24 Nov 2019 01:42:19 +0100
* gnu/packages/scanner.scm (scanbd): New public variable.
---
 gnu/packages/scanner.scm | 65 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm
index 98f7fd203a..25389f19aa 100644
--- a/gnu/packages/scanner.scm
+++ b/gnu/packages/scanner.scm
@@ -24,10 +24,13 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages ghostscript)
+  #:use-module (gnu packages glib)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages libusb)
+  #:use-module (gnu packages linux)
   #:use-module (gnu packages pkg-config)
+  #:use-module (gnu packages textutils)
   #:use-module (guix build-system gnu)
   #:use-module (guix download)
   #:use-module (guix git-download)
@@ -154,6 +157,68 @@ proving access to any raster image scanner hardware (flatbed scanner,
 hand-held scanner, video- and still-cameras, frame-grabbers, etc.).  The
 package contains the library and drivers.")))
 
+(define-public scanbd
+  (package
+    (name "scanbd")
+    (version "1.5.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://sourceforge/scanbd/releases/"
+                           "scanbd-" version ".tgz"))
+       (sha256
+        (base32 "0pvy4qirfjdfm8aj6x5rkbgl7hk3jfa2s21qkk8ic5dqfjjab75n"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:configure-flags
+       (list "--disable-debug"
+             "--sysconfdir=/etc")
+       #:phases
+       (modify-phases %standard-phases
+         (replace 'install
+           (lambda* (#:key make-flags outputs #:allow-other-keys)
+             (let* ((out  (assoc-ref outputs "out"))
+                    (conf (string-append out "/etc/scanbd")))
+               (apply invoke "make" "install"
+                      ;; Install example configuration to the store, not /etc.
+                      ;; These don't inherit from each other, so we need both.
+                      (string-append "scanbdconfdir="  conf)
+                      (string-append "scannerconfdir=" conf "/scanner.d")
+                      make-flags)
+               #t)))
+         (add-after 'install 'install-extra-documentation
+           ;; The README provides more detailed set-up instructions than the
+           ;; man page.
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (doc (string-append out "/share/doc/"
+                                        ,name "-" ,version)))
+               (install-file "doc/README.txt" doc)
+               #t))))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("dbus" ,dbus)
+       ("libconfuse" ,libconfuse)
+       ("sane-backends" ,sane-backends)
+       ("udev" ,eudev)))
+    (home-page "https://scanbd.sourceforge.io")
+    (synopsis "Configurable scanner button monitor")
+    (description
+     "Scanbd stands for scanner button daemon.  It regulary polls scanners for
+pressed buttons, function knob changes, or other events such as (un)plugging
+the scanner or inserting and removing paper.  Then it performs the desired
+action(s) such as saving, copying, or e-mailing the image.
+
+Actions can be fully customised through scripts, based on any combination of
+switch or knob settings.  Events are also signaled over D-Bus and scans can
+even be triggered over D-Bus from foreign applications.
+
+Scanbd talks to scanners through the @acronym{SANE, Scanner Access Now Easy}
+back-end library.  This means that it supports almost all existing scanners,
+provided the driver also exposes the buttons.")
+    (license licence:gpl2+)))
+
 (define-public xsane
   (package
     (name "xsane")
-- 
2.23.0





Information forwarded to guix-patches <at> gnu.org:
bug#38355; Package guix-patches. (Wed, 11 Dec 2019 13:02:01 GMT) Full text and rfc822 format available.

Message #8 received at 38355 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 38355 <at> debbugs.gnu.org
Subject: Re: [bug#38355] [PATCH] gnu: Add scanbd.
Date: Wed, 11 Dec 2019 11:58:20 +0100
Hi!

Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:

> * gnu/packages/scanner.scm (scanbd): New public variable.

LGTM!  :-)

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#38355; Package guix-patches. (Sun, 10 Jan 2021 22:10:02 GMT) Full text and rfc822 format available.

Message #11 received at 38355 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Tobias Geerinckx-Rice <me <at> tobias.gr>, 38355 <at> debbugs.gnu.org
Subject: Re: bug#38355: [PATCH] gnu: Add scanbd.
Date: Sun, 10 Jan 2021 17:09:18 -0500
Hello,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi!
>
> Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:
>
>> * gnu/packages/scanner.scm (scanbd): New public variable.
>
> LGTM!  :-)
>
> Ludo’.

Ping!  It seems it hasn't reached the repo yet :-)

Maxim




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Tue, 03 Aug 2021 19:17:01 GMT) Full text and rfc822 format available.

Notification sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
bug acknowledged by developer. (Tue, 03 Aug 2021 19:17:02 GMT) Full text and rfc822 format available.

Message #16 received at 38355-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Tobias Geerinckx-Rice <me <at> tobias.gr>, 38355-done <at> debbugs.gnu.org
Subject: Re: bug#38355: [PATCH] gnu: Add scanbd.
Date: Tue, 03 Aug 2021 15:16:51 -0400
Hello,

Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:

> Hello,
>
> Ludovic Courtès <ludo <at> gnu.org> writes:
>
>> Hi!
>>
>> Tobias Geerinckx-Rice <me <at> tobias.gr> skribis:
>>
>>> * gnu/packages/scanner.scm (scanbd): New public variable.
>>
>> LGTM!  :-)
>>
>> Ludo’.
>
> Ping!  It seems it hasn't reached the repo yet :-)
>
> Maxim

I added zlib as an input (it wouldn't build otherwise), fixed a typo,
and pushed as c40516a567.

Thanks!

Closing.

Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 01 Sep 2021 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.