~ubuntu-branches/ubuntu/intrepid/nethack/intrepid

« back to all changes in this revision

Viewing changes to debian/patches/08_linux_specifics.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Joshua Kwan
  • Date: 2004-04-28 22:20:28 UTC
  • Revision ID: james.westby@ubuntu.com-20040428222028-ir8ahbbxi1jcot2d
Tags: 3.4.3-5
* Add Catalan translation (Closes: #248734)
* Patch work:
  - 91_enh_menucolors: Fix Pasi Kallinen's email address. pk -> pkalli
  - 19_gnome_ext_events (new): Fix a problem in Gnomehack where mouse click
    events in the extended menu would not be handled (thus a certain
    choice might be chosen, but a different one 'picked' by the code).
    (Closes: #246265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh -e
 
2
## 08_linux_specifics.dpatch by Joshua Kwan <joshk@triplehelix.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Debian (and Linux) specifics defined in unixconf.h.
 
6
 
 
7
if [ $# -ne 1 ]; then
 
8
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
9
    exit 1
 
10
fi
 
11
case "$1" in
 
12
    -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
 
13
    -unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
 
14
    *)
 
15
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
 
16
        exit 1;;
 
17
esac
 
18
 
 
19
exit 0
 
20
 
 
21
--- nethack-3.4.1.orig/include/unixconf.h
 
22
+++ nethack-3.4.1/include/unixconf.h
 
23
@@ -32,12 +32,12 @@
 
24
 
 
25
 
 
26
 /* define any of the following that are appropriate */
 
27
-#define SVR4           /* use in addition to SYSV for System V Release 4 */
 
28
+/* #define SVR4        */      /* use in addition to SYSV for System V Release 4 */
 
29
                        /* including Solaris 2+ */
 
30
 #define NETWORK                /* if running on a networked system */
 
31
                        /* e.g. Suns sharing a playground through NFS */
 
32
 /* #define SUNOS4 */   /* SunOS 4.x */
 
33
-/* #define LINUX */    /* Another Unix clone */
 
34
+#define LINUX  /* Another Unix clone */
 
35
 /* #define CYGWIN32 */ /* Unix on Win32 -- use with case sensitive defines */
 
36
 /* #define GENIX */    /* Yet Another Unix Clone */
 
37
 /* #define HISX */     /* Bull Unix for XPS Machines */
 
38
@@ -102,7 +102,7 @@
 
39
  * If you want the static parts of your playground on a read-only file
 
40
  * system, define VAR_PLAYGROUND to be where the variable parts are kept.
 
41
  */
 
42
-/* #define VAR_PLAYGROUND "/var/lib/games/nethack" */
 
43
+#define VAR_PLAYGROUND "/var/games/nethack"
 
44
 
 
45
 
 
46
 /*
 
47
@@ -132,7 +132,7 @@
 
48
  * "extra output" method is used, but not all systems provide access to
 
49
  * a fine-grained timer.
 
50
  */
 
51
-/* #define TIMED_DELAY */      /* usleep() */
 
52
+#define TIMED_DELAY    /* usleep() */
 
53
 #endif
 
54
 
 
55
 /*
 
56
@@ -166,7 +166,7 @@
 
57
 
 
58
 /* #define NO_MAILREADER */    /* have mail daemon just tell player of mail */
 
59
 
 
60
-#ifdef MAIL
 
61
+#ifdef MAIL
 
62
 # if defined(BSD) || defined(ULTRIX)
 
63
 #  ifdef AMS
 
64
 #define AMS_MAILBOX    "/Mailbox"
 
65
@@ -185,7 +185,8 @@
 
66
 #   endif
 
67
 #  endif
 
68
 # else
 
69
-#define DEF_MAILREADER "/bin/mail"
 
70
+/* Debian mail reader is /usr/bin/mail, not /bin/mail */
 
71
+#define DEF_MAILREADER "/usr/bin/mail"
 
72
 # endif
 
73
 #endif
 
74
 
 
75
--- a/src/mail.c~       2003-10-06 18:50:29.000000000 -0700
 
76
+++ b/src/mail.c        2003-10-06 18:51:07.000000000 -0700
 
77
@@ -68,10 +68,11 @@
 
78
 # if !defined(MAILPATH) && defined(AMS)        /* Just a placeholder for AMS */
 
79
 #  define MAILPATH "/dev/null"
 
80
 # endif
 
81
-# if !defined(MAILPATH) && (defined(LINUX) || defined(__osf__))
 
82
+# if !defined(MAILPATH) && defined(__osf__)
 
83
 #  define MAILPATH "/var/spool/mail/"
 
84
 # endif
 
85
-# if !defined(MAILPATH) && defined(__FreeBSD__)
 
86
+/* Debian uses /var/mail, too. */
 
87
+# if !defined(MAILPATH) && (defined(__FreeBSD__) || defined(LINUX))
 
88
 #  define MAILPATH "/var/mail/"
 
89
 # endif
 
90
 # if !defined(MAILPATH) && (defined(BSD) || defined(ULTRIX))