From owner-dev-commits-ports-main@freebsd.org Mon Sep 20 08:04:36 2021 Return-Path: Delivered-To: dev-commits-ports-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D65F867A64F; Mon, 20 Sep 2021 08:04:36 +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 4HCcXh5SMnz3L57; Mon, 20 Sep 2021 08:04:36 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 9AD854F2F; Mon, 20 Sep 2021 08:04:36 +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 18K84a8l034939; Mon, 20 Sep 2021 08:04:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 18K84amn034938; Mon, 20 Sep 2021 08:04:36 GMT (envelope-from git) Date: Mon, 20 Sep 2021 08:04:36 GMT Message-Id: <202109200804.18K84amn034938@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Daniel Engberg Subject: git: f951db5cb274 - main - graphics/sane-airscan: New port: AirScan backend for SANE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: diizzy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f951db5cb274ddd5b73f59fc1f76393324105213 Auto-Submitted: auto-generated X-BeenThere: dev-commits-ports-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the main branch of the FreeBSD ports repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Sep 2021 08:04:36 -0000 The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=f951db5cb274ddd5b73f59fc1f76393324105213 commit f951db5cb274ddd5b73f59fc1f76393324105213 Author: Henry Hu AuthorDate: 2021-09-20 07:48:59 +0000 Commit: Daniel Engberg CommitDate: 2021-09-20 08:04:09 +0000 graphics/sane-airscan: New port: AirScan backend for SANE PR: 245540 Approved by: tcberner (mentor) Differential Revision: https://reviews.freebsd.org/D31918 --- graphics/Makefile | 1 + graphics/sane-airscan/Makefile | 31 ++++++++++++++++++++++++++++++ graphics/sane-airscan/distinfo | 3 +++ graphics/sane-airscan/files/patch-Makefile | 21 ++++++++++++++++++++ graphics/sane-airscan/pkg-descr | 17 ++++++++++++++++ graphics/sane-airscan/pkg-message | 20 +++++++++++++++++++ graphics/sane-airscan/pkg-plist | 8 ++++++++ 7 files changed, 101 insertions(+) diff --git a/graphics/Makefile b/graphics/Makefile index 67523045893d..11943f963b00 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -1002,6 +1002,7 @@ SUBDIR += sage SUBDIR += sam2p SUBDIR += sampleicc + SUBDIR += sane-airscan SUBDIR += sane-backends SUBDIR += sane-epkowa SUBDIR += scale2x diff --git a/graphics/sane-airscan/Makefile b/graphics/sane-airscan/Makefile new file mode 100644 index 000000000000..c9ffb679beff --- /dev/null +++ b/graphics/sane-airscan/Makefile @@ -0,0 +1,31 @@ +PORTNAME= sane-airscan +DISTVERSION= 0.99.26 +CATEGORIES= graphics + +MAINTAINER= henry.hu.sh@gmail.com +COMMENT= SANE backend for AirScan (eSCL) and WSD document scanners + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libavahi-client.so:net/avahi-app \ + libpng.so:graphics/png \ + libgnutls.so:security/gnutls +BUILD_DEPENDS= sane-backends>0:graphics/sane-backends + +USES= gmake gnome jpeg pkgconfig +USE_GNOME= libxml2 +USE_GITHUB= yes +GH_ACCOUNT= alexpevzner + +MAKE_ARGS= CC=${CC} PKG_CONFIG=pkgconf + +MANPAGES= sane-airscan.5 airscan-discover.1 + +post-install: + @${MV} ${STAGEDIR}${PREFIX}/etc/sane.d/airscan.conf \ + ${STAGEDIR}${PREFIX}/etc/sane.d/airscan.conf.sample + ${RLN} ${STAGEDIR}${PREFIX}/lib/sane/libsane-airscan.so.1 \ + ${STAGEDIR}${PREFIX}/lib/sane/libsane-airscan.so + +.include diff --git a/graphics/sane-airscan/distinfo b/graphics/sane-airscan/distinfo new file mode 100644 index 000000000000..4938ddffc27a --- /dev/null +++ b/graphics/sane-airscan/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1630878170 +SHA256 (alexpevzner-sane-airscan-0.99.26_GH0.tar.gz) = f124d51e1510a4950454794eba0ba633e4b58d312cdeb26b80deb192d563ce5e +SIZE (alexpevzner-sane-airscan-0.99.26_GH0.tar.gz) = 196488 diff --git a/graphics/sane-airscan/files/patch-Makefile b/graphics/sane-airscan/files/patch-Makefile new file mode 100644 index 000000000000..2b752b8f48c7 --- /dev/null +++ b/graphics/sane-airscan/files/patch-Makefile @@ -0,0 +1,21 @@ +--- Makefile.orig 2021-04-16 08:52:40 UTC ++++ Makefile +@@ -29,7 +29,8 @@ + + CC = gcc + COMPRESS = gzip -n +-CFLAGS += -O2 -g -W -Wall -Werror -pthread $(CPPFLAGS) ++CFLAGS ?= -O2 -g -W -Wall -Werror ++CFLAGS += -pthread $(CPPFLAGS) + PKG_CONFIG = pkg-config + STRIP = -s + INSTALL = install +@@ -101,7 +102,7 @@ $(OBJDIR)%.o: %.c Makefile airscan.h + + .PHONY: all clean install man + +-all: tags $(BACKEND) $(DISCOVER) test test-decode test-multipart test-zeroconf test-uri ++all: $(BACKEND) $(DISCOVER) test test-decode test-multipart test-zeroconf test-uri + + tags: $(SRC) airscan.h test.c test-decode.c test-multipart.c test-zeroconf.c test-uri.c + -ctags -R . diff --git a/graphics/sane-airscan/pkg-descr b/graphics/sane-airscan/pkg-descr new file mode 100644 index 000000000000..02ff0fce01e9 --- /dev/null +++ b/graphics/sane-airscan/pkg-descr @@ -0,0 +1,17 @@ +SANE backend for AirScan (eSCL) and WSD document scanner + +Similar to how most modern network printers support "driverless" printing, +using the universal vendor-neutral printing protocol, many modern network +scanners and MFPs support "driverless" scanning. + +Driverless scanning comes in two flavors: + +* Apple AirScan or AirPrint scanning (official protocol name is eSCL) +* Microsoft WSD, or WS-Scan (term WSD means "Web Services for Devices) + +This backend implements both protocols, choosing automatically between them. +It was successfully tested with many devices from Brother, Canon, Dell, +Kyocera, Lexmark, Epson, HP, OKI, Panasonic, Pantum, Ricoh, Samsung and +Xerox both in WSD and eSCL modes. + +WWW: https://github.com/alexpevzner/sane-airscan diff --git a/graphics/sane-airscan/pkg-message b/graphics/sane-airscan/pkg-message new file mode 100644 index 000000000000..e3fdc845c2b4 --- /dev/null +++ b/graphics/sane-airscan/pkg-message @@ -0,0 +1,20 @@ +[ +{ type: install + message: <