diff --git a/print/Makefile b/print/Makefile index 0711f3dbca4d..4fef05467e81 100644 --- a/print/Makefile +++ b/print/Makefile @@ -1,270 +1,271 @@ COMMENT = Desktop publishing SUBDIR += R-cran-knitr SUBDIR += R-cran-tinytex SUBDIR += a2pdf SUBDIR += a2ps SUBDIR += abcm2ps SUBDIR += adobe-cmaps SUBDIR += afm SUBDIR += alignmargins SUBDIR += ansiprint SUBDIR += asprint SUBDIR += auctex SUBDIR += bibcursed SUBDIR += bibview SUBDIR += brlaser SUBDIR += c2ps SUBDIR += catdvi SUBDIR += cdlabelgen SUBDIR += cups SUBDIR += cups-bjnp SUBDIR += cups-filters SUBDIR += cups-fxlinuxprint SUBDIR += cups-pdf SUBDIR += cups-pk-helper SUBDIR += cups-smb-backend SUBDIR += deforaos-pdfviewer SUBDIR += derelict-ft SUBDIR += detex SUBDIR += dot2tex SUBDIR += dvi2tty SUBDIR += dvips2ascii SUBDIR += dvisvg SUBDIR += dymo-cups-drivers SUBDIR += easylatex SUBDIR += enscript-a4 SUBDIR += enscript-letter SUBDIR += enscript-letterdj SUBDIR += epson-inkjet-printer-201207w SUBDIR += epson-inkjet-printer-201401w SUBDIR += epson-inkjet-printer-201601w SUBDIR += epson-inkjet-printer-escpr SUBDIR += epson-inkjet-printer-escpr2 SUBDIR += epsonepl SUBDIR += fig2dev SUBDIR += flpsed SUBDIR += font-amsfonts SUBDIR += font2svg SUBDIR += fontforge SUBDIR += foo2zjs SUBDIR += foomatic-db SUBDIR += foomatic-db-engine SUBDIR += foomatic-db-hpijs SUBDIR += foomatic-filters SUBDIR += fpc-libcups SUBDIR += fpdf SUBDIR += freetype2 SUBDIR += ft2demos SUBDIR += ghostscript10 SUBDIR += ghostscript7-base SUBDIR += ghostscript7-commfont SUBDIR += ghostscript7-jpnfont SUBDIR += ghostscript7-korfont SUBDIR += ghostscript7-x11 SUBDIR += ghostscript8-base SUBDIR += ghostscript8-x11 SUBDIR += ghostscript9-agpl-base SUBDIR += ghostscript9-agpl-x11 SUBDIR += gimp-gutenprint SUBDIR += gl2ps SUBDIR += gsfonts SUBDIR += gspdf SUBDIR += gtklp SUBDIR += gutenprint SUBDIR += gv SUBDIR += harfbuzz SUBDIR += harfbuzz-cairo SUBDIR += harfbuzz-icu SUBDIR += hp2xx SUBDIR += hplip SUBDIR += hplip-plugin SUBDIR += hs-hscolour SUBDIR += html2latex SUBDIR += html2ps SUBDIR += hyperlatex SUBDIR += indexinfo + SUBDIR += ipp-usb SUBDIR += kde_poster SUBDIR += latex-beamer SUBDIR += latex-biber SUBDIR += latex-ltablex SUBDIR += latex-resume SUBDIR += latex2rtf SUBDIR += latexdiff SUBDIR += libharu SUBDIR += libijs SUBDIR += libmspub01 SUBDIR += libotf SUBDIR += libpagemaker SUBDIR += libpaper SUBDIR += libraqm SUBDIR += libspectre SUBDIR += lilypond SUBDIR += lilypond-devel SUBDIR += limereport SUBDIR += linux-c7-cups-libs SUBDIR += linux-c7-freetype SUBDIR += linux-c7-harfbuzz SUBDIR += linux-jabref SUBDIR += lout SUBDIR += lprps SUBDIR += lyx SUBDIR += magicfilter SUBDIR += makeindex SUBDIR += mftrace SUBDIR += miktex SUBDIR += min12xxw SUBDIR += mp-a4 SUBDIR += mp-letter SUBDIR += mpage SUBDIR += muttprint SUBDIR += nenscript SUBDIR += okc321 SUBDIR += openprinting SUBDIR += p5-Font-FreeType SUBDIR += p5-Net-CUPS SUBDIR += p5-Net-Printer SUBDIR += p5-PDF-Template SUBDIR += p5-PDFLib SUBDIR += p5-PostScript SUBDIR += p5-PostScript-PPD SUBDIR += p5-PostScript-Simple SUBDIR += p5-Text-PDF SUBDIR += p5-XML-ApacheFOP SUBDIR += p5-XML-Handler-AxPoint SUBDIR += p910nd SUBDIR += panda SUBDIR += papersize-default-a4 SUBDIR += papersize-default-letter SUBDIR += paps SUBDIR += pcal SUBDIR += pdf-redact-tools SUBDIR += pdf-renderer SUBDIR += pdf-tools SUBDIR += pdf4tcl SUBDIR += pdfarranger SUBDIR += pdfbox SUBDIR += pdfchain SUBDIR += pdflib SUBDIR += pdflib-perl SUBDIR += pdfmixtool SUBDIR += pdfstitch SUBDIR += pdftk SUBDIR += pear-File_PDF SUBDIR += pfbtopfa SUBDIR += photoprint SUBDIR += pic2fig SUBDIR += pkfonts118 SUBDIR += pkfonts240 SUBDIR += pkfonts300 SUBDIR += pkfonts360 SUBDIR += pkfonts400 SUBDIR += pkfonts600 SUBDIR += pnm2ppa SUBDIR += posterazor SUBDIR += print-manager SUBDIR += ps2eps SUBDIR += pscal SUBDIR += psdim SUBDIR += pslib SUBDIR += pstotext SUBDIR += psutils SUBDIR += py-collidoscope SUBDIR += py-dehinter SUBDIR += py-font-v SUBDIR += py-fontaine SUBDIR += py-fontbakery SUBDIR += py-fontparts SUBDIR += py-fontpens SUBDIR += py-fonttools SUBDIR += py-fpdf SUBDIR += py-freetype-py SUBDIR += py-frescobaldi SUBDIR += py-glyphsets SUBDIR += py-glyphtools SUBDIR += py-pollyreports SUBDIR += py-preppy SUBDIR += py-psautohint SUBDIR += py-pycups SUBDIR += py-pydyf SUBDIR += py-pypdf SUBDIR += py-pypdf2 SUBDIR += py-pypdf3 SUBDIR += py-python-ly SUBDIR += py-relatorio SUBDIR += py-reportlab SUBDIR += py-rtf SUBDIR += py-ttfautohint-py SUBDIR += py-ufolib2 SUBDIR += py-uharfbuzz SUBDIR += py-vharfbuzz SUBDIR += py-weasyprint SUBDIR += qpdf SUBDIR += qpdfview SUBDIR += qt5-printsupport SUBDIR += rlpr SUBDIR += rtf2latex2e SUBDIR += rubygem-afm SUBDIR += rubygem-color SUBDIR += rubygem-color-tools SUBDIR += rubygem-color_diff SUBDIR += rubygem-pdf-core SUBDIR += rubygem-pdf-reader SUBDIR += rubygem-pdf-writer SUBDIR += rubygem-prawn SUBDIR += rubygem-prawn-core SUBDIR += rubygem-prawn-flexible-table SUBDIR += rubygem-prawn-format SUBDIR += rubygem-prawn-graph SUBDIR += rubygem-prawn-icon SUBDIR += rubygem-prawn-js SUBDIR += rubygem-prawn-layout SUBDIR += rubygem-prawn-security SUBDIR += rubygem-prawn-svg SUBDIR += rubygem-prawn-table SUBDIR += rubygem-prawn-templates SUBDIR += rubygem-prawn_shapes SUBDIR += rubygem-rbpdf SUBDIR += rubygem-rbpdf-font SUBDIR += rubygem-ttfunk SUBDIR += scribus-devel SUBDIR += sgf2tex SUBDIR += shrinkpdf SUBDIR += simple-fb2-reader SUBDIR += sioyek SUBDIR += splix SUBDIR += system-config-printer SUBDIR += t1utils SUBDIR += tex-basic-engines SUBDIR += tex-dvipdfmx SUBDIR += tex-dvipsk SUBDIR += tex-formats SUBDIR += tex-jadetex SUBDIR += tex-luatex SUBDIR += tex-ptexenc SUBDIR += tex-xdvik SUBDIR += tex-xetex SUBDIR += tex-xmltex SUBDIR += texinfo SUBDIR += texlive-base SUBDIR += texlive-docs SUBDIR += texlive-full SUBDIR += texlive-texmf SUBDIR += texlive-texmf-source SUBDIR += texlive-tlmgr SUBDIR += texvc SUBDIR += tgif2tex SUBDIR += transfig SUBDIR += trueprint SUBDIR += ttf2pt1 SUBDIR += ttfautohint SUBDIR += txtbdf2ps SUBDIR += typetools SUBDIR += utopia SUBDIR += xmbibtex SUBDIR += xpdfopen SUBDIR += xreader SUBDIR += xtexsh SUBDIR += yatex .include 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