--- etc/csh.cshrc +++ etc/csh.cshrc @@ -1,3 +1,6 @@ # $FreeBSD: src/etc/csh.cshrc,v 1.3 1999/08/27 23:23:40 peter Exp $ # # System-wide .cshrc file for csh(1). + +set history=511 +alias tset 'set noglob histchars=""; eval `/usr/bin/tset -s \!*`; unset noglob histchars' --- etc/login.conf +++ etc/login.conf @@ -26,8 +26,8 @@ :passwd_format=md5:\ :copyright=/etc/COPYRIGHT:\ :welcome=/etc/motd:\ - :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES:\ - :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin ~/bin:\ + :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,FTP_PASSIVE_MODE=YES,EDITOR=/usr/bin/vi,NNTPSERVER=news,CPU=FREEBSD,PAGER=less,LESS=-x8,SM_SAVE_DIR=~/.desk,ENV=~/.bashrc,GTK_RC_FILES=/usr/X11R6/etc/gtkrc:\ + :path=~/bin /usr/contrib/bin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin /bin /sbin /usr/games /usr/local/andrew/bin /usr/local/interviews/bin/FREEBSD:\ :nologin=/var/run/nologin:\ :cputime=unlimited:\ :datasize=unlimited:\ @@ -76,6 +76,8 @@ # Russian Users Accounts. Setup proper environment variables. # russian|Russian Users Accounts:\ + :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,EDITOR=/usr/bin/vi,FTP_PASSIVE_MODE=YES,NNTPSERVER=news,CPU=FREEBSD,PAGER=less,LESS=-x8,SM_SAVE_DIR=~/.desk,ENV=~/. bashrc,GTK_RC_FILES=/usr/X11R6/etc/gtkrc,LC_ALL=ru_RU.KOI8-R,XRACER_HOME=/usr/local/lib/xracer,TMPDIR=:\ + :passwordtime=90d:\ :charset=KOI8-R:\ :lang=ru_RU.KOI8-R:\ :tc=default: --- etc/sh.shrc +++ etc/sh.shrc @@ -0,0 +1,2 @@ +unset HISTFILE +alias tset='set noglob histchars=""; eval `/usr/bin/tset -s \!*`; unset noglob histchars' --- etc/csh.login +++ etc/csh.login @@ -4,12 +4,19 @@ # Uncomment this to give you the default 4.2 behavior, where disk # information is shown in K-Blocks # setenv BLOCKSIZE K +setenv TMPDIR `/usr/bin/mkinittmpdir` +setenv MANPATH `/usr/bin/manpath` +setenv INFOPATH '/usr/share/info:/usr/local/info:/compat/linux/usr/info' +setenv HTTP_AUTH 'basic:*' +setenv CVSROOT /home/CVShome +setenv FONTSERVER xfs:7100 + # # For the setting of languages and character sets please see # login.conf(5) and in particular the charset and lang options. # For full locales list check /usr/share/locale/* # # Read system messages -# msgs -f +msgs -f # Allow terminal messages -# mesg y +mesg y --- etc/profile +++ etc/profile @@ -5,6 +5,21 @@ # Uncomment this to give you the default 4.2 behavior, where disk # information is shown in K-Blocks # BLOCKSIZE=K; export BLOCKSIZE + +if [ "${TMPDIR+x}" ]; then + export TMPDIR=`/usr/bin/mkinittmpdir` +# Read system messages + /usr/bin/msgs -f +# Allow terminal messages + /usr/bin/mesg y +fi + +export MANPATH=`/usr/bin/manpath` +export INFOPATH='/usr/share/info:/usr/local/info:/compat/linux/usr/info' +export HTTP_AUTH='basic:*' +export CVSROOT=/home/CVShome +export FONTSERVER=xfs:7100 + # # For the setting of languages and character sets please see # login.conf(5) and in particular the charset and lang options. @@ -13,6 +28,6 @@ # on how to achieve more precise control of locale settings. # # Read system messages -# msgs -f +msgs -f # Allow terminal messages -# mesg y +mesg y --- etc/Makefile +++ etc/Makefile @@ -14,7 +14,7 @@ hosts hosts.allow hosts.equiv \ inetd.conf libalias.conf login.access login.conf mac.conf motd \ netconfig network.subr networks newsyslog.conf nsswitch.conf \ - phones profile protocols \ + phones profile protocols tmpdirrc sh.shrc \ rc rc.bsdextended rc.firewall rc.firewall6 rc.initdiskless \ rc.sendmail rc.shutdown \ rc.subr remote rpc services shells \ --- etc/tmpdirrc +++ etc/tmpdirrc @@ -0,0 +1,66 @@ +#!/bin/sh + +# If you want to execute this file every mkinittmpdir start set x bit +# and keep first string pointing to /bin/sh with possible arguments. +# TMPDIR, TMPDIRLINK, DELETED environment variables will be set properly +# for script execution, so place configuration after the script. +# If exit code of script will be not zero, then mkinittmpdir make another try. + +cashe_temp="${TMPDIR}/cache" +ns_home=~/".netscape" +cashe_orig="${ns_home}/cache" + +if [ \! "${cashe_temp}"/ -ef "${cashe_orig}"/ ];then + /bin/mkdir -p "${ns_home}" + if [ -h "${cashe_orig}" ]; then + /bin/rm -f "${cashe_orig}" + fi + if [ \! -e "${cashe_orig}" ]; then + /bin/mkdir -p "${cashe_temp}" + /bin/ln -s "${cashe_temp}" "${cashe_orig}" +fi; fi +exit 0 + +# If some parameter is not used than it will be taken from configuration +# file of less priority. If some parameter is not defined in some way or +# is not predefined (lowest priority config source) then parameter +# is undefined. No default values for most of parameters. + +# Disable execution of every script in config files +EXECUTE=no + +# Create subdir ${USER} or ${USER}_XXXXXX in TMPDIR if YES +# use exactly TMPDIR if NO +USER_SUBDIR=yes + +# Base directory for TMPDIR or TMPDIR exactly depends on USER_SUBDIR +# If can't create or select directory writable for user only, +# then fails and next try. +TMPDIR=/tmp + +# TMPDIR is mutable and unpredictable. Use TMPDIRLINK as stable TMPDIR +TMPDIRLINK=~/.desk/tmp + +# Does TMPDIRLINK used? +LINKED=yes + +# Garbage collector program. +# see ports/sysutils/deleted +#DELETED=/usr/local/bin/deleted + +################################ +# Garbage collector's parameters +################################ + +# Time to leave for files in TMPDIR. +# I think this value is about maximum for one session without a sleep +DELETED_-t= 2d12h +# Shorter TTL is better for such a task as view via ftptool +# or view archives or M$ .DOCs via HTTP browser +#DELETED_-t=30m + +# Garbage collector's nice +DELETED_-n =10 + +# Another collector's parameter +#DELETED_--some_flag = value for flag if appropriate