#
# Silicon Graphics - IRIX Configuration file
#

#
# Get the hostname, then make sure its fully qualified
#
$hostname   = `hostname`;
chop ($hostname);
($hostname) = gethostbyname($hostname);

#
# Get the OS version to base paths off of
#
$osversion = `uname -r`;
chop ($osversion);


###########################################################################
#
# IRIX Config Files - Same Defs Between Versions
#
$equiv      = "/etc/hosts.equiv";
$passwd     = "/etc/passwd";
$sendmailcf = "/etc/sendmail.cf";
$services   = "/etc/services";
$syslog     = "/etc/syslog.conf";
$fstab      = "/etc/fstab";
$ypconfig   = "/etc/config/yp";
$ypbindopt  = "/etc/config/ypbind.options";
$dict       = "/usr/lib/dict/words";
$sendmailop = "-bt -d0 < /dev/null";

@dot_files = ("/.cshrc","/.rhosts","/.Xauthority","/.profile","/.history",
		"/.login","/.forward","/.bashrc");
@tcpd_locations = ("/usr/site/etc/tcpd", "/usr/etc/tcpd", "/etc/tcpd");
@logs = ("/usr/adm/SYSLOG","/usr/adm/oSYSLOG");


###########################################################################
#
# IRIX Binaries - Same Defs Between Versions
#
$ps        = "/bin/ps -ef";
$strings   = "/bin/strings";
$fuser     = "/etc/fuser";
$xhost     = "/usr/bin/X11/xhost";
$netstat   = "/usr/etc/netstat -a";
$portmap   = "/usr/etc/portmap";
$rpcinfo   = "/usr/etc/rpcinfo";
$sendmail  = "/usr/lib/sendmail";


###########################################################################
#
# IRIX Version Specific Paths
#
if ($osversion =~ /^4/) {
	$inetd	    = "/usr/etc/inetd.conf";
	$domainname = "/usr/etc/yp/ypdomain";
	$xservers   = "/usr/lib/X11/xdm/Xservers";
	$xdmconfig  = "/usr/lib/X11/xdm/xdm-config";
	$logindef   = "/etc/config/login.options";
	$kernel      = "/usr/sysgen/master.d/master.c";

	$showmount  = "/etc/showmount";
	$ypcat	    = "/usr/bin/ypcat";
} else {
	$logindef   = "/etc/default/login";
	$sudef      = "/etc/default/su";
	$inetd      = "/etc/inetd.conf";
	$xservers   = "/var/X11/xdm/Xservers";
	$xdmconfig  = "/var/X11/xdm/xdm-config";
	$stune      = "/var/sysgen/stune";
	$domainname = "/var/yp/ypdomain";

	$rpcbind    = "/usr/etc/rpcbind";
	$showmount  = "/usr/sbin/showmount";
	$ypcat      = "/bin/ypcat";
}
