Fix some more environment nits in the kdm configuration templates, and
default to shutdown -p now for halting instead of shutdown -h now. No PORTREVISION bump since manual regeneration of kdm configuration would be required anyway. PR: 73844 Submitted by: Jose M Rodriguez <josemi@freebsd.jazztel.es>
This commit is contained in:
parent
3dc8987c71
commit
1ec5e3c20f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121436
11
x11/kde4-baseapps/files/patch-kdm-kfrontend-config.def
Normal file
11
x11/kde4-baseapps/files/patch-kdm-kfrontend-config.def
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdm/kfrontend/config.def.orig Thu Nov 11 20:47:50 2004
|
||||
+++ kdm/kfrontend/config.def Thu Nov 11 20:51:18 2004
|
||||
@@ -10,7 +10,7 @@
|
||||
# define HALT_CMD "/usr/sbin/shutdown -h now"
|
||||
# define REBOOT_CMD "/usr/sbin/shutdown -r now"
|
||||
#elif defined(BSD)
|
||||
-# define HALT_CMD "/sbin/shutdown -h now"
|
||||
+# define HALT_CMD "/sbin/shutdown -p now"
|
||||
# define REBOOT_CMD "/sbin/shutdown -r now"
|
||||
#elif defined(__SVR4)
|
||||
# define HALT_CMD "/usr/sbin/halt"
|
@ -1,5 +1,5 @@
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Thu Aug 5 20:57:04 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Wed Sep 15 18:18:11 2004
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Sun Oct 3 09:11:07 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Thu Nov 11 20:47:01 2004
|
||||
@@ -578,7 +578,7 @@
|
||||
"# by Xsetup usually.\n"
|
||||
"# This is not required if you use PAM with the pam_console module.\n"
|
||||
@ -20,14 +20,12 @@
|
||||
"\n"
|
||||
#ifdef _AIX
|
||||
"if [ -f /usr/lib/X11/xdm/sessreg ]; then\n"
|
||||
@@ -667,9 +667,7 @@ static const char def_session[] =
|
||||
" */csh|*/tcsh)\n"
|
||||
@@ -668,7 +668,7 @@
|
||||
" # [t]cshrc is always sourced automatically.\n"
|
||||
" # Note that sourcing csh.login after .cshrc is non-standard.\n"
|
||||
-" set -a\n"
|
||||
" set -a\n"
|
||||
-" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n"
|
||||
-" set +a\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c export'`\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login >& /dev/null; if (-f ~/.login) source ~/.login >& /dev/null; printenv | egrep -v \"^(TERM|SHLVL)=\"'`\n"
|
||||
" set +a\n"
|
||||
" ;;\n"
|
||||
" *) # Plain sh, ksh, and anything we don't know.\n"
|
||||
" [ -f /etc/profile ] && . /etc/profile\n"
|
||||
|
11
x11/kde4-runtime/files/patch-kdm-kfrontend-config.def
Normal file
11
x11/kde4-runtime/files/patch-kdm-kfrontend-config.def
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdm/kfrontend/config.def.orig Thu Nov 11 20:47:50 2004
|
||||
+++ kdm/kfrontend/config.def Thu Nov 11 20:51:18 2004
|
||||
@@ -10,7 +10,7 @@
|
||||
# define HALT_CMD "/usr/sbin/shutdown -h now"
|
||||
# define REBOOT_CMD "/usr/sbin/shutdown -r now"
|
||||
#elif defined(BSD)
|
||||
-# define HALT_CMD "/sbin/shutdown -h now"
|
||||
+# define HALT_CMD "/sbin/shutdown -p now"
|
||||
# define REBOOT_CMD "/sbin/shutdown -r now"
|
||||
#elif defined(__SVR4)
|
||||
# define HALT_CMD "/usr/sbin/halt"
|
@ -1,5 +1,5 @@
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Thu Aug 5 20:57:04 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Wed Sep 15 18:18:11 2004
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Sun Oct 3 09:11:07 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Thu Nov 11 20:47:01 2004
|
||||
@@ -578,7 +578,7 @@
|
||||
"# by Xsetup usually.\n"
|
||||
"# This is not required if you use PAM with the pam_console module.\n"
|
||||
@ -20,14 +20,12 @@
|
||||
"\n"
|
||||
#ifdef _AIX
|
||||
"if [ -f /usr/lib/X11/xdm/sessreg ]; then\n"
|
||||
@@ -667,9 +667,7 @@ static const char def_session[] =
|
||||
" */csh|*/tcsh)\n"
|
||||
@@ -668,7 +668,7 @@
|
||||
" # [t]cshrc is always sourced automatically.\n"
|
||||
" # Note that sourcing csh.login after .cshrc is non-standard.\n"
|
||||
-" set -a\n"
|
||||
" set -a\n"
|
||||
-" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n"
|
||||
-" set +a\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c export'`\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login >& /dev/null; if (-f ~/.login) source ~/.login >& /dev/null; printenv | egrep -v \"^(TERM|SHLVL)=\"'`\n"
|
||||
" set +a\n"
|
||||
" ;;\n"
|
||||
" *) # Plain sh, ksh, and anything we don't know.\n"
|
||||
" [ -f /etc/profile ] && . /etc/profile\n"
|
||||
|
11
x11/kde4-workspace/files/patch-kdm-kfrontend-config.def
Normal file
11
x11/kde4-workspace/files/patch-kdm-kfrontend-config.def
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdm/kfrontend/config.def.orig Thu Nov 11 20:47:50 2004
|
||||
+++ kdm/kfrontend/config.def Thu Nov 11 20:51:18 2004
|
||||
@@ -10,7 +10,7 @@
|
||||
# define HALT_CMD "/usr/sbin/shutdown -h now"
|
||||
# define REBOOT_CMD "/usr/sbin/shutdown -r now"
|
||||
#elif defined(BSD)
|
||||
-# define HALT_CMD "/sbin/shutdown -h now"
|
||||
+# define HALT_CMD "/sbin/shutdown -p now"
|
||||
# define REBOOT_CMD "/sbin/shutdown -r now"
|
||||
#elif defined(__SVR4)
|
||||
# define HALT_CMD "/usr/sbin/halt"
|
@ -1,5 +1,5 @@
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Thu Aug 5 20:57:04 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Wed Sep 15 18:18:11 2004
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Sun Oct 3 09:11:07 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Thu Nov 11 20:47:01 2004
|
||||
@@ -578,7 +578,7 @@
|
||||
"# by Xsetup usually.\n"
|
||||
"# This is not required if you use PAM with the pam_console module.\n"
|
||||
@ -20,14 +20,12 @@
|
||||
"\n"
|
||||
#ifdef _AIX
|
||||
"if [ -f /usr/lib/X11/xdm/sessreg ]; then\n"
|
||||
@@ -667,9 +667,7 @@ static const char def_session[] =
|
||||
" */csh|*/tcsh)\n"
|
||||
@@ -668,7 +668,7 @@
|
||||
" # [t]cshrc is always sourced automatically.\n"
|
||||
" # Note that sourcing csh.login after .cshrc is non-standard.\n"
|
||||
-" set -a\n"
|
||||
" set -a\n"
|
||||
-" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n"
|
||||
-" set +a\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c export'`\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login >& /dev/null; if (-f ~/.login) source ~/.login >& /dev/null; printenv | egrep -v \"^(TERM|SHLVL)=\"'`\n"
|
||||
" set +a\n"
|
||||
" ;;\n"
|
||||
" *) # Plain sh, ksh, and anything we don't know.\n"
|
||||
" [ -f /etc/profile ] && . /etc/profile\n"
|
||||
|
11
x11/kdebase3/files/patch-kdm-kfrontend-config.def
Normal file
11
x11/kdebase3/files/patch-kdm-kfrontend-config.def
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdm/kfrontend/config.def.orig Thu Nov 11 20:47:50 2004
|
||||
+++ kdm/kfrontend/config.def Thu Nov 11 20:51:18 2004
|
||||
@@ -10,7 +10,7 @@
|
||||
# define HALT_CMD "/usr/sbin/shutdown -h now"
|
||||
# define REBOOT_CMD "/usr/sbin/shutdown -r now"
|
||||
#elif defined(BSD)
|
||||
-# define HALT_CMD "/sbin/shutdown -h now"
|
||||
+# define HALT_CMD "/sbin/shutdown -p now"
|
||||
# define REBOOT_CMD "/sbin/shutdown -r now"
|
||||
#elif defined(__SVR4)
|
||||
# define HALT_CMD "/usr/sbin/halt"
|
@ -1,5 +1,5 @@
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Thu Aug 5 20:57:04 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Wed Sep 15 18:18:11 2004
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Sun Oct 3 09:11:07 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Thu Nov 11 20:47:01 2004
|
||||
@@ -578,7 +578,7 @@
|
||||
"# by Xsetup usually.\n"
|
||||
"# This is not required if you use PAM with the pam_console module.\n"
|
||||
@ -20,14 +20,12 @@
|
||||
"\n"
|
||||
#ifdef _AIX
|
||||
"if [ -f /usr/lib/X11/xdm/sessreg ]; then\n"
|
||||
@@ -667,9 +667,7 @@ static const char def_session[] =
|
||||
" */csh|*/tcsh)\n"
|
||||
@@ -668,7 +668,7 @@
|
||||
" # [t]cshrc is always sourced automatically.\n"
|
||||
" # Note that sourcing csh.login after .cshrc is non-standard.\n"
|
||||
-" set -a\n"
|
||||
" set -a\n"
|
||||
-" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n"
|
||||
-" set +a\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c export'`\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login >& /dev/null; if (-f ~/.login) source ~/.login >& /dev/null; printenv | egrep -v \"^(TERM|SHLVL)=\"'`\n"
|
||||
" set +a\n"
|
||||
" ;;\n"
|
||||
" *) # Plain sh, ksh, and anything we don't know.\n"
|
||||
" [ -f /etc/profile ] && . /etc/profile\n"
|
||||
|
11
x11/kdebase4-runtime/files/patch-kdm-kfrontend-config.def
Normal file
11
x11/kdebase4-runtime/files/patch-kdm-kfrontend-config.def
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdm/kfrontend/config.def.orig Thu Nov 11 20:47:50 2004
|
||||
+++ kdm/kfrontend/config.def Thu Nov 11 20:51:18 2004
|
||||
@@ -10,7 +10,7 @@
|
||||
# define HALT_CMD "/usr/sbin/shutdown -h now"
|
||||
# define REBOOT_CMD "/usr/sbin/shutdown -r now"
|
||||
#elif defined(BSD)
|
||||
-# define HALT_CMD "/sbin/shutdown -h now"
|
||||
+# define HALT_CMD "/sbin/shutdown -p now"
|
||||
# define REBOOT_CMD "/sbin/shutdown -r now"
|
||||
#elif defined(__SVR4)
|
||||
# define HALT_CMD "/usr/sbin/halt"
|
@ -1,5 +1,5 @@
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Thu Aug 5 20:57:04 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Wed Sep 15 18:18:11 2004
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Sun Oct 3 09:11:07 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Thu Nov 11 20:47:01 2004
|
||||
@@ -578,7 +578,7 @@
|
||||
"# by Xsetup usually.\n"
|
||||
"# This is not required if you use PAM with the pam_console module.\n"
|
||||
@ -20,14 +20,12 @@
|
||||
"\n"
|
||||
#ifdef _AIX
|
||||
"if [ -f /usr/lib/X11/xdm/sessreg ]; then\n"
|
||||
@@ -667,9 +667,7 @@ static const char def_session[] =
|
||||
" */csh|*/tcsh)\n"
|
||||
@@ -668,7 +668,7 @@
|
||||
" # [t]cshrc is always sourced automatically.\n"
|
||||
" # Note that sourcing csh.login after .cshrc is non-standard.\n"
|
||||
-" set -a\n"
|
||||
" set -a\n"
|
||||
-" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n"
|
||||
-" set +a\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c export'`\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login >& /dev/null; if (-f ~/.login) source ~/.login >& /dev/null; printenv | egrep -v \"^(TERM|SHLVL)=\"'`\n"
|
||||
" set +a\n"
|
||||
" ;;\n"
|
||||
" *) # Plain sh, ksh, and anything we don't know.\n"
|
||||
" [ -f /etc/profile ] && . /etc/profile\n"
|
||||
|
11
x11/kdebase4-workspace/files/patch-kdm-kfrontend-config.def
Normal file
11
x11/kdebase4-workspace/files/patch-kdm-kfrontend-config.def
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdm/kfrontend/config.def.orig Thu Nov 11 20:47:50 2004
|
||||
+++ kdm/kfrontend/config.def Thu Nov 11 20:51:18 2004
|
||||
@@ -10,7 +10,7 @@
|
||||
# define HALT_CMD "/usr/sbin/shutdown -h now"
|
||||
# define REBOOT_CMD "/usr/sbin/shutdown -r now"
|
||||
#elif defined(BSD)
|
||||
-# define HALT_CMD "/sbin/shutdown -h now"
|
||||
+# define HALT_CMD "/sbin/shutdown -p now"
|
||||
# define REBOOT_CMD "/sbin/shutdown -r now"
|
||||
#elif defined(__SVR4)
|
||||
# define HALT_CMD "/usr/sbin/halt"
|
@ -1,5 +1,5 @@
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Thu Aug 5 20:57:04 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Wed Sep 15 18:18:11 2004
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Sun Oct 3 09:11:07 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Thu Nov 11 20:47:01 2004
|
||||
@@ -578,7 +578,7 @@
|
||||
"# by Xsetup usually.\n"
|
||||
"# This is not required if you use PAM with the pam_console module.\n"
|
||||
@ -20,14 +20,12 @@
|
||||
"\n"
|
||||
#ifdef _AIX
|
||||
"if [ -f /usr/lib/X11/xdm/sessreg ]; then\n"
|
||||
@@ -667,9 +667,7 @@ static const char def_session[] =
|
||||
" */csh|*/tcsh)\n"
|
||||
@@ -668,7 +668,7 @@
|
||||
" # [t]cshrc is always sourced automatically.\n"
|
||||
" # Note that sourcing csh.login after .cshrc is non-standard.\n"
|
||||
-" set -a\n"
|
||||
" set -a\n"
|
||||
-" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n"
|
||||
-" set +a\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c export'`\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login >& /dev/null; if (-f ~/.login) source ~/.login >& /dev/null; printenv | egrep -v \"^(TERM|SHLVL)=\"'`\n"
|
||||
" set +a\n"
|
||||
" ;;\n"
|
||||
" *) # Plain sh, ksh, and anything we don't know.\n"
|
||||
" [ -f /etc/profile ] && . /etc/profile\n"
|
||||
|
11
x11/kdebase4/files/patch-kdm-kfrontend-config.def
Normal file
11
x11/kdebase4/files/patch-kdm-kfrontend-config.def
Normal file
@ -0,0 +1,11 @@
|
||||
--- kdm/kfrontend/config.def.orig Thu Nov 11 20:47:50 2004
|
||||
+++ kdm/kfrontend/config.def Thu Nov 11 20:51:18 2004
|
||||
@@ -10,7 +10,7 @@
|
||||
# define HALT_CMD "/usr/sbin/shutdown -h now"
|
||||
# define REBOOT_CMD "/usr/sbin/shutdown -r now"
|
||||
#elif defined(BSD)
|
||||
-# define HALT_CMD "/sbin/shutdown -h now"
|
||||
+# define HALT_CMD "/sbin/shutdown -p now"
|
||||
# define REBOOT_CMD "/sbin/shutdown -r now"
|
||||
#elif defined(__SVR4)
|
||||
# define HALT_CMD "/usr/sbin/halt"
|
@ -1,5 +1,5 @@
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Thu Aug 5 20:57:04 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Wed Sep 15 18:18:11 2004
|
||||
--- kdm/kfrontend/genkdmconf.c.orig Sun Oct 3 09:11:07 2004
|
||||
+++ kdm/kfrontend/genkdmconf.c Thu Nov 11 20:47:01 2004
|
||||
@@ -578,7 +578,7 @@
|
||||
"# by Xsetup usually.\n"
|
||||
"# This is not required if you use PAM with the pam_console module.\n"
|
||||
@ -20,14 +20,12 @@
|
||||
"\n"
|
||||
#ifdef _AIX
|
||||
"if [ -f /usr/lib/X11/xdm/sessreg ]; then\n"
|
||||
@@ -667,9 +667,7 @@ static const char def_session[] =
|
||||
" */csh|*/tcsh)\n"
|
||||
@@ -668,7 +668,7 @@
|
||||
" # [t]cshrc is always sourced automatically.\n"
|
||||
" # Note that sourcing csh.login after .cshrc is non-standard.\n"
|
||||
-" set -a\n"
|
||||
" set -a\n"
|
||||
-" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v \"^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)=\"'`\n"
|
||||
-" set +a\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c export'`\n"
|
||||
+" eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login >& /dev/null; if (-f ~/.login) source ~/.login >& /dev/null; printenv | egrep -v \"^(TERM|SHLVL)=\"'`\n"
|
||||
" set +a\n"
|
||||
" ;;\n"
|
||||
" *) # Plain sh, ksh, and anything we don't know.\n"
|
||||
" [ -f /etc/profile ] && . /etc/profile\n"
|
||||
|
Loading…
Reference in New Issue
Block a user