printutils/*: convert to new-style "one file" applets
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 18 Oct 2015 22:45:46 +0000 (00:45 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 18 Oct 2015 22:45:46 +0000 (00:45 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/applets.src.h
printutils/Config.src
printutils/Kbuild.src
printutils/lpd.c
printutils/lpr.c

index d243d89e15191d4c5e34d20827026afdcb8458c7..9c4f9daa0500af63b49bfbd1d387ae7b537de1ac 100644 (file)
@@ -209,9 +209,6 @@ IF_LOADKMAP(APPLET(loadkmap, BB_DIR_SBIN, BB_SUID_DROP))
 IF_LOGIN(APPLET(login, BB_DIR_BIN, BB_SUID_REQUIRE))
 IF_LOGNAME(APPLET_NOFORK(logname, logname, BB_DIR_USR_BIN, BB_SUID_DROP, logname))
 IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP))
-IF_LPD(APPLET(lpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
-IF_LPQ(APPLET_ODDNAME(lpq, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpq))
-IF_LPR(APPLET_ODDNAME(lpr, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpr))
 IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls))
 IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP))
 IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP))
index cc4ab8d28ff086ef023f920dcd48859f65f5495b..e53b9d09357904a668d2195d23c2299056e705b6 100644 (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
index 194fe01d656b630c9dbddb1832298456edf0bcae..10c8230631c8c850d2fe91c4780271c0c30c2ae6 100644 (file)
@@ -4,6 +4,4 @@
 
 lib-y :=
 
-lib-$(CONFIG_LPD) += lpd.o
-lib-$(CONFIG_LPR) += lpr.o
-lib-$(CONFIG_LPQ) += lpr.o
+INSERT
index c98bbb347e05b126f9cd06762286c9222c84cec0..88239343681cbd70347eee566d88b7c7118eabcd 100644 (file)
  * 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]]"
index 70cda7717f93cb502ba0723c633fc056d65d0380..ed6a84a93639d2dad76515968b688c21c2487e4a 100644 (file)
  *
  * 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]..."