FreeBSD Bugzilla – Attachment 213294 Details for
Bug 245540
[NEW PORT] graphics/sane-airscan: AirScan backend for SANE
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar for the new port
sane-airscan.shar (text/plain), 6.37 KB, created by
Henry Hu
on 2020-04-11 18:16:36 UTC
(
hide
)
Description:
shar for the new port
Filename:
MIME Type:
Creator:
Henry Hu
Created:
2020-04-11 18:16:36 UTC
Size:
6.37 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># graphics ># graphics/sane-airscan ># graphics/sane-airscan/pkg-descr ># graphics/sane-airscan/files ># graphics/sane-airscan/files/patch-Makefile ># graphics/sane-airscan/files/patch-airscan.h ># graphics/sane-airscan/pkg-plist ># graphics/sane-airscan/Makefile ># graphics/sane-airscan/pkg-message ># graphics/sane-airscan/distinfo ># >echo c - graphics >mkdir -p graphics > /dev/null 2>&1 >echo c - graphics/sane-airscan >mkdir -p graphics/sane-airscan > /dev/null 2>&1 >echo x - graphics/sane-airscan/pkg-descr >sed 's/^X//' >graphics/sane-airscan/pkg-descr << 'd3ad152c2ca14c0296745d92b5306ee3' >Xsane-airscan -- Linux support of Apple AirScan (eSCL) compatible document >Xscanners >X >XIf you are a lucky owner of scanner or MFP which works via network with Apple >Xdevices, I have a good news for you: now your scanner works with Linux as well! >X >XIn theory, this backend should work with any scanner that supports the eSCL >Xprotocol (unofficially known as AirScan or AirPrint scanning). In practice, it >Xwas tested on several devices from Canon, Kyocera and HP, and this list >Xconstantly grows, though slowly, so feedback regarding other devices is very >Xwelcomed. >X >XApple maintains a comprehensive list of compatible devices, but please note, >Xthis list contains not only scanners and MFP, but pure printers as well. >X >XTo use this backend, you don't need to install ScanGear from Canon, HPLIP from >XHP or some other proprietary software from hardware vendor. This backend works >Xdirectly with your device and doesn't depend on a 3rd party closed source >Xcomponents. >X >XWWW: https://github.com/alexpevzner/sane-airscan >d3ad152c2ca14c0296745d92b5306ee3 >echo c - graphics/sane-airscan/files >mkdir -p graphics/sane-airscan/files > /dev/null 2>&1 >echo x - graphics/sane-airscan/files/patch-Makefile >sed 's/^X//' >graphics/sane-airscan/files/patch-Makefile << 'e9f3a16d3d06c561f9d245615c49ff0c' >X--- Makefile.orig 2020-03-20 13:47:50 UTC >X+++ Makefile >X@@ -53,7 +53,8 @@ airscan_CFLAGS += `pkg-config --cflags --libs avahi-gl >X airscan_CFLAGS += `pkg-config --cflags --libs libjpeg` >X airscan_CFLAGS += `pkg-config --cflags --libs libsoup-2.4` >X airscan_CFLAGS += `pkg-config --cflags --libs libxml-2.0` >X-airscan_CFLAGS += -Wl,--version-script=airscan.sym >X+airscan_CFLAGS += `pkg-config --cflags --libs epoll-shim` >X+airscan_CFLAGS_LIBONLY = -Wl,--version-script=airscan.sym >X >X # Merge DESTDIR and PREFIX >X PREFIX := $(abspath $(DESTDIR)/$(PREFIX)) >X@@ -79,18 +80,17 @@ airscan_CFLAGS += -Wl,-z,nodelete >X all: $(BACKEND) test >X >X $(BACKEND): Makefile $(SRC) airscan.h airscan.sym >X- -ctags -R . >X- $(CC) -o $(BACKEND) -shared $(CPPFLAGS) $(SRC) $(airscan_CFLAGS) $(LDFLAGS) >X+ $(CC) -o $(BACKEND) -shared $(CPPFLAGS) $(SRC) $(airscan_CFLAGS) $(airscan_CFLAGS_LIBONLY) $(LDFLAGS) >X >X install: all >X mkdir -p $(PREFIX)$(CONFDIR) >X mkdir -p $(PREFIX)$(CONFDIR)/dll.d >X- cp -n airscan.conf $(PREFIX)$(CONFDIR) >X+ cp -n airscan.conf $(PREFIX)$(CONFDIR)/airscan.conf.sample >X cp -n dll.conf $(PREFIX)$(CONFDIR)/dll.d/airscan >X- install -s -D -t $(PREFIX)$(LIBDIR)/sane $(BACKEND) >X- mkdir -p $(PREFIX)/$(MANDIR)/man5 >X- install -m 644 -D -t $(PREFIX)$(MANDIR)/man5 $(MANPAGE) >X- [ "$(COMPRESS)" = "" ] || $(COMPRESS) -f $(PREFIX)$(MANDIR)/man5/$(MANPAGE) >X+ mkdir -p ${PREFIX}${LIBDIR}/sane >X+ install -s $(BACKEND) $(PREFIX)$(LIBDIR)/sane >X+ mkdir -p $(MANDIR)/man5 >X+ install -m 644 $(MANPAGE) $(MANDIR)/man5 >X >X clean: >X rm -f test $(BACKEND) tags >e9f3a16d3d06c561f9d245615c49ff0c >echo x - graphics/sane-airscan/files/patch-airscan.h >sed 's/^X//' >graphics/sane-airscan/files/patch-airscan.h << '680149ef8ae9c3e2274c8ac7465cabf8' >X--- airscan.h.orig 2020-03-20 13:47:50 UTC >X+++ airscan.h >X@@ -25,7 +25,7 @@ >X >X /* Standard SANE configuration directory >X */ >X-#define CONFIG_SANE_CONFIG_DIR "/etc/sane.d/" >X+#define CONFIG_SANE_CONFIG_DIR LOCALBASE "/etc/sane.d/" >X >X /* Sane-airscan configuration file and subdirectory names >X */ >680149ef8ae9c3e2274c8ac7465cabf8 >echo x - graphics/sane-airscan/pkg-plist >sed 's/^X//' >graphics/sane-airscan/pkg-plist << '49750b02afab894df6252aad4d710e51' >X@sample etc/sane.d/airscan.conf.sample >Xetc/sane.d/dll.d/airscan >Xlib/sane/libsane-airscan.so.1 >Xman/man5/sane-airscan.5.gz >49750b02afab894df6252aad4d710e51 >echo x - graphics/sane-airscan/Makefile >sed 's/^X//' >graphics/sane-airscan/Makefile << 'f79415951cd6af32e4f79cb075253a43' >X# $FreeBSD$ >X >XPORTNAME= sane-airscan >XDISTVERSION= 0.9.17 >XCATEGORIES= graphics >X >XMAINTAINER= henry.hu.sh@gmail.com >XCOMMENT= Scanner Access Now Easy - Apple AirScan (eSCL) driver >X >XLICENSE= GPLv2 >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XLIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \ >X libavahi-client.so:net/avahi-app \ >X libavahi-glib.so:net/avahi-app \ >X libjpeg.so:graphics/jpeg-turbo \ >X libsoup-2.4.so:devel/libsoup \ >X libxml2.so:textproc/libxml2 >X >XBUILD_DEPENDS= sane-backends>0:graphics/sane-backends >X >XUSES= gmake pkgconfig gettext-runtime >XUSE_GNOME= glib20 >XUSE_GITHUB= yes >XGH_ACCOUNT= alexpevzner >X >XMAKE_ARGS= CC=${CC} MANDIR=${STAGEDIR}${PREFIX}/man LIBDIR=/lib \ >X PKG_CONFIG=pkgconf \ >X LDFLAGS=-lm CFLAGS=-DLOCALBASE='\"${LOCALBASE}\"' >X >XMANPAGES= sane-airscan.5 >X >X.include <bsd.port.mk> >f79415951cd6af32e4f79cb075253a43 >echo x - graphics/sane-airscan/pkg-message >sed 's/^X//' >graphics/sane-airscan/pkg-message << '8f5e75aa6573d66b717e93777e1ca839' >XTo make the automatic discovery work, you need to have avahi-daemon running. >XMake sure that >X >X avahi_daemon_enable="YES" >X >Xis in /etc/rc.conf, and start the avahi-daemon service. Some other program, >Xsuch as firefox, may also bind to the mDNS port (5353), so make sure that >Xavahi-daemon can bind to the port. >X >XTo quickly check if your scanner can be discovered, run >X >X avahi-browse -r _uscan._tcp >X >XYou should see your scanner listed in the result. >8f5e75aa6573d66b717e93777e1ca839 >echo x - graphics/sane-airscan/distinfo >sed 's/^X//' >graphics/sane-airscan/distinfo << 'cc550d5ef329276a6f441eb6f4491487' >XTIMESTAMP = 1586619871 >XSHA256 (alexpevzner-sane-airscan-0.9.17_GH0.tar.gz) = 5d3504b6eee2747a340b8755274f08ed33888c55345ca0064546dee7913eeaf1 >XSIZE (alexpevzner-sane-airscan-0.9.17_GH0.tar.gz) = 69991 >cc550d5ef329276a6f441eb6f4491487 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 245540
:
213294
|
213295
|
213296
|
221725
|
222316
|
222317
|
222318
|
222320
|
222357
|
227699