%n LPRng %v 2.3.9 %c * %l * %b * %d * %f * %t LPRng-2.3.9.tgz %w Misc %% %setup patch -u -p1 <<'ENDPATCH' diff -ru2N LPRng-2.3.9/lpd.conf LPRng-MCC/lpd.conf --- LPRng-2.3.9/lpd.conf Sat Jul 20 03:42:30 1996 +++ LPRng-MCC/lpd.conf Sun Sep 29 06:43:56 1996 @@ -32,5 +32,5 @@ # filter_ld_path /lib:/usr/lib:/usr/5lib:/usr/ucblib # filter_options $C $F $H $J $L $P $Q $R $Z $a $c $d $e $f $h $i $j $k $l $n $s $w $x $y $-a -# filter_path /bin:/usr/bin:/usr/ucb:/usr/sbin:/usr/etc:/etc +# filter_path /opt/sbin:/usr/sbin:/sbin:/opt/bin:/usr/bin:/bin # group daemon # lockfile /var/spool/lpd/lpd.lock.%h diff -ru2N LPRng-2.3.9/man/Makefile.in LPRng-MCC/man/Makefile.in --- LPRng-2.3.9/man/Makefile.in Wed May 22 04:37:45 1996 +++ LPRng-MCC/man/Makefile.in Wed Aug 21 00:28:37 1996 @@ -40,7 +40,7 @@ install: ${SRC}/mkinstalldirs $(MAN)/man1 $(MAN)/man5 $(MAN)/man8 - cd ${SRC}; for i in *.1; do $(MANINSTCMD) $$i $(MAN)/man1/$$i$(MANEXT); done - cd ${SRC}; for i in *.5; do $(MANINSTCMD) $$i $(MAN)/man5/$$i$(MANEXT); done - cd ${SRC}; for i in *.8; do $(MANINSTCMD) $$i $(MAN)/man8/$$i$(MANEXT); done + (cd ${SRC}; for j in 1 5 8;do \ + for i in *.$$j;do install -m 444 $$i $(MAN)/man$$j;\ + gzip -9f $(MAN)/man$$j/$$i;done;done) # Install man pages in compressed form. diff -ru2N LPRng-2.3.9/man/lpd.conf.5 LPRng-MCC/man/lpd.conf.5 --- LPRng-2.3.9/man/lpd.conf.5 Sat Jul 20 16:12:21 1996 +++ LPRng-MCC/man/lpd.conf.5 Wed Aug 21 01:20:09 1996 @@ -177,5 +177,5 @@ .TP \fBfilter_ld_path\fR -(default: LD_LIBRARY_PATH=/lib:/usr/lib:/usr/5lib:/usr/ucblib) +(default: /lib:/usr/lib:/opt/lib) The value for the environment variable LD_LIBRARY_PATH, both used when executing, and passed on to filters. @@ -184,5 +184,5 @@ .TP \fBfilter_path\fR -(default: PATH=/bin:/usr/bin:/usr/ucb:/usr/sbin:/usr/etc:/etc) +(default: PATH=/opt/sbin:/usr/sbin:/sbin:/opt/bin:/usr/bin:/bin) The value for the environment variable PATH, both used when executing, and passed on to filters. @@ -199,9 +199,9 @@ .TP \fBfilter_path\fR -(default: PATH=/bin:/usr/bin:/usr/ucb:/usr/sbin:/usr/etc:/etc) +(default: PATH=/opt/sbin:/usr/sbin:/sbin:/opt/bin:/usr/bin:/bin) The environment variable PATH, both used to find filters and passed on to filters run by \fBlpd\fR and \fBlpr\fR. .TP -\fBgroup\fR (default "daemon") +\fBgroup\fR (default "lp") The group to use for file ownership and process permissions. Used only by lpd; @@ -242,5 +242,5 @@ LPD or LPRng. .TP -\fBlpd_printcap_path\fR (default: "/etc/lpd_printcap /usr/etc/lpd_printcap") +\fBlpd_printcap_path\fR (default: "/etc/lpd_printcap") The location of additional .B lpd @@ -252,5 +252,5 @@ is encountered. .TP -\fBmail_on_error\fR (default: no) +\fBmail_on_error\fR (default: root) Send mail to user when error encountered on a job. Even if the user has requested mail on error, @@ -259,5 +259,5 @@ mail is undesirable. .TP -\fBmax_status_size\fR (default: 2 (Kbytes)) +\fBmax_status_size\fR (default: 10 (Kbytes)) An integer value specifying (in K bytes) the maximum size of the status file @@ -313,5 +313,5 @@ .TP \fBprinter_perms_path\fR -(default: /etc/lpd.perms:/usr/etc/lpd.perms:/var/spool/lpd/lpd.perms.%h) +(default: /etc/lpd.perms:/var/spool/lpd/lpd.perms.%h) The location of the printer permissions database. If a file or filter does not exist, it is skipped. @@ -390,5 +390,5 @@ most 14 characters long. .TP -\fBuser\fR (default: daemon) +\fBuser\fR (default: lp) The user that \fBlpd\fR and its filters runs as, and the owner of the spool directories and diff -ru2N LPRng-2.3.9/src/Makefile.in LPRng-MCC/src/Makefile.in --- LPRng-2.3.9/src/Makefile.in Sat Jul 20 03:42:14 1996 +++ LPRng-MCC/src/Makefile.in Wed Aug 21 01:33:00 1996 @@ -24,5 +24,5 @@ # where daemons are installed: lpd # -INSTALL_LIB = @prefix@/bin +INSTALL_LIB = @prefix@/sbin # where maintenance commands are installed: pac, checkpc, setstatus @@ -33,5 +33,5 @@ # These are in addition to the CCFLAGS and LDFLAGS CCOPTFLAGS = -LDFLAGS := -g $(LDFLAGS) +LDFLAGS := -Wl,-warn-common #********************** OPTIONAL DEFINITIONS **************************** @@ -144,5 +144,5 @@ # how to install stuff. # -INSTALLCMD=@INSTALL@ +INSTALLCMD=install -s # a shell interpreter that's as close to the POSIX shell as possible. @@ -168,5 +168,5 @@ VPATH=$(subst :, ,$(INCLUDE) $(SRCDIRS)) -CFLAGS := @CFLAGS@ $(CCOPTFLAGS) @DEFS@ $(patsubst %,-I%,$(INCLUDE)) \ +CFLAGS := -O6 -fomit-frame-pointer -Wall $(CCOPTFLAGS) @DEFS@ $(patsubst %,-I%,$(INCLUDE)) \ ${GETENV_CFLAGS} $(STTY_CFLAGS) $(STATFS_CFLAGS) $(RWSOCKETS_CFLAGS) \ $(LOCK_DEV_CFLAGS) $(SETPROCTITLE_CFLAGS) $(LONG_STATUS_FORMAT) \ @@ -260,13 +260,13 @@ install: all ${INSTALL_LIB} ${INSTALL_BIN} ${INSTALL_MAINT} - ${INSTALLCMD} -m 755 lpd ${INSTALL_LIB} - ${INSTALLCMD} -m 755 lpf ${INSTALL_LIB} - ${INSTALLCMD} -m 755 lpbanner ${INSTALL_LIB} - ${INSTALLCMD} -m 755 lpq ${INSTALL_BIN} - ${INSTALLCMD} -m 755 lprm ${INSTALL_BIN} - ${INSTALLCMD} -m 755 lpr ${INSTALL_BIN} - ${INSTALLCMD} -m 755 lpc ${INSTALL_MAINT} - ${INSTALLCMD} -m 755 checkpc ${INSTALL_MAINT} - ${INSTALLCMD} -m 755 lpraccnt ${INSTALL_MAINT} + ${INSTALLCMD} -m 544 lpd ${INSTALL_LIB} + ${INSTALLCMD} -m 555 lpf ${INSTALL_LIB} + ${INSTALLCMD} -m 555 lpbanner ${INSTALL_LIB} + ${INSTALLCMD} -m 555 lpq ${INSTALL_BIN} + ${INSTALLCMD} -m 555 lprm ${INSTALL_BIN} + ${INSTALLCMD} -m 555 lpr ${INSTALL_BIN} + ${INSTALLCMD} -m 555 lpc ${INSTALL_MAINT} + ${INSTALLCMD} -m 555 checkpc ${INSTALL_MAINT} + ${INSTALLCMD} -m 555 lpraccnt ${INSTALL_MAINT} ${INSTALL_LIB}:: diff -ru2N LPRng-2.3.9/src/common/default.c LPRng-MCC/src/common/default.c --- LPRng-2.3.9/src/common/default.c Sat Jul 20 03:42:16 1996 +++ LPRng-MCC/src/common/default.c Wed Aug 21 01:23:29 1996 @@ -26,5 +26,5 @@ "bk_of_filter_options $w $l $x $y\n" "check_for_nonprintable yes\n" -"client_config_file /etc/lpd.conf:/etc/lpd_client.conf:/usr/etc/lpd.conf:/usr/etc/lpd_client.conf:/usr/spool/lpd/lpd.conf:/usr/spool/lpd/lpd_client.conf\n" +"client_config_file /etc/lpd.conf:/var/spool/lpd/lpd.conf\n" "connect_grace 0\n" "connect_interval 10\n" @@ -38,14 +38,14 @@ "default_remote_host %H\n" "domain_name\n" -"filter_ld_path /lib:/usr/lib:/usr/5lib:/usr/ucblib\n" +"filter_ld_path /lib:/usr/lib\n" "filter_options $C $F $H $J $L $P $Q $R $Z $a $c $d $e $f $h $i $j $k $l $n $s $w $x $y $-a\n" -"filter_path /bin:/usr/bin:/usr/ucb:/usr/sbin:/usr/etc:/etc\n" -"group daemon\n" +"filter_path /opt/sbin:/usr/sbin:/sbin:/opt/bin:/usr/bin:/bin\n" +"group lp\n" "lockfile /var/spool/lpd/lpd.lock.%h\n" -"logfile /var/spool/lpd/lpd.log.%h\n" +"logfile /var/log/lpd.log.%h\n" "longnumber no\n" "lpd_port printer\n" -"lpd_printcap_path /etc/lpd_printcap:/usr/etc/lpd_printcap:\n" -"mail_operator_on_error\n" +"lpd_printcap_path /etc/lpd_printcap:\n" +"mail_operator_on_error root\n" "max_status_size 10\n" "min_status_size 0\n" @@ -53,6 +53,6 @@ "of_filter_options\n" "originate_port 721 731\n" -"printcap_path /etc/printcap:/usr/etc/printcap:/var/spool/lpd/printcap.%h\n" -"printer_perms_path /etc/lpd.perms:/usr/etc/lpd.perms:/var/spool/lpd/lpd.perms.%h\n" +"printcap_path /etc/printcap\n" +"printer_perms_path /etc/lpd.perms:/var/spool/lpd/lpd.perms.%h\n" "send_data_first no\n" "send_failure_action abort\n" @@ -60,5 +60,5 @@ "send_try 0\n" "sendmail /usr/lib/sendmail -oi -t\n" -"server_config_file /etc/lpd.conf:/usr/etc/lpd.conf:/usr/spool/lpd/lpd.conf.%h\n" +"server_config_file /etc/lpd.conf:/usr/spool/lpd/lpd.conf.%h\n" "spool_dir_perms 042700\n" "spool_file_perms 000600\n" @@ -67,5 +67,5 @@ "use_queuename no\n" "use_shorthost no\n" -"user daemon\n" +"user lp\n" ; ENDPATCH ./configure --prefix=/usr make * make install * install -m 644 lpd.conf lpd.perms /etc %%