Remove NetBSD-related files
This commit is contained in:
parent
263125df20
commit
ffcca5f234
|
|
@ -1,129 +0,0 @@
|
|||
# $NetBSD: Makefile.params,v 1.13 2015/07/23 08:03:25 mrg Exp $
|
||||
#
|
||||
# Makefile fragment for printing build parameters.
|
||||
#
|
||||
# Public variables:
|
||||
# RELEASEVARS
|
||||
# List of variables whose value should be printed.
|
||||
#
|
||||
# PRINT_PARAMS
|
||||
# A command to print the desired variables and values
|
||||
# to stdout, without any additional debugging information.
|
||||
# Values are printed as single-quoted strings, with
|
||||
# embedded quotes and newlines escaped in a way that's
|
||||
# acceptable to sh(1). Undefined values are printed
|
||||
# as "(undefined)" (without quotation marks).
|
||||
#
|
||||
# Internal targets:
|
||||
# _params:
|
||||
# Prints the names and values of all the variables
|
||||
# listed in ${RELEASEVARS}. The desired results may be
|
||||
# redirected somewhere other than stdout, for example by
|
||||
# setting _params_redirect='>&3'. stdout and stderr may
|
||||
# contain unwanted debugging information, from make and
|
||||
# the shell.
|
||||
#
|
||||
# Internal variables:
|
||||
# _params_redirect:
|
||||
# If set, this should be a shell redirection specification, such
|
||||
# as '>&3', controlling where the output from "make _params" will
|
||||
# be sent.
|
||||
#
|
||||
# Example:
|
||||
# . ${NETBSDSRCDIR}/etc/Makefile.params
|
||||
# show-params: .MAKE .PHONY # print params to stdout
|
||||
# @${PRINT_PARAMS}
|
||||
#
|
||||
|
||||
.include <bsd.own.mk> # for some variables
|
||||
|
||||
RELEASEVARS= BSDOBJDIR BSDSRCDIR BUILDID BUILDINFO BUILDSEED \
|
||||
DESTDIR DISTRIBVER EXTERNAL_TOOLCHAIN HAVE_GCC HAVE_GDB \
|
||||
HAVE_LLVM HAVE_PCC INSTALLWORLDDIR \
|
||||
KERNARCHDIR KERNCONFDIR KERNOBJDIR KERNSRCDIR \
|
||||
MACHINE MACHINE_ARCH MAKE MAKECONF MAKEFLAGS \
|
||||
MAKEOBJDIR MAKEOBJDIRPREFIX MAKEVERBOSE \
|
||||
MKARZERO MKATF MKBFD MKBINUTILS MKCATPAGES \
|
||||
MKCRYPTO MKCRYPTO_RC5 MKCTF MKCVS \
|
||||
MKDEBUG MKDEBUGLIB MKDOC MKDTRACE MKDYNAMICROOT \
|
||||
MKGCC MKGCCCMDS MKGDB \
|
||||
MKHESIOD MKHTML MKIEEEFP MKINET6 MKINFO MKIPFILTER \
|
||||
MKKERBEROS MKKYUA MKLDAP MKLINKLIB MKLINT MKLLVM \
|
||||
MKMAN MKMANZ MKMDNS MKNLS MKNPF MKOBJ MKOBJDIRS \
|
||||
MKPAM MKPCC MKPF MKPIC MKPICINSTALL MKPICLIB MKPOSTFIX \
|
||||
MKPROFILE MKREPRO \
|
||||
MKSHARE MKSKEY MKSOFTFLOAT MKSTATICLIB \
|
||||
MKUNPRIVED MKUPDATE MKX11 MKYP \
|
||||
NBUILDJOBS NETBSDSRCDIR \
|
||||
NOCLEANDIR NODISTRIBDIRS NOINCLUDES \
|
||||
OBJMACHINE \
|
||||
RELEASEDIR RELEASEMACHINEDIR TOOLCHAIN_MISSING TOOLDIR \
|
||||
USE_HESIOD USE_INET6 USE_JEMALLOC USE_KERBEROS USE_LDAP \
|
||||
USE_PAM USE_SKEY USE_YP \
|
||||
USETOOLS USR_OBJMACHINE \
|
||||
X11SRCDIR
|
||||
|
||||
|
||||
#
|
||||
# Duplicate the DISTRIBVER setting from src/etc/Makefile.
|
||||
#
|
||||
.ifndef DISTRIBVER
|
||||
DISTRIBVER!= ${HOST_SH} ${NETBSDSRCDIR}/sys/conf/osrelease.sh
|
||||
.endif
|
||||
|
||||
#
|
||||
# _params does the printing.
|
||||
#
|
||||
_params_redirect?= # empty
|
||||
|
||||
_params: .PHONY
|
||||
.for var in ${RELEASEVARS}
|
||||
.if defined(${var})
|
||||
@printf "%20s = '%-s'\n" ${var} ${${var}:C/'/'\\\\''/gW:Q} \
|
||||
${_params_redirect}
|
||||
.else
|
||||
@printf "%20s = (undefined)\n" ${var} \
|
||||
${_params_redirect}
|
||||
.endif
|
||||
.endfor
|
||||
|
||||
# PRINT_PARAMS:
|
||||
#
|
||||
# The output from the "make _params" can include the following types of
|
||||
# unwanted lines:
|
||||
#
|
||||
# make -j prints "--- _params ---";
|
||||
#
|
||||
# if MAKEVERBOSE is set to 3 or more then make prints each "printf"
|
||||
# command in addition to executing it;
|
||||
#
|
||||
# if MAKEVERBOSE is set to 4 then the shell prints each command
|
||||
# (prefixed with "+").
|
||||
#
|
||||
# So the resulting output can look like this:
|
||||
#
|
||||
# --- _params ---
|
||||
# + echo 'printf "%20s = '\''%-s'\''\n" BSDOBJDIR /usr/obj'
|
||||
# printf "%20s = '%-s'\n" BSDOBJDIR /usr/obj
|
||||
# + printf '%20s = '\''%-s'\''\n' BSDOBJDIR /usr/obj
|
||||
# BSDOBJDIR = '/usr/obj'
|
||||
# + echo 'printf "%20s = '\''%-s'\''\n" BSDSRCDIR /usr/src'
|
||||
# printf "%20s = '%-s'\n" BSDSRCDIR /usr/src
|
||||
# + printf '%20s = '\''%-s'\''\n' BSDSRCDIR /usr/src
|
||||
# BSDSRCDIR = '/usr/src'
|
||||
# [...]
|
||||
#
|
||||
# where what we want is just this:
|
||||
#
|
||||
# BSDOBJDIR = '/usr/obj'
|
||||
# BSDSRCDIR = '/usr/src'
|
||||
# [...]
|
||||
#
|
||||
# The shell redirections in ${PRINT_PARAMS} ensure that the unwanted
|
||||
# noise is discarded (via ">/dev/null"), while the desired information
|
||||
# ends up on the subshell's stdout (via ">&3" and "3>&1"). The value
|
||||
# of _params_redirect is passed in the environment instead of on the
|
||||
# command line, to prevent it from appearing in MAKEFLAGS (which would
|
||||
# appear in the output).
|
||||
#
|
||||
PRINT_PARAMS:= (_params_redirect='>&3' ${MAKE} -f ${.PARSEDIR:Q}/${.PARSEFILE:Q} _params 3>&1 >/dev/null)
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
# $NetBSD: csh.login,v 1.2 1996/05/08 17:19:28 thorpej Exp $
|
||||
#
|
||||
# System-wide .login file for csh(1).
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.6 2013/05/01 05:36:25 agc Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.if !defined(__MINIX)
|
||||
CONFIGFILES= daily.conf monthly.conf pkgpath.conf security.conf weekly.conf
|
||||
.else
|
||||
CONFIGFILES= minix.rc.conf
|
||||
.endif # !defined(__MINIX)
|
||||
FILESDIR= /etc/defaults
|
||||
FILESMODE= ${NONBINMODE}
|
||||
|
||||
# Manage arch-specific rc.conf(5) file
|
||||
CONFIGFILES+= rc_conf
|
||||
FILESNAME_rc_conf= rc.conf
|
||||
FILESBUILD_rc_conf= yes
|
||||
|
||||
# If present, rc.conf.append is added to the end of the default rc.conf file
|
||||
RCCONF_SRCS= ${.CURDIR}/rc.conf
|
||||
.if exists(../etc.${MACHINE}/rc.conf.append)
|
||||
RCCONF_SRCS+= ${.CURDIR}/../etc.${MACHINE}/rc.conf.append
|
||||
.endif
|
||||
|
||||
rc_conf: ${RCCONF_SRCS}
|
||||
${_MKTARGET_CREATE}
|
||||
${TOOL_CAT} ${RCCONF_SRCS} > ${.TARGET}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
# Minix-specific rc.conf default values
|
||||
|
||||
# Override settings in NetBSD's default rc.conf with different default settings
|
||||
# for MINIX here, typically to disable scripts that NetBSD enables by default.
|
||||
#(nothing yet)
|
||||
|
||||
# Where to find servers/drivers binaries
|
||||
PKG_SERVICE_DIR=/usr/pkg/service
|
||||
SERVICES_DIRS="/service $PKG_SERVICE_DIR"
|
||||
|
||||
# Where to find system.conf files and system.conf.d directories
|
||||
# for servers/drivers
|
||||
SYSTEM_CONF_SUBDIR=system.conf.d
|
||||
PKG_SYSTEM_CONF_DIR=/usr/pkg/etc
|
||||
SYSTEM_CONF_DIRS="/etc $PKG_SYSTEM_CONF_DIR"
|
||||
|
|
@ -1,382 +0,0 @@
|
|||
# $NetBSD: rc.conf,v 1.133 2015/03/30 10:58:37 chopps Exp $
|
||||
#
|
||||
# /etc/defaults/rc.conf --
|
||||
# default configuration of /etc/rc.conf
|
||||
#
|
||||
# see rc.conf(5) for more information.
|
||||
#
|
||||
# DO NOT EDIT THIS FILE DIRECTLY; IT MAY BE REPLACED DURING A SYSTEM UPGRADE.
|
||||
# EDIT /etc/rc.conf INSTEAD.
|
||||
#
|
||||
|
||||
#
|
||||
# Use program=YES to enable program, NO to disable it. program_flags are
|
||||
# passed to the program on the command line.
|
||||
#
|
||||
|
||||
# Uncomment this if you want to use local paths in rc.
|
||||
#
|
||||
#export PATH=$PATH:/usr/pkg/sbin:/usr/pkg/bin:/usr/local/sbin:/usr/local/bin
|
||||
|
||||
# Uncomment the following to execute each /etc/rc.d script in
|
||||
# the current shell rather than in a subshell. This may be
|
||||
# faster on very slow machines that have an expensive fork(2).
|
||||
# NOTE: USE THIS AT YOUR OWN RISK; A ROGUE COMMAND
|
||||
# MAY INADVERTENTLY PREVENT BOOT TO MULTIUSER.
|
||||
#
|
||||
#rc_fast_and_loose=YES
|
||||
|
||||
# If rc_silent is true then /etc/rc will suppress most output to
|
||||
# the console. The default is taken from the AB_SILENT flag passed
|
||||
# from the boot loader to the kernel in the boothowto(9) variable.
|
||||
#
|
||||
# rc_silent_cmd is executed once for each suppressed line of output.
|
||||
# Useful values are ":" and "twiddle".
|
||||
#
|
||||
rc_silent=$( [ "$(( $(/sbin/sysctl -n kern.boothowto 2>/dev/null || echo 0) \
|
||||
& 0x40000 ))" != 0 ] && echo true || echo false )
|
||||
rc_silent_cmd=twiddle
|
||||
|
||||
# Additional flags to the rcorder(8) that's run by /etc/rc.
|
||||
#
|
||||
rc_rcorder_flags=""
|
||||
|
||||
# The directories searched for rc scripts.
|
||||
# These directories must be part of the root file system.
|
||||
rc_directories=/etc/rc.d
|
||||
|
||||
# If this is set to NO, shutdown(8) will not run /etc/rc.shutdown.
|
||||
#
|
||||
do_rcshutdown=YES
|
||||
|
||||
# Additional flags to the rcorder(8) that's run by /etc/rc.shutdown.
|
||||
#
|
||||
rcshutdown_rcorder_flags=""
|
||||
|
||||
# If this is non-blank, use as the number of seconds to run a watchdog
|
||||
# timer which will terminate /etc/rc.shutdown if the timeout expires.
|
||||
#
|
||||
rcshutdown_timeout=""
|
||||
|
||||
|
||||
# Basic network configuration
|
||||
#
|
||||
|
||||
# Fully Qualified Internet Domain Name (a.k.a. hostname, e.g. foo.baz.edu).
|
||||
# If blank, use /etc/myname.
|
||||
#
|
||||
hostname=""
|
||||
|
||||
# If there's only one way out of your IPv4 network, set this to the hostname
|
||||
# or the IPv4 address of the router that will get your packets off the LAN.
|
||||
# If blank, use /etc/mygate.
|
||||
#
|
||||
defaultroute=""
|
||||
|
||||
# Same thing for IPv6. If blank, use /etc/mygate6.
|
||||
#
|
||||
defaultroute6=""
|
||||
|
||||
# The NIS domain name (formerly known as Yellow Pages); not in any way
|
||||
# related to Internet domain names.
|
||||
# If blank, use /etc/defaultdomain.
|
||||
#
|
||||
domainname=""
|
||||
|
||||
# Filesystems to mount early in boot-up.
|
||||
# Note that `/var' is needed in $critical_filesystems_local (or
|
||||
# implied as part of `/') as certain services that need /var (such as
|
||||
# dhclient) may be needed to get the network operational enough to mount
|
||||
# the $critical_filesystems_remote. Prepending "OPTIONAL:" means it
|
||||
# will not be an error if that file system is not present in fstab(5).
|
||||
#
|
||||
critical_filesystems_local="OPTIONAL:/var"
|
||||
critical_filesystems_remote="OPTIONAL:/usr"
|
||||
|
||||
# Swap device controls.
|
||||
#
|
||||
no_swap=NO # Set to YES if you have purposefully setup no swap
|
||||
# partitions and don't want to be warned about it.
|
||||
swapoff=YES # Remove block-type swap partitions upon shutdown
|
||||
# This defaults to yes, so that raids shutdown cleanly
|
||||
|
||||
# Concatenated disk driver.
|
||||
#
|
||||
ccd=YES
|
||||
|
||||
# RAIDframe driver (manually configured devices).
|
||||
#
|
||||
raidframe=YES
|
||||
|
||||
# Crypto file system.
|
||||
#
|
||||
cgd=YES
|
||||
|
||||
# Logical Volume Manager
|
||||
#
|
||||
lvm=NO
|
||||
|
||||
# One-time actions and programs on boot-up.
|
||||
#
|
||||
savecore=YES savecore_flags="-z"
|
||||
savecore_dir="/var/crash"
|
||||
resize_root=NO # resize root to fill partition
|
||||
per_user_tmp=NO # per-user /tmp directories
|
||||
per_user_tmp_dir="/private/tmp" # real storage for /tmp
|
||||
clear_tmp=YES # clear /tmp after reboot
|
||||
update_motd=YES # updates /etc/motd
|
||||
dmesg=YES dmesg_flags="" # write /var/run/dmesg.boot
|
||||
accounting=NO # uses /var/account/acct
|
||||
newsyslog=NO newsyslog_flags="" # trim log files
|
||||
quota=YES # check and enable quotas
|
||||
ldconfig=YES # rebuild a.out ldconfig cache
|
||||
sysdb=YES # build system databases
|
||||
rndctl=NO rndctl_flags="" # configure rndctl(8)
|
||||
gpio=NO # configure GPIO devices
|
||||
modules=YES # process /etc/modules.conf
|
||||
|
||||
# cope with other OSes using the real time clock at localtime on this
|
||||
# machine (by adjusting kern.rtc_offset at boot)
|
||||
rtclocaltime=NO
|
||||
|
||||
# NOTE: default coredump name now set in /etc/sysctl.conf
|
||||
|
||||
#
|
||||
# File system check flags; default to preen mode, checking file systems
|
||||
# that are listed in /etc/fstab in parallel as the fsck pass number
|
||||
# permits. Fix minor faults automatically, and exit with non 0 only
|
||||
# when major errors occur.
|
||||
#
|
||||
fsck_flags=-p
|
||||
|
||||
# Security setting. If $securelevel is non-empty, the system securelevel
|
||||
# is set to this value early in the boot sequence. Otherwise the default
|
||||
# action is taken (see init(8)).
|
||||
#
|
||||
securelevel="" # securelevel to set to
|
||||
|
||||
# To set the IP address of an interface either use
|
||||
# ifconfig_xxN="IP-NO"
|
||||
# where xxN is the interface. If this variable is not set then
|
||||
# contents of the file /etc/ifconfig.xxN is used.
|
||||
|
||||
# Networking startup.
|
||||
#
|
||||
mdnsd=NO
|
||||
npf=NO
|
||||
ipfilter=NO ipfilter_flags="" # uses /etc/ipf.conf
|
||||
ipnat=NO # uses /etc/ipnat.conf
|
||||
ipfs=NO ipfs_flags="" # save/load ipnat and ipf states
|
||||
ipsec=NO # uses /etc/ipsec.conf
|
||||
ipmon=NO ipmon_flags="-Dns" # syslog ipfilter messages
|
||||
pf=NO pf_rules="/etc/pf.conf" pf_flags=""
|
||||
pflogd=NO
|
||||
ftp_proxy=NO
|
||||
racoon=NO # IKE daemon
|
||||
auto_ifconfig=YES # config all avail. interfaces
|
||||
net_interfaces="" # used only if above is NO
|
||||
flushroutes=YES # flush routes in netstart
|
||||
dhcpcd=NO
|
||||
dhcpcd_flags="-qM" # For ifconfig_XXX=dhcp.
|
||||
dhclient=NO # behave as a DHCP client
|
||||
dhclient_flags="" # blank: config all interfaces
|
||||
ntpdate=NO ntpdate_flags="-b -s" # May need '-u' thru firewall
|
||||
ppp=YES ppp_peers="" # /etc/ppp/peers to call
|
||||
ip6mode=host # host, autohost or router
|
||||
ip6uniquelocal=NO # IPv6 unique-local forwarding
|
||||
|
||||
# Special treatment for interfaces that need to be downed on
|
||||
# shutdown (because they might cause unnecessary costs or block resources
|
||||
# on the peer). All pppoe* interfaces are automatically included in this
|
||||
# list, add others here manually.
|
||||
#force_down_interfaces=""
|
||||
|
||||
ifwatchd=NO # execute up/down scripts for in-kernel PPPoE interfaces
|
||||
ifwatchd_flags="-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0"
|
||||
|
||||
# ALTQ configuration/monitoring daemon
|
||||
altqd=NO altqd_flags=""
|
||||
|
||||
# Daemons required by servers. These are not needed for strictly client use.
|
||||
#
|
||||
|
||||
# inetd is used to start the IP-based services enabled in /etc/inetd.conf
|
||||
#
|
||||
inetd=YES inetd_flags="-l" # -l logs libwrap
|
||||
|
||||
# identd
|
||||
#
|
||||
identd=NO identd_flags="-b -l -u nobody"
|
||||
|
||||
# rpcbind (formerly known as 'portmap') is used to look up RPC-based services.
|
||||
#
|
||||
rpcbind=NO rpcbind_flags="-l" # -l logs libwrap
|
||||
|
||||
# Commonly used daemons.
|
||||
#
|
||||
syslogd=YES syslogd_flags="-s" # -s "secure" unix domain only
|
||||
cron=YES
|
||||
named=NO named_flags="" # see below for named_chrootdir
|
||||
timed=NO timed_flags=""
|
||||
ntpd=NO ntpd_flags="" # see below for ntpd_chrootdir
|
||||
# The default setting for postfix here is YES, but gets re-examined by
|
||||
# the rc.d/postfix startup script when it runs. The script sets
|
||||
# _rc_d_postfix to "check", and then causes all rc.conf settings to
|
||||
# be re-evaluated. If the value of $postfix after this is "check",
|
||||
# the script then checks to see if /etc/mailer.conf selects the system
|
||||
# postfix. If not, it does print a warning and does not start postfix
|
||||
# to avoid conflict with a different MTA.
|
||||
postfix=${_rc_d_postfix:-YES}
|
||||
lpd=NO lpd_flags="-s" # -s "secure" unix domain only
|
||||
sshd=NO sshd_flags=""
|
||||
ssh_keygen_flags=""
|
||||
ftpd=NO ftpd_flags="-ll"
|
||||
httpd=NO httpd_flags=""
|
||||
httpd_wwwdir="/var/www"
|
||||
httpd_wwwuser="_httpd"
|
||||
|
||||
# To run the named(8) DNS server as an unprivileged user under a
|
||||
# chroot(2) cage, uncomment the following after migrating the contents
|
||||
# of /etc/namedb to /var/chroot/named/etc/namedb
|
||||
#
|
||||
#named_chrootdir="/var/chroot/named"
|
||||
|
||||
# To run the ntpd(8) NTP server as an unprivileged user under a
|
||||
# chroot(2) cage, uncomment the following, after ensuring that:
|
||||
# - The kernel has "pseudo-device clockctl" compiled in
|
||||
# - /dev/clockctl is present
|
||||
#
|
||||
#ntpd_chrootdir="/var/chroot/ntpd"
|
||||
|
||||
# Routing daemons.
|
||||
#
|
||||
routed=NO routed_flags="-q"
|
||||
gated=NO
|
||||
mrouted=NO mrouted_flags=""
|
||||
route6d=NO route6d_flags=""
|
||||
ldpd=NO
|
||||
|
||||
# Daemons used to boot other hosts over a network.
|
||||
#
|
||||
rarpd=NO rarpd_flags="-a"
|
||||
bootparamd=NO bootparamd_flags=""
|
||||
dhcpd=NO dhcpd_flags="-q"
|
||||
dhcrelay=NO dhcrelay_flags=""
|
||||
rbootd=NO rbootd_flags=""
|
||||
mopd=NO mopd_flags="-a"
|
||||
ndbootd=NO ndbootd_flags="-s /tftpboot /tftpboot/bootyy"
|
||||
rtadvd=NO rtadvd_flags=""
|
||||
isibootd=NO isibootd_flags=""
|
||||
|
||||
# X11 daemons.
|
||||
#
|
||||
xfs=NO xfs_flags="" # X11 font server
|
||||
xdm=NO xdm_flags="" # X11 display manager; needs
|
||||
# wscons=YES for local displays.
|
||||
|
||||
# Update fontconfig cache at boot
|
||||
fccache=YES
|
||||
|
||||
# YP (NIS) daemons.
|
||||
#
|
||||
ypbind=NO ypbind_flags=""
|
||||
ypserv=NO ypserv_flags="-d"
|
||||
yppasswdd=NO yppasswdd_flags=""
|
||||
|
||||
# NFS daemons and parameters.
|
||||
#
|
||||
mountd=NO mountd_flags="" # NFS mount requests daemon
|
||||
nfs_client=NO # enable client daemons
|
||||
nfs_server=NO # enable server daemons
|
||||
nfsd_flags=""
|
||||
lockd=NO lockd_flags=""
|
||||
statd=NO statd_flags=""
|
||||
amd=NO amd_flags="-l syslog -x error,noinfo,nostats"
|
||||
amd_dir=/amd # mount dir
|
||||
|
||||
# Heimdal Kerberos 5 KDC (with Kerberos IV compatibility)
|
||||
kdc=NO kdc_flags="--detach"
|
||||
|
||||
# iSCSI target
|
||||
iscsi_target=NO iscsi_target_flags=""
|
||||
# iSCSI kernel initiator
|
||||
iscsid=NO
|
||||
|
||||
# WPA daemons.
|
||||
hostapd=NO hostapd_flags="-B /etc/hostapd.conf"
|
||||
wpa_supplicant=NO wpa_supplicant_flags="" # -i<if> -c<file>
|
||||
|
||||
# ISDN daemon
|
||||
isdnd=NO isdnd_flags=""
|
||||
|
||||
# Bluetooth configuration
|
||||
bluetooth=NO
|
||||
# and the following are used when bluetooth=YES
|
||||
btconfig_devices="" # all
|
||||
bthcid=YES bthcid_flags=""
|
||||
sdpd=YES sdpd_flags=""
|
||||
|
||||
# Other daemons.
|
||||
#
|
||||
rwhod=NO rwhod_flags="-u _rwhod"
|
||||
devpubd=NO devpubd_flags="" # autocreate nodes for new devs
|
||||
envsys=NO # Set /etc/envsys.conf preferences
|
||||
|
||||
# Hardware daemons.
|
||||
#
|
||||
apmd=NO apmd_flags="" # APM power management daemon.
|
||||
powerd=NO powerd_flags="" # power management daemon
|
||||
screenblank=NO screenblank_flags="" # wscons and FBIO screenblanker
|
||||
|
||||
moused=NO # serial mouse handler
|
||||
moused_flags="-p /dev/tty00"
|
||||
|
||||
wdogctl=NO # watchdog timer control
|
||||
# wdogctl_flags="-k devicename"
|
||||
irdaattach=NO # attach serial lines to IrDA
|
||||
irdaattach_flags="tty00"
|
||||
|
||||
# Configuration of "wscons" console driver virtual screens.
|
||||
#
|
||||
wscons=NO wscons_flags="" # setup wscons from wscons.conf
|
||||
|
||||
# Configuration of "wsmoused" console driver cut-n-paste support
|
||||
#
|
||||
wsmoused=NO wsmoused_flags=""
|
||||
|
||||
# Configuration of "tpctl" touch panel calibration utility
|
||||
#
|
||||
tpctl=NO tpctl_flags=""
|
||||
|
||||
# Mixer setting
|
||||
#
|
||||
mixerctl=NO mixerctl_mixers="" # "mixer0 mixer1" means saving
|
||||
# and restoring their settings
|
||||
|
||||
# Vi recovery notification. Vi(1)'s -r option can recover files which were
|
||||
# accidentally closed. See vi(1) for more details.
|
||||
#
|
||||
virecover=YES
|
||||
|
||||
# Veriexec signature loading.
|
||||
#
|
||||
veriexec=NO
|
||||
veriexec_strict=0
|
||||
veriexec_verbose=0
|
||||
veriexec_flags="-k"
|
||||
|
||||
# Entropy load/save to/from /dev/random at startup/shutdown
|
||||
#
|
||||
random_seed=YES
|
||||
|
||||
# Creating / updating of man page index on boot
|
||||
makemandb=YES
|
||||
|
||||
# blacklist daemon, needs npf
|
||||
blacklistd=NO
|
||||
|
||||
# Start of MINIX 3 specific settings block
|
||||
if [ -r /etc/defaults/minix.rc.conf ]; then
|
||||
. /etc/defaults/minix.rc.conf
|
||||
fi
|
||||
# End of MINIX 3 specific settings block
|
||||
|
|
@ -1,128 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.30 2015/10/09 19:23:18 riz Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.if ${MKX11} != "no"
|
||||
EXTRA_DIST_FILES= ${.CURDIR}/NetBSD.dist.Xorg
|
||||
.endif
|
||||
|
||||
.if defined(__MINIX)
|
||||
.if ${MKLIBSTDCXX} == "yes"
|
||||
EXTRA_DIST_FILES+= ${.CURDIR}/Minix.libstdcxx
|
||||
.endif
|
||||
|
||||
.if ${MKLIBCXX} == "yes"
|
||||
EXTRA_DIST_FILES+= ${.CURDIR}/Minix.libcxx
|
||||
.endif
|
||||
|
||||
.if ${MKBITCODE} == "yes"
|
||||
EXTRA_DIST_FILES+= ${.CURDIR}/Minix.bitcode
|
||||
.endif
|
||||
|
||||
.if exists(NetBSD.dist.${MACHINE_ARCH})
|
||||
EXTRA_DIST_FILES+= ${.CURDIR}/NetBSD.dist.${MACHINE_ARCH}
|
||||
.endif
|
||||
.endif # defined(__MINIX)
|
||||
|
||||
# XXX these are only used by compat currently, but they could be used
|
||||
# by something else; this may need to be fixed properly in the future.
|
||||
.if defined(MKCOMPAT) && ${MKCOMPAT} != "no"
|
||||
.include "${NETBSDSRCDIR}/compat/archdirs.mk"
|
||||
.if exists(NetBSD.dist.${MACHINE_ARCH})
|
||||
EXTRA_DIST_FILES+= ${.CURDIR}/NetBSD.dist.${MACHINE_ARCH}
|
||||
.elif !empty(MACHINE_ARCH:Mearm*)
|
||||
EXTRA_DIST_FILES+= ${.CURDIR}/NetBSD.dist.earm
|
||||
.endif
|
||||
EXTRA_DIST_FILES+= NetBSD.dist.compat # autogenerated
|
||||
.if defined(MKCOMPATX11) && ${MKCOMPATX11} != "no" && ${MKX11} != "no"
|
||||
EXTRA_DIST_FILES+= NetBSD.dist.xcompat # autogenerated
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MKATF} != "no"
|
||||
EXTRA_DIST_FILES+= ${.CURDIR}/NetBSD.dist.tests
|
||||
.if defined(MKCOMPATTESTS) && ${MKCOMPATTESTS} != "no"
|
||||
EXTRA_DIST_FILES+= NetBSD.dist.tests.compat
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MKDTRACE} != "no"
|
||||
EXTRA_DIST_FILES+= ${.CURDIR}/NetBSD.dist.dtrace
|
||||
.endif
|
||||
|
||||
.if ${MKEXTSRC} != "no"
|
||||
EXTRA_DIST_FILES+= ${.CURDIR}/NetBSD.dist.extsrc
|
||||
.endif
|
||||
|
||||
NetBSD.dist: NetBSD.dist.tmp
|
||||
cmp -s NetBSD.dist.tmp NetBSD.dist || { \
|
||||
echo "Updating NetBSD.dist"; \
|
||||
mv NetBSD.dist.tmp NetBSD.dist; \
|
||||
}
|
||||
NetBSD.dist.tmp:: ${.CURDIR}/NetBSD.dist.base ${EXTRA_DIST_FILES}
|
||||
${TOOL_CAT} ${.CURDIR}/NetBSD.dist.base ${EXTRA_DIST_FILES} > \
|
||||
${.TARGET}
|
||||
|
||||
NetBSD.dist.compat: ${.CURDIR}/NetBSD.dist.compat.in ${.CURDIR}/mkcompat.awk
|
||||
${MKCREATE}
|
||||
${TOOL_AWK} -f ${.CURDIR}/mkcompat.awk \
|
||||
-v COMPATDIRS=${ARCHDIR_SUBDIR:T:Q} \
|
||||
${.CURDIR}/NetBSD.dist.compat.in \
|
||||
> ${.TARGET}
|
||||
|
||||
NetBSD.dist.xcompat: ${.CURDIR}/NetBSD.dist.xcompat.in ${.CURDIR}/mkcompat.awk
|
||||
${MKCREATE}
|
||||
${TOOL_AWK} -f ${.CURDIR}/mkcompat.awk \
|
||||
-v COMPATDIRS=${ARCHDIR_SUBDIR:T:Q} \
|
||||
${.CURDIR}/NetBSD.dist.xcompat.in \
|
||||
> ${.TARGET}
|
||||
|
||||
NetBSD.dist.tests.compat: ${.CURDIR}/NetBSD.dist.tests \
|
||||
${.CURDIR}/mkcompattree.awk
|
||||
${MKCREATE}
|
||||
${TOOL_AWK} -f ${.CURDIR}/mkcompattree.awk \
|
||||
-v COMPATDIRS=${ARCHDIR_SUBDIR:T:Q} -v S="usr/tests" \
|
||||
${.CURDIR}/NetBSD.dist.tests \
|
||||
> ${.TARGET}
|
||||
|
||||
CONFIGFILES= NetBSD.dist special
|
||||
FILESDIR= /etc/mtree
|
||||
|
||||
# distrib-dirs --
|
||||
# Populate $DESTDIR with directories needed by NetBSD
|
||||
#
|
||||
.if ${MKUNPRIVED} == "no"
|
||||
TOOL_MTREE.unpriv=
|
||||
.else
|
||||
TOOL_MTREE.unpriv= -W
|
||||
.endif
|
||||
|
||||
# postinstall(8) invokes this target to produce the right
|
||||
# /etc/mtree/NetBSD.dist content without duplicating logic from
|
||||
# the Makefile.
|
||||
#
|
||||
emit_dist_file: ${EXTRA_DIST_FILES}
|
||||
@cat ${.CURDIR}/NetBSD.dist.base ${EXTRA_DIST_FILES}
|
||||
|
||||
distrib-dirs: .PHONY check_DESTDIR NetBSD.dist
|
||||
.if !defined(DISTRIBUTION_DONE) # {
|
||||
# Create DESTDIR using HOST_INSTALL_DIR, not INSTALL_DIR, because
|
||||
# INSTALL_DIR would want to write to the metalog, and it can't do that
|
||||
# if the metalog is inside DESTDIR but DESTDIR doesn't yet exist.
|
||||
${HOST_INSTALL_DIR} -m 755 ${DESTDIR}
|
||||
# Invoke mtree to create the directories listed in NetBSD.dist;
|
||||
# then invoke mtree again to register those directories in the metalog.
|
||||
${TOOL_MTREE} -def ${.OBJDIR}/NetBSD.dist -N ${.CURDIR}/.. \
|
||||
-p ${DESTDIR}/ -U ${TOOL_MTREE.unpriv}
|
||||
.if ${MKUNPRIVED} != "no" # {
|
||||
${TOOL_MTREE} -def ${.OBJDIR}/NetBSD.dist -N ${.CURDIR}/.. \
|
||||
-p ${DESTDIR}/ -C -k all | \
|
||||
${TOOL_AWK} '/ optional/ {next} // {print}' | ${METALOG.add}
|
||||
.endif # MKUNPRIVED # }
|
||||
.endif # DISTRIBUTION_DONE # }
|
||||
|
||||
CLEANFILES+= NetBSD.dist NetBSD.dist.tmp
|
||||
CLEANFILES+= NetBSD.dist.compat
|
||||
CLEANFILES+= NetBSD.dist.tests.compat
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
@ -1,443 +0,0 @@
|
|||
# $NetBSD: special,v 1.152 2015/03/21 19:10:43 jmcneill Exp $
|
||||
# @(#)special 8.2 (Berkeley) 1/23/94
|
||||
#
|
||||
# This file may be overwritten on upgrades.
|
||||
# Put your custom specifications in /etc/mtree/special.local instead.
|
||||
# See security.conf(5) for details.
|
||||
|
||||
#
|
||||
# /etc/security checks:
|
||||
# - All of these are checked if $check_mtree is enabled.
|
||||
# - Files with "nodiff" tags are highlighted if they change.
|
||||
# - Files without "nodiff" or "exclude" tags are displayed
|
||||
# with diff(1)s if $check_changelist is enabled.
|
||||
#
|
||||
|
||||
/set uname=root gname=wheel
|
||||
|
||||
. type=dir mode=0755
|
||||
|
||||
./boot.cfg type=file mode=0644 optional
|
||||
|
||||
./dev type=dir mode=0755
|
||||
./dev/drum type=char mode=0640 gname=kmem
|
||||
./dev/fd type=dir mode=0755 ignore
|
||||
./dev/kmem type=char mode=0640 gname=kmem
|
||||
./dev/mem type=char mode=0640 gname=kmem
|
||||
|
||||
./etc type=dir mode=0755
|
||||
./etc/Distfile type=file mode=0644 optional
|
||||
./etc/amd type=dir mode=0755 optional
|
||||
./etc/apm type=dir mode=0755 optional
|
||||
./etc/bluetooth type=dir mode=0755
|
||||
./etc/bluetooth/btattach.conf type=file mode=0644
|
||||
./etc/bluetooth/btdevctl.conf type=file mode=0644
|
||||
./etc/bluetooth/hosts type=file mode=0644
|
||||
./etc/bluetooth/protocols type=file mode=0644
|
||||
./etc/bootparams type=file mode=0644 optional
|
||||
./etc/bootptab type=file mode=0644 optional
|
||||
./etc/ccd.conf type=file mode=0644 optional
|
||||
./etc/cgd type=dir mode=0700 optional
|
||||
./etc/cgd/cgd.conf type=file mode=0600 optional tags=nodiff
|
||||
./etc/changelist type=file mode=0644
|
||||
./etc/crontab type=file mode=0644 optional
|
||||
./etc/csh.cshrc type=file mode=0644
|
||||
./etc/csh.login type=file mode=0644
|
||||
./etc/csh.logout type=file mode=0644
|
||||
./etc/daily type=file mode=0644
|
||||
./etc/daily.conf type=file mode=0644
|
||||
./etc/daily.local type=file mode=0644 optional
|
||||
./etc/defaultdomain type=file mode=0644 optional
|
||||
./etc/defaults type=dir mode=0755
|
||||
./etc/defaults/daily.conf type=file mode=0444
|
||||
./etc/defaults/monthly.conf type=file mode=0444
|
||||
./etc/defaults/rc.conf type=file mode=0444
|
||||
./etc/defaults/security.conf type=file mode=0444
|
||||
./etc/defaults/weekly.conf type=file mode=0444
|
||||
./etc/dhclient-enter-hooks type=file mode=0644 optional
|
||||
./etc/dhclient-exit-hooks type=file mode=0644 optional
|
||||
./etc/dhclient.conf type=file mode=0644 optional
|
||||
./etc/dhcpcd.conf type=file mode=0644
|
||||
./etc/dhcpcd.duid type=file mode=0644 optional
|
||||
./etc/dhcpcd.hook type=file mode=0644 optional
|
||||
./etc/dhcpd.conf type=file mode=0644 optional
|
||||
./etc/disktab type=file mode=0644
|
||||
./etc/dm.conf type=file mode=0644
|
||||
./etc/dumpdates type=file mode=0664 gname=operator optional tags=exclude
|
||||
./etc/envsys.conf type=file mode=0644 optional
|
||||
./etc/ethers type=file mode=0644 optional
|
||||
./etc/exports type=file mode=0644 optional
|
||||
./etc/floppytab type=file mode=0644
|
||||
./etc/fstab type=file mode=0644
|
||||
./etc/ftpchroot type=file mode=0644
|
||||
./etc/ftpd.conf type=file mode=0644 optional
|
||||
./etc/ftpusers type=file mode=0644
|
||||
./etc/ftpwelcome type=file mode=0644 optional
|
||||
./etc/gateways type=file mode=0644 optional
|
||||
./etc/gettytab type=file mode=0644
|
||||
./etc/gpio.conf type=file mode=0644
|
||||
./etc/group type=file mode=0644
|
||||
./etc/hesiod.conf type=file mode=0644 optional
|
||||
./etc/hosts type=file mode=0644
|
||||
./etc/hosts.allow type=file mode=0644 optional
|
||||
./etc/hosts.deny type=file mode=0644 optional
|
||||
./etc/hosts.equiv type=file mode=0600 optional tags=nodiff
|
||||
./etc/hosts.lpd type=file mode=0644 optional
|
||||
./etc/ifaliases type=file mode=0644 optional
|
||||
./etc/inetd.conf type=file mode=0644
|
||||
./etc/ipf.conf type=file mode=0644 optional
|
||||
./etc/ipf6.conf type=file mode=0644 optional
|
||||
./etc/ipnat.conf type=file mode=0644 optional
|
||||
./etc/ipsec.conf type=file mode=0600 optional tags=nodiff
|
||||
./etc/iscsi type=dir mode=0755
|
||||
./etc/iscsi/auths type=file mode=0600 tags=nodiff
|
||||
./etc/iscsi/targets type=file mode=0644
|
||||
./etc/ld.so.conf type=file mode=0644 optional
|
||||
./etc/localtime type=link mode=0755
|
||||
./etc/locate.conf type=file mode=0644 optional
|
||||
./etc/login.conf type=file mode=0644 optional
|
||||
./etc/mail type=dir mode=0755
|
||||
./etc/mail/aliases type=file mode=0644
|
||||
./etc/mail/aliases.db type=file mode=0644 optional tags=exclude
|
||||
./etc/mail.rc type=file mode=0644
|
||||
./etc/mailer.conf type=file mode=0644
|
||||
./etc/man.conf type=file mode=0644
|
||||
./etc/master.passwd type=file mode=0600 tags=nodiff
|
||||
./etc/mk.conf type=file mode=0644 optional
|
||||
./etc/moduli type=file mode=0444
|
||||
./etc/monthly type=file mode=0644
|
||||
./etc/monthly.conf type=file mode=0644
|
||||
./etc/monthly.local type=file mode=0644 optional
|
||||
./etc/mrouted.conf type=file mode=0644
|
||||
./etc/mtree type=dir mode=0755
|
||||
./etc/mtree/special type=file mode=0444
|
||||
./etc/mtree/special.local type=file mode=0644 optional
|
||||
./etc/mygate type=file mode=0644 optional
|
||||
./etc/mygate6 type=file mode=0644 optional
|
||||
./etc/myname type=file mode=0644 optional
|
||||
./etc/named.conf type=file mode=0644 optional
|
||||
./etc/namedb type=dir mode=0755
|
||||
./etc/netconfig type=file mode=0644
|
||||
./etc/netgroup type=file mode=0644 optional
|
||||
./etc/netstart.local type=file mode=0644 optional
|
||||
./etc/networks type=file mode=0644
|
||||
./etc/newsyslog.conf type=file mode=0644
|
||||
./etc/nsswitch.conf type=file mode=0644
|
||||
./etc/ntp.conf type=file mode=0644 optional
|
||||
./etc/pam.conf type=file mode=0644 optional
|
||||
./etc/pam.d type=dir mode=0755
|
||||
./etc/pam.d/display_manager type=file mode=0644
|
||||
./etc/pam.d/ftpd type=file mode=0644
|
||||
./etc/pam.d/gdm type=file mode=0644
|
||||
./etc/pam.d/imap type=file mode=0644
|
||||
./etc/pam.d/kde type=file mode=0644
|
||||
./etc/pam.d/login type=file mode=0644
|
||||
./etc/pam.d/other type=file mode=0644
|
||||
./etc/pam.d/passwd type=file mode=0644
|
||||
./etc/pam.d/pop3 type=file mode=0644
|
||||
./etc/pam.d/ppp type=file mode=0644
|
||||
./etc/pam.d/rexecd type=file mode=0644
|
||||
./etc/pam.d/rsh type=file mode=0644
|
||||
./etc/pam.d/sshd type=file mode=0644
|
||||
./etc/pam.d/su type=file mode=0644
|
||||
./etc/pam.d/system type=file mode=0644
|
||||
./etc/pam.d/telnetd type=file mode=0644
|
||||
./etc/pam.d/xdm type=file mode=0644
|
||||
./etc/pam.d/xserver type=file mode=0644
|
||||
./etc/passwd type=file mode=0644
|
||||
./etc/passwd.conf type=file mode=0644 optional
|
||||
./etc/pf.conf type=file mode=0644
|
||||
./etc/pf.os type=file mode=0444
|
||||
./etc/phones type=file mode=0644
|
||||
./etc/postfix type=dir mode=0755 optional
|
||||
./etc/postfix/main.cf type=file mode=0644 optional
|
||||
./etc/postfix/master.cf type=file mode=0644 optional
|
||||
./etc/powerd type=dir mode=0755 optional
|
||||
./etc/powerd/scripts type=dir mode=0755 optional
|
||||
./etc/powerd/scripts/acadapter type=file mode=0555 optional
|
||||
./etc/powerd/scripts/hotkey_button type=file mode=0555 optional
|
||||
./etc/powerd/scripts/lid_switch type=file mode=0555 optional
|
||||
./etc/powerd/scripts/power_button type=file mode=0555 optional
|
||||
./etc/powerd/scripts/reset_button type=file mode=0555 optional
|
||||
./etc/powerd/scripts/sensor_battery type=file mode=0555 optional
|
||||
./etc/powerd/scripts/sensor_drive type=file mode=0555 optional
|
||||
./etc/powerd/scripts/sensor_fan type=file mode=0555 optional
|
||||
./etc/powerd/scripts/sensor_indicator type=file mode=0555 optional
|
||||
./etc/powerd/scripts/sensor_power type=file mode=0555 optional
|
||||
./etc/powerd/scripts/sensor_resistance type=file mode=0555 optional
|
||||
./etc/powerd/scripts/sensor_temperature type=file mode=0555 optional
|
||||
./etc/powerd/scripts/sensor_voltage type=file mode=0555 optional
|
||||
./etc/powerd/scripts/sleep_button type=file mode=0555 optional
|
||||
./etc/ppp type=dir mode=0755 optional
|
||||
./etc/ppp/options type=file mode=0644 optional
|
||||
./etc/printcap type=file mode=0644
|
||||
./etc/profile type=file mode=0644
|
||||
./etc/protocols type=file mode=0644
|
||||
./etc/racoon type=dir mode=0755 optional
|
||||
./etc/racoon/racoon.conf type=file mode=0644 optional
|
||||
./etc/racoon/psk.txt type=file mode=0600 optional tags=nodiff
|
||||
./etc/rbootd.conf type=file mode=0644 optional
|
||||
./etc/rc type=file mode=0644
|
||||
./etc/rc.conf type=file mode=0644
|
||||
./etc/rc.d type=dir mode=0755
|
||||
./etc/rc.d/DAEMON type=file mode=0555
|
||||
./etc/rc.d/DISKS type=file mode=0555
|
||||
./etc/rc.d/LOGIN type=file mode=0555
|
||||
./etc/rc.d/NETWORKING type=file mode=0555
|
||||
./etc/rc.d/SERVERS type=file mode=0555
|
||||
./etc/rc.d/accounting type=file mode=0555
|
||||
./etc/rc.d/altqd type=file mode=0555
|
||||
./etc/rc.d/amd type=file mode=0555
|
||||
./etc/rc.d/apmd type=file mode=0555
|
||||
./etc/rc.d/bluetooth type=file mode=0555
|
||||
./etc/rc.d/bootconf.sh type=file mode=0555
|
||||
./etc/rc.d/bootparams type=file mode=0555
|
||||
./etc/rc.d/ccd type=file mode=0555
|
||||
./etc/rc.d/cgd type=file mode=0555
|
||||
./etc/rc.d/cleartmp type=file mode=0555
|
||||
./etc/rc.d/cron type=file mode=0555
|
||||
./etc/rc.d/devpubd type=file mode=0555
|
||||
./etc/rc.d/dhclient type=file mode=0555
|
||||
./etc/rc.d/dhcpcd type=file mode=0555
|
||||
./etc/rc.d/dhcpd type=file mode=0555
|
||||
./etc/rc.d/dhcrelay type=file mode=0555
|
||||
./etc/rc.d/dmesg type=file mode=0555
|
||||
./etc/rc.d/downinterfaces type=file mode=0555
|
||||
./etc/rc.d/envsys type=file mode=0555
|
||||
./etc/rc.d/fsck type=file mode=0555
|
||||
./etc/rc.d/fsck_root type=file mode=0555
|
||||
./etc/rc.d/ftp_proxy type=file mode=0555
|
||||
./etc/rc.d/ftpd type=file mode=0555
|
||||
./etc/rc.d/gpio type=file mode=0555
|
||||
./etc/rc.d/hostapd type=file mode=0555
|
||||
./etc/rc.d/httpd type=file mode=0555
|
||||
./etc/rc.d/identd type=file mode=0555
|
||||
./etc/rc.d/ifwatchd type=file mode=0555
|
||||
./etc/rc.d/inetd type=file mode=0555
|
||||
./etc/rc.d/ipfilter type=file mode=0555
|
||||
./etc/rc.d/ipfs type=file mode=0555
|
||||
./etc/rc.d/ipmon type=file mode=0555
|
||||
./etc/rc.d/ipnat type=file mode=0555
|
||||
./etc/rc.d/ipsec type=file mode=0555
|
||||
./etc/rc.d/irdaattach type=file mode=0555
|
||||
./etc/rc.d/iscsi_target type=file mode=0555
|
||||
./etc/rc.d/iscsid type=file mode=0555
|
||||
./etc/rc.d/isdnd type=file mode=0555
|
||||
./etc/rc.d/isibootd type=file mode=0555
|
||||
./etc/rc.d/kdc type=file mode=0555
|
||||
./etc/rc.d/ldconfig type=file mode=0555
|
||||
./etc/rc.d/ldpd type=file mode=0555
|
||||
./etc/rc.d/local type=file mode=0555
|
||||
./etc/rc.d/lpd type=file mode=0555
|
||||
./etc/rc.d/lvm type=file mode=0555
|
||||
./etc/rc.d/makemandb type=file mode=0555
|
||||
./etc/rc.d/mdnsd type=file mode=0555
|
||||
./etc/rc.d/mixerctl type=file mode=0555
|
||||
./etc/rc.d/modules type=file mode=0555
|
||||
./etc/rc.d/mopd type=file mode=0555
|
||||
./etc/rc.d/motd type=file mode=0555
|
||||
./etc/rc.d/mountall type=file mode=0555
|
||||
./etc/rc.d/mountcritlocal type=file mode=0555
|
||||
./etc/rc.d/mountcritremote type=file mode=0555
|
||||
./etc/rc.d/mountd type=file mode=0555
|
||||
./etc/rc.d/moused type=file mode=0555
|
||||
./etc/rc.d/mrouted type=file mode=0555
|
||||
./etc/rc.d/named type=file mode=0555
|
||||
./etc/rc.d/ndbootd type=file mode=0555
|
||||
./etc/rc.d/network type=file mode=0555
|
||||
./etc/rc.d/newsyslog type=file mode=0555
|
||||
./etc/rc.d/nfsd type=file mode=0555
|
||||
./etc/rc.d/nfslocking type=file mode=0555
|
||||
./etc/rc.d/npf type=file mode=0555
|
||||
./etc/rc.d/ntpd type=file mode=0555
|
||||
./etc/rc.d/ntpdate type=file mode=0555
|
||||
./etc/rc.d/perusertmp type=file mode=0555
|
||||
./etc/rc.d/pf type=file mode=0555
|
||||
./etc/rc.d/pf_boot type=file mode=0555
|
||||
./etc/rc.d/pflogd type=file mode=0555
|
||||
./etc/rc.d/postfix type=file mode=0555
|
||||
./etc/rc.d/powerd type=file mode=0555
|
||||
./etc/rc.d/ppp type=file mode=0555
|
||||
./etc/rc.d/pwcheck type=file mode=0555
|
||||
./etc/rc.d/quota type=file mode=0555
|
||||
./etc/rc.d/racoon type=file mode=0555
|
||||
./etc/rc.d/raidframe type=file mode=0555
|
||||
./etc/rc.d/raidframeparity type=file mode=0555
|
||||
./etc/rc.d/random_seed type=file mode=0555
|
||||
./etc/rc.d/rarpd type=file mode=0555
|
||||
./etc/rc.d/rbootd type=file mode=0555
|
||||
./etc/rc.d/rndctl type=file mode=0555
|
||||
./etc/rc.d/root type=file mode=0555
|
||||
./etc/rc.d/route6d type=file mode=0555
|
||||
./etc/rc.d/routed type=file mode=0555
|
||||
./etc/rc.d/rpcbind type=file mode=0555
|
||||
./etc/rc.d/rtadvd type=file mode=0555
|
||||
./etc/saslc.d type=dir mode=0755
|
||||
./etc/saslc.d/postfix type=dir mode=0755
|
||||
./etc/saslc.d/postfix/mech type=dir mode=0755
|
||||
./etc/saslc.d/saslc type=dir mode=0755
|
||||
./etc/saslc.d/saslc/mech type=dir mode=0755
|
||||
./etc/rc.d/rtclocaltime type=file mode=0555
|
||||
./etc/rc.d/rwho type=file mode=0555
|
||||
./etc/rc.d/savecore type=file mode=0555
|
||||
./etc/rc.d/screenblank type=file mode=0555
|
||||
./etc/rc.d/securelevel type=file mode=0555
|
||||
./etc/rc.d/sshd type=file mode=0555
|
||||
./etc/rc.d/staticroute type=file mode=0555
|
||||
./etc/rc.d/swap1 type=file mode=0555
|
||||
./etc/rc.d/swap2 type=file mode=0555
|
||||
./etc/rc.d/sysctl type=file mode=0555
|
||||
./etc/rc.d/sysdb type=file mode=0555
|
||||
./etc/rc.d/syslogd type=file mode=0555
|
||||
./etc/rc.d/timed type=file mode=0555
|
||||
./etc/rc.d/tpctl type=file mode=0555
|
||||
./etc/rc.d/ttys type=file mode=0555
|
||||
./etc/rc.d/veriexec type=file mode=0555
|
||||
./etc/rc.d/virecover type=file mode=0555
|
||||
./etc/rc.d/wdogctl type=file mode=0555
|
||||
./etc/rc.d/wpa_supplicant type=file mode=0555
|
||||
./etc/rc.d/wscons type=file mode=0555
|
||||
./etc/rc.d/wsmoused type=file mode=0555
|
||||
./etc/rc.d/xdm type=file mode=0555 optional
|
||||
./etc/rc.d/xfs type=file mode=0555 optional
|
||||
./etc/rc.d/ypbind type=file mode=0555
|
||||
./etc/rc.d/yppasswdd type=file mode=0555
|
||||
./etc/rc.d/ypserv type=file mode=0555
|
||||
./etc/rc.local type=file mode=0644 optional
|
||||
./etc/rc.shutdown type=file mode=0644
|
||||
./etc/rc.shutdown.local type=file mode=0644 optional
|
||||
./etc/rc.subr type=file mode=0644
|
||||
./etc/remote type=file mode=0644
|
||||
./etc/resolv.conf type=file mode=0644 optional
|
||||
./etc/rpc type=file mode=0644
|
||||
./etc/rtadvd.conf type=file mode=0644 optional
|
||||
./etc/security type=file mode=0644
|
||||
./etc/security.conf type=file mode=0644
|
||||
./etc/security.local type=file mode=0644 optional
|
||||
./etc/services type=file mode=0644
|
||||
./etc/shells type=file mode=0644
|
||||
./etc/shosts.equiv type=file mode=0600 optional tags=nodiff
|
||||
./etc/skel type=dir mode=0755 optional
|
||||
./etc/spwd.db type=file mode=0600 tags=exclude tags=nodiff
|
||||
./etc/ssh type=dir mode=0755 optional
|
||||
./etc/ssh/ssh_config type=file mode=0644 optional
|
||||
./etc/ssh/ssh_host_dsa_key type=file mode=0600 optional tags=nodiff
|
||||
./etc/ssh/ssh_host_dsa_key.pub type=file mode=0644 optional
|
||||
./etc/ssh/ssh_host_ecdsa_key type=file mode=0600 optional tags=nodiff
|
||||
./etc/ssh/ssh_host_ecdsa_key.pub type=file mode=0644 optional
|
||||
./etc/ssh/ssh_host_key type=file mode=0600 optional tags=nodiff tags=nodiff
|
||||
./etc/ssh/ssh_host_key.pub type=file mode=0644 optional
|
||||
./etc/ssh/ssh_host_rsa_key type=file mode=0600 optional tags=nodiff
|
||||
./etc/ssh/ssh_host_rsa_key.pub type=file mode=0644 optional
|
||||
./etc/ssh/ssh_known_hosts type=file mode=0644 optional
|
||||
./etc/ssh/ssh_known_hosts2 type=file mode=0644 optional
|
||||
./etc/ssh/sshd_config type=file mode=0644 optional
|
||||
./etc/sysctl.conf type=file mode=0644
|
||||
./etc/syslog.conf type=file mode=0644
|
||||
./etc/ttyaction type=file mode=0644 optional
|
||||
./etc/ttys type=file mode=0644
|
||||
./etc/usermgmt.conf type=file mode=0644 optional
|
||||
./etc/weekly type=file mode=0644
|
||||
./etc/weekly.conf type=file mode=0644
|
||||
./etc/weekly.local type=file mode=0644 optional
|
||||
./etc/wscons.conf type=file mode=0644
|
||||
./etc/zfs type=dir mode=0755
|
||||
|
||||
./private type=dir mode=0755 optional
|
||||
./private/tmp type=dir mode=0111 optional ignore
|
||||
|
||||
./root type=dir mode=0755
|
||||
./root/.cshrc type=file mode=0644
|
||||
./root/.klogin type=file mode=0600 optional tags=nodiff
|
||||
./root/.login type=file mode=0644
|
||||
./root/.profile type=file mode=0644
|
||||
./root/.rhosts type=file mode=0600 optional tags=nodiff
|
||||
./root/.shosts type=file mode=0600 optional tags=nodiff
|
||||
./root/.ssh type=dir mode=0700 optional
|
||||
./root/.ssh/authorized_keys type=file mode=0600 optional tags=nodiff
|
||||
./root/.ssh/authorized_keys2 type=file mode=0600 optional tags=nodiff
|
||||
./root/.ssh/config type=file mode=0644 optional
|
||||
./root/.ssh/id_dsa type=file mode=0600 optional tags=nodiff
|
||||
./root/.ssh/id_dsa.pub type=file mode=0644 optional
|
||||
./root/.ssh/id_rsa type=file mode=0600 optional tags=nodiff
|
||||
./root/.ssh/id_rsa.pub type=file mode=0644 optional
|
||||
./root/.ssh/identity type=file mode=0600 optional tags=nodiff
|
||||
./root/.ssh/identity.pub type=file mode=0644 optional
|
||||
./root/.ssh/known_hosts type=file mode=0644 optional
|
||||
./root/.ssh/known_hosts2 type=file mode=0644 optional
|
||||
|
||||
./sbin type=dir mode=0755 ignore
|
||||
|
||||
./usr type=dir mode=0755
|
||||
./usr/bin type=dir mode=0755 ignore
|
||||
./usr/games type=dir mode=0755 optional
|
||||
./usr/games/hide type=dir mode=0750 gname=games ignore optional
|
||||
./usr/include type=dir mode=0755 ignore
|
||||
./usr/lib type=dir mode=0755 ignore
|
||||
./usr/libdata type=dir mode=0755 ignore
|
||||
./usr/libexec type=dir mode=0755 ignore
|
||||
./usr/pkg type=dir mode=0755 ignore optional
|
||||
./usr/sbin type=dir mode=0755 ignore
|
||||
./usr/share type=dir mode=0755 ignore
|
||||
|
||||
./var type=dir mode=0755
|
||||
./var/account type=dir mode=0755
|
||||
./var/account/acct type=file mode=0644 optional tags=exclude
|
||||
./var/at type=dir mode=0755 ignore
|
||||
./var/backups type=dir mode=0755 ignore
|
||||
./var/chroot type=dir mode=0755
|
||||
./var/chroot/ftp-proxy type=dir mode=0755
|
||||
./var/chroot/named type=dir mode=0755
|
||||
./var/chroot/named/dev type=dir mode=0755
|
||||
./var/chroot/named/etc type=dir mode=0755
|
||||
./var/chroot/named/etc/namedb type=dir mode=0755
|
||||
./var/chroot/named/etc/namedb/cache type=dir mode=0775 uname=named gname=named
|
||||
./var/chroot/named/etc/namedb/keys type=dir mode=0775 uname=named gname=named
|
||||
./var/chroot/named/usr type=dir mode=0755
|
||||
./var/chroot/named/usr/libexec type=dir mode=0755
|
||||
./var/chroot/named/var type=dir mode=0755
|
||||
./var/chroot/named/var/run type=dir mode=0775 gname=named
|
||||
./var/chroot/named/var/tmp type=dir mode=01775 gname=named
|
||||
./var/chroot/ntpd type=dir mode=0755
|
||||
./var/chroot/ntpd/dev type=dir mode=0755
|
||||
./var/chroot/ntpd/var type=dir mode=0755
|
||||
./var/chroot/ntpd/var/db type=dir mode=0775 gname=ntpd
|
||||
./var/chroot/ntpd/var/run type=dir mode=0775 gname=ntpd
|
||||
./var/chroot/pflogd type=dir mode=0755
|
||||
./var/chroot/rtadvd type=dir mode=0755
|
||||
./var/chroot/rtadvd/etc type=dir mode=0755
|
||||
./var/chroot/rtadvd/var type=dir mode=0755
|
||||
./var/chroot/rtadvd/var/run type=dir mode=0775 gname=_rtadvd
|
||||
./var/chroot/sshd type=dir mode=0755
|
||||
./var/chroot/tcpdump type=dir mode=0755
|
||||
./var/chroot/tftp-proxy type=dir mode=0755
|
||||
./var/cron type=dir mode=0755
|
||||
./var/cron/tabs type=dir mode=0700
|
||||
./var/cron/tabs/root type=file mode=0600 tags=nodiff
|
||||
./var/db type=dir mode=0755
|
||||
./var/log type=dir mode=0755
|
||||
./var/log/authlog type=file mode=0600 optional tags=exclude
|
||||
./var/log/lastlog type=file mode=0664 gname=utmp tags=exclude
|
||||
./var/log/lastlogx type=file mode=0664 gname=utmp tags=exclude
|
||||
./var/log/wtmp type=file mode=0664 gname=utmp tags=exclude
|
||||
./var/log/wtmpx type=file mode=0664 gname=utmp tags=exclude
|
||||
./var/mail type=dir mode=1777 ignore
|
||||
./var/preserve type=dir mode=0755 ignore
|
||||
./var/run type=dir mode=0755
|
||||
./var/run/mdnsd type=dir mode=0755 gname=_mdnsd uname=_mdnsd optional
|
||||
./var/run/utmp type=file mode=0664 gname=utmp tags=exclude
|
||||
./var/run/utmpx type=file mode=0664 gname=utmp tags=exclude
|
||||
./var/spool type=dir mode=0755
|
||||
./var/spool/ftp type=dir mode=0755 optional
|
||||
./var/spool/ftp/bin type=dir mode=0755 optional
|
||||
./var/spool/ftp/bin/ls type=file mode=0555 optional
|
||||
./var/spool/ftp/etc type=dir mode=0755 optional
|
||||
./var/spool/ftp/etc/group type=file mode=0644 optional
|
||||
./var/spool/ftp/etc/localtime type=file mode=0644 optional
|
||||
./var/spool/ftp/etc/master.passwd type=file mode=0600 optional tags=nodiff
|
||||
./var/spool/ftp/etc/passwd type=file mode=0644 optional
|
||||
./var/spool/ftp/hidden type=dir mode=0111 ignore optional
|
||||
./var/spool/ftp/pub type=dir mode=0775 ignore optional
|
||||
./var/spool/output type=dir mode=0755 ignore
|
||||
./var/yp type=dir mode=0755
|
||||
./var/yp/Makefile type=file mode=0644 optional
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
; $NetBSD: 127,v 1.4 2001/01/28 06:59:31 itojun Exp $
|
||||
|
||||
$TTL 3600
|
||||
@ IN SOA netbsd.org. hostmaster.netbsd.org. (
|
||||
1999012100 ; Serial
|
||||
3600 ; Refresh
|
||||
300 ; Retry
|
||||
3600000 ; Expire
|
||||
3600 ) ; Minimum
|
||||
IN NS localhost.
|
||||
1.0.0 IN PTR localhost.
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.3 2013/04/25 17:02:29 christos Exp $
|
||||
|
||||
CONFIGFILES= 127 root.cache localhost loopback.v6 bind.keys
|
||||
FILESDIR= /etc/namedb
|
||||
FILESMODE= 644
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
/* $NetBSD: bind.keys,v 1.1 2013/04/25 17:02:29 christos Exp $ */
|
||||
/* Id: bind.keys,v 1.7 2011-01-03 23:45:07 each Exp */
|
||||
# The bind.keys file is used to override the built-in DNSSEC trust anchors
|
||||
# which are included as part of BIND 9. As of the current release, the only
|
||||
# trust anchors it contains are those for the DNS root zone ("."), and for
|
||||
# the ISC DNSSEC Lookaside Validation zone ("dlv.isc.org"). Trust anchors
|
||||
# for any other zones MUST be configured elsewhere; if they are configured
|
||||
# here, they will not be recognized or used by named.
|
||||
#
|
||||
# The built-in trust anchors are provided for convenience of configuration.
|
||||
# They are not activated within named.conf unless specifically switched on.
|
||||
# To use the built-in root key, set "dnssec-validation auto;" in
|
||||
# named.conf options. To use the built-in DLV key, set
|
||||
# "dnssec-lookaside auto;". Without these options being set,
|
||||
# the keys in this file are ignored.
|
||||
#
|
||||
# This file is NOT expected to be user-configured.
|
||||
#
|
||||
# These keys are current as of January 2011. If any key fails to
|
||||
# initialize correctly, it may have expired. In that event you should
|
||||
# replace this file with a current version. The latest version of
|
||||
# bind.keys can always be obtained from ISC at https://www.isc.org/bind-keys.
|
||||
|
||||
managed-keys {
|
||||
# ISC DLV: See https://www.isc.org/solutions/dlv for details.
|
||||
# NOTE: This key is activated by setting "dnssec-lookaside auto;"
|
||||
# in named.conf.
|
||||
dlv.isc.org. initial-key 257 3 5 "BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWEn4MxDCE1+lLy2
|
||||
brhQv5rN32RKtMzX6Mj70jdzeND4XknW58dnJNPCxn8+jAGl2FZLK8t+
|
||||
1uq4W+nnA3qO2+DL+k6BD4mewMLbIYFwe0PG73Te9fZ2kJb56dhgMde5
|
||||
ymX4BI/oQ+cAK50/xvJv00Frf8kw6ucMTwFlgPe+jnGxPPEmHAte/URk
|
||||
Y62ZfkLoBAADLHQ9IrS2tryAe7mbBZVcOwIeU/Rw/mRx/vwwMCTgNboM
|
||||
QKtUdvNXDrYJDSHZws3xiRXF1Rf+al9UmZfSav/4NWLKjHzpT59k/VSt
|
||||
TDN0YUuWrBNh";
|
||||
|
||||
# ROOT KEY: See https://data.iana.org/root-anchors/root-anchors.xml
|
||||
# for current trust anchor information.
|
||||
# NOTE: This key is activated by setting "dnssec-validation auto;"
|
||||
# in named.conf.
|
||||
. initial-key 257 3 8 "AwEAAagAIKlVZrpC6Ia7gEzahOR+9W29euxhJhVVLOyQbSEW0O8gcCjF
|
||||
FVQUTf6v58fLjwBd0YI0EzrAcQqBGCzh/RStIoO8g0NfnfL2MTJRkxoX
|
||||
bfDaUeVPQuYEhg37NZWAJQ9VnMVDxP/VHL496M/QZxkjf5/Efucp2gaD
|
||||
X6RS6CXpoY68LsvPVjR0ZSwzz1apAzvN9dlzEheX7ICJBBtuA6G3LQpz
|
||||
W5hOA2hzCTMjJPJ8LbqF6dsV6DoBQzgul0sGIcGOYl7OyQdXfZ57relS
|
||||
Qageu+ipAdTTJ25AsRTAoub8ONGcLmqrAmRLKBP1dfwhYB4N7knNnulq
|
||||
QxA+Uk1ihz0=";
|
||||
};
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
; $NetBSD: localhost,v 1.2 2000/05/19 13:07:37 sommerfeld Exp $
|
||||
|
||||
$TTL 3600
|
||||
@ IN SOA netbsd.org. hostmaster.netbsd.org. (
|
||||
1999012100 ; Serial
|
||||
3600 ; Refresh
|
||||
300 ; Retry
|
||||
3600000 ; Expire
|
||||
3600 ) ; Minimum
|
||||
IN NS localhost.
|
||||
localhost. IN A 127.0.0.1
|
||||
IN AAAA ::1
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
; $NetBSD: loopback.v6,v 1.3 2002/01/22 03:27:24 itojun Exp $
|
||||
|
||||
$TTL 3600
|
||||
@ IN SOA netbsd.org. hostmaster.netbsd.org. (
|
||||
1999012100 ; Serial
|
||||
3600 ; Refresh
|
||||
300 ; Retry
|
||||
3600000 ; Expire
|
||||
3600 ) ; Minimum
|
||||
IN NS localhost.
|
||||
IN PTR localhost.
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
; $NetBSD: root.cache,v 1.18 2014/07/01 03:33:28 taca Exp $
|
||||
; This file holds the information on root name servers needed to
|
||||
; initialize cache of Internet domain name servers
|
||||
; (e.g. reference this file in the "cache . <file>"
|
||||
; configuration file of BIND domain name servers).
|
||||
;
|
||||
; This file is made available by InterNIC
|
||||
; under anonymous FTP as
|
||||
; file /domain/named.cache
|
||||
; on server FTP.INTERNIC.NET
|
||||
; -OR- RS.INTERNIC.NET
|
||||
;
|
||||
; last update: June 2, 2014
|
||||
; related version of root zone: 2014060201
|
||||
;
|
||||
; formerly NS.INTERNIC.NET
|
||||
;
|
||||
. 3600000 IN NS A.ROOT-SERVERS.NET.
|
||||
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
|
||||
A.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:BA3E::2:30
|
||||
;
|
||||
; FORMERLY NS1.ISI.EDU
|
||||
;
|
||||
. 3600000 NS B.ROOT-SERVERS.NET.
|
||||
B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201
|
||||
B.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:84::B
|
||||
;
|
||||
; FORMERLY C.PSI.NET
|
||||
;
|
||||
. 3600000 NS C.ROOT-SERVERS.NET.
|
||||
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
|
||||
C.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2::C
|
||||
;
|
||||
; FORMERLY TERP.UMD.EDU
|
||||
;
|
||||
. 3600000 NS D.ROOT-SERVERS.NET.
|
||||
D.ROOT-SERVERS.NET. 3600000 A 199.7.91.13
|
||||
D.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2D::D
|
||||
;
|
||||
; FORMERLY NS.NASA.GOV
|
||||
;
|
||||
. 3600000 NS E.ROOT-SERVERS.NET.
|
||||
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
|
||||
;
|
||||
; FORMERLY NS.ISC.ORG
|
||||
;
|
||||
. 3600000 NS F.ROOT-SERVERS.NET.
|
||||
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
|
||||
F.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:2F::F
|
||||
;
|
||||
; FORMERLY NS.NIC.DDN.MIL
|
||||
;
|
||||
. 3600000 NS G.ROOT-SERVERS.NET.
|
||||
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
|
||||
;
|
||||
; FORMERLY AOS.ARL.ARMY.MIL
|
||||
;
|
||||
. 3600000 NS H.ROOT-SERVERS.NET.
|
||||
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
|
||||
H.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:1::803F:235
|
||||
;
|
||||
; FORMERLY NIC.NORDU.NET
|
||||
;
|
||||
. 3600000 NS I.ROOT-SERVERS.NET.
|
||||
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
|
||||
I.ROOT-SERVERS.NET. 3600000 AAAA 2001:7FE::53
|
||||
;
|
||||
; OPERATED BY VERISIGN, INC.
|
||||
;
|
||||
. 3600000 NS J.ROOT-SERVERS.NET.
|
||||
J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30
|
||||
J.ROOT-SERVERS.NET. 3600000 AAAA 2001:503:C27::2:30
|
||||
;
|
||||
; OPERATED BY RIPE NCC
|
||||
;
|
||||
. 3600000 NS K.ROOT-SERVERS.NET.
|
||||
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
|
||||
K.ROOT-SERVERS.NET. 3600000 AAAA 2001:7FD::1
|
||||
;
|
||||
; OPERATED BY ICANN
|
||||
;
|
||||
. 3600000 NS L.ROOT-SERVERS.NET.
|
||||
L.ROOT-SERVERS.NET. 3600000 A 199.7.83.42
|
||||
L.ROOT-SERVERS.NET. 3600000 AAAA 2001:500:3::42
|
||||
;
|
||||
; OPERATED BY WIDE
|
||||
;
|
||||
. 3600000 NS M.ROOT-SERVERS.NET.
|
||||
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
|
||||
M.ROOT-SERVERS.NET. 3600000 AAAA 2001:DC3::35
|
||||
; End of File
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
# $NetBSD: nsswitch.conf,v 1.6 2009/10/25 00:17:06 tsarna Exp $
|
||||
#
|
||||
# nsswitch.conf(5) -
|
||||
# name service switch configuration file
|
||||
#
|
||||
|
||||
|
||||
# These are the defaults in libc
|
||||
#
|
||||
group: compat
|
||||
group_compat: nis
|
||||
hosts: files dns
|
||||
netgroup: files [notfound=return] nis
|
||||
networks: files
|
||||
passwd: compat
|
||||
passwd_compat: nis
|
||||
shells: files
|
||||
|
||||
|
||||
# List of supported sources for each database
|
||||
#
|
||||
# group: compat, dns, files, nis
|
||||
# group_compat: dns, nis
|
||||
# hosts: dns, files, nis, mdnsd, multicast_dns
|
||||
# netgroup: files, nis
|
||||
# networks: dns, files, nis
|
||||
# passwd: compat, dns, files, nis
|
||||
# passwd_compat: dns, nis
|
||||
# shells: dns, files, nis
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: DAEMON,v 1.8 2002/03/22 04:33:57 thorpej Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: DAEMON
|
||||
# REQUIRE: NETWORKING SERVERS
|
||||
|
||||
# This is a dummy dependency, to ensure that general purpose daemons
|
||||
# are run _after_ the above are.
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: DISKS,v 1.1 2009/04/21 16:08:57 joerg Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: DISKS
|
||||
|
||||
#
|
||||
# This is a dummy dependency, to ensure that all disk devices are
|
||||
# accessible for fsck and mountcritlocal.
|
||||
#
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: LOGIN,v 1.7 2002/03/22 04:33:57 thorpej Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: LOGIN
|
||||
# REQUIRE: DAEMON
|
||||
|
||||
# This is a dummy dependency to ensure user services such as xdm,
|
||||
# inetd, cron and kerberos are started after everything else, incase
|
||||
# the administrator has increased the system security level and
|
||||
# wants to delay user logins until the system is (almost) fully
|
||||
# operational.
|
||||
|
|
@ -1,79 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.93 2015/03/30 10:58:37 chopps Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
#
|
||||
# NOTE:
|
||||
#
|
||||
# If you're adding new scripts, don't forget to update following:
|
||||
# src/distrib/sets/lists/etc/mi
|
||||
# src/etc/mtree/special
|
||||
# src/usr.sbin/postinstall/postinstall
|
||||
#
|
||||
# You can find a script to visualize the dependency graph in
|
||||
# src/sbin/rcorder.
|
||||
|
||||
# MINIX: the idea for importing rc.d scripts is basically:
|
||||
# - in principle, import only the scripts for functionality that we support;
|
||||
# - do not change dependencies ("REQUIRE", "BEFORE") in such scripts; rather,
|
||||
# satisfy the dependencies, recursively, with the following rules;
|
||||
# - for each such dependency, if it can be disabled (= it has a "rcvar"), then
|
||||
# import its script as is, even if we do not support its functionality;
|
||||
# - if such an unsupported dependency is enabled by default as per
|
||||
# etc/defaults/rc.conf, then disable it by overriding it explicitly in
|
||||
# etc/defaults/minix.rc.conf;
|
||||
# - for unsupported dependencies that can not be disabled, create a stub for it
|
||||
# (examples: fsck, root, mountcritlocal) but whenever relevant do try to keep
|
||||
# its dependency listing intact so as not to disturb the regular ordering.
|
||||
CONFIGFILES=\
|
||||
DAEMON DISKS LOGIN NETWORKING SERVERS \
|
||||
\
|
||||
bootconf.sh \
|
||||
\
|
||||
dhclient dhcpcd dhcpd dhcrelay downinterfaces \
|
||||
fsck ftpd \
|
||||
\
|
||||
\
|
||||
inetd ipfilter ipsec \
|
||||
\
|
||||
\
|
||||
local \
|
||||
\
|
||||
mountcritlocal mountcritremote \
|
||||
named network npf \
|
||||
\
|
||||
pwcheck \
|
||||
\
|
||||
\
|
||||
root rtadvd \
|
||||
\
|
||||
\
|
||||
staticroute sysctl sysdb syslogd \
|
||||
ttys \
|
||||
wscons \
|
||||
|
||||
|
||||
.if defined(__MINIX)
|
||||
# MINIX: we will gradually switch over to the NetBSD rc system. For conflict
|
||||
# avoidance, all MINIX-specific scripts should have "minix" in their name.
|
||||
CONFIGFILES+= minixrc
|
||||
.endif
|
||||
|
||||
FILESDIR= /etc/rc.d
|
||||
FILESMODE= ${BINMODE}
|
||||
|
||||
.if !defined(__MINIX) # XXX needs testing first
|
||||
.if ${MKX11} != "no"
|
||||
CONFIGFILES+= xdm xfs fccache
|
||||
FILESBUILD_xdm= yes
|
||||
FILESBUILD_xfs= yes
|
||||
FILESBUILD_fccache= yes
|
||||
.endif # !defined(__MINIX)
|
||||
|
||||
.SUFFIXES: .in
|
||||
.in:
|
||||
${_MKTARGET_CREATE}
|
||||
${TOOL_SED} -e 's,@X11ROOTDIR@,${X11ROOTDIR},g' < ${.IMPSRC} > ${.TARGET}
|
||||
.endif
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: NETWORKING,v 1.2 2002/03/22 04:33:57 thorpej Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: NETWORKING NETWORK
|
||||
|
||||
# This is a dummy dependency, for services which require networking
|
||||
# to be operational before starting.
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: SERVERS,v 1.9 2002/03/22 04:33:57 thorpej Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: SERVERS
|
||||
# REQUIRE: mountcritremote
|
||||
|
||||
# This is a dummy dependency, for early-start servers relying on
|
||||
# some basic configuration.
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: bootconf.sh,v 1.15 2012/12/31 23:21:27 christos Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: bootconf
|
||||
# REQUIRE: mountcritlocal
|
||||
# KEYWORD: interactive
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="bootconf"
|
||||
start_cmd="bootconf_start"
|
||||
stop_cmd=":"
|
||||
|
||||
bootconf_start()
|
||||
{
|
||||
# Refer to newbtconf(8) for more information
|
||||
#
|
||||
|
||||
if [ ! -e /etc/etc.current ]; then
|
||||
return 0
|
||||
fi
|
||||
if [ -h /etc/etc.default ]; then
|
||||
def=$(ls -ld /etc/etc.default 2>&1)
|
||||
default="${def##*-> *etc.}"
|
||||
else
|
||||
default=current
|
||||
fi
|
||||
if [ "$default" = "current" ]; then
|
||||
def=$(ls -ld /etc/etc.current 2>&1)
|
||||
default="${def##*-> *etc.}"
|
||||
fi
|
||||
|
||||
spc=""
|
||||
for i in /etc/etc.*; do
|
||||
name="${i##/etc/etc.}"
|
||||
case $name in
|
||||
current|default|\*)
|
||||
continue
|
||||
;;
|
||||
*)
|
||||
if [ "$name" = "$default" ]; then
|
||||
echo -n "${spc}[${name}]"
|
||||
else
|
||||
echo -n "${spc}${name}"
|
||||
fi
|
||||
spc=" "
|
||||
;;
|
||||
esac
|
||||
done
|
||||
echo
|
||||
_DUMMY=/etc/passwd
|
||||
conf=${_DUMMY}
|
||||
while [ ! -d /etc/etc.$conf/. ]; do
|
||||
trap "conf=$default; echo; echo Using default of $default" ALRM
|
||||
echo -n "Which configuration [$default] ? "
|
||||
(sleep 30 && kill -ALRM $RC_PID) >/dev/null 2>&1 &
|
||||
read conf
|
||||
trap : ALRM
|
||||
if [ -z $conf ] ; then
|
||||
conf=$default
|
||||
fi
|
||||
if [ ! -d /etc/etc.$conf/. ]; then
|
||||
conf=${_DUMMY}
|
||||
fi
|
||||
done
|
||||
|
||||
print_rc_metadata "note:Using configuration \"${conf}\""
|
||||
|
||||
case $conf in
|
||||
current|default)
|
||||
;;
|
||||
*)
|
||||
rm -f /etc/etc.current
|
||||
ln -s etc.$conf /etc/etc.current
|
||||
sync
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -f /etc/rc.conf ] ; then
|
||||
. /etc/rc.conf
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: dhclient,v 1.9 2004/08/13 18:08:03 mycroft Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: dhclient
|
||||
# REQUIRE: network mountcritlocal
|
||||
# BEFORE: NETWORKING
|
||||
#
|
||||
# Note that there no syslog logging of dhclient messages at boot because
|
||||
# dhclient needs to start before services that syslog depends upon do.
|
||||
#
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="dhclient"
|
||||
rcvar=$name
|
||||
command="/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: dhcpd,v 1.7 2014/07/17 07:17:03 spz Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: dhcpd
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="dhcpd"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/${name}"
|
||||
start_precmd="dhcpd_precmd"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
required_files="/etc/${name}.conf"
|
||||
|
||||
dhcpd_precmd()
|
||||
{
|
||||
if [ ! -e "/var/db/${name}.leases" ]; then
|
||||
echo "Creating /var/db/${name}.leases"
|
||||
touch /var/db/${name}.leases
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,18 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: dhcrelay,v 1.6 2004/08/13 18:08:03 mycroft Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: dhcrelay
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="dhcrelay"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: downinterfaces,v 1.6 2009/09/05 16:26:07 apb Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: downinterfaces
|
||||
# KEYWORD: nostart shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="downinterfaces"
|
||||
start_cmd=":"
|
||||
stop_cmd="downinterfaces_stop"
|
||||
|
||||
downinterfaces_stop()
|
||||
{
|
||||
tmp=$(ifconfig -lu)
|
||||
iflist=""
|
||||
for int in $tmp; do
|
||||
case $int in
|
||||
pppoe*) iflist="$iflist $int"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
iflist="$iflist $force_down_interfaces"
|
||||
if [ "$iflist" != "" ] && [ "$iflist" != " " ]
|
||||
then
|
||||
|
||||
echo "Shutting down interfaces:$iflist"
|
||||
for int in $iflist; do
|
||||
ifconfig $int down
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: ftpd,v 1.3 2005/08/09 14:59:33 peter Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: ftpd
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="ftpd"
|
||||
rcvar=$name
|
||||
command="/usr/libexec/${name}"
|
||||
command_args="-D"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: inetd,v 1.7 2004/08/13 18:08:03 mycroft Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: inetd
|
||||
# REQUIRE: DAEMON LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="inetd"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
required_files="/etc/${name}.conf"
|
||||
extra_commands="reload"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,104 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: ipfilter,v 1.18 2009/03/23 18:52:02 hannken Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: ipfilter
|
||||
# REQUIRE: root bootconf mountcritlocal tty
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="ipfilter"
|
||||
rcvar=$name
|
||||
start_precmd="ipfilter_prestart"
|
||||
start_cmd="ipfilter_start"
|
||||
stop_precmd="test -f /etc/ipf.conf -o -f /etc/ipf6.conf"
|
||||
stop_cmd="ipfilter_stop"
|
||||
reload_precmd="$stop_precmd"
|
||||
reload_cmd="ipfilter_reload"
|
||||
resync_precmd="$stop_precmd"
|
||||
resync_cmd="ipfilter_resync"
|
||||
status_precmd="$stop_precmd"
|
||||
status_cmd="ipfilter_status"
|
||||
extra_commands="reload resync status"
|
||||
|
||||
ipfilter_prestart()
|
||||
{
|
||||
if [ ! -f /etc/ipf.conf ] && [ ! -f /etc/ipf6.conf ]; then
|
||||
warn "/etc/ipf*.conf not readable; ipfilter start aborted."
|
||||
|
||||
stop_boot
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
ipfilter_start()
|
||||
{
|
||||
echo "Enabling ipfilter."
|
||||
/sbin/ipf ${rc_flags} -E
|
||||
|
||||
# Do the flush first; since older ipf has different semantics.
|
||||
#
|
||||
if [ -f /etc/ipf.conf ]; then
|
||||
/sbin/ipf -Fa
|
||||
fi
|
||||
if [ -f /etc/ipf6.conf ]; then
|
||||
/sbin/ipf -6 -Fa
|
||||
fi
|
||||
|
||||
# Now load the config files
|
||||
#
|
||||
if [ -f /etc/ipf.conf ]; then
|
||||
/sbin/ipf -f /etc/ipf.conf
|
||||
fi
|
||||
if [ -f /etc/ipf6.conf ]; then
|
||||
/sbin/ipf -6 -f /etc/ipf6.conf
|
||||
fi
|
||||
}
|
||||
|
||||
ipfilter_stop()
|
||||
{
|
||||
echo "Disabling ipfilter."
|
||||
/sbin/ipf -D
|
||||
}
|
||||
|
||||
ipfilter_reload()
|
||||
{
|
||||
echo "Reloading ipfilter rules."
|
||||
|
||||
# Do the flush first; since older ipf has different semantics.
|
||||
#
|
||||
if [ -f /etc/ipf.conf ]; then
|
||||
/sbin/ipf -I -Fa
|
||||
fi
|
||||
if [ -f /etc/ipf6.conf ]; then
|
||||
/sbin/ipf -6 -I -Fa
|
||||
fi
|
||||
|
||||
# Now load the config files into the Inactive set
|
||||
#
|
||||
if [ -f /etc/ipf.conf ] && ! /sbin/ipf -I -f /etc/ipf.conf; then
|
||||
err 1 "reload of ipf.conf failed; not swapping to new ruleset."
|
||||
fi
|
||||
if [ -f /etc/ipf6.conf ] && ! /sbin/ipf -I -6 -f /etc/ipf6.conf; then
|
||||
err 1 "reload of ipf6.conf failed; not swapping to new ruleset."
|
||||
fi
|
||||
|
||||
# Swap in the new rules
|
||||
#
|
||||
/sbin/ipf -s
|
||||
}
|
||||
|
||||
ipfilter_resync()
|
||||
{
|
||||
/sbin/ipf -y
|
||||
}
|
||||
|
||||
ipfilter_status()
|
||||
{
|
||||
/sbin/ipf -V
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: ipsec,v 1.13 2013/09/12 19:52:50 christos Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: ipsec
|
||||
# REQUIRE: root bootconf mountcritlocal tty
|
||||
# BEFORE: DAEMON
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="ipsec"
|
||||
rcvar=$name
|
||||
start_precmd="ipsec_prestart"
|
||||
start_cmd="ipsec_start"
|
||||
stop_precmd="test -f /etc/ipsec.conf"
|
||||
stop_cmd="ipsec_stop"
|
||||
reload_cmd="ipsec_reload"
|
||||
extra_commands="reload"
|
||||
|
||||
ipsec_prestart()
|
||||
{
|
||||
if [ ! -f /etc/ipsec.conf ]; then
|
||||
warn "/etc/ipsec.conf not readable; ipsec start aborted."
|
||||
|
||||
stop_boot
|
||||
return 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
|
||||
ipsec_getip() {
|
||||
ifconfig $1 | while read what address rest; do
|
||||
case "$what" in
|
||||
inet) echo "$address";;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
ipsec_load() {
|
||||
if [ -z "$1" ]; then
|
||||
/sbin/setkey -f /etc/ipsec.conf
|
||||
else
|
||||
sed -e "s/@LOCAL_ADDR@/$1/" < /etc/ipsec.conf | \
|
||||
/sbin/setkey -f -
|
||||
fi
|
||||
}
|
||||
|
||||
ipsec_configure() {
|
||||
while true; do
|
||||
local addr="$(ipsec_getip "$ipsec_flags")"
|
||||
case "$addr" in
|
||||
'') sleep 1;;
|
||||
"0.0.0.0") sleep 1;;
|
||||
*) ipsec_load "$addr"; return;;
|
||||
esac
|
||||
done &
|
||||
}
|
||||
|
||||
ipsec_start()
|
||||
{
|
||||
echo "Installing ipsec manual keys/policies."
|
||||
if [ -n "$ipsec_flags" ]; then
|
||||
ipsec_configure
|
||||
else
|
||||
ipsec_load
|
||||
fi
|
||||
}
|
||||
|
||||
ipsec_stop()
|
||||
{
|
||||
echo "Clearing ipsec manual keys/policies."
|
||||
|
||||
# still not 100% sure if we would like to do this.
|
||||
# it is very questionable to do this during shutdown session, since
|
||||
# it can hang any of remaining IPv4/v6 session.
|
||||
#
|
||||
/sbin/setkey -F
|
||||
/sbin/setkey -FP
|
||||
}
|
||||
|
||||
ipsec_reload()
|
||||
{
|
||||
echo "Reloading ipsec manual keys/policies."
|
||||
ipsec_stop
|
||||
ipsec_start
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: local,v 1.7 2004/08/13 18:08:03 mycroft Exp $
|
||||
#
|
||||
|
||||
# REQUIRE: DAEMON
|
||||
# PROVIDE: local
|
||||
# BEFORE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="local"
|
||||
start_cmd="local_start"
|
||||
stop_cmd="local_stop"
|
||||
|
||||
local_start()
|
||||
{
|
||||
if [ -f /etc/rc.local ]; then
|
||||
. /etc/rc.local
|
||||
fi
|
||||
}
|
||||
|
||||
local_stop()
|
||||
{
|
||||
if [ -f /etc/rc.shutdown.local ]; then
|
||||
. /etc/rc.shutdown.local
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/sh
|
||||
# MINIX 3 bridge from NetBSD rc to MINIX rc. Must be called as the very first
|
||||
# script at startup (hence the current 'before'). Ideally the MINIX rc would
|
||||
# be decomposed into a number of small rc scripts, though.
|
||||
|
||||
# PROVIDE: minixrc
|
||||
# BEFORE: DISKS
|
||||
# KEYWORD: shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="minixrc"
|
||||
start_cmd="sh /etc/rc.minix start"
|
||||
stop_cmd="sh /etc/rc.minix stop"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
146
etc/rc.d/named
146
etc/rc.d/named
|
|
@ -1,146 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: named,v 1.25 2014/07/13 22:06:56 tls Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: named
|
||||
# REQUIRE: NETWORKING mountcritremote syslogd
|
||||
# BEFORE: DAEMON
|
||||
# KEYWORD: chrootdir
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="named"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/${name}"
|
||||
pidfile="/var/run/${name}/${name}.pid"
|
||||
start_precmd="named_precmd"
|
||||
extra_commands="reload"
|
||||
required_dirs="$named_chrootdir" # if it is set, it must exist
|
||||
|
||||
named_migrate()
|
||||
{
|
||||
local src="$1"
|
||||
local dst="$2$1"
|
||||
echo "Migrating $src to $dst"
|
||||
(
|
||||
diff=false
|
||||
cd "$src"
|
||||
mkdir -p "$dst"
|
||||
for f in $(find . -type f)
|
||||
do
|
||||
f="${f##./}"
|
||||
case "$f" in
|
||||
*/*)
|
||||
ds="$(dirname "$f")"
|
||||
dd="$dst/$ds"
|
||||
mkdir -p "$dd"
|
||||
chmod "$(stat -f "%p" "$ds" |
|
||||
sed -e 's/.*\([0-7][0-7][0-7][0-7]\)$/\1/g')" "$dd"
|
||||
chown "$(stat -f %u:%g "$ds")" "$dd"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
if [ -r "$dst/$f" ]
|
||||
then
|
||||
if ! cmp "$f" "$dst/$f"; then
|
||||
diff=true
|
||||
fi
|
||||
else
|
||||
cp -p "$f" "$dst/$f"
|
||||
fi
|
||||
done
|
||||
if $diff; then
|
||||
echo "Cannot complete migration because files are different"
|
||||
echo "Run 'diff -r $src $dst' resolve the differences"
|
||||
else
|
||||
rm -fr "$src"
|
||||
ln -s "$dst" "$src"
|
||||
fi
|
||||
)
|
||||
}
|
||||
|
||||
named_precmd()
|
||||
{
|
||||
if [ ! -e "/etc/rndc.key" ]; then
|
||||
echo "Generating rndc.key"
|
||||
/usr/sbin/rndc-confgen -a
|
||||
fi
|
||||
|
||||
if [ -z "$named_chrootdir" ]; then
|
||||
if [ ! -d "/etc/namedb/keys" ]; then
|
||||
mkdir -m 775 "/etc/namedb/keys"
|
||||
chown named:named "/etc/namedb/keys"
|
||||
fi
|
||||
return 0;
|
||||
fi
|
||||
|
||||
# If running in a chroot cage, ensure that the appropriate files
|
||||
# exist inside the cage, as well as helper symlinks into the cage
|
||||
# from outside.
|
||||
#
|
||||
# As this is called after the is_running and required_dir checks
|
||||
# are made in run_rc_command(), we can safely assume ${named_chrootdir}
|
||||
# exists and named isn't running at this point (unless forcestart
|
||||
# is used).
|
||||
#
|
||||
case "$($command -v)" in
|
||||
BIND*) # 9 no group, named-xfer, or ndc
|
||||
;;
|
||||
named*) # 4 and 8
|
||||
rc_flags="-g named $rc_flags"
|
||||
if [ ! -x "${named_chrootdir}/usr/libexec/named-xfer" -o \
|
||||
"${named_chrootdir}/usr/libexec/named-xfer" -ot \
|
||||
/usr/libexec/named-xfer ]; then
|
||||
rm -f "${named_chrootdir}/usr/libexec/named-xfer"
|
||||
cp -p /usr/libexec/named-xfer \
|
||||
"${named_chrootdir}/usr/libexec"
|
||||
fi
|
||||
ln -fs "${named_chrootdir}/var/run/ndc" /var/run/ndc
|
||||
;;
|
||||
esac
|
||||
|
||||
for i in null random urandom; do
|
||||
if [ ! -c "${named_chrootdir}/dev/$i" ]; then
|
||||
rm -f "${named_chrootdir}/dev/$i"
|
||||
(cd /dev &&
|
||||
/bin/pax -rw -pe "$i" "${named_chrootdir}/dev")
|
||||
fi
|
||||
done
|
||||
|
||||
if [ ! -h /etc/namedb ]; then
|
||||
named_migrate /etc/namedb ${named_chrootdir}
|
||||
fi
|
||||
|
||||
for i in named.conf rndc.key; do
|
||||
if [ \( -r "/etc/$i" \) -a \( ! -h "/etc/$i" \) -a \
|
||||
\( ! -r "${named_chrootdir}/etc/$i" \) ]; then
|
||||
mv "/etc/$i" "${named_chrootdir}/etc/$i"
|
||||
ln -s "${named_chrootdir}/etc/$i" "/etc/$i"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ \( ! -r ${named_chrootdir}/etc/named.conf \) -a \
|
||||
\( -r ${named_chrootdir}/etc/namedb/named.conf \) ]; then
|
||||
ln -s namedb/named.conf ${named_chrootdir}/etc
|
||||
fi
|
||||
|
||||
if [ -f /etc/localtime ]; then
|
||||
cmp -s /etc/localtime "${named_chrootdir}/etc/localtime" || \
|
||||
cp -p /etc/localtime "${named_chrootdir}/etc/localtime"
|
||||
fi
|
||||
|
||||
local piddir="$(dirname "${pidfile}")"
|
||||
mkdir -p "${named_chrootdir}${piddir}" "${piddir}"
|
||||
chmod 755 "${named_chrootdir}${piddir}" "${piddir}"
|
||||
chown named:named "${named_chrootdir}${piddir}" "${piddir}"
|
||||
ln -fs "${named_chrootdir}${pidfile}" "${pidfile}"
|
||||
|
||||
# Change run_rc_commands()'s internal copy of $named_flags
|
||||
#
|
||||
rc_flags="-u named -t ${named_chrootdir} $rc_flags"
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
546
etc/rc.d/network
546
etc/rc.d/network
|
|
@ -1,546 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: network,v 1.69 2014/10/14 20:49:47 christos Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: network
|
||||
# REQUIRE: ipfilter ipsec mountcritlocal root tty sysctl
|
||||
# BEFORE: NETWORKING
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="network"
|
||||
start_cmd="network_start"
|
||||
stop_cmd="network_stop"
|
||||
|
||||
nl='
|
||||
' # a newline
|
||||
|
||||
intmissing()
|
||||
{
|
||||
local int="$1"
|
||||
shift
|
||||
for i; do
|
||||
if [ "$int" = "$i" ]; then
|
||||
return 1
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
}
|
||||
|
||||
have_inet6()
|
||||
{
|
||||
/sbin/ifconfig lo0 inet6 >/dev/null 2>&1
|
||||
}
|
||||
|
||||
network_start()
|
||||
{
|
||||
# set hostname, turn on network
|
||||
#
|
||||
echo "Starting network."
|
||||
|
||||
network_start_hostname
|
||||
network_start_domainname
|
||||
network_start_loopback
|
||||
have_inet6 &&
|
||||
network_start_ipv6_route
|
||||
[ "$net_interfaces" != NO ] &&
|
||||
network_start_interfaces
|
||||
network_start_aliases
|
||||
network_start_defaultroute
|
||||
network_start_defaultroute6
|
||||
have_inet6 &&
|
||||
network_start_ipv6_autoconf
|
||||
network_start_local
|
||||
}
|
||||
|
||||
network_start_hostname()
|
||||
{
|
||||
# If $hostname is set, use it for my Internet name,
|
||||
# otherwise use /etc/myname
|
||||
#
|
||||
if [ -z "$hostname" ] && [ -f /etc/myname ]; then
|
||||
hostname=$(cat /etc/myname)
|
||||
fi
|
||||
if [ -n "$hostname" ]; then
|
||||
echo "Hostname: $hostname"
|
||||
hostname $hostname
|
||||
else
|
||||
# Don't warn about it if we're going to run
|
||||
# DHCP later, as we will probably get the
|
||||
# hostname at that time.
|
||||
#
|
||||
if ! checkyesno dhclient && ! checkyesno dhcpcd && \
|
||||
[ -z "$(hostname)" ]
|
||||
then
|
||||
warn "\$hostname not set."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
network_start_domainname()
|
||||
{
|
||||
# Check $domainname first, then /etc/defaultdomain,
|
||||
# for NIS/YP domain name
|
||||
#
|
||||
if [ -z "$domainname" ] && [ -f /etc/defaultdomain ]; then
|
||||
domainname=$(cat /etc/defaultdomain)
|
||||
fi
|
||||
if [ -n "$domainname" ]; then
|
||||
echo "NIS domainname: $domainname"
|
||||
domainname $domainname
|
||||
fi
|
||||
|
||||
# Flush all routes just to make sure it is clean
|
||||
if checkyesno flushroutes; then
|
||||
/sbin/route -qn flush
|
||||
fi
|
||||
}
|
||||
|
||||
network_start_loopback()
|
||||
{
|
||||
# Set the address for the first loopback interface, so that the
|
||||
# auto-route from a newly configured interface's address to lo0
|
||||
# works correctly.
|
||||
#
|
||||
# NOTE: obscure networking problems will occur if lo0 isn't configured.
|
||||
#
|
||||
/sbin/ifconfig lo0 inet 127.0.0.1
|
||||
|
||||
# According to RFC1122, 127.0.0.0/8 must not leave the node.
|
||||
#
|
||||
/sbin/route -q add -inet 127.0.0.0 -netmask 0xff000000 127.0.0.1 -reject
|
||||
}
|
||||
|
||||
network_start_ipv6_route()
|
||||
{
|
||||
# IPv6 routing setups, and host/router mode selection.
|
||||
#
|
||||
# We have IPv6 support in kernel.
|
||||
|
||||
# disallow link-local unicast dest without outgoing scope
|
||||
# identifiers.
|
||||
#
|
||||
/sbin/route -q add -inet6 fe80:: -prefixlen 10 ::1 -reject
|
||||
|
||||
# disallow the use of the RFC3849 documentation address
|
||||
#
|
||||
/sbin/route -q add -inet6 2001:db8:: -prefixlen 32 ::1 -reject
|
||||
|
||||
# IPv6 site-local scoped address prefix (fec0::/10)
|
||||
# has been deprecated by RFC3879.
|
||||
#
|
||||
if [ -n "$ip6sitelocal" ]; then
|
||||
warn "\$ip6sitelocal is no longer valid"
|
||||
fi
|
||||
|
||||
# disallow "internal" addresses to appear on the wire.
|
||||
#
|
||||
/sbin/route -q add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject
|
||||
|
||||
# disallow packets to malicious IPv4 compatible prefix
|
||||
#
|
||||
/sbin/route -q add -inet6 ::224.0.0.0 -prefixlen 100 ::1 -reject
|
||||
/sbin/route -q add -inet6 ::127.0.0.0 -prefixlen 104 ::1 -reject
|
||||
/sbin/route -q add -inet6 ::0.0.0.0 -prefixlen 104 ::1 -reject
|
||||
/sbin/route -q add -inet6 ::255.0.0.0 -prefixlen 104 ::1 -reject
|
||||
|
||||
# disallow packets to malicious 6to4 prefix
|
||||
#
|
||||
/sbin/route -q add -inet6 2002:e000:: -prefixlen 20 ::1 -reject
|
||||
/sbin/route -q add -inet6 2002:7f00:: -prefixlen 24 ::1 -reject
|
||||
/sbin/route -q add -inet6 2002:0000:: -prefixlen 24 ::1 -reject
|
||||
/sbin/route -q add -inet6 2002:ff00:: -prefixlen 24 ::1 -reject
|
||||
|
||||
# Completely disallow packets to IPv4 compatible prefix.
|
||||
# This may conflict with RFC1933 under following circumstances:
|
||||
# (1) An IPv6-only KAME node tries to originate packets to IPv4
|
||||
# compatible destination. The KAME node has no IPv4
|
||||
# compatible support. Under RFC1933, it should transmit
|
||||
# native IPv6 packets toward IPv4 compatible destination,
|
||||
# hoping it would reach a router that forwards the packet
|
||||
# toward auto-tunnel interface.
|
||||
# (2) An IPv6-only node originates a packet to IPv4 compatible
|
||||
# destination. A KAME node is acting as an IPv6 router, and
|
||||
# asked to forward it.
|
||||
# Due to rare use of IPv4 compatible address, and security
|
||||
# issues with it, we disable it by default.
|
||||
#
|
||||
/sbin/route -q add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject
|
||||
|
||||
/sbin/sysctl -qw net.inet6.ip6.forwarding=0
|
||||
/sbin/sysctl -qw net.inet6.ip6.accept_rtadv=0
|
||||
|
||||
case $ip6mode in
|
||||
router)
|
||||
echo 'IPv6 mode: router'
|
||||
/sbin/sysctl -qw net.inet6.ip6.forwarding=1
|
||||
|
||||
# disallow unique-local unicast forwarding without
|
||||
# explicit configuration.
|
||||
if ! checkyesno ip6uniquelocal; then
|
||||
/sbin/route -q add -inet6 fc00:: -prefixlen 7 \
|
||||
::1 -reject
|
||||
fi
|
||||
;;
|
||||
|
||||
autohost)
|
||||
echo 'IPv6 mode: autoconfigured host'
|
||||
/sbin/sysctl -qw net.inet6.ip6.accept_rtadv=1
|
||||
;;
|
||||
|
||||
host)
|
||||
echo 'IPv6 mode: host'
|
||||
;;
|
||||
|
||||
*) warn "invalid \$ip6mode value "\"$ip6mode\"
|
||||
;;
|
||||
|
||||
esac
|
||||
}
|
||||
|
||||
network_start_interfaces()
|
||||
{
|
||||
# Configure all of the network interfaces listed in $net_interfaces;
|
||||
# if $auto_ifconfig is YES, grab all interfaces from ifconfig.
|
||||
# In the following, "xxN" stands in for interface names, like "le0".
|
||||
#
|
||||
# For any interfaces that has an $ifconfig_xxN variable
|
||||
# associated, we break it into lines using ';' as a separator,
|
||||
# then process it just like the contents of an /etc/ifconfig.xxN
|
||||
# file.
|
||||
#
|
||||
# For each line from the $ifconfig_xxN variable or the
|
||||
# /etc/ifconfig.xxN file, we ignore comments and blank lines,
|
||||
# treat lines beginning with "!" as commands to execute, treat
|
||||
# "dhcp" as a special case to invoke dhcpcd, and for any other
|
||||
# line we run "ifconfig xxN", using each line of the file as the
|
||||
# arguments for a separate "ifconfig" invocation.
|
||||
#
|
||||
# In order to configure an interface reasonably, you at the very least
|
||||
# need to specify "[addr_family] [hostname]" (e.g "inet my.domain.org"),
|
||||
# and probably a netmask (as in "netmask 0xffffffe0"). You will
|
||||
# frequently need to specify a media type, as in "media UTP", for
|
||||
# interface cards with multiple media connections that do not
|
||||
# autoconfigure. See the ifconfig manual page for details.
|
||||
#
|
||||
# Note that /etc/ifconfig.xxN takes multiple lines. The following
|
||||
# configuration is possible:
|
||||
# inet 10.1.1.1 netmask 0xffffff00
|
||||
# inet 10.1.1.2 netmask 0xffffff00 alias
|
||||
# inet6 2001:db8::1 prefixlen 64 alias
|
||||
#
|
||||
# You can put shell script fragment into /etc/ifconfig.xxN by
|
||||
# starting a line with "!". Refer to ifconfig.if(5) for details.
|
||||
#
|
||||
ifaces="$(/sbin/ifconfig -l)"
|
||||
if checkyesno auto_ifconfig; then
|
||||
tmp="$ifaces"
|
||||
for cloner in $(/sbin/ifconfig -C); do
|
||||
for int in /etc/ifconfig.${cloner}[0-9]*; do
|
||||
[ ! -f $int ] && break
|
||||
tmp="$tmp ${int##*.}"
|
||||
done
|
||||
done
|
||||
else
|
||||
tmp="$net_interfaces"
|
||||
fi
|
||||
echo -n 'Configuring network interfaces:'
|
||||
for int in $tmp; do
|
||||
eval argslist=\$ifconfig_$int
|
||||
|
||||
# Skip interfaces that do not have explicit
|
||||
# configuration information. If auto_ifconfig is
|
||||
# false then also warn about such interfaces.
|
||||
#
|
||||
if [ -z "$argslist" ] && ! [ -f /etc/ifconfig.$int ]
|
||||
then
|
||||
if ! checkyesno auto_ifconfig; then
|
||||
echo
|
||||
warn \
|
||||
"/etc/ifconfig.$int missing and ifconfig_$int not set;"
|
||||
warn "interface $int not configured."
|
||||
fi
|
||||
continue
|
||||
fi
|
||||
|
||||
echo -n " $int"
|
||||
|
||||
# Create the interface if necessary.
|
||||
# If the interface did not exist before,
|
||||
# then also resync ipf(4).
|
||||
#
|
||||
if intmissing $int $ifaces; then
|
||||
if /sbin/ifconfig $int create && \
|
||||
checkyesno ipfilter; then
|
||||
/sbin/ipf -y >/dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
# If $ifconfig_xxN is empty, then use
|
||||
# /etc/ifconfig.xxN, which we know exists due to
|
||||
# an earlier test.
|
||||
#
|
||||
# If $ifconfig_xxN is non-empty and contains a
|
||||
# newline, then just use it as is. (This allows
|
||||
# semicolons through unmolested.)
|
||||
#
|
||||
# If $ifconfig_xxN is non-empty and does not
|
||||
# contain a newline, then convert all semicolons
|
||||
# to newlines.
|
||||
#
|
||||
case "$argslist" in
|
||||
'')
|
||||
cat /etc/ifconfig.$int
|
||||
;;
|
||||
*"${nl}"*)
|
||||
echo "$argslist"
|
||||
;;
|
||||
*)
|
||||
(
|
||||
set -o noglob
|
||||
IFS=';'; set -- $argslist
|
||||
#echo >&2 "[$#] [$1] [$2] [$3] [$4]"
|
||||
IFS="$nl"; echo "$*"
|
||||
)
|
||||
;;
|
||||
esac |
|
||||
collapse_backslash_newline |
|
||||
while read -r args; do
|
||||
case "$args" in
|
||||
''|"#"*|create)
|
||||
;;
|
||||
"!"*)
|
||||
# Run arbitrary command in a subshell.
|
||||
( eval "${args#*!}" )
|
||||
;;
|
||||
dhcp)
|
||||
if ! checkyesno dhcpcd; then
|
||||
/sbin/dhcpcd -n \
|
||||
${dhcpcd_flags} $int
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
# Pass args to ifconfig. Note
|
||||
# that args may contain embedded
|
||||
# shell metacharacters, such as
|
||||
# "ssid 'foo;*>bar'". We eval
|
||||
# one more time so that things
|
||||
# like ssid "Columbia University" work.
|
||||
(
|
||||
set -o noglob
|
||||
eval set -- $args
|
||||
#echo >&2 "[$#] [$1] [$2] [$3]"
|
||||
/sbin/ifconfig $int "$@"
|
||||
)
|
||||
;;
|
||||
esac
|
||||
done
|
||||
configured_interfaces="$configured_interfaces $int"
|
||||
done
|
||||
echo "."
|
||||
}
|
||||
|
||||
network_start_aliases()
|
||||
{
|
||||
echo -n "Adding interface aliases:"
|
||||
|
||||
# Check if each configured interface xxN has an $ifaliases_xxN variable
|
||||
# associated, then configure additional IP addresses for that interface.
|
||||
# The variable contains a list of "address netmask" pairs, with
|
||||
# "netmask" set to "-" if the interface default netmask is to be used.
|
||||
#
|
||||
# Note that $ifaliases_xxN works only in certain cases and its
|
||||
# use is not recommended. Use /etc/ifconfig.xxN or multiple
|
||||
# commands in $ifconfig_xxN instead.
|
||||
#
|
||||
for int in lo0 $configured_interfaces; do
|
||||
eval args=\$ifaliases_$int
|
||||
if [ -n "$args" ]; then
|
||||
set -- $args
|
||||
while [ $# -ge 2 ]; do
|
||||
addr=$1 ; net=$2 ; shift 2
|
||||
if [ "$net" = "-" ]; then
|
||||
# for compatibility only, obsolete
|
||||
/sbin/ifconfig $int inet alias $addr
|
||||
else
|
||||
/sbin/ifconfig $int inet alias $addr \
|
||||
netmask $net
|
||||
fi
|
||||
echo -n " $int:$addr"
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
# /etc/ifaliases, if it exists, contains the names of additional IP
|
||||
# addresses for each interface. It is formatted as a series of lines
|
||||
# that contain
|
||||
# address interface netmask
|
||||
#
|
||||
# Note that /etc/ifaliases works only in certain cases and its
|
||||
# use is not recommended. Use /etc/ifconfig.xxN or multiple
|
||||
# commands in $ifconfig_xxN instead.
|
||||
#
|
||||
if [ -f /etc/ifaliases ]; then
|
||||
while read addr int net; do
|
||||
if [ -z "$net" ]; then
|
||||
# for compatibility only, obsolete
|
||||
/sbin/ifconfig $int inet alias $addr
|
||||
else
|
||||
/sbin/ifconfig $int inet alias $addr netmask $net
|
||||
fi
|
||||
done < /etc/ifaliases
|
||||
fi
|
||||
|
||||
echo "." # for "Adding interface aliases:"
|
||||
}
|
||||
|
||||
network_start_defaultroute()
|
||||
{
|
||||
# Check $defaultroute, then /etc/mygate, for the name or address
|
||||
# of my IPv4 gateway host. If using a name, that name must be in
|
||||
# /etc/hosts.
|
||||
#
|
||||
if [ -z "$defaultroute" ] && [ -f /etc/mygate ]; then
|
||||
defaultroute=$(cat /etc/mygate)
|
||||
fi
|
||||
if [ -n "$defaultroute" ]; then
|
||||
/sbin/route add default $defaultroute
|
||||
fi
|
||||
}
|
||||
|
||||
network_start_defaultroute6()
|
||||
{
|
||||
# Check $defaultroute6, then /etc/mygate6, for the name or address
|
||||
# of my IPv6 gateway host. If using a name, that name must be in
|
||||
# /etc/hosts. Note that the gateway host address must be a link-local
|
||||
# address if it is not using an stf* interface.
|
||||
#
|
||||
if [ -z "$defaultroute6" ] && [ -f /etc/mygate6 ]; then
|
||||
defaultroute6=$(cat /etc/mygate6)
|
||||
fi
|
||||
if [ -n "$defaultroute6" ]; then
|
||||
if [ "$ip6mode" = "autohost" ]; then
|
||||
echo
|
||||
warn \
|
||||
"ip6mode is set to 'autohost' and a v6 default route is also set."
|
||||
fi
|
||||
/sbin/route add -inet6 default $defaultroute6
|
||||
fi
|
||||
}
|
||||
|
||||
network_start_ipv6_autoconf()
|
||||
{
|
||||
# IPv6 interface autoconfiguration.
|
||||
|
||||
dadcount=$(/sbin/sysctl -n net.inet6.ip6.dad_count 2>/dev/null)
|
||||
if [ -n "$dadcount" -a "$dadcount" != 0 ]; then
|
||||
# wait till DAD is completed
|
||||
echo 'Waiting for DAD to complete for' \
|
||||
'statically configured addresses...'
|
||||
# Add 1 for MAX_RTR_SOLICITATION_DELAY and another
|
||||
# to give time for the last DAD packet to respond and
|
||||
# a few more for luck.
|
||||
waitsecs=$((dadcount + 4))
|
||||
/sbin/ifconfig -w $waitsecs
|
||||
fi
|
||||
|
||||
# dhcpcd will ensure DAD completes before forking
|
||||
if checkyesnox rtsol && ! checkyesno dhcpcd; then
|
||||
if [ "$ip6mode" = "autohost" ]; then
|
||||
echo
|
||||
warn "rtsol has been removed, " \
|
||||
"please configure dhcpcd in its place."
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
network_start_local()
|
||||
{
|
||||
# XXX this must die
|
||||
if [ -s /etc/netstart.local ]; then
|
||||
sh /etc/netstart.local start
|
||||
fi
|
||||
}
|
||||
|
||||
network_stop()
|
||||
{
|
||||
echo "Stopping network."
|
||||
|
||||
network_stop_local
|
||||
network_stop_aliases
|
||||
[ "$net_interfaces" != NO ] &&
|
||||
network_stop_interfaces
|
||||
network_stop_route
|
||||
}
|
||||
|
||||
network_stop_local()
|
||||
{
|
||||
# XXX this must die
|
||||
if [ -s /etc/netstart.local ]; then
|
||||
sh /etc/netstart.local stop
|
||||
fi
|
||||
}
|
||||
|
||||
network_stop_aliases()
|
||||
{
|
||||
echo "Deleting aliases."
|
||||
if [ -f /etc/ifaliases ]; then
|
||||
while read addr int net; do
|
||||
/sbin/ifconfig $int inet delete $addr
|
||||
done < /etc/ifaliases
|
||||
fi
|
||||
|
||||
for int in $(/sbin/ifconfig -lu); do
|
||||
eval args=\$ifaliases_$int
|
||||
if [ -n "$args" ]; then
|
||||
set -- $args
|
||||
while [ $# -ge 2 ]; do
|
||||
addr=$1 ; net=$2 ; shift 2
|
||||
/sbin/ifconfig $int inet delete $addr
|
||||
done
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
network_stop_interfaces()
|
||||
{
|
||||
# down interfaces
|
||||
#
|
||||
echo -n 'Downing network interfaces:'
|
||||
if checkyesno auto_ifconfig; then
|
||||
tmp=$(/sbin/ifconfig -l)
|
||||
else
|
||||
tmp="$net_interfaces"
|
||||
fi
|
||||
for int in $tmp; do
|
||||
eval args=\$ifconfig_$int
|
||||
if [ -n "$args" ] || [ -f /etc/ifconfig.$int ]; then
|
||||
echo -n " $int"
|
||||
if [ -f /var/run/dhcpcd-$int.pid ]; then
|
||||
/sbin/dhcpcd -k $int 2> /dev/null
|
||||
fi
|
||||
/sbin/ifconfig $int down
|
||||
if /sbin/ifconfig $int destroy 2>/dev/null && \
|
||||
checkyesno ipfilter; then
|
||||
# resync ipf(4)
|
||||
/sbin/ipf -y >/dev/null
|
||||
fi
|
||||
fi
|
||||
done
|
||||
echo "."
|
||||
}
|
||||
|
||||
network_stop_route()
|
||||
{
|
||||
# flush routes
|
||||
#
|
||||
/sbin/route -qn flush
|
||||
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
load_rc_config_var dhclient dhclient
|
||||
load_rc_config_var dhcpcd dhcpcd
|
||||
load_rc_config_var ipfilter ipfilter
|
||||
run_rc_command "$1"
|
||||
62
etc/rc.d/npf
62
etc/rc.d/npf
|
|
@ -1,62 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: npf,v 1.3 2012/11/01 06:06:14 mrg Exp $
|
||||
#
|
||||
# Public Domain.
|
||||
#
|
||||
|
||||
# PROVIDE: npf
|
||||
# REQUIRE: root bootconf mountcritlocal tty network
|
||||
# BEFORE: NETWORKING
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="npf"
|
||||
rcvar=$name
|
||||
|
||||
config="/etc/npf.conf"
|
||||
|
||||
start_cmd="npf_start"
|
||||
stop_cmd="npf_stop"
|
||||
|
||||
reload_cmd="npf_reload"
|
||||
status_cmd="npf_status"
|
||||
extra_commands="reload status"
|
||||
|
||||
npf_cfg_check()
|
||||
{
|
||||
if [ ! -f ${config} ]; then
|
||||
warn "${config} is not readable; failed."
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
npf_start()
|
||||
{
|
||||
echo "Enabling NPF."
|
||||
npf_cfg_check
|
||||
/sbin/npfctl reload
|
||||
/sbin/npfctl start
|
||||
}
|
||||
|
||||
npf_stop()
|
||||
{
|
||||
echo "Disabling NPF."
|
||||
/sbin/npfctl stop
|
||||
/sbin/npfctl flush
|
||||
}
|
||||
|
||||
npf_reload()
|
||||
{
|
||||
echo "Reloading NPF ruleset."
|
||||
npf_cfg_check
|
||||
/sbin/npfctl reload
|
||||
}
|
||||
|
||||
npf_status()
|
||||
{
|
||||
:
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: pwcheck,v 1.5 2004/08/13 18:08:03 mycroft Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: pwcheck
|
||||
# REQUIRE: mountcritremote syslogd
|
||||
# BEFORE: DAEMON
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="pwcheck"
|
||||
start_cmd="pwcheck_start"
|
||||
stop_cmd=":"
|
||||
|
||||
pwcheck_start()
|
||||
{
|
||||
# check the password temp/lock file
|
||||
#
|
||||
if [ -f /etc/ptmp ]; then
|
||||
logger -s -p auth.err \
|
||||
"password file may be incorrect -- /etc/ptmp exists"
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,60 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: rtadvd,v 1.8 2013/07/09 09:34:58 roy Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: rtadvd
|
||||
# REQUIRE: DAEMON
|
||||
# BEFORE: LOGIN
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name=rtadvd
|
||||
rcvar=$name
|
||||
command="/usr/sbin/$name"
|
||||
pidfile="/var/run/$name.pid"
|
||||
extra_commands=reload
|
||||
start_precmd=rtadvd_prestart
|
||||
reload_precmd=rtadvd_prereload
|
||||
|
||||
rtadvd_prereload()
|
||||
{
|
||||
local chdir="$(getent passwd _rtadvd | cut -d: -f6)"
|
||||
local conf=/etc/rtadvd.conf myflags o confdir
|
||||
|
||||
[ -z "$chdir" -o "$chdir" = / ] && return 0
|
||||
|
||||
if [ -n "$flags" ]; then
|
||||
myflags=$flags
|
||||
else
|
||||
eval myflags=\$${name}_flags
|
||||
fi
|
||||
set -- ${myflags}
|
||||
while getopts c:dDfM:Rs o; do
|
||||
case "$1" in
|
||||
-c) conf="$OPTARG";;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
confdir=$(dirname "$conf")
|
||||
|
||||
echo "$name: copying $conf to $chdir$conf"
|
||||
cp "$conf" "$chdir$conf"
|
||||
|
||||
# Provide a link to the chrooted dump file
|
||||
ln -snf "$chdir/var/run/$name.dump" /var/run
|
||||
}
|
||||
|
||||
rtadvd_prestart()
|
||||
{
|
||||
if [ "$ip6mode" != router ]; then
|
||||
warn \
|
||||
"${name} cannot be used on IPv6 host, only on an IPv6 router."
|
||||
return 1
|
||||
fi
|
||||
|
||||
rtadvd_prereload
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: staticroute,v 1.6 2012/05/02 15:57:15 gendalia Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: staticroute
|
||||
# REQUIRE: network
|
||||
# BEFORE: NETWORKING
|
||||
|
||||
# See the route.conf(5) manual page for details.
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="staticroute"
|
||||
start_cmd="staticroute_doit Adding add"
|
||||
stop_cmd="staticroute_doit Deleting delete"
|
||||
|
||||
staticroute_doit() {
|
||||
retval=0
|
||||
|
||||
if [ -s /etc/route.conf ]; then
|
||||
echo "$1 static routes."
|
||||
( while read args; do
|
||||
[ -z "$args" ] && continue
|
||||
case "$args" in
|
||||
"#"*)
|
||||
;;
|
||||
"+"*)
|
||||
if [ $2 = "add" ]; then
|
||||
eval "${args#*+}" || retval=1
|
||||
fi
|
||||
;;
|
||||
"-"*)
|
||||
if [ $2 = "delete" ]; then
|
||||
eval "${args#*-}" || retval=1
|
||||
fi
|
||||
;;
|
||||
"!"*)
|
||||
eval "${args#*!}" || retval=1
|
||||
;;
|
||||
*)
|
||||
eval "route -q $2 -$args" || retval=1
|
||||
;;
|
||||
esac
|
||||
done < /etc/route.conf )
|
||||
fi
|
||||
|
||||
return $retval
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: sysctl,v 1.13 2004/08/13 18:08:03 mycroft Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: sysctl
|
||||
# REQUIRE: root ipfilter ipsec
|
||||
# BEFORE: DAEMON
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="sysctl"
|
||||
start_cmd="sysctl_start"
|
||||
stop_cmd=":"
|
||||
|
||||
sysctl_start()
|
||||
{
|
||||
if [ -r /etc/sysctl.conf ]; then
|
||||
echo "Setting sysctl variables:"
|
||||
sysctl -f /etc/sysctl.conf
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,93 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: sysdb,v 1.24 2012/06/03 21:42:45 joerg Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: sysdb
|
||||
# REQUIRE: mountcritremote
|
||||
# BEFORE: DAEMON
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="sysdb"
|
||||
rcvar=$name
|
||||
start_cmd="sysdb_start"
|
||||
stop_cmd=":"
|
||||
extra_commands="devdb utmp services netgroup password"
|
||||
devdb_cmd="build_devdb"
|
||||
utmp_cmd="build_utmp"
|
||||
services_cmd="build_services"
|
||||
netgroup_cmd="build_netgroup"
|
||||
password_cmd="build_password"
|
||||
echo=:
|
||||
|
||||
sysdb_start()
|
||||
{
|
||||
echo -n "Building databases:"
|
||||
echo=echo
|
||||
comma=" "
|
||||
$devdb_cmd
|
||||
$utmp_cmd
|
||||
$services_cmd
|
||||
$netgroup_cmd
|
||||
$password_cmd
|
||||
echo "."
|
||||
}
|
||||
|
||||
check_file()
|
||||
{
|
||||
local src="$1"
|
||||
local db="$2"
|
||||
|
||||
shift 2
|
||||
if [ ! -e "$src" ]; then
|
||||
return
|
||||
fi
|
||||
if [ \( ! -f "$db" \) -o \( "$src" -nt "$db" \) ]; then
|
||||
$echo -n "$comma$(basename "$src")"
|
||||
comma=", "
|
||||
"$@"
|
||||
fi
|
||||
}
|
||||
|
||||
build_services()
|
||||
{
|
||||
check_file /etc/services /var/db/services.cdb services_mkdb -q
|
||||
}
|
||||
|
||||
build_netgroup()
|
||||
{
|
||||
check_file /etc/netgroup /var/db/netgroup.db netgroup_mkdb
|
||||
}
|
||||
|
||||
build_devdb()
|
||||
{
|
||||
check_file /dev /var/run/dev.db dev_mkdb
|
||||
check_file /dev /var/run/dev.cdb dev_mkdb
|
||||
}
|
||||
|
||||
build_password()
|
||||
{
|
||||
local p=/etc/master.passwd
|
||||
check_file $p /etc/spwd.db pwd_mkdb -w $p
|
||||
}
|
||||
|
||||
build_utmp()
|
||||
{
|
||||
# Re-create /var/run/utmp and /var/run/utmpx, which are
|
||||
# deleted by mountcritlocal but can't be recreated by it
|
||||
# because install and chown may not be available then
|
||||
# (possibly no /usr).
|
||||
#
|
||||
local i
|
||||
for i in "" x; do
|
||||
if [ ! -f /var/run/utmp$i ]; then
|
||||
$echo -n "${comma}utmp$i"
|
||||
comma=", "
|
||||
install -c -m 664 -g utmp /dev/null /var/run/utmp$i
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,64 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: syslogd,v 1.15 2004/10/11 13:29:52 lukem Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: syslogd
|
||||
# REQUIRE: mountcritremote sysdb wscons
|
||||
# BEFORE: SERVERS
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="syslogd"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
required_files="/etc/syslog.conf"
|
||||
start_precmd="syslogd_precmd"
|
||||
extra_commands="reload"
|
||||
|
||||
_sockfile="/var/run/syslogd.sockets"
|
||||
|
||||
syslogd_precmd()
|
||||
{
|
||||
# Transitional symlink for old binaries
|
||||
#
|
||||
# MINIX 3: unsupported, disabled
|
||||
#if [ ! -h /dev/log ]; then
|
||||
# ln -sf /var/run/log /dev/log
|
||||
#fi
|
||||
# MINIX 3: end
|
||||
|
||||
# Create default list of syslog sockets to watch
|
||||
#
|
||||
( umask 022 ; > $_sockfile )
|
||||
|
||||
# Find /etc/rc.d scripts with "chrootdir" rcorder(8) keyword,
|
||||
# and if $${app}_chrootdir is a directory, add appropriate
|
||||
# syslog socket to list of sockets to watch.
|
||||
#
|
||||
for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
|
||||
(
|
||||
_l=${_lr##*/}
|
||||
load_rc_config ${_l}
|
||||
eval _ldir=\$${_l}_chrootdir
|
||||
if checkyesno $_l && [ -n "$_ldir" ]; then
|
||||
echo "${_ldir}/var/run/log" >> $_sockfile
|
||||
fi
|
||||
)
|
||||
done
|
||||
|
||||
# If other sockets have been provided, change run_rc_command()'s
|
||||
# internal copy of $syslogd_flags to force use of specific
|
||||
# syslogd sockets.
|
||||
#
|
||||
if [ -s $_sockfile ]; then
|
||||
echo "/var/run/log" >> $_sockfile
|
||||
rc_flags="-P $_sockfile $rc_flags"
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
# MINIX 3 stub.
|
||||
# There is currently nothing in the NetBSD script that we want: setting tty
|
||||
# flags is not yet a supported concept, and changing /dev/tty permissions does
|
||||
# not work from the installation CD with its read-only /dev directory.
|
||||
|
||||
# PROVIDE: tty
|
||||
# REQUIRE: root bootconf
|
||||
186
etc/rc.d/wscons
186
etc/rc.d/wscons
|
|
@ -1,186 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: wscons,v 1.13 2011/08/09 08:08:10 mbalmer Exp $
|
||||
#
|
||||
|
||||
# PROVIDE: wscons
|
||||
# REQUIRE: mountcritremote
|
||||
# BEFORE: LOGIN
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="wscons"
|
||||
rcvar=$name
|
||||
start_cmd="wscons_start"
|
||||
stop_cmd=":"
|
||||
|
||||
wscons_start()
|
||||
{
|
||||
wscfg=/usr/sbin/wsconscfg
|
||||
wsfld=/usr/sbin/wsfontload
|
||||
wsctl=/sbin/wsconsctl
|
||||
config=/etc/wscons.conf
|
||||
usage="Usage: wsconfig [-n] [-f configfile] [-font fontpgm] [-screen screenpgm]"
|
||||
DOIT=
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case $1 in
|
||||
-n)
|
||||
DOIT=echo
|
||||
;;
|
||||
-f)
|
||||
config=$2
|
||||
shift
|
||||
;;
|
||||
-font)
|
||||
wsfld=$2
|
||||
shift
|
||||
;;
|
||||
-screen)
|
||||
wscfg=$2
|
||||
shift
|
||||
;;
|
||||
*)
|
||||
echo $usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
|
||||
# args mean:
|
||||
# screen idx scr emul
|
||||
# font name width height enc file
|
||||
( while read type arg1 arg2 arg3 arg4 arg5; do
|
||||
case "$type" in
|
||||
\#*|"")
|
||||
continue
|
||||
;;
|
||||
|
||||
font)
|
||||
name=$arg1
|
||||
width=$arg2
|
||||
height=$arg3
|
||||
enc=$arg4
|
||||
file=$arg5
|
||||
cmd=$wsfld
|
||||
|
||||
case $width in
|
||||
-)
|
||||
;;
|
||||
*)
|
||||
cmd="$cmd -w $width"
|
||||
;;
|
||||
esac
|
||||
case $height in
|
||||
-)
|
||||
;;
|
||||
*)
|
||||
cmd="$cmd -h $height"
|
||||
;;
|
||||
esac
|
||||
case $enc in
|
||||
-)
|
||||
;;
|
||||
*)
|
||||
cmd="$cmd -e $enc"
|
||||
;;
|
||||
esac
|
||||
cmd="$cmd -N $name $file"
|
||||
eval $DOIT $cmd
|
||||
;;
|
||||
|
||||
screen)
|
||||
idx=$arg1
|
||||
scr=$arg2
|
||||
emul=$arg3
|
||||
cmd=$wscfg
|
||||
|
||||
case $scr in
|
||||
-)
|
||||
;;
|
||||
*)
|
||||
cmd="$cmd -t $scr"
|
||||
;;
|
||||
esac
|
||||
case $emul in
|
||||
-)
|
||||
;;
|
||||
*)
|
||||
cmd="$cmd -e $emul"
|
||||
;;
|
||||
esac
|
||||
cmd="$cmd $idx"
|
||||
eval $DOIT $cmd
|
||||
;;
|
||||
|
||||
keyboard)
|
||||
kbd=$arg1
|
||||
cmd=$wscfg
|
||||
case $kbd in
|
||||
-|auto)
|
||||
cmd="$cmd -k"
|
||||
;;
|
||||
*)
|
||||
cmd="$cmd -k $kbd"
|
||||
;;
|
||||
esac
|
||||
eval $DOIT $cmd
|
||||
;;
|
||||
|
||||
encoding)
|
||||
map=$arg1
|
||||
cmd="$wsctl -w \"encoding=$map\""
|
||||
echo -n 'Keyboard '
|
||||
eval $DOIT $cmd
|
||||
;;
|
||||
|
||||
mapfile)
|
||||
mapfile=$arg1
|
||||
( while read entry; do
|
||||
case "$entry" in
|
||||
\#*|"")
|
||||
continue
|
||||
;;
|
||||
*)
|
||||
cmd="$wsctl -w \"map+=$entry\""
|
||||
cmd="$cmd >/dev/null"
|
||||
eval $DOIT $cmd
|
||||
;;
|
||||
esac
|
||||
done ) < $mapfile
|
||||
;;
|
||||
|
||||
mux)
|
||||
cmd="$wscfg -m $arg1"
|
||||
eval $DOIT $cmd
|
||||
;;
|
||||
|
||||
setvar)
|
||||
dev=$arg1
|
||||
var=$arg2
|
||||
val=$arg3
|
||||
|
||||
case $dev in
|
||||
ttyE*)
|
||||
cmdmod="-d"
|
||||
;;
|
||||
wskbd*)
|
||||
cmdmod="-k"
|
||||
;;
|
||||
wsmouse*)
|
||||
cmdmod="-m"
|
||||
;;
|
||||
esac
|
||||
echo -n "$dev: "
|
||||
cmd="$wsctl -f /dev/$dev $cmdmod -w $var=$val"
|
||||
eval $DOIT $cmd
|
||||
;;
|
||||
|
||||
esac
|
||||
done ) < $config
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
1358
etc/rc.subr
1358
etc/rc.subr
File diff suppressed because it is too large
Load Diff
23433
etc/services
23433
etc/services
File diff suppressed because it is too large
Load Diff
|
|
@ -1,10 +0,0 @@
|
|||
# $NetBSD: Makefile,v 1.8 2006/09/01 13:01:55 tron Exp $
|
||||
# from: @(#)Makefile 8.1 (Berkeley) 6/8/93
|
||||
|
||||
CONFIGFILES= dot.cshrc dot.login dot.logout dot.profile dot.shrc
|
||||
FILESDIR= /etc/skel
|
||||
.for F in ${CONFIGFILES}
|
||||
FILESNAME_${F}= ${F:S/dot//}
|
||||
.endfor
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
# $NetBSD: dot.cshrc,v 1.7 2011/10/19 14:42:37 christos Exp $
|
||||
#
|
||||
# This is the default .cshrc file.
|
||||
# Users are expected to edit it to meet their own needs.
|
||||
#
|
||||
# The commands in this file are executed each time a new csh shell
|
||||
# is started.
|
||||
#
|
||||
# See csh(1) for details.
|
||||
#
|
||||
|
||||
# Set your editor. Default to explicitly setting vi, as otherwise some
|
||||
# software will run ed and other software will fail. Can be set to
|
||||
# emacs or nano or whatever other editor you may prefer, but of course
|
||||
# those editors must be installed before you can use them.
|
||||
setenv EDITOR vi
|
||||
|
||||
# vi settings: set show-match auto-indent always-redraw shift-width=4
|
||||
#setenv EXINIT "se sm ai redraw sw=4"
|
||||
|
||||
# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
|
||||
# set will be run by preference to $EDITOR by some software. It is
|
||||
# mostly historical and usually does not need to be set.
|
||||
#setenv VISUAL ${EDITOR}
|
||||
|
||||
# Set the pager. This is used by, among other things, man(1) for
|
||||
# showing man pages. The default is "more". Another reasonable choice
|
||||
# (included with the system by default) is "less".
|
||||
#setenv PAGER more
|
||||
|
||||
# Set your default printer, if desired.
|
||||
#setenv PRINTER change-this-to-a-printer
|
||||
|
||||
# Set the search path for programs.
|
||||
set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R7/bin,X11R6/bin,pkg/{,s}bin,games} \
|
||||
/usr/local/{,s}bin)
|
||||
|
||||
if ($?prompt) then
|
||||
# An interactive shell -- set some stuff up
|
||||
|
||||
# Filename completion.
|
||||
set filec
|
||||
|
||||
# Size of the history buffer.
|
||||
set history = 1000
|
||||
|
||||
# Do not exit on EOF condition (e.g. ^D typed)
|
||||
# (disabled by default, not default behavior)
|
||||
#set ignoreeof
|
||||
|
||||
# Set the location of your incoming email for mail notification.
|
||||
set mail = (/var/mail/$USER)
|
||||
|
||||
# Set the prompt to include the hostname.
|
||||
set mch = `hostname -s`
|
||||
set prompt = "${mch:q}: {\!} "
|
||||
endif
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
# $NetBSD: dot.login,v 1.3 2003/04/24 01:02:26 perry Exp $
|
||||
#
|
||||
# This is the default .login file.
|
||||
# Users are expected to edit it to meet their own needs.
|
||||
#
|
||||
# The commands in this file are executed when a csh user first
|
||||
# logs in. This file is processed after .cshrc.
|
||||
#
|
||||
# See csh(1) for details.
|
||||
#
|
||||
|
||||
if ( ! $?SHELL ) then
|
||||
setenv SHELL /bin/csh
|
||||
endif
|
||||
|
||||
set noglob
|
||||
eval `tset -s -m 'network:?xterm'`
|
||||
unset noglob
|
||||
stty status '^T' crt -tostop
|
||||
|
||||
if ( -x /usr/games/fortune ) /usr/games/fortune
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# $NetBSD: dot.logout,v 1.1 2003/04/24 01:01:39 perry Exp $
|
||||
#
|
||||
# This is the default .logout file.
|
||||
# Users are expected to edit it to meet their own needs.
|
||||
#
|
||||
# The commands in this file are executed when a csh login shell
|
||||
# terminates.
|
||||
#
|
||||
# See csh(1) for details.
|
||||
#
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
# $NetBSD: dot.profile,v 1.9 2012/04/10 19:02:30 dholland Exp $
|
||||
#
|
||||
# This is the default .profile file.
|
||||
# Users are expected to edit it to meet their own needs.
|
||||
#
|
||||
# The commands in this file are executed when an sh user first
|
||||
# logs in.
|
||||
#
|
||||
# See sh(1) for details.
|
||||
#
|
||||
|
||||
# Set your editor. Default to explicitly setting vi, as otherwise some
|
||||
# software will run ed and other software will fail. Can be set to
|
||||
# emacs or nano or whatever other editor you may prefer, but of course
|
||||
# those editors must be installed before you can use them.
|
||||
export EDITOR=vi
|
||||
|
||||
# vi settings: set show-match auto-indent always-redraw shift-width=4
|
||||
#export EXINIT="se sm ai redraw sw=4"
|
||||
|
||||
# VISUAL sets the "visual" editor, i.e., vi rather than ed, which if
|
||||
# set will be run by preference to $EDITOR by some software. It is
|
||||
# mostly historical and usually does not need to be set.
|
||||
#export VISUAL=${EDITOR}
|
||||
|
||||
# Set the pager. This is used by, among other things, man(1) for
|
||||
# showing man pages. The default is "more". Another reasonable choice
|
||||
# (included with the system by default) is "less".
|
||||
#export PAGER=more
|
||||
|
||||
# Set your default printer, if desired.
|
||||
#export PRINTER=change-this-to-a-printer
|
||||
|
||||
# Set the search path for programs.
|
||||
PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R7/bin:/usr/X11R6/bin:/usr/pkg/bin
|
||||
PATH=${PATH}:/usr/pkg/sbin:/usr/games:/usr/local/bin:/usr/local/sbin
|
||||
export PATH
|
||||
|
||||
# Configure the shell to load .shrc at startup time.
|
||||
# This will happen for every shell started, not just login shells.
|
||||
export ENV=$HOME/.shrc
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
# $NetBSD: dot.shrc,v 1.3 2007/11/24 11:14:42 pavel Exp $
|
||||
|
||||
if [ -f /etc/shrc ]; then
|
||||
. /etc/shrc
|
||||
fi
|
||||
|
||||
case "$-" in *i*)
|
||||
# interactive mode settings go here
|
||||
;;
|
||||
esac
|
||||
Loading…
Reference in New Issue
Block a user