ports/180446: New port: print/p910nd A small printer daemon

Kozlov Sergey kozlov.sergey.404 at gmail.com
Wed Jul 10 20:20:00 UTC 2013


>Number:         180446
>Category:       ports
>Synopsis:       New port: print/p910nd A small printer daemon
>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:   Wed Jul 10 20:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Kozlov Sergey
>Release:        9.1-RELEASE
>Organization:
ARC
>Environment:
FreeBSD fbsd-sandbox 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:42:37 UTC 2013     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
New port print/p910nd

p910nd is a small printer daemon intended for diskless workstations that does
not spool to disk but passes the job directly to the printer.
>How-To-Repeat:

>Fix:
Shar renamed to txt to send from win machine

Patch attached with submission follows:

Patch attached with submission follows:

# 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:
#
#	p910nd
#	p910nd/Makefile
#	p910nd/distinfo
#	p910nd/files
#	p910nd/files/p910nd.in
#	p910nd/files/patch-p910nd.8
#	p910nd/pkg-descr
#	p910nd/pkg-plist
#
echo c - p910nd
mkdir -p p910nd > /dev/null 2>&1
echo x - p910nd/Makefile
sed 's/^X//' >p910nd/Makefile << 'e691612d6cfd7a0849558f41dd18ac3c'
X# Created by: Kozlov Sergey <kozlov.sergey.404 at gmail.com>
X# $FreeBSD$
X
XPORTNAME=	p910nd
XPORTVERSION=	0.95
XCATEGORIES=	print net
XMASTER_SITES=	SF
X
XMAINTAINER=	kozlov.sergey.404 at gmail.com
XCOMMENT=	Port 9100+n printer daemon
X
XLICENSE=	GPLv2
X
XUSE_BZIP2=	yes
X
XUSE_RC_SUBR=	p910nd
X
XMAN8=	 p910nd.8
X
XCFLAGS+=	-DLOCKFILE_DIR="\"/tmp\"" -DUSE_WRAP
X
Xdo-build:
X	${CC} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c ${CFLAGS}
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
X	${INSTALL_MAN} ${WRKSRC}/${MAN8} ${MANPREFIX}/man/man8
X	${MKDIR} ${DATADIR}
X	${INSTALL_DATA} ${WRKSRC}/*.pl ${DATADIR}
X
X.include <bsd.port.mk>
e691612d6cfd7a0849558f41dd18ac3c
echo x - p910nd/distinfo
sed 's/^X//' >p910nd/distinfo << 'e06bb3251cc9c5bf3ff47b723f43cc54'
XSHA256 (p910nd-0.95.tar.bz2) = 7d78642c86dc247fbdef1ff85c56629dcdc6b2a457c786420299e284fffcb029
XSIZE (p910nd-0.95.tar.bz2) = 19581
e06bb3251cc9c5bf3ff47b723f43cc54
echo c - p910nd/files
mkdir -p p910nd/files > /dev/null 2>&1
echo x - p910nd/files/p910nd.in
sed 's/^X//' >p910nd/files/p910nd.in << '1ddd7dd209eccf6ddcc52de3447e704f'
X#!/bin/sh
X
X# $FreeBSD$
X# 
X# PROVIDE: p910nd
X# REQUIRE: DAEMON
X# BEFORE:  LOGIN
X# KEYWORD: shutdown
X#
X# Add the following line to /etc/rc.conf to enable p910nd:
X#
X#  p910nd_enable="YES"
X#  # optional
X#  p910nd_flags=""
X#
X# Note:
X# p910nd bind per default at the ipv6 address!
X# If you want p910nd binding at ipv4 address, you have
X# to use option 'p910nd_flags' with -i parameter
X
X. /etc/rc.subr
X
Xname=p910nd
Xrcvar=p910nd_enable
Xcommand=%%PREFIX%%/sbin/p910nd
X
Xload_rc_config $name 
Xrun_rc_command "$1"
1ddd7dd209eccf6ddcc52de3447e704f
echo x - p910nd/files/patch-p910nd.8
sed 's/^X//' >p910nd/files/patch-p910nd.8 << 'b4041ee2e5acb0f6172fb20a885ee092'
X--- p910nd.8.orig	2013-07-07 17:52:31.000000000 +0300
X+++ p910nd.8	2013-07-07 18:08:04.000000000 +0300
X@@ -11,7 +11,7 @@
X .I p910nd
X is a small daemon that copies any data received on the port
X it is listening on to the corresponding printer port.
X-It is primarily intended for diskless Linux hosts running as printer drivers
X+It is primarily intended for diskless hosts running as printer drivers
X but there is no reason why it could not be used on diskful hosts.
X Port 9100 is copied to /dev/lp0, 9101 to /dev/lp1 and 9102 to /dev/lp2.
X The default is port 9100 to /dev/lp0.
X@@ -30,15 +30,6 @@
X can be run as a standalone daemon or from (x)inetd.
X It will automatically detect if it is running under (x)inetd.
X .LP
X-A sample SysVinit script,
X-.IR p910nd.sh ,
X-is provided for operation as a daemon.
X-.I p910nd
X-will change its name under ps to match the printer port, i.e.
X-.I p9100d, p9101d
X-and
X-.IR p9102d .
X-.LP
X When running under (x)inetd, the
X .I /etc/inetd.conf
X entry should look something like this (with tcpwrappers protection):
X@@ -74,7 +65,7 @@
X spooler and sending all jobs to this host. You will probably
X need to set up an intermediate queue anyway to provide print job filtering.
X .LP
X-If built with USE_WRAP, it uses the libwrap library (tcpwrappers).
X+It uses the libwrap library (tcpwrappers).
X Access control can be done with /etc/hosts.allow
X and /etc/hosts.deny. The service name is p910nd.
X .SH DIAGNOSTICS
X@@ -83,7 +74,7 @@
X .SH "SEE ALSO"
X printcap(5), hosts_access(5)
X .SH FILES
X-/var/run/p9100d.pid, /var/lock/subsys/p9100d, /etc/hosts.allow, /etc/hosts.deny
X+/var/run/p9100d.pid, /tmp/p9100d, /etc/hosts.allow, /etc/hosts.deny
X .SH COPYRIGHT
X .I p910nd
X is under the GNU Public License Version 2
b4041ee2e5acb0f6172fb20a885ee092
echo x - p910nd/pkg-descr
sed 's/^X//' >p910nd/pkg-descr << '4773bde0d1020a659f246f41fc14c96f'
Xp910nd is a small printer daemon intended for diskless workstations that does 
Xnot spool to disk but passes the job directly to the printer.
X
XWWW: http://p910nd.sourceforge.net/
4773bde0d1020a659f246f41fc14c96f
echo x - p910nd/pkg-plist
sed 's/^X//' >p910nd/pkg-plist << '60eab994130ce1d508019860398934e2'
Xsbin/p910nd
X%%DATADIR%%/banner.pl
X%%DATADIR%%/client.pl
X at dirrm %%DATADIR%%
60eab994130ce1d508019860398934e2
exit



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


More information about the freebsd-ports-bugs mailing list