diff options
Diffstat (limited to 'net-print/lprng/files')
-rw-r--r-- | net-print/lprng/files/lprng-3.8.27-certs.diff | 38 | ||||
-rw-r--r-- | net-print/lprng/files/lprng-3.8.28-krb.diff | 11 | ||||
-rw-r--r-- | net-print/lprng/files/lprng-3.8.28-lpq.diff | 11 | ||||
-rw-r--r-- | net-print/lprng/files/lprng-3.8.28-make.diff | 11 | ||||
-rw-r--r-- | net-print/lprng/files/lprng-init | 39 | ||||
-rw-r--r-- | net-print/lprng/files/printcap | 24 |
6 files changed, 134 insertions, 0 deletions
diff --git a/net-print/lprng/files/lprng-3.8.27-certs.diff b/net-print/lprng/files/lprng-3.8.27-certs.diff new file mode 100644 index 00000000000..13b9051aea0 --- /dev/null +++ b/net-print/lprng/files/lprng-3.8.27-certs.diff @@ -0,0 +1,38 @@ +--- LPRng-3.8.27/src/lprng_certs.orig 2004-12-20 00:29:21.000000000 +0100 ++++ LPRng-3.8.27/src/lprng_certs.sh 2004-12-20 00:33:49.000000000 +0100 +@@ -320,7 +320,9 @@ + # set default values + + +-CFG=/tmp/$$.sslcfg ++TMPDIR=`mktemp -d -t lprng.XXXXXX` || { echo "$0: Cannot create temporary directory!" >&2 ; exit 1; } ++trap "/bin/rm -rf ${TMPDIR}" 0 1 2 3 13 15 ++CFG=$TMPDIR/sslcfg + + OPENSSL=/usr/bin/openssl + CA_KEY=//etc/lprng/ssl.ca/ca.key +@@ -508,14 +510,14 @@ + shift + if [ "$1" = "" ] ; then usage; fi; + if [ ! -f "$1" ] ; then useage; fi; +- sed -n -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/p' $1 >/tmp/$$.key +- sed -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/d' $1 >/tmp/$$.crt +- STEP="" encrypt /tmp/$$.key ++ sed -n -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/p' $1 >$TMPDIR/key ++ sed -e '/BEGIN.*PRIVATE KEY/,/END.*PRIVATE KEY/d' $1 >$TMPDIR/crt ++ STEP="" encrypt $TMPDIR/key + status=$? + echo STATUS $status + if [ $status = 0 ] ; then + mv $1 $1.orig +- cat /tmp/$$.crt /tmp/$$.key >$1 ++ cat $TMPDIR/crt $TMPDIR/key >$1 + fi + ;; + +@@ -845,5 +847,4 @@ + exit 1 + ;; + esac +-rm -f ${CFG} + exit $RET diff --git a/net-print/lprng/files/lprng-3.8.28-krb.diff b/net-print/lprng/files/lprng-3.8.28-krb.diff new file mode 100644 index 00000000000..76381e560d0 --- /dev/null +++ b/net-print/lprng/files/lprng-3.8.28-krb.diff @@ -0,0 +1,11 @@ +--- LPRng-3.8.28/src/common/krb5_auth.c.org 2004-09-24 22:19:57.000000000 +0200 ++++ LPRng-3.8.28/src/common/krb5_auth.c 2006-10-13 09:19:44.000000000 +0200 +@@ -922,7 +922,7 @@ + nstored = 0; + } + +- if ((cc = Read_fd_len_timeout(transfer_timeout, fd, len_buf, 4)) != 4) { ++ if ((cc = Read_fd_len_timeout(transfer_timeout, fd, (char*)len_buf, 4)) != 4) { + /* XXX can't read enough, pipe must have closed */ + return(0); + } diff --git a/net-print/lprng/files/lprng-3.8.28-lpq.diff b/net-print/lprng/files/lprng-3.8.28-lpq.diff new file mode 100644 index 00000000000..51fc500b34e --- /dev/null +++ b/net-print/lprng/files/lprng-3.8.28-lpq.diff @@ -0,0 +1,11 @@ +--- LPRng-3.8.28/src/common/lpq.c.orig 2004-09-24 22:19:58.000000000 +0200 ++++ LPRng-3.8.28/src/common/lpq.c 2006-06-26 15:42:57.000000000 +0200 +@@ -449,7 +449,7 @@ + if( (pid = dofork(0)) == 0 ){ + setuid( OriginalRUID ); + close_on_exec(3); +- execl(CLEAR,0); ++ execl(CLEAR, CLEAR, (char*) NULL); + exit(1); + } else if( pid < 0 ){ + LOGERR_DIE(LOG_ERR) _("fork() failed") ); diff --git a/net-print/lprng/files/lprng-3.8.28-make.diff b/net-print/lprng/files/lprng-3.8.28-make.diff new file mode 100644 index 00000000000..66c742dd994 --- /dev/null +++ b/net-print/lprng/files/lprng-3.8.28-make.diff @@ -0,0 +1,11 @@ +--- LPRng-3.8.28/Makefile.in.orig 2004-09-24 22:19:52.000000000 +0200 ++++ LPRng-3.8.28/Makefile.in 2006-06-27 09:26:13.000000000 +0200 +@@ -42,7 +42,7 @@ + LPD_CONF_PATH=\"@LPD_CONF_PATH@\" + PRINTCAP_PATH=\"@PRINTCAP_PATH@\" + LPD_PATH=\"@LPD_DIR@/lpd\" +-SHELL="@SHELL@" ++SHELL=@SHELL@ + LOCKFILE=\"@LOCKFILE@\" + CONFIG_SUBDIR="@CONFIG_SUBDIR@" + PSHOWALL="@PSHOWALL@" diff --git a/net-print/lprng/files/lprng-init b/net-print/lprng/files/lprng-init new file mode 100644 index 00000000000..992e7e7eb4a --- /dev/null +++ b/net-print/lprng/files/lprng-init @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need net +} + +checkconfig() { + if [ ! -e /etc/lprng/lpd.conf ] ; then + eerror "You need an /etc/lprng/lpd.conf file first" + eerror "There is a sample in /usr/share/doc/LPRng" + return 1 + fi + if [ ! -e /etc/lprng/printcap ] ; then + eerror "You need an /etc/lprng/printcap file first" + eerror "There is a sample in /usr/share/doc/LPRng" + return 1 + fi + if [ ! -e /etc/lprng/lpd.perms ] ; then + eerror "You need an /etc/lprng/lpd.perms file first" + eerror "There is a sample in /usr/share/doc/LPRng" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting lpd" + start-stop-daemon --start --pidfile "/var/run/lpd.515" --quiet --exec /usr/sbin/lpd + eend $? +} + +stop() { + ebegin "Stopping lpd" + start-stop-daemon --stop --pidfile "/var/run/lpd.515" --quiet --exec /usr/sbin/lpd + eend $? +} diff --git a/net-print/lprng/files/printcap b/net-print/lprng/files/printcap new file mode 100644 index 00000000000..500aec20c21 --- /dev/null +++ b/net-print/lprng/files/printcap @@ -0,0 +1,24 @@ +# /etc/printcap: printer capability database. +# $Id$ +# +# You can use the filter entries df, tf, cf, gf etc. for your +# own filters. See the printcap(5) manpage for more 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 |