Bug#128027: patch to fix man path problems

2002-04-22 Thread dean gaudet
this patch fixes the problem for me.  i also removed the catman pages
since elm-me+ appears to be the only package on my entire system that
installed /usr/share/man/cat* pages...

-dean

diff -ru elm-me+-2.4pl25ME+95/Configure elm-me+-2.4pl25ME+95.dg1/Configure
--- elm-me+-2.4pl25ME+95/Configure  Mon Apr 22 20:31:58 2002
+++ elm-me+-2.4pl25ME+95.dg1/Configure  Mon Apr 22 20:25:36 2002
@@ -347,8 +347,8 @@
 maildir=''
 mailer=''
 mailgrp=''
-mansrc='/usr/share/man'
-catmansrc=''
+mansrc='/usr/share/man/man1'
+catmansrc='none'
 manext=''
 manext_choice=''
 catmanext=''
diff -ru elm-me+-2.4pl25ME+95/debian/changelog 
elm-me+-2.4pl25ME+95.dg1/debian/changelog
--- elm-me+-2.4pl25ME+95/debian/changelog   Mon Apr 22 20:31:58 2002
+++ elm-me+-2.4pl25ME+95.dg1/debian/changelog   Mon Apr 22 20:31:39 2002
@@ -1,3 +1,11 @@
+elm-me+ (2.4pl25ME+95-3.dg1) unstable; urgency=low
+
+  * fix bug#128027 -- man pages installed in wrong directory
+  * remove the cat man pages... since it doesn't appear like any
+other packages install cat pages
+
+ -- dean gaudet <[EMAIL PROTECTED]>  Mon, 22 Apr 2002 20:30:48 -0700
+
 elm-me+ (2.4pl25ME+95-3) unstable; urgency=low

   * Orphaning this package, setting maintainer to QA.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#144156: improper LIB path in man pages

2002-04-23 Thread dean gaudet
Package: elm-me+
Version: 2.4pl25ME+95-3

see also 128027 for another man page problem -- which you'll need to apply
the fix for before you can type "man elm" to see the problem i'm
describing here.

the man page substition in doc/Makefile for the LIB path ends up including
the temporary install path used to build the binary .deb.  for example,
"man elm" contains stuff such as:

   /root/elm/elm-me+-2.4pl25ME+95.dg1/debian/tmp/usr/lib/elm-me+/elm.rc 
customized mailer parameters
   
/root/elm/elm-me+-2.4pl25ME+95.dg1/debian/tmp/usr/lib/elm-me+/elm.mimecharsets 
locale to MIME  charsets  mapĀ­
   ping information
   
/root/elm/elm-me+-2.4pl25ME+95.dg1/debian/tmp/usr/lib/elm-me+/elm.terminalinfo 
display   charset  switching
   method for terminals
...

whereas it should be referring to just /lib/elm-me+/elm.rc, etc.

there's two problems here -- one is that the substitution in doc/Makefile
uses LIB which has the temp binary path prepended to it.

the other is that "./debian/rules clean" should remove the doc/*.subs
file.

the patch below fixes both problems.  note that i didn't bother to include
the patch differences which would remove doc/*.subs since that would have
made the patch huge.

-dean

diff -ru elm-me+-2.4pl25ME+95.dg1/debian/changelog 
elm-me+-2.4pl25ME+95.dg2/debian/changelog
--- elm-me+-2.4pl25ME+95.dg1/debian/changelog   Mon Apr 22 21:13:10 2002
+++ elm-me+-2.4pl25ME+95.dg2/debian/changelog   Mon Apr 22 21:15:23 2002
@@ -1,3 +1,12 @@
+elm-me+ (2.4pl25ME+95-3.dg2) unstable; urgency=low
+
+  * doc/*.subs files should be cleaned as well, they don't belong
+in the source archive
+  * when building doc/*.subs files we should use the LIB without
+the temporary install prefix
+
+ -- dean gaudet <[EMAIL PROTECTED]>  Mon, 22 Apr 2002 21:14:34 -0700
+
 elm-me+ (2.4pl25ME+95-3.dg1) unstable; urgency=low

   * fix bug#128027 -- man pages installed in wrong directory
diff -ru elm-me+-2.4pl25ME+95.dg1/debian/rules 
elm-me+-2.4pl25ME+95.dg2/debian/rules
--- elm-me+-2.4pl25ME+95.dg1/debian/rules   Mon Apr 22 20:31:58 2002
+++ elm-me+-2.4pl25ME+95.dg2/debian/rules   Mon Apr 22 21:07:52 2002
@@ -36,7 +36,7 @@
-rm -f hdrs/sysdefs.h
-rm -f ChangeLog.install
-rm -fr bin/*
-   -rm -fr doc/catman doc/*.fmtd
+   -rm -fr doc/catman doc/*.fmtd doc/*.subs
-rm -fr UU config.sh
-chmod -R u+rw *

diff -ru elm-me+-2.4pl25ME+95.dg1/doc/Makefile.SH 
elm-me+-2.4pl25ME+95.dg2/doc/Makefile.SH
--- elm-me+-2.4pl25ME+95.dg1/doc/Makefile.SHMon Apr 22 20:31:58 2002
+++ elm-me+-2.4pl25ME+95.dg2/doc/Makefile.SHMon Apr 22 21:10:13 2002
@@ -33,6 +33,7 @@
 FORMATTER  =   $roff
 FORMATTER_OPTS =   $roffopts
 LIB=   \$(DESTDIR)$lib
+REALLIB=   $lib
 LN =   $ln
 MAKE   =   $make
 MAN=   \$(DESTDIR)$mansrc
@@ -142,37 +143,37 @@
 clean:

 elm.1.subs: elm.1
-   $(SED) 's"#LIB#"$(LIB)"g;' < elm.1 > elm.1.subs
+   $(SED) 's"#LIB#"$(REALLIB)"g;' < elm.1 > elm.1.subs
 answer.1.subs: answer.1
-   $(SED) 's"#LIB#"$(LIB)"g;' < answer.1 > answer.1.subs
+   $(SED) 's"#LIB#"$(REALLIB)"g;' < answer.1 > answer.1.subs
 chkalias.1.subs: chkalias.1
-   $(SED) 's"#LIB#"$(LIB)"g;' < chkalias.1 > chkalias.1.subs
+   $(SED) 's"#LIB#"$(REALLIB)"g;' < chkalias.1 > chkalias.1.subs
 elmalias.1.subs: elmalias.1
-   $(SED) 's"#LIB#"$(LIB)"g;' < elmalias.1 > elmalias.1.subs
+   $(SED) 's"#LIB#"$(REALLIB)"g;' < elmalias.1 > elmalias.1.subs
 elmcharset.1.subs: elmcharset.1
-   $(SED) 's"#LIB#"$(LIB)"g;' < elmcharset.1 > elmcharset.1.subs
+   $(SED) 's"#LIB#"$(REALLIB)"g;' < elmcharset.1 > elmcharset.1.subs
 elmrc-write.1.subs: elmrc-write.1
-   $(SED) 's"#LIB#"$(LIB)"g;' < elmrc-write.1 > elmrc-write.1.subs
+   $(SED) 's"#LIB#"$(REALLIB)"g;' < elmrc-write.1 > elmrc-write.1.subs
 elmterminal.1.subs: elmterminal.1
-   $(SED) 's"#LIB#"$(LIB)"g;' < elmterminal.1 > elmterminal.1.subs
+   $(SED) 's"#LIB#"$(REALLIB)"g;' < elmterminal.1 > elmterminal.1.subs
 elmunidata.1.subs: elmunidata.1
-   $(SED) 's"#LIB#"$(LIB)"g;' < elmunidata.1 > elmunidata.1.subs
+   $(SED) 's"#LIB#"$(REALLIB)"g;' < elmunidata.1 > elmunidata.1.subs
 fastmail.1.subs: fastmail.1
-   $(SED) 's"#LIB#"$(LIB)"g;' < fastmail.1 > fastmail.1.subs
+   $(SED) 's"#

Bug#406949: reduce cron job noise

2007-01-15 Thread dean gaudet
Package: htdig
Version: 1:3.2.0b6-3

i'd rather not get this message every day from cron:

/etc/cron.daily/htdig:
/etc/cron.daily/htdig: line 22:  1723 Terminated  lockfile-touch 
/var/run/htdig.cron

the patch below should quiet things.

-dean

--- etc/cron.daily/htdig.dpkg-orig  2006-10-01 09:40:22.0 -0700
+++ etc/cron.daily/htdig2007-01-15 00:29:51.0 -0800
@@ -18,5 +18,5 @@
fi
 fi
 
-kill "${BADGER}"
+kill "${BADGER}" >/dev/null 2>&1
 lockfile-remove /var/run/htdig.cron


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#277044: "--restrict-read-only /" should permit subpaths

2004-10-18 Thread dean gaudet
Package: rdiff-backup
Version: 0.13.4-3

"rdiff-backup --server --restrict-read-only /tmp" permits backups of 
/tmp/foo -- this is expected according to the docs.

"rdiff-backup --server --restrict-read-only /" does not permit backups of 
any subdirectory -- this looks like an oversight, the docs imply it should 
work.  the patch below fixes this behaviour.

-dean

--- rdiff-backup-0.13.4/rdiff_backup/Security.py.dg12004-06-04 
09:59:22.0 -0700
+++ rdiff-backup-0.13.4/rdiff_backup/Security.py2004-10-17 
23:52:14.0 -0700
@@ -195,6 +195,7 @@
"""Require rpath not to step outside retricted directory"""
if Globals.restrict_path and rpath.conn is Globals.local_connection:
normalized, restrict = rpath.normalize().path, 
Globals.restrict_path
+   if restrict == "/": return
components = normalized.split("/")
# 3 cases for restricted dir /usr/foo:  /var, /usr/foobar, 
/usr/foo/..
if (not normalized.startswith(restrict) or