hi list,
some time ago i had already posted an lpr/lpq applet. The applets now share 
some code.
The diff apply against bb-1.9.0.

I think these commands are important because bb will become a full replacement 
for the current
commands, and who does not want to print ?

Please apply

BTW to have a nice printing system we still need more support tools


re,
 wh


Attachment: print2.tgz
Description: application/compressed-tar

--- Config.in.org	2008-01-10 11:59:42.000000000 +0100
+++ Config.in	2008-01-10 11:34:32.000000000 +0100
@@ -555,4 +555,6 @@
 source sysklogd/Config.in
 source runit/Config.in
 source selinux/Config.in
+source printutils/Config.in
 source ipsvd/Config.in
+
--- include/applets.h.org	2008-01-10 10:39:59.000000000 +0100
+++ include/applets.h	2008-01-10 10:42:31.000000000 +0100
@@ -224,6 +224,8 @@
 USE_LOGNAME(APPLET_NOFORK(logname, logname, _BB_DIR_USR_BIN, _BB_SUID_NEVER, logname))
 USE_LOGREAD(APPLET(logread, _BB_DIR_SBIN, _BB_SUID_NEVER))
 USE_LOSETUP(APPLET(losetup, _BB_DIR_SBIN, _BB_SUID_NEVER))
+USE_LPQ(APPLET(lpq, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
+USE_LPR(APPLET(lpr, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
 USE_LS(APPLET_NOEXEC(ls, ls, _BB_DIR_BIN, _BB_SUID_NEVER, ls))
 USE_LSATTR(APPLET(lsattr, _BB_DIR_BIN, _BB_SUID_NEVER))
 USE_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_NEVER))
--- include/usage.h.org	2008-01-10 10:40:06.000000000 +0100
+++ include/usage.h	2008-01-10 10:54:36.000000000 +0100
@@ -1998,6 +1998,29 @@
        "with an optional offset (-o 12345). Encryption is not yet supported.\n" \
        "losetup -f will show the first loop free loop device\n\n"
 
+#define lpq_trivial_usage \
+        "[-P <[EMAIL PROTECTED]:port]]>]  [-t <delay>]  [-d <jobid>] [-s]"
+
+#define lpq_full_usage \
+        "-P <[EMAIL PROTECTED]:port]]> or use $PRINTER\n"\
+        "-t scan the queue to be scaned every <delay> seconds"\
+	"-f force any waiting job to be printed"\
+	"-d delete job <ID> "\
+	"-s short display"
+
+#define lpr_trivial_usage \
+        "-P <[EMAIL PROTECTED]:port]]> -U <username> -J <title> -Vmh filenames (if none use stdin)"
+                 
+#define lpr_full_usage \
+        "-P <[EMAIL PROTECTED]:port]]> or use $PRINTER\n"	\
+        "-U <username>\n" \
+        "-J <title> \n" \
+        "-V Verbosemode \n"  \
+        "-m send mail to [EMAIL PROTECTED] \n" \
+        "-h banner or header for this job \n" \
+        " filenames (if none use stdin)\n"
+
+
 #define ls_trivial_usage \
        "[-1Aa" USE_FEATURE_LS_TIMESTAMPS("c") "Cd" \
 	USE_FEATURE_LS_TIMESTAMPS("e") USE_FEATURE_LS_FILETYPES("F") "iln" \
--- Makefile.org	2008-01-10 11:47:26.000000000 +0100
+++ Makefile	2008-01-10 11:47:41.000000000 +0100
@@ -446,6 +446,7 @@
 		networking/ \
 		networking/libiproute/ \
 		networking/udhcp/ \
+		printutils/ \
 		procps/ \
 		runit/ \
 		selinux/ \
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to