Initialize Tizen 2.3
[external/bash.git] / debian / patches / deb-bash-config.dpatch
1 #! /bin/sh -e
2
3 if [ $# -eq 3 -a "$2" = '-d' ]; then
4     pdir="-d $3"
5 elif [ $# -ne 1 ]; then
6     echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
7     exit 1
8 fi
9 case "$1" in
10     -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
11     -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
12     *)
13         echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
14         exit 1
15 esac
16 exit 0
17
18 # DP: Changed compile time configuration options:
19 # DP: 
20 # DP: - Set the default path to comply with Debian policy
21 # DP: 
22 # DP: - Enable System-wide .bashrc file for interactive shells.
23 # DP: 
24 # DP: - Enable System-wide .bash.logout  file for interactive shells.
25 # DP: 
26 # DP: - make non-interactive shells begun with argv[0][0] == '-'
27 # DP:   run the startup files when not in posix mode.
28 # DP: 
29 # DP: - try to check whether bash is being run by sshd and source
30 # DP:   the .bashrc if so (like the rshd behavior).
31 # DP: 
32 # DP: - don't define a default DEFAULT_MAIL_DIRECTORY, because it
33 # DP:   can cause a timeout on NFS mounts.
34
35 --- bash/config-top.h.orig      2008-08-17 16:52:25.000000000 +0000
36 +++ bash/config-top.h   2008-11-29 17:35:03.000000000 +0000
37 @@ -54,14 +54,14 @@
38  /* The default value of the PATH variable. */
39  #ifndef DEFAULT_PATH_VALUE
40  #define DEFAULT_PATH_VALUE \
41 -  "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:."
42 +  "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
43  #endif
44  
45  /* The value for PATH when invoking `command -p'.  This is only used when
46     the Posix.2 confstr () function, or CS_PATH define are not present. */
47  #ifndef STANDARD_UTILS_PATH
48  #define STANDARD_UTILS_PATH \
49 -  "/bin:/usr/bin:/sbin:/usr/sbin:/etc:/usr/etc"
50 +  "/bin:/usr/bin:/sbin:/usr/sbin"
51  #endif
52  
53  /* Default primary and secondary prompt strings. */
54 @@ -75,20 +75,20 @@
55  #define KSH_COMPATIBLE_SELECT
56  
57  /* System-wide .bashrc file for interactive shells. */
58 -/* #define SYS_BASHRC "/etc/bash.bashrc" */
59 +#define SYS_BASHRC "/etc/bash.bashrc"
60  
61  /* System-wide .bash_logout for login shells. */
62 -/* #define SYS_BASH_LOGOUT "/etc/bash.bash_logout" */
63 +#define SYS_BASH_LOGOUT "/etc/bash.bash_logout"
64  
65  /* Define this to make non-interactive shells begun with argv[0][0] == '-'
66     run the startup files when not in posix mode. */
67 -/* #define NON_INTERACTIVE_LOGIN_SHELLS */
68 +#define NON_INTERACTIVE_LOGIN_SHELLS
69  
70  /* Define this if you want bash to try to check whether it's being run by
71     sshd and source the .bashrc if so (like the rshd behavior).  This checks
72     for the presence of SSH_CLIENT or SSH2_CLIENT in the initial environment,
73     which can be fooled under certain not-uncommon circumstances. */
74 -/* #define SSH_SOURCE_BASHRC */
75 +#define SSH_SOURCE_BASHRC
76  
77  /* Define if you want the case-capitalizing operators (~[~]) and the
78     `capcase' variable attribute (declare -c). */
79 --- bash/config-bot.h.orig      2008-08-17 16:52:02.000000000 +0000
80 +++ bash/config-bot.h   2008-11-29 17:32:42.000000000 +0000
81 @@ -192,4 +192,4 @@
82  /******************************************************************/
83  
84  /* If you don't want bash to provide a default mail file to check. */
85 -/* #undef DEFAULT_MAIL_DIRECTORY */
86 +#undef DEFAULT_MAIL_DIRECTORY