From nobody Thu Jun 8 11:35:41 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QcMbL0Nvjz4bPRg; Thu, 8 Jun 2023 11:35:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QcMbK6YDpz43Wv; Thu, 8 Jun 2023 11:35:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686224141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M8vl9l00HHcesw7VeqJ+D9eX3/2dVS91Eej6x0dIwQU=; b=NvWWZtKD6OF0/lva78Oom4Q++E/D7+Q8F/qZ1WJkGtNF1yORGD+pkrT1+TqdjdEpiQiFvM j9wz7LtneLvLoEIrF5HnMQXjEGnMrvcbMPCOuaD2Z1J+zaobIM+X0IA/bqGwFhXPSadbuF 3JTRRXnGpKWHovLXZZhW+BKsnSBF7o+GndAxwzwe90UoBHEki2f750ICU35pvmF2aFxcXH ieijbFraom7lUgwUm7S01odKzJCnKK58k2HuyCKBRnQBC8yJdaco4JiyXtxKMyHosRhP/Y Ewhidsbm1OJB6BgmdXjPO/FCzUvsKWeGn+AQGncEptyhuuKZC28czHimlawDeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686224141; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=M8vl9l00HHcesw7VeqJ+D9eX3/2dVS91Eej6x0dIwQU=; b=kdoKmBDkw5SMtwV1IpX9tredfyxc7qfjeSGSQI4lqZ5p7ma2V705T4LPFRC6ca2JOojIvd S/3z+aQQTMMkpWKD1rGRuuDZTROiwm6bsgL1x8HMvPsG71SajZFlTRMHicHXHATNb3xB54 LUbDf8stKdWpDdb9nNTOGAbb/H2RekzvJbZQGJlVjYacraw/KXFHZ8XvpmeRpx6+n8xmr2 h6G8rH0EX3mZs33AjNsSLs8OE0EHgr/mwUfYPfuTirtpoBo/9NCOT8/52vmo5pxhLLB6py +TMX+7aro8eJmrSRQPvvsGgtmNRnez6EZNs9xnTRc0Y+JIPs7F0rVTPlIUFwuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686224141; a=rsa-sha256; cv=none; b=tg9cu/6/67Z34+qDcpqEAE+8XTltcFKYzwUV1p12+b7bcCQDRhxnu+Pxbk7XwWyPrZPL7s PJNEPv3tD1YPoZEObq80AWfSKMXFn0eYGrODjSeeusgaWXifo+76JYoNnj2YW93vs1IOzW tkgF5WaKysi0DzAHmFFN6ieeQtLMvjAsveuMLpiwREhQDsgevh7JQekGQPCoyiQr9IWXz9 Fhe8Wtjsk7hB8j+YFi90NsXbOrKu7j5ybbsoDEL12tdQ+8z5H7NeNWq02kGeYBH2PmxRiJ ZT7hV3dKleRzyucUEQzB9HvakFGUSRy0i2XJjpInQPDuv8QZABKXXiNnUAmoYw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QcMbK5f4hzrlB; Thu, 8 Jun 2023 11:35:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 358BZfMk070552; Thu, 8 Jun 2023 11:35:41 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 358BZfCu070551; Thu, 8 Jun 2023 11:35:41 GMT (envelope-from git) Date: Thu, 8 Jun 2023 11:35:41 GMT Message-Id: <202306081135.358BZfCu070551@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: 8ffec20dfd53 - main - sysutils/scanbd: Add new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8ffec20dfd5343afa84a818d3103f98deaea6005 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=8ffec20dfd5343afa84a818d3103f98deaea6005 commit 8ffec20dfd5343afa84a818d3103f98deaea6005 Author: Trenton Schulz AuthorDate: 2023-06-04 05:32:21 +0000 Commit: Robert Clausecker CommitDate: 2023-06-08 10:51:07 +0000 sysutils/scanbd: Add new port scanbd looks to be the continuation of scanbuttond, it accomplishes the same tasks, but supports all scanners from scanbuttond plus all the scanners supported by SANE. It uses dbus for communication and can also signal device insertion and removal. Upstream has moved to gitlab, so this is the last corresponding release based on the last SourceForge release (with some minor documentation updates). WWW: https://sourceforge.net/projects/scanbd/ PR: 271816 --- sysutils/Makefile | 1 + sysutils/scanbd/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ sysutils/scanbd/distinfo | 3 +++ sysutils/scanbd/files/scanbd.in | 16 ++++++++++++++++ sysutils/scanbd/pkg-descr | 17 +++++++++++++++++ sysutils/scanbd/pkg-plist | 17 +++++++++++++++++ 6 files changed, 92 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index a161c16132e9..cfe9fc8071e5 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1324,6 +1324,7 @@ SUBDIR += savelogs SUBDIR += scalpel SUBDIR += scan_ffs + SUBDIR += scanbd SUBDIR += scanbuttond SUBDIR += scanmem SUBDIR += scct diff --git a/sysutils/scanbd/Makefile b/sysutils/scanbd/Makefile new file mode 100644 index 000000000000..9ee2ef19027b --- /dev/null +++ b/sysutils/scanbd/Makefile @@ -0,0 +1,38 @@ +PORTNAME= scanbd +DISTVERSION= 1.5.1 +CATEGORIES= sysutils + +MAINTAINER= trueos@norwegianrockcat.com +COMMENT= Scanner button daemon +WWW= https://sourceforge.net/projects/scanbd/ + +LICENSE= GPLv2 + +BUILD_DEPENDS= sane-config:graphics/sane-backends +LIB_DEPENDS= libdbus-1.so:devel/dbus \ + libudev.so:devel/libudev-devd \ + libconfuse.so:devel/libconfuse +RUN_DEPENDS= bash:shells/bash \ + scanimage:graphics/sane-backends + +USES= gettext-runtime gmake pkgconfig shebangfix + +USE_GITLAB= yes +GL_ACCOUNT= sane-project/frontend +GL_PROJECT= scanbd +GL_COMMIT= 4503640d202c06510f21848a684e221f613f324b + +GNU_CONFIGURE= yes + +CONFIGURE_ARGS+= --with-user --with-group + +SHEBANG_GLOB= *.script + +USE_RC_SUBR= scanbd + +SUB_FILES= scanbd + +post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/scanbd ${STAGEDIR}${PREFIX}/etc/rc.d/scanbd + +.include diff --git a/sysutils/scanbd/distinfo b/sysutils/scanbd/distinfo new file mode 100644 index 000000000000..43296e31a0d7 --- /dev/null +++ b/sysutils/scanbd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1685858862 +SHA256 (sane-project/frontend-scanbd-4503640d202c06510f21848a684e221f613f324b_GL0.tar.gz) = 085d6c0e54048d3ab002f2d9b2a08d31ee3751d04c16cb7ed8826d58d06a54d6 +SIZE (sane-project/frontend-scanbd-4503640d202c06510f21848a684e221f613f324b_GL0.tar.gz) = 473189 diff --git a/sysutils/scanbd/files/scanbd.in b/sysutils/scanbd/files/scanbd.in new file mode 100755 index 000000000000..e2924b9c6f9b --- /dev/null +++ b/sysutils/scanbd/files/scanbd.in @@ -0,0 +1,16 @@ +#!/bin/sh +# PROVIDE: scanbd +# REQUIRE: DAEMON FILESYSTEMS dbus +# KEYWORD: + +. /etc/rc.subr + +name=scanbd +# scanbd_user=saned # Fix this +rcvar=scanbd_enable +command_args="" +command="%%PREFIX%%/sbin/${name}" + +load_rc_config $name +run_rc_command "$1" + diff --git a/sysutils/scanbd/pkg-descr b/sysutils/scanbd/pkg-descr new file mode 100644 index 000000000000..e868cf3a1a6c --- /dev/null +++ b/sysutils/scanbd/pkg-descr @@ -0,0 +1,17 @@ +scanbd is daemon that listens for scanner button presses and can run scripts. + +From the project page: + +scanbd is a scanner button daemon. It polls the scanner buttons +looking for buttons pressed or function knob changes or other scanner +events as paper inserts / removals and at the same time allows also +scan-applications to access the scanners. If buttons are pressed, +etc., various actions can be submitted (scan, copy, email, ...) via +action scripts. The function knob values are passed to the +action-scripts as well. Scan actions are also signaled via dbus. This +can be useful for foreign applications. Scans can also be triggered +via dbus from foreign applications. On platforms which support +signaling of dynamic device insertion / removal (libudev, dbus, hal) +scanbd supports this as well. scanbd can use all sane-backends or some +special backends from the (old) scanbuttond project. Supported +platforms: Linux, FreeBSD, NetBSD, OpenBSD diff --git a/sysutils/scanbd/pkg-plist b/sysutils/scanbd/pkg-plist new file mode 100644 index 000000000000..11a68ee236ce --- /dev/null +++ b/sysutils/scanbd/pkg-plist @@ -0,0 +1,17 @@ +%%ETCDIR%%/scripts/action.script +%%ETCDIR%%/scripts/example.script +%%ETCDIR%%/scripts/insert.script +%%ETCDIR%%/scripts/scanadf.script +%%ETCDIR%%/scripts/test.script +%%ETCDIR%%/scanbd.conf +%%ETCDIR%%/scanner.d/avision.conf +%%ETCDIR%%/scanner.d/canon.conf +%%ETCDIR%%/scanner.d/fujitsu.conf +%%ETCDIR%%/scanner.d/hp.conf +%%ETCDIR%%/scanner.d/pixma.conf +%%ETCDIR%%/scanner.d/plustek.conf +%%ETCDIR%%/scanner.d/snapscan.conf +sbin/scanbd +sbin/scanbm +man/man8/scanbm.8.gz +man/man8/scanbd.8.gz