build: Move all of lp under LPR option

* Tag related directories with package=lp

* Make the examples/printing directory conditional on MK_LPR

* Make the hosts.lpd(5) manual page conditional on MK_LPR

MFC after:	3 days

(cherry picked from commit d4f6cb75424950ee776833ebc6b57855c094a610)
This commit is contained in:
Dag-Erling Smørgrav 2026-02-20 19:20:04 +01:00
parent d699bac8f6
commit 122de340a9
5 changed files with 27 additions and 7 deletions

View file

@ -57,8 +57,8 @@
libexec
bsdinstall
..
lpr
ru
lpr tags=package=lp
ru tags=package=lp
..
..
sendmail

View file

@ -181,8 +181,8 @@
..
hyperv
..
lpr
ru
lpr tags=package=lp
ru tags=package=lp
..
..
sendmail
@ -354,7 +354,7 @@
..
ppp
..
printing
printing tags=package=lp
..
scsi_target
..

View file

@ -25,7 +25,6 @@ LDIRS= BSD_daemon \
perfmon \
ppi \
ppp \
printing \
ses \
scsi_target \
sound \
@ -250,6 +249,8 @@ SE_PPP= \
ppp.secret.span-isp \
ppp.secret.span-isp.working
.if ${MK_LPR} != "no"
LDIRS+= printing
SE_DIRS+= printing
SE_PRINTINGPACKAGE=lp
SE_PRINTING= \
@ -269,6 +270,7 @@ SE_PRINTING= \
psif \
pstf \
pstfX
.endif
SE_DIRS+= ses
SE_SES= \

View file

@ -75,7 +75,7 @@ MANGROUPS.${MK_TOOLCHAIN}+= TOOLCHAIN
TOOLCHAINPACKAGE= toolchain
TOOLCHAIN= ar.5
MANGROUPS+= LP
MANGROUPS.${MK_LPR}+= LP
LPPACKAGE= lp
LP= hosts.lpd.5

View file

@ -5292,11 +5292,29 @@ OLD_FILES+=usr/share/doc/smm/07.lpd/paper.ascii.gz
OLD_DIRS+=usr/share/doc/smm/07.lpd
OLD_FILES+=usr/share/examples/etc/hosts.lpd
OLD_FILES+=usr/share/examples/etc/printcap
OLD_FILES+=usr/share/examples/printing/diablo-if-net
OLD_FILES+=usr/share/examples/printing/hpdf
OLD_FILES+=usr/share/examples/printing/hpif
OLD_FILES+=usr/share/examples/printing/hpof
OLD_FILES+=usr/share/examples/printing/hprf
OLD_FILES+=usr/share/examples/printing/hpvf
OLD_FILES+=usr/share/examples/printing/if-simple
OLD_FILES+=usr/share/examples/printing/if-simpleX
OLD_FILES+=usr/share/examples/printing/ifhp
OLD_FILES+=usr/share/examples/printing/make-ps-header
OLD_FILES+=usr/share/examples/printing/netprint
OLD_FILES+=usr/share/examples/printing/psdf
OLD_FILES+=usr/share/examples/printing/psdfX
OLD_FILES+=usr/share/examples/printing/psif
OLD_FILES+=usr/share/examples/printing/pstf
OLD_FILES+=usr/share/examples/printing/pstfX
OLD_DIRS+=usr/share/examples/printing
OLD_FILES+=usr/share/man/man1/lp.1.gz
OLD_FILES+=usr/share/man/man1/lpq.1.gz
OLD_FILES+=usr/share/man/man1/lpr.1.gz
OLD_FILES+=usr/share/man/man1/lprm.1.gz
OLD_FILES+=usr/share/man/man1/lptest.1.gz
OLD_FILES+=usr/share/man/man5/hosts.lpd.5.gz
OLD_FILES+=usr/share/man/man5/printcap.5.gz
OLD_FILES+=usr/share/man/man8/chkprintcap.8.gz
OLD_FILES+=usr/share/man/man8/lpc.8.gz