From nobody Thu May 11 23:26:36 2023 X-Original-To: dev-commits-ports-main@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 4QHShY0jF8z4BBST; Thu, 11 May 2023 23:26:37 +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 4QHShX6KFkz3LMd; Thu, 11 May 2023 23:26:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683847596; 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=XZNaAJQCjH09NYCVBka1dYl/ZCQ8NMxWqY8wSIJGMiI=; b=RmSGDaqbnUwFTROdQq6DCP7Cx0aftItd7m6T5Rloc6XDHiz0rdWPaJDLCOvHYm6al3aZ44 k+chnLPVoTIJXYS/rloj0JvgcBQzCqp+haMAnYLAoa3kwj0jRsdG88Jfhig3Z5PAFq9S63 FUr81UngHJg9RwBAOJMcWBNvBjwIdL8a9lpR6ylH0xyQijFHM/x9RlWIrJeDhA2SOGQacH whQfE4KC9yQOL9ToRG1yj8BLOX5UqEz68b+T3cmT1Zk4Q7HXXfOm5qfTV4h6jZm03spBnF QX+vlrpQboAxWlduoxoAFUyUmwaY5tsHxvcMPe8RKVpsha/Mv8FP2sZd/RF8Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683847596; 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=XZNaAJQCjH09NYCVBka1dYl/ZCQ8NMxWqY8wSIJGMiI=; b=a4CEh9asnefbHn0ef75H6JQYBkM9pfmBFYG4GpJBLtugMn79icBq6mDPJp4cQwbf5aDLzP DJpZhbQ1y28DRW6req2yYdo/CBz8lOSXwmGWVDc+lV5krr4796g2+tqyms3OeYQBecnt2T KEpW33jvryATLWv4ljZ6zIvOBLc1BADD74BZgIcvHagMFk2IdxfUN8XEXQVzopCbWp4ofI Lz0iK0gYr0gC49aleYlIY9TyVgb/WOtHqC9346dFL2Zy0I1AVAwGGDmPIb9BVoow9Q7RJI wv4HcbTS49jg0u2WhHGfiYAzl+DtaeUmDkt+zBZ0g/sKdT0xy0yLI+WPIpVAqw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683847596; a=rsa-sha256; cv=none; b=ltfGisJG+JfDU+ouI8ByvwB/0YIWhaxKs44IpyVKlT6phj1s0snUlgmtoX4yEaKlea5OwB 5QkNPqGXT9wtgo1Qbc8lBohpUyXEza7Cn5MhY+Sj74VgEy3shgfIFO7198FjodAQNKLMQY iHrZyxBKBzedyyipwa/BNbWD5b7gzV2otW8BYurFfYwzlUg41+1TrgRnqPvUgaTh0szMqb gjE11GMknBsn+/x7NjEpbzJp4YUOyw/9al8jvLRxeqG1W4TQ6aDsNDq+VGnLnkIPut+/2+ TO2J501l6/1bNzWKtoHwYu76/XAjU3+Dy54H5Qp1TwvgQbcTd/h9f4HDvOwkXQ== 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 4QHShX5RQkz1C5g; Thu, 11 May 2023 23:26: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 34BNQao4048622; Thu, 11 May 2023 23:26:36 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 34BNQatS048621; Thu, 11 May 2023 23:26:36 GMT (envelope-from git) Date: Thu, 11 May 2023 23:26:36 GMT Message-Id: <202305112326.34BNQatS048621@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: c30e4415453a - main - print/ipp-usb: Add port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@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: c30e4415453a5d3c5c0cd00d253250b8f7e2054d Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=c30e4415453a5d3c5c0cd00d253250b8f7e2054d commit c30e4415453a5d3c5c0cd00d253250b8f7e2054d Author: Foo Chuan Wei AuthorDate: 2023-05-11 07:54:49 +0000 Commit: Robert Clausecker CommitDate: 2023-05-11 23:23:30 +0000 print/ipp-usb: Add port ipp-usb daemon enables driver-less printing and scanning on USB-only AirPrint-compatible printers and MFPs. It works by connecting to the device by USB using IPP-over-USB protocol, and exposing the device to the network, including DNS-SD (ZeroConf) advertising. IPP printing, eSCL scanning and web console are fully supported. WWW: https://github.com/OpenPrinting/ipp-usb PR: 271226 --- print/Makefile | 1 + print/ipp-usb/Makefile | 37 +++++++++++++++++++++++++++++++ print/ipp-usb/distinfo | 5 +++++ print/ipp-usb/files/ipp-usb.in | 25 +++++++++++++++++++++ print/ipp-usb/files/patch-dnssd__avahi.go | 8 +++++++ print/ipp-usb/pkg-descr | 5 +++++ print/ipp-usb/pkg-plist | 8 +++++++ 7 files changed, 89 insertions(+) diff --git a/print/Makefile b/print/Makefile index 0711f3dbca4d..4fef05467e81 100644 --- a/print/Makefile +++ b/print/Makefile @@ -84,6 +84,7 @@ SUBDIR += html2ps SUBDIR += hyperlatex SUBDIR += indexinfo + SUBDIR += ipp-usb SUBDIR += kde_poster SUBDIR += latex-beamer SUBDIR += latex-biber diff --git a/print/ipp-usb/Makefile b/print/ipp-usb/Makefile new file mode 100644 index 000000000000..3e66af198d7b --- /dev/null +++ b/print/ipp-usb/Makefile @@ -0,0 +1,37 @@ +PORTNAME= ipp-usb +DISTVERSION= 0.9.23 +CATEGORIES= print + +MAINTAINER= chuanwei.foo@hotmail.com +COMMENT= Daemon for IPP over USB printer support +WWW= https://github.com/OpenPrinting/ipp-usb + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libavahi-client.so:net/avahi-app \ + libavahi-common.so:net/avahi-app + +USES= gmake go:modules pkgconfig + +USE_GITHUB= yes +GH_ACCOUNT= OpenPrinting +GH_TUPLE= OpenPrinting:goipp:v1.0.0:openprinting_goipp/vendor/github.com/OpenPrinting/goipp + +USE_RC_SUBR= ipp-usb + +post-patch: + ${REINPLACE_CMD} -e 's|/usr/share/ipp-usb|${DATADIR}|g' \ + -e 's|/etc/ipp-usb|${ETCDIR}|g' \ + ${WRKSRC}/paths.go + +do-install: + ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/ipp-usb ${STAGEDIR}${PREFIX}/sbin/ + ${MKDIR} ${STAGEDIR}${ETCDIR}/quirks/ + ${INSTALL_DATA} ${WRKSRC}/ipp-usb.conf \ + ${STAGEDIR}${ETCDIR}/ipp-usb.conf.sample + ${INSTALL_MAN} ${WRKSRC}/ipp-usb.8 ${STAGEDIR}${PREFIX}/man/man8/ + (cd ${WRKSRC}/ipp-usb-quirks/ && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/quirks/) + +.include diff --git a/print/ipp-usb/distinfo b/print/ipp-usb/distinfo new file mode 100644 index 000000000000..7de58faad424 --- /dev/null +++ b/print/ipp-usb/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1683046675 +SHA256 (OpenPrinting-ipp-usb-0.9.23_GH0.tar.gz) = 81f325abc45b4d2b8812022d93dfcebc807c2b0688e2a9f7052f0bddfadf5b01 +SIZE (OpenPrinting-ipp-usb-0.9.23_GH0.tar.gz) = 73151 +SHA256 (OpenPrinting-goipp-v1.0.0_GH0.tar.gz) = b0ffbd093af6407fe4695075d9a022d23948b9762d2a9e39a2fbb7e9bf474b32 +SIZE (OpenPrinting-goipp-v1.0.0_GH0.tar.gz) = 31764 diff --git a/print/ipp-usb/files/ipp-usb.in b/print/ipp-usb/files/ipp-usb.in new file mode 100644 index 000000000000..26d54d51c5c1 --- /dev/null +++ b/print/ipp-usb/files/ipp-usb.in @@ -0,0 +1,25 @@ +#!/bin/sh + +# PROVIDE: ipp_usb +# REQUIRE: DAEMON +# KEYWORD: shutdown +# +# Add these lines to /etc/rc.conf.local or /etc/rc.conf +# to enable this service: +# +# ipp_usb_enable (bool): Set to NO by default. +# Set it to YES to enable ipp-usb. + +. /etc/rc.subr + +name=ipp_usb +rcvar=ipp_usb_enable + +load_rc_config $name + +: ${ipp_usb_enable:="NO"} + +command=%%PREFIX%%/sbin/ipp-usb +command_args="standalone -bg" + +run_rc_command "$1" diff --git a/print/ipp-usb/files/patch-dnssd__avahi.go b/print/ipp-usb/files/patch-dnssd__avahi.go new file mode 100644 index 000000000000..77c793016278 --- /dev/null +++ b/print/ipp-usb/files/patch-dnssd__avahi.go @@ -0,0 +1,8 @@ +--- dnssd_avahi.go.orig 2023-05-01 00:00:00 UTC ++++ dnssd_avahi.go +@@ -1,4 +1,4 @@ +-// +build linux ++// +build linux freebsd + + /* ipp-usb - HTTP reverse proxy, backed by IPP-over-USB connection to device + * diff --git a/print/ipp-usb/pkg-descr b/print/ipp-usb/pkg-descr new file mode 100644 index 000000000000..2c672a2ebf20 --- /dev/null +++ b/print/ipp-usb/pkg-descr @@ -0,0 +1,5 @@ +ipp-usb daemon enables driver-less printing and scanning on USB-only +AirPrint-compatible printers and MFPs. It works by connecting to the device by +USB using IPP-over-USB protocol, and exposing the device to the network, +including DNS-SD (ZeroConf) advertising. IPP printing, eSCL scanning and web +console are fully supported. diff --git a/print/ipp-usb/pkg-plist b/print/ipp-usb/pkg-plist new file mode 100644 index 000000000000..c298e02e38b6 --- /dev/null +++ b/print/ipp-usb/pkg-plist @@ -0,0 +1,8 @@ +%%ETCDIR%%/ipp-usb.conf.sample +man/man8/ipp-usb.8.gz +sbin/ipp-usb +%%DATADIR%%/quirks/HP.conf +%%DATADIR%%/quirks/README +%%DATADIR%%/quirks/blacklist.conf +%%DATADIR%%/quirks/default.conf +@dir %%ETCDIR%%/quirks