[23362] in Source-Commits

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

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

daemon@ATHENA.MIT.EDU (ghudson@MIT.EDU)
Mon Jun 9 12:02:00 2008

Date: Mon, 9 Jun 2008 12:01:30 -0400 (EDT)
From: ghudson@MIT.EDU
Message-Id: <200806091601.MAA00770@drugstore.mit.edu>
To: source-commits@MIT.EDU
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: ghudson
Date: 2008-06-09 12:01:29 -0400 (Mon, 09 Jun 2008)
New Revision: 23016

Modified:
   trunk/debathena/third/lprng/debathenify-lprng
Log:
In debathenify-lprng, adjust the postinst script to take into account
the renamed commands.


Modified: trunk/debathena/third/lprng/debathenify-lprng
===================================================================
--- trunk/debathena/third/lprng/debathenify-lprng	2008-06-09 15:28:55 UTC (rev 23015)
+++ trunk/debathena/third/lprng/debathenify-lprng	2008-06-09 16:01:29 UTC (rev 23016)
@@ -2,7 +2,7 @@
 set -e
 
 name=lprng
-daversionappend=debathena1
+daversionappend=debathena2
 
 hack_package () {
     # Rename the package and make it not conflict with cupsys-bsd.
@@ -54,6 +54,11 @@
 	}
 EOS
 
+    # The postinst script sets or unsets the setuid bit of
+    # lpr/lprm/lpq and thus needs to be adjusted for the command
+    # renaming.
+    perl -pe 's|/usr/bin/lp|/usr/bin/mit-lp|' -i debian/postinst
+
     # The renamed binary package no longer matches the source package
     # name, so we have to rename a bunch of debhelper files.
     for f in config cron.daily dirs examples init.d mime postinst postrm \


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