FreeBSD Bugzilla – Attachment 145574 Details for
Bug 180446
New port: print/p910nd A small printer daemon
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
port shar
p910nd.shar (text/plain), 4.87 KB, created by
Serhii (Sergey) Kozlov
on 2014-08-09 17:22:25 UTC
(
hide
)
Description:
port shar
Filename:
MIME Type:
Creator:
Serhii (Sergey) Kozlov
Created:
2014-08-09 17:22:25 UTC
Size:
4.87 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: ># ># 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@gmail.com> >X# $FreeBSD$ >X >XPORTNAME= p910nd >XPORTVERSION= 0.97 >XCATEGORIES= print net >XMASTER_SITES= SF >X >XMAINTAINER= kozlov.sergey.404@gmail.com >XCOMMENT= Port 9100+n printer daemon >X >XLICENSE= GPLv2 >X >XUSE_BZIP2= yes >X >XUSE_RC_SUBR= p910nd >X >XP910ND_RUNDIR= /var/run/${PORTNAME} >XPLIST_SUB= P910ND_RUNDIR=${P910ND_RUNDIR} >X >XCFLAGS+= -DLOCKFILE_DIR="\"${P910ND_RUNDIR}\"" -DUSE_WRAP >X >Xdo-build: >X ${CC} -o ${WRKSRC}/${PORTNAME} ${WRKSRC}/${PORTNAME}.c ${CFLAGS} >X >Xdo-install: >X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin >X ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MANPREFIX}/man/man8 >X ${MKDIR} ${STAGEDIR}${DATADIR} >X ${INSTALL_DATA} ${WRKSRC}/*.pl ${STAGEDIR}${DATADIR} >X >X.include <bsd.port.mk> >e691612d6cfd7a0849558f41dd18ac3c >echo x - p910nd/distinfo >sed 's/^X//' >p910nd/distinfo << 'e06bb3251cc9c5bf3ff47b723f43cc54' >XSHA256 (p910nd-0.97.tar.bz2) = 4ac980a3ae24babae6f70f0a692625ece03a4a92c357fbb10d2e368386c3c26f >XSIZE (p910nd-0.97.tar.bz2) = 20613 >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' >Xman/man8/p910nd.8.gz >Xsbin/p910nd >X%%DATADIR%%/banner.pl >X%%DATADIR%%/client.pl >X@dirrmtry %%DATADIR%% >X@exec [ -d %%P910ND_RUNDIR%% ] || mkdir -p %%P910ND_RUNDIR%% >X@unexec if [ -z ${UPGRADE_PORT} ] ; then rmdir %%P910ND_RUNDIR%% 2>/dev/null; fi >60eab994130ce1d508019860398934e2 >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 180446
:
135529
|
145556
|
145557
|
145558
|
145559
|
145560
|
145561
|
145562
| 145574 |
145575