--- lprng-3.5.3.orig/src/common/vars.c
+++ lprng-3.5.3/src/common/vars.c
@@ -103,7 +103,7 @@
    /*  control directory */
 { "cd",  STRING_K,  &Control_dir,0,0},
    /* check for nonprintable file */
-{ "check_for_nonprintable", FLAG_K, &Check_for_nonprintable,0,0,"1"},
+{ "check_for_nonprintable", FLAG_K, &Check_for_nonprintable,0,0,"0"},
    /* check for idle printer */
 { "check_idle", STRING_K, &Check_idle,0,0},
    /* show classname in status display */
@@ -159,7 +159,7 @@
    /*  string to send for a form feed */
 { "ff",  STRING_K,  &Form_feed,0,0,"=\\f"},
    /* filter LD_LIBRARY_PATH value */
-{ "filter_ld_path", STRING_K, &Filter_ld_path,0,0,"=/lib:/usr/lib:/usr/5lib:/usr/ucblib"},
+{ "filter_ld_path", STRING_K, &Filter_ld_path,0,0,"="},
    /* filter options */
 { "filter_options", STRING_K, &Filter_options,0,0,"=$C $A $F $H $J $K $L $P $Q $R $Z $a $c $d $e $f $h $i $j $k $l $n $p $r $s $w $x $y $-a"},
    /* filter PATH environment variable */
@@ -187,7 +187,7 @@
    /* force a banner to be generated */
 { "generate_banner", FLAG_K, &Generate_banner,0,0},
    /* group to run SUID ROOT programs */
-{ "group", STRING_K, &Daemon_group,1,0,"=daemon"},
+{ "group", STRING_K, &Daemon_group,1,0,"=lp"},
    /*  print banner after job instead of before */
 { "hl",  FLAG_K,  &Banner_last,0,0},
    /*  filter command, run on a per-file basis */
@@ -287,7 +287,7 @@
    /*  page length (in lines) */
 { "pl",  INTEGER_K,  &Page_length,0,0,"#66"},
    /*  pr program for p format */
-{ "pr",  STRING_K,  &Pr_program,0,0,"=/bin/pr"},
+{ "pr",  STRING_K,  &Pr_program,0,0,"=/usr/bin/pr"},
    /* /etc/printcap files */
 { "printcap_path", STRING_K, &Printcap_path,1,0,"=/etc/printcap:/usr/etc/printcap"},
    /*  printer status file name */
@@ -359,7 +359,7 @@
    /* server temporary file directory */
 { "server_tmp_dir", STRING_K, &Server_tmp_dir,0,0,"=/tmp"},
    /* server user for authentication */
-{ "server_user", STRING_K, &Server_user,0,0,"=daemon"},
+{ "server_user", STRING_K, &Server_user,0,0,"=lp"},
    /*  suppress form feeds separating multiple jobs */
 { "sf",  FLAG_K,  &No_FF_separator,0,0},
    /*  suppress headers and/or banner page */
@@ -407,7 +407,7 @@
    /*  Use short hostname for lpr control and data file names */
 { "use_shorthost",  FLAG_K,  &Use_shorthost,0,0},
    /*  server user for SUID purposes */
-{ "user", STRING_K, &Daemon_user,1,0,"=daemon"},
+{ "user", STRING_K, &Daemon_user,1,0,"=lp"},
    /*  authenticate transfer command */
 { "user_auth_command", STRING_K, &User_authentication_command,0,0},
    /* LPC commands for SERVICE=U permissions checks */
--- lprng-3.5.3.orig/src/common/vars.c.orig
+++ lprng-3.5.3/src/common/vars.c.orig
@@ -0,0 +1,448 @@
+/***************************************************************************
+ * LPRng - An Extended Print Spooler System
+ *
+ * Copyright 1988-1997, Patrick Powell, San Diego, CA
+ *     papowell@astart.com
+ * See LICENSE for conditions of use.
+ *
+ ***************************************************************************
+ * MODULE: vars.c
+ * PURPOSE: variables
+ **************************************************************************/
+
+static char *const _id =
+"vars.c,v 3.22 1998/03/29 18:32:59 papowell Exp";
+
+/* force local definitions */
+#define EXTERN
+#define DEFINE
+
+#include "lp.h"
+#include "printcap.h"
+#include "permission.h"
+#include "setuid.h"
+#include "pr_support.h"
+#include "timeout.h"
+#include "fileopen.h"
+#include "waitchild.h"
+/**** ENDINCLUDE ****/
+
+/***************************************************************************
+
+Commentary:
+Patrick Powell Tue Nov 26 08:10:12 PST 1996
+Put all of the variables in a separate file.
+
+ ***************************************************************************/
+
+/*
+ * printcap variables used by LPD for printing
+ * THESE MUST BE IN SORTED ORDER
+ *  NOTE:  the maxval field is used to suppress clearing
+ *   these values when initializing the printcap variable
+ *   values.
+ */
+#ifdef GETENV
+#define ENV "1"
+#else
+#define ENV
+#endif
+
+#if !defined(ARCHITECTURE)
+#define ARCHITECTURE "unknown"
+#endif
+
+
+struct keywords Pc_var_list[] = {
+
+/* START */
+   /*  always print banner, ignore lpr -h option */
+{ "ab",  FLAG_K,  &Always_banner,0,0},
+   /*  query accounting server when connected */
+{ "achk",  FLAG_K,  &Accounting_check,0,0},
+   /*  accounting at end (see also af, la, ar, as) */
+{ "ae",  STRING_K,  &Accounting_end,0,0,"=jobend $H $n $P $k $b $t"},
+   /*  name of accounting file (see also la, ar) */
+{ "af",  STRING_K,  &Accounting_file,0,0},
+   /*  automatically hold all jobs */
+{ "ah",  FLAG_K,  &Auto_hold,0,0},
+   /* Allow duplicate command line arguments (legacy requirement) */
+{ "allow_duplicate_args", FLAG_K, &Allow_duplicate_args,0,0},
+   /* Allow use of LPD_CONF */
+{ "allow_getenv", FLAG_K, &Allow_getenv,1,0,ENV},
+   /* allow users to request logging info using lpr -mhost%port */
+{ "allow_user_logging", FLAG_K, &Allow_user_logging,0,0},
+   /*  write remote transfer accounting (if af is set) */
+{ "ar",  FLAG_K,  &Accounting_remote,0,0,"1"},
+   /* host architecture */
+{ "architecture", STRING_K, &Architecture,1,0,ARCHITECTURE},
+   /*  accounting at start (see also af, la, ar) */
+{ "as",  STRING_K,  &Accounting_start,0,0,"=jobstart $H $n $P $k $b $t"},
+   /*  end banner printing program overides bp */
+{ "be",  STRING_K,  &Banner_end,0,0},
+   /*  Berkeley LPD: job file strictly RFC-compliant */
+{ "bk",  FLAG_K,  &Backwards_compatible,0,0},
+   /*  Berkeley LPD filter options */
+{ "bk_filter_options", STRING_K, &BK_filter_options,0,0,"=$P $w $l $x $y $F $c $L $i $J $C $0n $0h $-a"},
+   /*  Berkeley LPD OF filter options */
+{ "bk_of_filter_options", STRING_K, &BK_of_filter_options,0,0,"=$w $l $x $y"},
+   /*  backwards-compatible filters: use simple paramters */
+{ "bkf",  FLAG_K,  &Backwards_compatible_filter,0,0},
+   /*  short banner line sent to banner printer */
+{ "bl",  STRING_K,  &Banner_line,0,0,"=$-'C:$-'n Job: $-'J Date: $-'t"},
+   /*  banner printing program (see bs, be) */
+{ "bp",  STRING_K,  &Banner_printer,0,0},
+   /*  use filters on bounce queue files */
+{ "bq",  STRING_K,  &Bounce_queue_dest,0,0},
+   /*  if lp is a tty, set the baud rate (see ty) */
+{ "br",  INTEGER_K,  &Baud_rate,0,0},
+   /* Don't default priority from classname (legacy requirement) */
+{ "break_classname_priority_link", FLAG_K, &Break_classname_priority_link,0,0},
+   /*  banner printing program overrides bp */
+{ "bs",  STRING_K,  &Banner_start,0,0},
+   /*  control directory */
+{ "cd",  STRING_K,  &Control_dir,0,0},
+   /* check for nonprintable file */
+{ "check_for_nonprintable", FLAG_K, &Check_for_nonprintable,0,0,"1"},
+   /* check for idle printer */
+{ "check_idle", STRING_K, &Check_idle,0,0},
+   /* show classname in status display */
+{ "class_in_status", FLAG_K, &Class_in_status,0,0},
+   /* Maximum length of classname argument (legacy requirement) */
+{ "classname_length", INTEGER_K, &Classname_length,0,0,"#31"},
+   /*  comment identifying printer (LPQ) */
+{ "cm",  STRING_K,  &Comment_tag,0,0},
+   /*  cost in dollars per thousand pages */
+{ "co",  INTEGER_K,  &Cost_factor,0,0,"#20"},
+   /* configuration file */
+#if !defined(LPD_CONF_PATH)
+{ "config_file", STRING_K, &Config_file,1,0,"=/etc/lpd.conf:/usr/etc/lpd.conf"},
+#else
+{ "config_file", STRING_K, &Config_file,1,0,"=" LPD_CONF_PATH},
+#endif
+   /* connection control for remote printers */
+{ "connect_grace", INTEGER_K, &Connect_grace,0,0,"#0"},
+   /* connection control for remote printers */
+{ "connect_interval", INTEGER_K, &Connect_interval,0,0,"#10"},
+   /* connection control for remote printers */
+{ "connect_timeout", INTEGER_K, &Connect_timeout,0,0,"#10"},
+   /* control file filter */
+{ "control_filter", STRING_K, &Control_filter,0,0},
+   /*  debug level set for queue handler */
+{ "db",  STRING_K,  &New_debug,0,0},
+   /*  default authentication */
+{ "default_auth", STRING_K, &Default_auth,0,0},
+   /* default job format */
+{ "default_format", STRING_K, &Default_format,0,0,"=f"},
+   /* default port for logging info */
+{ "default_logger_port", STRING_K, &Default_logger_port,0,0,"=2001"},
+   /* default protocol for logging info */
+{ "default_logger_protocol", STRING_K, &Default_logger_protocol,0,0,"=UDP"},
+   /* default permission for files */
+{ "default_permission", STRING_K, &Default_permission,0,0,"=ACCEPT"},
+   /* default printer */
+{ "default_printer", STRING_K, &Default_printer,0,0,"=lp"},
+   /* default job priority */
+{ "default_priority", STRING_K, &Default_priority,0,0,"=A"},
+   /* default remote host */
+{ "default_remote_host", STRING_K, &Default_remote_host,0,0,"=localhost"},
+   /* default temp directory for temp files */
+{ "default_tmp_dir", STRING_K, &Default_tmp_dir,0,0,"=/tmp"},
+   /* printers that a route filter may return and we should query */
+{ "destinations", STRING_K, &Destinations,0,0},
+   /* input for filter is direct to file */
+{ "direct_read", FLAG_K, &Direct_read,0,0},
+   /*  if lp is a tty, clear flag bits (see ty) */
+{ "fc",  INTEGER_K,  &Clear_flag_bits,0,0},
+   /*  if true, no forwarded jobs accepted */
+{ "fd",  FLAG_K,  &Forwarding_off,0,0},
+   /*  string to send for a form feed */
+{ "ff",  STRING_K,  &Form_feed,0,0,"=\\f"},
+   /* filter LD_LIBRARY_PATH value */
+{ "filter_ld_path", STRING_K, &Filter_ld_path,0,0,"=/lib:/usr/lib:/usr/5lib:/usr/ucblib"},
+   /* filter options */
+{ "filter_options", STRING_K, &Filter_options,0,0,"=$C $A $F $H $J $K $L $P $Q $R $Z $a $c $d $e $f $h $i $j $k $l $n $p $r $s $w $x $y $-a"},
+   /* filter PATH environment variable */
+{ "filter_path", STRING_K, &Filter_path,0,0,"=/bin:/usr/bin:/usr/ucb:/usr/sbin:/usr/etc:/etc"},
+   /* fix bad job files */
+{ "fix_bad_job", FLAG_K, &Fix_bad_job,0,0},
+   /*  print a form feed when device is opened */
+{ "fo",  FLAG_K,  &FF_on_open,0,0},
+   /* force FQDN HOST value in control file */
+{ "force_fqdn_hostname",  FLAG_K,  &Force_FQDN_hostname,0,0},
+   /* force clients to send all requests to localhost */
+{ "force_localhost",  FLAG_K,  &Force_localhost,0,0},
+   /*  force use of this queuename if none provided */
+{ "force_queuename", STRING_K, &Force_queuename,0,0},
+   /*  do server to server authentication if authenticted by user */
+{ "forward_auth", STRING_K, &Forward_auth,0,0},
+   /*  print a form feed when device is closed */
+{ "fq",  FLAG_K,  &FF_on_close,0,0},
+   /*  like `fc' but set bits (see ty) */
+{ "fs",  INTEGER_K,  &Set_flag_bits,0,0},
+   /* full or complete time format */
+{ "full_time",  FLAG_K,  &Full_time,0,0},
+   /*  valid output filter formats */
+{ "fx",  STRING_K,  &Formats_allowed,0,0,"=flp"},
+   /* force a banner to be generated */
+{ "generate_banner", FLAG_K, &Generate_banner,0,0},
+   /* group to run SUID ROOT programs */
+{ "group", STRING_K, &Daemon_group,1,0,"=daemon"},
+   /*  print banner after job instead of before */
+{ "hl",  FLAG_K,  &Banner_last,0,0},
+   /*  filter command, run on a per-file basis */
+{ "if",  STRING_K,  &IF_Filter,0,0},
+   /*  ignore requested user priority */
+{ "ignore_requested_user_priority",  FLAG_K,  &Ignore_requested_user_priority,0,0},
+   /*  Running IPV6 */
+{ "ipv6",  FLAG_K,  &IPV6Protocol,0,0},
+	/* keytab file location for kerberos, used by server */
+{ "kerberos_keytab", STRING_K, &Kerberos_keytab,0,0,"=/etc/lpd.keytab"},
+	/* key lifetime for kerberos, used by server */
+{ "kerberos_life", STRING_K, &Kerberos_life,0,0},
+	/* key renewal time for kerberos, used by server */
+{ "kerberos_renew", STRING_K, &Kerberos_renew,0,0},
+	/* remote server principle, overides default */
+{ "kerberos_server_principle", STRING_K, &Kerberos_server_principle,0,0},
+	/* default service */
+{ "kerberos_service", STRING_K, &Kerberos_service,0,0,"=lpr"},
+   /*  write local printer accounting (if af is set) */
+{ "la",  FLAG_K,  &Local_accounting,0,0,"1"},
+   /*  leader string printed on printer open */
+{ "ld",  STRING_K,  &Leader_on_open,0,0},
+   /*  error log file (servers, filters and prefilters) */
+{ "lf",  STRING_K,  &Log_file,0,0,"=log"},
+   /* lock the IO device */
+{ "lk", FLAG_K,  &Lock_it,0,0},
+   /* name of localhost */
+{ "localhost", STRING_K, &Localhost,1,0,"=localhost"},
+   /* lpd lock file */
+{ "lockfile", STRING_K, &Lockfile,1,0,"=/var/spool/lpd/lpd.lock.%h"},
+   /* lpd log file */
+{ "logfile", STRING_K, &Logfile,0,0,"=/var/spool/lpd/lpd.log.%h"},
+   /* where to send status information for logging */
+{ "logger_destination",  STRING_K,  &Logger_destination,0,0},
+   /*  use long job number when a job is submitted */
+{ "longnumber",  FLAG_K,  &Long_number,0,0},
+   /*  device name or lp-pipe command to send output to */
+{ "lp",  STRING_K,  &Lp_device,0,0},
+   /* force a poll operation */
+{ "lpd_force_poll", FLAG_K, &Force_poll,0,0},
+   /*  interval in secs between starting up all servers */
+{ "lpd_poll_time",  INTEGER_K,  &Poll_time,0,0,"#600"},
+   /* lpd port */
+{ "lpd_port", STRING_K, &Lpd_port,0,0,"=printer"},
+   /* lpd printcap path */
+{ "lpd_printcap_path", STRING_K, &Lpd_printcap_path,1,0,"=/etc/lpd_printcap:/usr/etc/lpd_printcap"},
+   /* use lpr filtering as in bounce queue */
+{ "lpr_bounce", FLAG_K, &Lpr_bounce,0,0},
+   /* from address to use in mail messages */
+{ "mail_from", STRING_K, &Mail_from,0,0},
+   /* mail to this operator on error */
+{ "mail_operator_on_error", STRING_K, &Mail_operator_on_error,0,0},
+   /* maximum connection interval */
+{ "max_connect_interval", INTEGER_K, &Max_connect_interval,0,0,"#60"},
+   /* maximum log file size in Kbytes */
+{ "max_log_file_size", INTEGER_K, &Max_log_file_size,0,0,"#1000"},
+   /* maximum number of servers that can be active */
+{ "max_servers_active", INTEGER_K, &Max_servers_active,1,0},
+   /* maximum length of status line */
+{ "max_status_line", INTEGER_K, &Max_status_line,0,0,"#79"},
+   /* maximum size (in K) of status file */
+{ "max_status_size", INTEGER_K, &Max_status_size,0,0,"#10"},
+   /*  maximum copies allowed */
+{ "mc",  INTEGER_K,  &Max_copies,0,0,"#1"},
+   /*  minimum space (Kb) to be left in spool filesystem */
+{ "mi",  STRING_K,  &Minfree,0,0},
+   /* maximum log file size in Kbytes */
+{ "min_log_file_size", INTEGER_K, &Min_log_file_size,0,0},
+   /* minimum size to reduce status file to */
+{ "min_status_size", INTEGER_K, &Min_status_size,0,0},
+   /* minimum amount of free space needed */
+{ "minfree", STRING_K, &Minfree,0,0,"=0"},
+   /*  minimum number of printable characters for printable check */
+{ "ml",  INTEGER_K,  &Min_printable_count,0,0},
+   /*  stty commands to set output line characteristics */
+{ "ms",  STRING_K,  &Stty_command,0,0},
+   /* millisecond time resolution */
+{ "ms_time_resolution",  FLAG_K,  &Ms_time_resolution,0,0},
+   /*  maximum job size (1Kb blocks, 0 = unlimited) */
+{ "mx",  INTEGER_K,  &Max_job_size,0,0},
+   /*  use nonblocking open */
+{ "nb",  INTEGER_K,  &Nonblocking_open,0,0},
+   /* connection control for remote network printers */
+{ "network_connect_grace", INTEGER_K, &Network_connect_grace,0,0,"#0"},
+   /*  spool dir is on an NFS file system (see rm, rp) */
+{ "nw",  FLAG_K,  &NFS_spool_dir,0,0},
+   /*  output filter, run once for all output */
+{ "of",  STRING_K,  &OF_Filter,0,0},
+   /* OF filter options */
+{ "of_filter_options", STRING_K, &OF_filter_options,0,0},
+   /* orginate connections from these ports */
+{ "originate_port", STRING_K, &Originate_port,0,0,"=512 1023"},
+   /* if client, pass these environment variables */
+{ "pass_env",  STRING_K,  &Pass_env,0,0,"=PGPPASS,PGPPATH"},
+   /* lpd.perms files */
+{ "perms_path", STRING_K, &Printer_perms_path,1,0,"=/etc/lpd.perms:/usr/etc/lpd.perms"},
+   /*  page length (in lines) */
+{ "pl",  INTEGER_K,  &Page_length,0,0,"#66"},
+   /*  pr program for p format */
+{ "pr",  STRING_K,  &Pr_program,0,0,"=/bin/pr"},
+   /* /etc/printcap files */
+{ "printcap_path", STRING_K, &Printcap_path,1,0,"=/etc/printcap:/usr/etc/printcap"},
+   /*  printer status file name */
+{ "ps",  STRING_K,  &Status_file,0,0,"=status"},
+   /*  page width (in characters) */
+{ "pw",  INTEGER_K,  &Page_width,0,0,"#80"},
+   /*  page width in pixels (horizontal) */
+{ "px",  INTEGER_K,  &Page_x,0,0},
+   /*  page length in pixels (vertical) */
+{ "py",  INTEGER_K,  &Page_y,0,0},
+   /*  put queue name in control file */
+{ "qq",  FLAG_K,  &Use_queuename,0,0},
+   /*  operations allowed to remote host */
+{ "remote_support",  STRING_K,  &Remote_support,0,0,"=RMQVC"},
+   /*  remote-user name for authentication */
+{ "remote_user",  STRING_K,  &Remote_user,0,0},
+   /*  report server as this value for LPQ status */
+{ "report_server_as",  STRING_K,  &Report_server_as,0,0},
+   /*  retry on ECONNREFUSED error */
+{ "retry_econnrefused",  FLAG_K,  &Retry_ECONNREFUSED,0,0,"1"},
+   /*  retry on NOLINK connection */
+{ "retry_nolink",  FLAG_K,  &Retry_NOLINK,0,0,"1"},
+   /*  return short status when specified remotehost */
+{ "return_short_status",  STRING_K,  &Return_short_status,0,0},
+   /*  set SO_REUSEADDR on outgoing ports */
+{ "reuse_addr",  FLAG_K,  &Reuse_addr,0,0},
+   /*  reverse LPQ status format when specified remotehost */
+{ "reverse_lpq_status",  STRING_K,  &Reverse_lpq_status,0,0},
+   /*  restrict client users to members of group */
+{ "rg",  STRING_K,  &Restricted_group,0,0},
+   /*  remote-queue machine (hostname) (with rp) */
+{ "rm",  STRING_K,  &RemoteHost,0,0},
+   /*  routing filter, returns destinations */
+{ "router",  STRING_K,  &Routing_filter,0,0},
+   /*  remote-queue printer name (with rp) */
+{ "rp",  STRING_K,  &RemotePrinter,0,0},
+   /*  number of times to try printing or transfer (0=infinite) */
+{ "rt",  INTEGER_K,  &Send_try,0,0},
+   /*  open the printer for reading and writing */
+{ "rw",  FLAG_K,  &Read_write,0,0},
+   /*  additional safe characters to use in control files */
+{ "safe_chars",  STRING_K,  &Safe_chars,0,0},
+   /*  save job when an error */
+{ "save_on_error",  FLAG_K,  &Save_on_error,0,0},
+   /*  save job when done */
+{ "save_when_done",  FLAG_K,  &Save_when_done,0,0},
+   /*  short banner (one line only) */
+{ "sb",  FLAG_K,  &Short_banner,0,0},
+   /*  suppress multiple copies */
+{ "sc",  FLAG_K,  &Suppress_copies,0,0},
+   /*  spool directory (only ONE printer per directory!) */
+{ "sd",  STRING_K,  &Spool_dir,0,0},	/* EXPAND */
+   /* send block of data, rather than individual files */
+{ "send_block_format", FLAG_K, &Send_block_format,0,0},
+   /* failure action to take after send_try attempts failed */
+{ "send_data_first", FLAG_K, &Send_data_first,0,0},
+   /* failure action to take after send_try attempts failed */
+{ "send_failure_action", STRING_K, &Send_failure_action,0,0,"=remove"},
+   /* timeout for read/write lpr IO operatons */
+{ "send_job_rw_timeout", INTEGER_K, &Send_job_rw_timeout,0,0,"#6000"},
+   /* timeout for read/write status or control operatons */
+{ "send_query_rw_timeout", INTEGER_K, &Send_query_rw_timeout,0,0,"#30"},
+   /* numbers of times to try sending job - 0 is infinite */
+{ "send_try", INTEGER_K, &Send_try,0,0,"#3"},
+   /* sendmail program */
+{ "sendmail", STRING_K, &Sendmail,1,0,"=/usr/sbin/sendmail -oi -t"},
+   /*  authenticate transfer command */
+{ "server_auth_command", STRING_K, &Server_authentication_command,0,0},
+   /* server temporary file directory */
+{ "server_tmp_dir", STRING_K, &Server_tmp_dir,0,0,"=/tmp"},
+   /* server user for authentication */
+{ "server_user", STRING_K, &Server_user,0,0,"=daemon"},
+   /*  suppress form feeds separating multiple jobs */
+{ "sf",  FLAG_K,  &No_FF_separator,0,0},
+   /*  suppress headers and/or banner page */
+{ "sh",  FLAG_K,  &Suppress_header,0,0},
+   /*  short status length in lines */
+{ "short_status_length",  INTEGER_K,  &Short_status_length,0,0,"#3"},
+   /* set the SO_LINGER socket option */
+{ "socket_linger", INTEGER_K,  &Socket_linger,0,0,"#10"},
+   /* spool directory permissions */
+{ "spool_dir_perms", INTEGER_K, &Spool_dir_perms,0,0,"#042700"},
+   /* spool file permissions */
+{ "spool_file_perms", INTEGER_K, &Spool_file_perms,0,0,"#000600"},
+   /* amount to spread jobs to avoid collisions */
+{ "spread_jobs", INTEGER_K, &Spread_jobs,0,0,"#0"},
+   /*  name of queue that server serves (with sv) */
+{ "ss",  STRING_K,  &Server_queue_name,0,0},
+   /*  stalled job timeout */
+{ "stalled_time", INTEGER_K, &Stalled_time,0,0,"#120"},
+   /*  stop processing queue on filter abort */
+{ "stop_on_abort",  FLAG_K,  &Stop_on_abort,0,0},
+   /*  names of servers for queue (with ss) */
+{ "sv",  STRING_K,  &Server_names,0,0},
+   /*  stty commands to set output line characteristics */
+{ "sy",  STRING_K,  &Stty_command,0,0},
+   /* delay closing socket until end of lpr operation */
+{ "sync_lpr", FLAG_K, &Sync_lpr,0,0},
+   /* name of syslog device */
+{ "syslog_device", STRING_K, &Syslog_device,0,0,"=/dev/console"},
+   /*  trailer string to print when queue empties */
+{ "tr",  STRING_K,  &Trailer_on_close,0,0},
+   /*  translate format from one to another - similar to tr(1) utility */
+{ "translate_format",  STRING_K,  &Xlate_format,0,0},
+   /*  stty commands to set output line characteristics */
+{ "ty",  STRING_K,  &Stty_command,0,0},
+   /*  use authentication */
+{ "use_auth", STRING_K, &Use_auth,0,0},
+   /*  put date in control file */
+{ "use_date",  FLAG_K,  &Use_date,0,0},
+   /*  put identifier in control file */
+{ "use_identifier",  FLAG_K,  &Use_identifier,0,0},
+   /*  read and cache information */
+{ "use_info_cache", FLAG_K, &Use_info_cache,0,0,"1"},
+   /*  put queue name in control file */
+{ "use_queuename", FLAG_K, &Use_queuename,0,0},
+   /*  Use short hostname for lpr control and data file names */
+{ "use_shorthost",  FLAG_K,  &Use_shorthost,0,0},
+   /*  server user for SUID purposes */
+{ "user", STRING_K, &Daemon_user,1,0,"=daemon"},
+   /*  authenticate transfer command */
+{ "user_auth_command", STRING_K, &User_authentication_command,0,0},
+   /* LPC commands for SERVICE=U permissions checks */
+{ "user_lpc", STRING_K, &User_lpc,1,0},
+   /*  if lp is a tty, clear local mode bits (see ty) */
+{ "xc",  INTEGER_K,  &Clear_local_bits,0,0},
+   /*  like `xc' but set bits (see ty) */
+{ "xs",  INTEGER_K,  &Set_local_bits,0,0},
+   /*  formats to check for printable files */
+{ "xt",  FLAG_K,  &Check_for_nonprintable,0,0},
+/* END */
+{ (char *)0 }
+} ;
+
+
+struct keywords Lpd_parms[] = {
+{ "Foreground",  INTEGER_K , &Foreground },
+{ "FQDNHost",  STRING_K , &FQDNHost },
+{ "FQDNRemote",  STRING_K , &FQDNRemote },
+{ "Logname",  STRING_K , &Logname },
+{ "Printer",  STRING_K , &Printer },
+{ "ShortHost",  STRING_K , &ShortHost },
+{ "ShortRemote",  STRING_K , &ShortRemote },
+{ 0 }
+} ;
+
+/* force reference to Copyright */
+char **Copyright_ref = Copyright;
+
+struct keywords Keyletter[] = {
+	{ "P", STRING_K, &Printer },
+	{ "h", STRING_K, &ShortHost },
+	{ "H", STRING_K, &FQDNHost },
+	{ "a", STRING_K, &Architecture },
+	{ "R", STRING_K, &RemotePrinter },
+	{ "M", STRING_K, &RemoteHost },
+	{ 0 }
+};
--- lprng-3.5.3.orig/man/Makefile.bsd
+++ lprng-3.5.3/man/Makefile.bsd
@@ -0,0 +1,91 @@
+# Generated automatically from Makefile.bsd.in by configure.
+###########################################################################
+# LPRng - An Extended Print Spooler System
+#
+# Copyright 1988-1997 Patrick Powell, San Diego, California
+#     papowell@sdsu.edu
+# See LICENSE for conditions of use.
+#
+###########################################################################
+# MODULE: UTILS/Makefile
+# PURPOSE: generate utilities
+# Makefile.in,v 3.7 1998/03/30 01:54:50 papowell Exp
+########################################################################## 
+
+# Manual pages installation Makefile.
+#
+SRC = .
+MANINSTCMD =	/usr/bin/install -c -m 644
+
+# change MANEXT to .gz or .Z if you use compressed manpages.
+MANEXT =	
+
+## fix up prefix to be a make variable
+prefix = /usr
+MAN =		$(prefix)/man
+SHELL =		/bin/sh
+
+
+all:
+
+.PHONY: all clean install ci install.zman
+
+CI=
+CO=-kv
+update:
+	- for i in *.[0-9]; do \
+		rcs -l ./$$i; \
+		ci $(CI) -l -mUpdate -t-Initial ./$$i; \
+	done;
+
+	- VER=`cat ${SRC}/../VERSION`; \
+	  for i in *.[0-9]; do \
+		sed -e "s/^.ds VE.*/.ds VE $$VER/" ./$$i >/tmp/$$i; \
+		cp /tmp/$$i ./$$i; \
+	done;
+
+	- for i in *.[0-9]; do \
+		ci $(CI) -mUpdate -t-Initial ./$$i; \
+		yes | co $(CO) ./$$i; \
+	done
+
+# Standard man install target.
+#
+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
+
+# Install man pages in compressed form.
+#
+install.zman:
+	for i in ${SRC}/*.1; do compress < $$i >/tmp/_; \
+		 $(MANINSTCMD) /tmp/_ $(MAN)/man1.Z/$$i$(MANEXT); rm -f /tmp/_; done
+	for i in ${SRC}/*.5; do compress < $$i >/tmp/_; \
+		 $(MANINSTCMD) /tmp/_ $(MAN)/man5.Z/$$i$(MANEXT); rm -f /tmp/_; done
+	for i in ${SRC}/*.8; do compress < $$i >/tmp/_; \
+		 $(MANINSTCMD) /tmp/_ $(MAN)/man8.Z/$$i$(MANEXT); rm -f /tmp/_; done
+
+uninstall:
+	for i in *.1; do rm -f $(MAN)/man1/$$i$(MANEXT); done
+	for i in *.5; do rm -f $(MAN)/man5/$$i$(MANEXT); done
+	for i in *.8; do rm -f $(MAN)/man8/$$i$(MANEXT); done
+	
+realclean mostlyclean distclean:: clean
+	rm -f Makefile
+
+clean::
+
+TAGS info:
+
+cifast ci:
+	if test ! -d RCS ; then mkdir RCS; fi;
+	checkin() { \
+		rcs -l $$1; \
+		ci $(CI) -mUpdate -t-Initial $$1; \
+		yes |co $(CO) $$1; \
+	}; \
+	for i in *.[0-9] Makefile.in Makefile; do \
+		checkin $$i; \
+	done;
--- lprng-3.5.3.orig/lpd.perms
+++ lprng-3.5.3/lpd.perms
@@ -161,13 +161,15 @@
 ## #Do not allow forwarded jobs or requests
 ##   REJECT SERVICE=R,C,M FORWARD
 ## 
+
 # allow root on server to control jobs
 ACCEPT SERVICE=C SERVER REMOTEUSER=root
 # allow anybody to get status
 ACCEPT SERVICE=S
+# reject remote prints from arbitrary hosts
+REJECT SERVICE=XRPQ NOT SERVER
 # reject all others, including lpc commands permitted by user_lpc
 REJECT SERVICE=CSU
-#
 # allow same user on originating host to remove a job
 ACCEPT SERVICE=M SAMEHOST SAMEUSER
 # allow root on server to remove a job
@@ -175,3 +177,5 @@
 REJECT SERVICE=M
 # all other operations allowed
 DEFAULT ACCEPT
+
+
--- lprng-3.5.3.orig/po/POTFILES
+++ lprng-3.5.3/po/POTFILES
@@ -0,0 +1,19 @@
+	../src/LPC/lpc.c \
+	../src/LPC/lpc_getparms.c \
+	../src/LPD/lpd.c \
+	../src/LPD/lpd_control.c \
+	../src/LPD/lpd_getparms.c \
+	../src/LPD/lpd_rcvjob.c \
+	../src/LPD/lpd_jobs.c \
+	../src/LPD/lpd_sendmail.c \
+	../src/LPD/lpd_status.c \
+	../src/LPD/lpd_remove.c \
+	../src/LPD/lpd_secure.c \
+	../src/LPQ/lpq.c \
+	../src/LPQ/lpq_getparms.c \
+	../src/LPR/lpr.c \
+	../src/LPR/lpr_cpyfiles.c \
+	../src/LPR/lpr_getparms.c \
+	../src/LPR/lpr_chkparms.c \
+	../src/LPRM/lprm.c \
+	../src/LPRM/lprm_getparm.c
--- lprng-3.5.3.orig/po/Makefile.bsd
+++ lprng-3.5.3/po/Makefile.bsd
@@ -0,0 +1,34 @@
+# Generated automatically from Makefile.in.in by configure.
+# Dummy Makefile for program source directory in GNU NLS utilities package.
+#
+# Note 1: you need to get the gettext code to use this -
+#  ftp://prep.ai.mit.edu/pub/gnu/gettext-<versions>
+#    read the instructions,  install the gettext functions,
+#  When you install gettext, it will usually create the following
+#  directories - 
+#   /usr/local/share/po
+#   /usr/local/share/intl
+#  you will need to either copy or make symbolic links as follows:
+#
+# LPRng/po/Makefile.in.in - symbolic link to /usr/local/share/po/Makefile.in.in
+#    rm po/Makefile.in.in
+#    EITHER:
+#      cp /usr/local/share/po/Makefile.in.in po/Makefile.in
+#    OR
+#      ln -s /usr/local/share/po/Makefile.in.in po/Makefile.in
+#
+
+all: all-no
+
+all-yes:
+	echo "You need to link to the correct Makefile.in.in - see README.gettext"
+	exit 1;
+all-no:
+	echo "No internationalization"
+
+install installcheck uninstall check mostlyclean clean:
+
+cifast ci:
+
+distclean:
+.NOEXPORT:
--- lprng-3.5.3.orig/debian/rules
+++ lprng-3.5.3/debian/rules
@@ -0,0 +1,85 @@
+#!/usr/bin/make -f
+# derived from Sample debian.rules file - for GNU Hello (1.3).
+# Copyright 1994,1995 by Ian Jackson.
+# I hereby give you perpetual unlimited permission to copy,
+# modify and relicense this file, provided that you do not remove
+# my name from the file itself.  (I assert my moral right of
+# paternity under the Copyright, Designs and Patents Act 1988.)
+# This file may have to be extensively modified
+
+# There used to be `source' and `diff' targets in this file, and many
+# packages also had `changes' and `dist' targets.  These functions
+# have been taken over by dpkg-source, dpkg-genchanges and
+# dpkg-buildpackage in a package-independent way, and so these targets
+# are obsolete.
+
+package=lprng
+
+# The next section may have to be extensively modified
+
+build:
+	$(checkdir)
+	CFLAGS="-O2" ./configure --prefix=/usr
+	$(MAKE) LDFLAGS=-s INSTALL_LIB=/usr/sbin
+	$(MAKE) HOWTO
+	touch build
+
+clean:
+	$(checkdir)
+	-rm -f build
+	-$(MAKE) -i realclean
+	-rm -rf debian/tmp
+	-rm -f debian/substvars debian/files
+	find . -name \*~ | xargs -r rm -f 
+
+binary-indep:	checkroot build
+	$(checkdir)
+# There are no architecture-independent files to be uploaded
+# generated by this package.  If there were any they would be
+# made here.
+
+binary-arch:	checkroot build
+	-rm -rf debian/tmp
+	install -d debian/tmp debian/tmp/DEBIAN
+	install -d debian/tmp/usr/doc/$(package)
+	install debian/{prerm,postinst,postrm} debian/tmp/DEBIAN/
+	install -m 644 debian/conffiles debian/tmp/DEBIAN/
+	$(MAKE) prefix=`pwd`/debian/tmp/usr \
+		INSTALL_LIB=`pwd`/debian/tmp/usr/sbin install
+	mv debian/tmp/usr/bin/lpc debian/tmp/usr/sbin/
+	cp debian/changelog debian/tmp/usr/doc/$(package)/changelog.Debian
+	cp CHANGES debian/tmp/usr/doc/$(package)/changelog
+	cp README* debian/tmp/usr/doc/$(package)/
+	gzip -9f debian/tmp/usr/man/man?/* \
+		debian/tmp/usr/doc/$(package)/*
+	rm -f debian/tmp/usr/man/man1/monitor.1.gz
+	cp debian/copyright debian/tmp/usr/doc/$(package)
+	install -d debian/tmp/etc/init.d
+	install -m 755 debian/rc debian/tmp/etc/init.d/lprng
+	install -m 644 debian/{printcap,filter.*} lpd.conf lpd.perms \
+		debian/tmp/etc/
+	install -d debian/tmp/var/spool
+	dpkg-shlibdeps src/lpr
+	dpkg-gencontrol
+	chown -R root.root debian/tmp
+	chmod -R g-ws debian/tmp
+	install -m 2755 -o lp -g lp -d debian/tmp/var/spool/lpd
+	install -m 2755 -o lp -g lp -d debian/tmp/var/spool/lpd/lp
+	dpkg --build debian/tmp ..
+
+define checkdir
+	test -f ABOUT-NLS.LPRng
+endef
+
+# Below here is fairly generic really
+
+binary:		binary-indep binary-arch
+
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+checkroot:
+	$(checkdir)
+	test root = "`whoami`"
+
+.PHONY: binary binary-arch binary-indep clean checkroot
--- lprng-3.5.3.orig/debian/conffiles
+++ lprng-3.5.3/debian/conffiles
@@ -0,0 +1,6 @@
+/etc/init.d/lprng
+/etc/printcap
+/etc/lpd.conf
+/etc/lpd.perms
+/etc/filter.pcl
+/etc/filter.ps
--- lprng-3.5.3.orig/debian/control
+++ lprng-3.5.3/debian/control
@@ -0,0 +1,17 @@
+Source: lprng
+Section: net
+Priority: optional
+Maintainer: Sven Rudolph <sr1@inf.tu-dresden.de>
+Standards-Version: 2.1.0.0
+
+Package: lprng
+Architecture: any
+Depends: ${shlibs:Depends}
+Provides: lpr
+Suggests: magicfilter, lprng-doc
+Conflicts: lpr, apsfilter (<<4.9.1-10)
+Replaces: lpr
+Description: lpr/lpd printer spooling system
+ The  LPRng  software  is an enhanced, extended, and portable  version
+ of the Berkeley LPR software (the standards UNIX printer spooler)
+ You can use this for local and remote printers.
--- lprng-3.5.3.orig/debian/copyright
+++ lprng-3.5.3/debian/copyright
@@ -0,0 +1,19 @@
+This is Debian/GNU Linux's prepackaged version of LPRng - an Enhanced
+Printer Spooler. LPRng was written by Patrick Powell
+<papowell@sdsu.edu> and others.
+
+This package was put together by Sven Rudolph <sr1@inf.tu-dresden.de>,
+from sources obtained from ftp://ftp.astart.com/pub/LPRng .
+
+Copyright 1988-1995 Patrick Powell, San Diego State University
+
+Use and distribution of this software is covered by the GNU COPYING
+license.  Please refer to this for terms and conditions.
+
+This software incorporates code from other sources;  see the file
+copyright.c in this distribution for general copyright information.
+Individual source files have their copyrights as well, where
+applicable.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/doc/copyright/GPL'.
--- lprng-3.5.3.orig/debian/postinst
+++ lprng-3.5.3/debian/postinst
@@ -0,0 +1,27 @@
+#!/bin/sh
+# post install script for the Debian GNU/Linux lpr package
+
+update-rc.d lprng defaults >/dev/null
+
+# Fix directory permissions that might be incorrect.
+for i in /var/spool/lpd /var/spool/lpd/lp /var/spool/lpd/remote
+do
+ if [ -d $i ]; then
+   chown lp.lp $i
+   chmod 2775 $i
+ fi
+done
+
+/etc/init.d/lprng start
+
+if grep -v  "^#" /etc/printcap | grep -q rp= ; then
+	echo "Your printcap lists remote printers.
+When these remote printers are not controlled by lprng you have to add the
+bk option for these printers.
+
+For details see printcap(5).
+
+Press RETURN to continue."
+
+	read 
+fi
--- lprng-3.5.3.orig/debian/postrm
+++ lprng-3.5.3/debian/postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+# post remove script for the Debian GNU/Linux lprng package
+
+set -e
+
+case $1 in
+	purge|remove)
+		update-rc.d -f lprng remove >/dev/null
+		;;
+esac 
--- lprng-3.5.3.orig/debian/preinst
+++ lprng-3.5.3/debian/preinst
@@ -0,0 +1,8 @@
+#!/bin/sh
+# pre install script for the Debian GNU/Linux lpr package
+
+set -e
+
+(kill -9 `cat /var/run/lpd.pid`) 2>/dev/null || exit 0
+rm -f /var/run/lpd.pid
+
--- lprng-3.5.3.orig/debian/prerm
+++ lprng-3.5.3/debian/prerm
@@ -0,0 +1,7 @@
+#!/bin/sh
+# pre remove script for the Debian GNU/Linux lpd package
+
+set -e
+
+/etc/init.d/lprng stop
+ 
--- lprng-3.5.3.orig/debian/changelog
+++ lprng-3.5.3/debian/changelog
@@ -0,0 +1,168 @@
+lprng (3.5.3-0.1) unstable; urgency=low
+
+  * New upstream version
+
+ -- Robert Woodcock <rcw@debian.org>  Fri, 19 Feb 1999 20:20:42 -0800
+
+lprng (3.5.2-1.3) frozen unstable; urgency=low
+
+  * Fix the fix of lpd.perms :( (Bug #32628).
+    (This only changes 5 lines in the default configuration
+    file; thanks to Eric <ej@goomba.dyn.ez-ip.net> for the patch)
+
+ -- Vincent Renardias <vincent@waw.com>  Sat, 30 Jan 1999 21:03:51 +0100
+
+lprng (3.5.2-1.2) frozen unstable; urgency=low
+
+  * NMU to fix my previous NMU :(
+  * s/DEFAUT/DEFAULT/ in /etc/lpd.perms (Bug #32527).
+
+ -- Vincent Renardias <vincent@waw.com>  Thu, 28 Jan 1999 18:25:19 +0100
+
+lprng (3.5.2-1.1) frozen unstable; urgency=low
+
+  * NMU:
+    Fix critical bug #23682 (changed lpd.perms).
+    Fix critical bug #31889 (swaped 2 lines in postinst).
+
+ -- Vincent Renardias <vincent@waw.com>  Sun, 24 Jan 1999 05:18:42 +0100
+
+lprng (3.5.2-1) unstable; urgency=low
+
+  * new upstream version
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Sun,  9 Aug 1998 11:49:02 +0200
+
+lprng (3.4.2-5) frozen unstable; urgency=low
+
+  * debian/conffiles: added /etc/filter.{pcl,ps}
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Wed, 10 Jun 1998 14:29:04 +0200
+
+lprng (3.4.2-4) frozen unstable; urgency=low
+
+  * debian/control: added Conflicts: apsfilter (<<4.9.1-10)
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Wed, 13 May 1998 19:48:48 +0200
+
+lprng (3.4.2-3) frozen unstable; urgency=low
+
+  * debian/rules: move lpc to /usr/sbin/ (Fixes: 21202)
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Thu, 16 Apr 1998 17:04:07 +0200
+
+lprng (3.4.2-2) frozen unstable; urgency=low
+
+  * debian/rc: make messages policy-conforming (Fixes: #20489)
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Mon, 13 Apr 1998 16:18:37 +0200
+
+lprng (3.4.2-1) unstable; urgency=low
+
+  * new upstream version
+  * debian/rules: remove monitor.1 manual page (Fixes: #8690)
+                  moved printcap,filter.* to debian/
+		  install postrm (Fixes: #14727)
+  * debian/rc: add restart and force-reload targets
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Tue,  3 Mar 1998 00:34:20 +0100
+
+lprng (3.4.1-1) unstable; urgency=low
+
+  * new upstream version (fixes #11015, #8690)
+  * debian/rc: stop) add --oknodo (#12533, #10724)
+  * debian/rules: install filter.* files again (#15180)
+  * fixes #15960 (Cannot unpack source)
+  * src/common/vars.c: set filter_ld_path empty (#15117, probably #9826)
+  
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Mon,  5 Jan 1998 22:04:42 +0100
+
+lprng (3.2.6-2) unstable; urgency=low
+
+  * man/printcap.5: fixed an inconsistency (#11015)
+  * linked against libc6 (#11459, and possibly #10581 and #10555)
+  
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Mon,  4 Aug 1997 17:37:08 +0200
+
+lprng (3.2.6-1) unstable; urgency=low
+
+  * new upstream version
+  
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Sun,  8 Jun 1997 22:57:30 +0200
+
+lprng (3.2.5-1) unstable; urgency=low
+
+  * new upstream version
+  * debian/rc: adapted console messages to standard (#8505)
+               added `reload' rule (#8609)
+  * debian/rules: upstream log is called changelog (#9616)
+  * src/common/default.c; lpd.conf: pr=/usr/bin/pr (#10029)
+  
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Wed, 14 May 1997 22:35:02 +0200
+
+lprng (3.2.1-1) unstable; urgency=low
+
+  * new upstream version
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Tue, 25 Mar 1997 00:04:03 +0100
+
+lprng (3.1.8-1) experimental; urgency=low
+
+  * new upstream version
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Thu, 20 Feb 1997 12:51:11 +0100
+
+lprng (3.1.7-2) experimental; urgency=low
+
+  * install lpd, lpf etc in /usr/sbin
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Wed, 19 Feb 1997 15:18:09 +0100
+
+lprng (3.1.7-1) experimental; urgency=low
+
+  * new upstream version
+  * src/LPR/lpr_cpyfiles.c: removed the patch for recognising
+    Windows Postscript files as text
+  * debian.rc: moved to debian/rc
+  * src/common/default.c, lpd.conf: check_for_nonprintable no
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Wed, 19 Feb 1997 00:26:56 +0100
+
+lprng (2.4.2-1) unstable; urgency=low
+
+  * new upstream version
+  * new upstream version
+  * src/LPR/lpr_cpyfiles.c: recognize Windows-generated PostScript as text
+  * src/common/termclear.c: corrects conflicting definitions of tgetstr
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Thu, 7 Nov 1996 22:35:24 +0100
+
+lprng (2.3.12-3) unstable stable; urgency=high
+
+  * moved to unstable and stable
+  * replaces lpr which has security problems
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Mon, 7 Oct 1996 19:10:48 +0200
+
+lprng (2.3.12-2) experimental; urgency=low
+
+  * (debian/control): install conffiles
+  * (debian/control): added Provides: lpr
+			    Suggests: magicfilter
+			    Conflicts: lpr
+			    Replaces: lpr
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Thu, 26 Sep 1996 17:34:18 +0200
+
+lprng (2.3.12-1) experimental; urgency=low
+
+  * added minimal printcap
+  * run daemon as lp
+  * install daemon and admin programs in /usr/sbin
+  * Initial release.
+
+ -- Sven Rudolph <sr1@inf.tu-dresden.de>  Tue, 17 Sep 1996 23:32:15 +0200
+
+Local variables:
+mode: debian-changelog
+End:
--- lprng-3.5.3.orig/debian/todo
+++ lprng-3.5.3/debian/todo
@@ -0,0 +1,2 @@
+Add simple filter to distinguish between PostScript and text,
+like pscat on (yuk!) SCO UNIX.
--- lprng-3.5.3.orig/debian/rc
+++ lprng-3.5.3/debian/rc
@@ -0,0 +1,37 @@
+#!/bin/sh
+#
+# Start the printer daemon.
+
+set -e
+
+test -f /usr/sbin/lpd || exit 0
+
+case "$1" in
+  start)
+	echo -n "Starting printer spooler: lpd"
+	start-stop-daemon --start --quiet --exec /usr/sbin/lpd
+	echo "."
+	;;
+  stop)
+	echo -n "Stopping printer spooler: lpd"
+	start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/lpd
+	echo "."
+	;;
+  reload|force-reload)
+	echo -n "Reloading printer spooler configuration..."
+	start-stop-daemon --stop --quiet --oknodo --signal 1 --exec /usr/sbin/lpd
+	echo "done."
+	;;
+  restart)
+	echo -n "Restarting printer spooler..."
+	start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/lpd
+	start-stop-daemon --start --quiet --exec /usr/sbin/lpd
+	echo "done."
+	;;
+  *)
+        echo "Usage: /etc/init.d/lpd {start|stop|reload|force-reload|restart}"
+        exit 1
+	;;
+esac
+
+exit 0
--- lprng-3.5.3.orig/debian/TODO
+++ lprng-3.5.3/debian/TODO
@@ -0,0 +1,5 @@
+- paths in manpages
+
+- move internal binaries to private directory:
+E: lprng: binary-without-manpage removeoneline
+E: lprng: binary-without-manpage setupauth
--- lprng-3.5.3.orig/debian/filter.pcl
+++ lprng-3.5.3/debian/filter.pcl
@@ -0,0 +1,18 @@
+#!/bin/sh
+# This is a simple filter for PCL language printers, i.e., most
+# HP DeskJet printers (see /etc/printcap).
+
+# reset the printer to its defaults
+echo -ne \\033\E
+
+# to avoid stair-stepping, convert "LF" to "CR+LF"
+echo -ne \\033\&k2G
+
+# print text
+cat
+
+# form feed
+echo -ne \\f
+
+# reset the printer on exit
+echo -ne \\033\E
--- lprng-3.5.3.orig/debian/filter.ps
+++ lprng-3.5.3/debian/filter.ps
@@ -0,0 +1,13 @@
+#!/bin/sh
+# This is a simple filter for printing postscript files, (see /etc/printcap).
+
+# The 'epson' device is the generic device, for 9-pin and 24-pin printers.
+/usr/bin/gs -q -dSAFER -sDEVICE=epson -dNOPAUSE -sOutputFile=- -
+
+# 'eps9high' is a special mode for 9-pin printers where scan lines are
+# interleaved in multiple passes to produce high vertical resolution at
+# the expense of several passes of the print head.
+#/usr/bin/gs -q -dSAFER -sDEVICE=eps9high -dNOPAUSE -sOutputFile=- -
+
+# HP Deskjet 500 printer device
+#/usr/bin/gs -q -dSAFER -sDEVICE=djet500 -dNOPAUSE -sOutputFile=- -
--- lprng-3.5.3.orig/debian/printcap
+++ lprng-3.5.3/debian/printcap
@@ -0,0 +1,23 @@
+# /etc/printcap: printer capability database. See printcap(5).
+# You can use the filter entries df, tf, cf, gf etc. for
+# your own filters. See the printcap(5) manual page for further 
+# details.
+
+lp|Generic dot-matrix printer entry
+        :lp=/dev/lp1
+        :sd=/var/spool/lpd/lp
+        :af=/var/log/lp-acct
+        :lf=/var/log/lp-errs
+        :pl#66
+        :pw#80
+        :pc#150
+        :mx#0
+        :sh
+
+# rlp|Remote printer entry
+#         :lp=
+#         :rm=remotehost
+#         :rp=remoteprinter
+#         :sd=/var/spool/lpd/remote
+#         :mx#0
+#         :sh
