ports/88887: New port: print/cups-smb-backend

infofarmer at gmail.com infofarmer at gmail.com
Sat Nov 12 13:50:18 UTC 2005


>Number:         88887
>Category:       ports
>Synopsis:       New port: print/cups-smb-backend
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 12 13:50:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Pantyukhin
>Release:        FreeBSD 6.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD proxy.gubkin.ru 6.0-RELEASE FreeBSD 6.0-RELEASE #2: Thu Nov 3 19:20:06 MSK 2005 sat at proxy.gubkin.ru:/usr/obj/usr/src/sys/SPG6 i386


	
>Description:

CUPS smb backend allows *nix users to print
to Windows-attached printers via smbspool
program, which comes with Samba.

	
>How-To-Repeat:
	
>Fix:

	

--- cups-smb.shar begins here ---
# 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:
#
#	cups-smb-backend
#	cups-smb-backend/Makefile
#	cups-smb-backend/files
#	cups-smb-backend/files/pkg-message.in
#	cups-smb-backend/pkg-descr
#
echo c - cups-smb-backend
mkdir -p cups-smb-backend > /dev/null 2>&1
echo x - cups-smb-backend/Makefile
sed 's/^X//' >cups-smb-backend/Makefile << 'END-of-cups-smb-backend/Makefile'
X# New ports collection makefile for:	cups-smb-backend
X# Date created:		12 November 2005
X# Whom:			Andrew Pantyukhin <infofarmer at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	cups-smb-backend
XPORTVERSION=	1.0
XCATEGORIES=	print
XMASTER_SITES=	# empty
XDISTFILES=	# empty
X
XMAINTAINER=	infofarmer at gmail.com
XCOMMENT=	A CUPS backend for printing to Windows servers
X
XRUN_DEPENDS=	smbspool:${PORTSDIR}/net/samba \
X		${LOCALBASE}/sbin/cupsd:${PORTSDIR}/print/cups-base
X
XUSE_REINPLACE=	yes
X
XPLIST_FILES=	libexec/cups/backend/smb
XPKGMESSAGE=	${WRKDIR}/pkg-message
X
Xdo-build:
X	@${CP} ${FILESDIR}/pkg-message.in ${PKGMESSAGE}
X	@${REINPLACE_CMD} -e 's#%%PREFIX%%#${PREFIX}#g' \
X			${PKGMESSAGE}
X
Xdo-install:
X	@${LN} -fs ${PREFIX}/bin/smbspool ${PREFIX}/libexec/cups/backend/smb
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-cups-smb-backend/Makefile
echo c - cups-smb-backend/files
mkdir -p cups-smb-backend/files > /dev/null 2>&1
echo x - cups-smb-backend/files/pkg-message.in
sed 's/^X//' >cups-smb-backend/files/pkg-message.in << 'END-of-cups-smb-backend/files/pkg-message.in'
XCUPS smb backend is now installed.
X
XPlease configure your samba environment if
Xyou haven't already done so. To do so edit
X
X%%PREFIX%%/etc/smb.conf
X
XYou can then add a new printer to CUPS.
Xsmbspool(8) manpage describes device URI
Xformat. In most cases (latest samba 2.x
Xand samba 3.x), it's something like this:
X
Xsmb://username:password@server/printer
Xsmb://username:password@workgroup/server/printer
X
XBut a CUPS article describes another syntax,
Xso beware.
END-of-cups-smb-backend/files/pkg-message.in
echo x - cups-smb-backend/pkg-descr
sed 's/^X//' >cups-smb-backend/pkg-descr << 'END-of-cups-smb-backend/pkg-descr'
XCUPS smb backend allows *nix users to print
Xto Windows-attached printers via smbspool
Xprogram, which comes with Samba.
X
XWWW: http://www.cups.org/articles.php?L294
END-of-cups-smb-backend/pkg-descr
exit
--- cups-smb.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list