~ubuntu-branches/ubuntu/hoary/tor/hoary-backports

« back to all changes in this revision

Viewing changes to debian/patches/07_log_to_file_by_default.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Peter Palfrader
  • Date: 2005-01-04 11:14:03 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050104111403-ukxghb7fddw8vx01
Tags: 0.0.9.2-1
* New upstream version.
* Update debian/copyright (it's 2005).
* Add sharedscripts tor logrotate.d/tor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
## 07_log_to_file_by_default.dpatch by  <weasel@debian.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: No description.
 
6
 
 
7
if [ $# -lt 1 ]; then
 
8
    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
 
9
    exit 1
 
10
fi
 
11
 
 
12
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
 
13
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
 
14
 
 
15
case "$1" in
 
16
    -patch) patch -p1 ${patch_opts} < $0;;
 
17
    -unpatch) patch -R -p1 ${patch_opts} < $0;;
 
18
    *)
 
19
        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
 
20
        exit 1;;
 
21
esac
 
22
 
 
23
exit 0
 
24
 
 
25
@DPATCH@
 
26
diff -urNad tor-0.0.9rc7/src/or/config.c /tmp/dpep.BdF2iw/tor-0.0.9rc7/src/or/config.c
 
27
--- tor-0.0.9rc7/src/or/config.c        2004-12-08 13:20:28.111199142 +0100
 
28
+++ /tmp/dpep.BdF2iw/tor-0.0.9rc7/src/or/config.c       2004-12-08 13:22:08.294210420 +0100
 
29
@@ -1179,7 +1179,7 @@
 
30
 
 
31
   /* Special case if no options are given. */
 
32
   if (!options->Logs) {
 
33
-    options->Logs = config_line_prepend(NULL, "Log", "notice stdout");
 
34
+    options->Logs = config_line_prepend(NULL, "Log", "notice file /var/log/tor/log");
 
35
   }
 
36
 
 
37
   if (config_init_logs(options, 1)<0) /* Validate the log(s) */