printutils/*: convert to new-style "one file" applets

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2015-10-19 00:45:46 +02:00
parent 0863e1a576
commit 854bb6879d
5 changed files with 27 additions and 24 deletions

View File

@@ -7,22 +7,4 @@ menu "Print Utilities"
INSERT
config LPD
bool "lpd"
default y
help
lpd is a print spooling daemon.
config LPR
bool "lpr"
default y
help
lpr sends files (or standard input) to a print spooling daemon.
config LPQ
bool "lpq"
default y
help
lpq is a print spool queue examination and manipulation program.
endmenu

View File

@@ -4,6 +4,4 @@
lib-y :=
lib-$(CONFIG_LPD) += lpd.o
lib-$(CONFIG_LPR) += lpr.o
lib-$(CONFIG_LPQ) += lpr.o
INSERT

View File

@@ -69,6 +69,15 @@
* cat ./"$DATAFILE" >/dev/lp0
* mv -f ./"$DATAFILE" save/
*/
//config:config LPD
//config: bool "lpd"
//config: default y
//config: help
//config: lpd is a print spooling daemon.
//applet:IF_LPD(APPLET(lpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
//kbuild:lib-$(CONFIG_LPD) += lpd.o
//usage:#define lpd_trivial_usage
//usage: "SPOOLDIR [HELPER [ARGS]]"

View File

@@ -11,6 +11,23 @@
*
* See RFC 1179 for protocol description.
*/
//config:config LPR
//config: bool "lpr"
//config: default y
//config: help
//config: lpr sends files (or standard input) to a print spooling daemon.
//config:
//config:config LPQ
//config: bool "lpq"
//config: default y
//config: help
//config: lpq is a print spool queue examination and manipulation program.
//applet:IF_LPQ(APPLET_ODDNAME(lpq, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpq))
//applet:IF_LPR(APPLET_ODDNAME(lpr, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpr))
//kbuild:lib-$(CONFIG_LPR) += lpr.o
//kbuild:lib-$(CONFIG_LPQ) += lpr.o
//usage:#define lpr_trivial_usage
//usage: "-P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]..."