[23354] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r23008 - trunk/debathena/third/lprng

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Fri Jun 6 00:47:10 2008

Date: Fri, 6 Jun 2008 00:46:57 -0400 (EDT)
From: ghudson@MIT.EDU
Message-Id: <200806060446.AAA14426@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: ghudson
Date: 2008-06-06 00:46:56 -0400 (Fri, 06 Jun 2008)
New Revision: 23008

Modified:
   trunk/debathena/third/lprng/debathenify-lprng
Log:
Fold the functionality of debathena-lprng-no-server-config into
debathenify-lprng by fixing the cron job when debathenifying the
package.


Modified: trunk/debathena/third/lprng/debathenify-lprng
===================================================================
--- trunk/debathena/third/lprng/debathenify-lprng	2008-06-05 19:59:01 UTC (rev 23007)
+++ trunk/debathena/third/lprng/debathenify-lprng	2008-06-06 04:46:56 UTC (rev 23008)
@@ -62,6 +62,13 @@
     done
     perl -pe 's/templates/debathena-lprng.templates/' -i debian/po/POTFILES.in
 
+    # lprng's cron job generates mail to root each day if you're not
+    # running a server.  Fix this problem by making the cron script
+    # conditional on the existence of /etc/printcap, just as the
+    # init.d script is.
+    perl -ne 'print; /#.*main/ && print "[ -f /etc/printcap ] || exit 0\n";' \
+      -i debian/debathena-lprng.cron.daily
+
     append_description <<EOF
  .
  This package was rebuilt for the Debian-Athena project to rename the


home help back first fref pref prev next nref lref last post