[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#474295: marked as done (lprng: minor correction / improvement for /etc/init.d/lprng )



Your message dated Wed, 07 May 2008 09:02:02 +0000
with message-id <E1JtfXG-0005cN-GQ@ries.debian.org>
and subject line Bug#474295: fixed in lprng 3.8.A-1
has caused the Debian Bug report #474295,
regarding lprng: minor correction / improvement for /etc/init.d/lprng 
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
474295: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=474295
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: lprng
Version: 3.8.A~rc4-3
Severity: minor

Dear Craig,

acting on your advice, I submit the following as a new minor bug.

In the script /etc/init.d/lprng I would replace the line

LPD_PORT=$(grep "^[[:space:]]*lpd_port" $CONFIGDIR/lpd.conf | cut -d "=" -f 2)

by

LPD_PORT=$(sed '/^[[:space:]]*lpd_port/!d; s/.*[=#]\(.*\)/\1/; q' $CONFIGDIR/lpd.conf)

and, accordingly, the line

LOCKFILE=$(grep "^[[:space:]]*lockfile" $CONFIGDIR/lpd.conf | cut -d "=" -f 2)

by

LOCKFILE=$(sed '/^[[:space:]]*lockfile/!d; s/.*[=#]\(.*\)/\1/; q' $CONFIGDIR/lpd.conf)

This has three advantages:
1) The syntax as described in the manual page lpd.conf(5) is
   better satisfied, as it also allows lines like
      lpd_port#505
   similar to the syntax of printcap files.
2) In case there is more than one matching line only the first
   one is used and the result doesn't contain a newline.
3) There is no need to call two external programs (no dependency on grep anymore)
   and connect them with a pipe.

--
Regards,
Jörg-Volker.





--- End Message ---
--- Begin Message ---
Source: lprng
Source-Version: 3.8.A-1

We believe that the bug you reported is fixed in the latest version of
lprng, which is due to be installed in the Debian FTP archive:

lprng_3.8.A-1.diff.gz
  to pool/main/l/lprng/lprng_3.8.A-1.diff.gz
lprng_3.8.A-1.dsc
  to pool/main/l/lprng/lprng_3.8.A-1.dsc
lprng_3.8.A-1_i386.deb
  to pool/main/l/lprng/lprng_3.8.A-1_i386.deb
lprng_3.8.A.orig.tar.gz
  to pool/main/l/lprng/lprng_3.8.A.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 474295@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Craig Small <csmall@debian.org> (supplier of updated lprng package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 07 May 2008 18:47:20 +1000
Source: lprng
Binary: lprng
Architecture: source i386
Version: 3.8.A-1
Distribution: unstable
Urgency: low
Maintainer: Craig Small <csmall@debian.org>
Changed-By: Craig Small <csmall@debian.org>
Description: 
 lprng      - lpr/lpd printer spooling system
Closes: 463578 474295 474813
Changes: 
 lprng (3.8.A-1) unstable; urgency=low
 .
   * New upstream release
   * Moved debconf include in preinst Closes: #474813
   * if-up script uses correct path for invole-rc.d Closes: #463578
   * init.d file uses sed instead of grep and cut Closes: #474295
Files: 
 e536c3e77f3b7dd53f2c51038eea956d 700 net extra lprng_3.8.A-1.dsc
 506658be759aa0333149f8cb8be2b8bf 981496 net extra lprng_3.8.A.orig.tar.gz
 23347d0821750f7465622bdb9a0ab05b 29714 net extra lprng_3.8.A-1.diff.gz
 94505c16139a504c8c777158a6f7f03d 1041790 net extra lprng_3.8.A-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIIW26x2zlrBLK36URAgKnAJ9NVjVwtFwm2H0XgnojK51H+CI+wQCeItP9
7NRfcY+FuLPe7PvAlACDvgg=
=xWae
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: