2
## 08_linux_specifics.dpatch by Joshua Kwan <joshk@triplehelix.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Debian (and Linux) specifics defined in unixconf.h.
8
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
12
-patch) patch -f --no-backup-if-mismatch -p1 < $0;;
13
-unpatch) patch -f --no-backup-if-mismatch -R -p1 < $0;;
15
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
21
--- nethack-3.4.1.orig/include/unixconf.h
22
+++ nethack-3.4.1/include/unixconf.h
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 */
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.
42
-/* #define VAR_PLAYGROUND "/var/lib/games/nethack" */
43
+#define VAR_PLAYGROUND "/var/games/nethack"
48
* "extra output" method is used, but not all systems provide access to
49
* a fine-grained timer.
51
-/* #define TIMED_DELAY */ /* usleep() */
52
+#define TIMED_DELAY /* usleep() */
58
/* #define NO_MAILREADER */ /* have mail daemon just tell player of mail */
62
# if defined(BSD) || defined(ULTRIX)
64
#define AMS_MAILBOX "/Mailbox"
69
-#define DEF_MAILREADER "/bin/mail"
70
+/* Debian mail reader is /usr/bin/mail, not /bin/mail */
71
+#define DEF_MAILREADER "/usr/bin/mail"
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
78
# if !defined(MAILPATH) && defined(AMS) /* Just a placeholder for AMS */
79
# define MAILPATH "/dev/null"
81
-# if !defined(MAILPATH) && (defined(LINUX) || defined(__osf__))
82
+# if !defined(MAILPATH) && defined(__osf__)
83
# define MAILPATH "/var/spool/mail/"
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/"
90
# if !defined(MAILPATH) && (defined(BSD) || defined(ULTRIX))