--- Makefile.Linux +++ Makefile.Linux 1998/01/11 11:17:20 @@ -0,0 +1,34 @@ +# +# +# Makefile.Linux to integrate package into source tree of S.u.S.E.-Linux +# +# Copyright (C) 1996-1998 S.u.S.E. GmbH Fuerth, Germany. +# +# Please send bug-fixes or comments to feedback@suse.de. +# +# Author: Florian La Roche +# +# + +doc=/usr/doc/packages/lpr +flags=CFLAGS="-Wall -O2 -pipe" + +HUGO: Makefile.in + $(flags) ./configure --prefix=/usr --with-lpddir=/usr/sbin \ + --with-admindir=/usr/sbin + # tar xzf ../LPRng_DOC-3.4.1.tar.gz + touch HUGO + +compile: HUGO + make + +install: + make install + install -m 644 sample.lpd.conf /etc/lpd.conf + install -m 644 sample.lpd.perms /etc/lpd.perms + install rc /etc/rc.d/init.d/lpd + ln -sf /etc/rc.d/init.d/lpd /usr/sbin/rclpd + mkdir -p $(doc)/HOWTO + install -m 644 ANNOUNCE CHANGES INFORMATION README* $(doc) + install -m 644 HOWTO/{L*.html,*.gif} $(doc)/HOWTO/ + --- rc +++ rc 1998/01/11 11:10:14 @@ -0,0 +1,24 @@ +#! /bin/sh +# Copyright (c) 1996 S.u.S.E. Gmbh Fuerth, Germany. All rights reserved. +# +# Author: Florian La Roche , 1996 +# + +case "$1" in + start) + echo "Starting printer daemon." + /usr/sbin/lpd + ;; + stop) + echo -n "Shutting down printer daemon:" + killproc -TERM /usr/sbin/lpd + echo + ;; + reload) + ;; + *) + echo "Usage: $0 {start|stop}" + exit 1 +esac + +exit 0 --- sample.lpd.conf +++ sample.lpd.conf 1998/01/11 11:10:14 @@ -0,0 +1,13 @@ +# See "man lpd.conf" for a list of options you can set here. +check_for_nonprintable@ +client_config_file=/etc/lpd.conf +filter_ld_path=/lib:/usr/lib:/usr/X11R6/lib +filter_path=/bin:/usr/bin:/usr/sbin:/sbin:/usr/X11R6/bin +group=lp +mail_operator_on_error=root +pr=/usr/bin/pr +printcap_path=/etc/printcap +printer_perms_path=/etc/lpd.perms +server_config_file=/etc/lpd.conf +server_user=lp +user=lp --- sample.lpd.perms +++ sample.lpd.perms 1998/01/11 11:10:14 @@ -0,0 +1 @@ +DEFAULT ACCEPT --- src/Makefile.in +++ src/Makefile.in 1998/01/11 11:10:14 @@ -317,7 +317,7 @@ SUID_ROOT_PERMS= 04755 -o root PERMS=$(NORM_PERMS) # comment out the next line to have LPRng installed non-setuid -PERMS=$(SUID_ROOT_PERMS) +#PERMS=$(SUID_ROOT_PERMS) ########################################################################### install: all ${INSTALL_LIB} ${INSTALL_BIN} ${INSTALL_MAINT}