diff options
| author | thorpej <thorpej@NetBSD.org> | 1997-11-13 03:02:02 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 1997-11-13 03:02:02 +0000 |
| commit | bc5cb74a7b4a40472dcd876feb0a76fb82ca79a3 (patch) | |
| tree | 43ff7a5505f2fb17c59907ca77ce55825c49b718 /share/examples | |
| parent | bf4782e7cf0c42c6f0a25595589462ba97b88657 (diff) | |
Move the svr4 and ultrix example files from "share/samples" to
"share/examples" (because that's what they are: examples) and install
them into $DESTDIR/usr/share/examples/emul/{svr4,ultrix}/etc.
Diffstat (limited to 'share/examples')
| -rw-r--r-- | share/examples/Makefile | 4 | ||||
| -rw-r--r-- | share/examples/emul/Makefile | 5 | ||||
| -rw-r--r-- | share/examples/emul/svr4/Makefile | 5 | ||||
| -rw-r--r-- | share/examples/emul/svr4/etc/Makefile | 7 | ||||
| -rw-r--r-- | share/examples/emul/svr4/etc/SVR4_MAKEDEV | 105 | ||||
| -rw-r--r-- | share/examples/emul/svr4/etc/netconfig | 11 | ||||
| -rw-r--r-- | share/examples/emul/svr4/etc/nsswitch.conf | 16 | ||||
| -rw-r--r-- | share/examples/emul/ultrix/Makefile | 5 | ||||
| -rw-r--r-- | share/examples/emul/ultrix/etc/Makefile | 7 | ||||
| -rw-r--r-- | share/examples/emul/ultrix/etc/svc.conf | 29 |
10 files changed, 192 insertions, 2 deletions
diff --git a/share/examples/Makefile b/share/examples/Makefile index 54786918f7e..a18026863b2 100644 --- a/share/examples/Makefile +++ b/share/examples/Makefile @@ -1,5 +1,5 @@ -# $NetBSD: Makefile,v 1.1 1997/11/13 02:33:12 thorpej Exp $ +# $NetBSD: Makefile,v 1.2 1997/11/13 03:02:02 thorpej Exp $ -SUBDIR= supfiles +SUBDIR= emul supfiles .include <bsd.subdir.mk> diff --git a/share/examples/emul/Makefile b/share/examples/emul/Makefile new file mode 100644 index 00000000000..fbc3bb2b724 --- /dev/null +++ b/share/examples/emul/Makefile @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 1997/11/13 03:02:03 thorpej Exp $ + +SUBDIR= svr4 ultrix + +.include <bsd.subdir.mk> diff --git a/share/examples/emul/svr4/Makefile b/share/examples/emul/svr4/Makefile new file mode 100644 index 00000000000..046c5d3066d --- /dev/null +++ b/share/examples/emul/svr4/Makefile @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 1997/11/13 03:02:04 thorpej Exp $ + +SUBDIR= etc + +.include <bsd.subdir.mk> diff --git a/share/examples/emul/svr4/etc/Makefile b/share/examples/emul/svr4/etc/Makefile new file mode 100644 index 00000000000..a8e4b64b431 --- /dev/null +++ b/share/examples/emul/svr4/etc/Makefile @@ -0,0 +1,7 @@ +# $NetBSD: Makefile,v 1.1 1997/11/13 03:02:05 thorpej Exp $ + +FILES= SVR4_MAKEDEV netconfig nsswitch.conf +FILESDIR=/usr/share/examples/emul/svr4/etc +NOOBJ= noobj + +.include <bsd.prog.mk> diff --git a/share/examples/emul/svr4/etc/SVR4_MAKEDEV b/share/examples/emul/svr4/etc/SVR4_MAKEDEV new file mode 100644 index 00000000000..2c9ce32556c --- /dev/null +++ b/share/examples/emul/svr4/etc/SVR4_MAKEDEV @@ -0,0 +1,105 @@ +#!/bin/sh - +# +# $NetBSD: SVR4_MAKEDEV,v 1.1 1997/11/13 03:02:05 thorpej Exp $ +# +# Copyright (c) 1995 Christos Zoulas +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. The name of the author may not be used to endorse or promote products +# derived from this software without specific prior written permission +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Device "make" file. Valid arguments: +# all everything +# Network: +# udp UDP socket creation +# tcp TCP socket creation +# rawip RAW socket creation +# ticlts UNIX datagram creation +# ticotsord UNIX stream creation (with orderly release) +# ticots UNIX stream creation +# Various: +# wabi Windows emulation; /dev/null for now +# +PATH=/sbin:/bin/:/usr/bin:/usr/sbin:/usr/etc +umask 77 + +for i +do + +unit=`expr $i : '[a-z][a-z]*\([0-9][0-9]*\)'` +[ "$unit" ] || unit=0 + +case $i in + +all) + sh SVR4_MAKEDEV tcp udp rawip ticlts ticotsord ticots wabi + ;; +tcp) + mknod $i c 43 35 + chown bin.bin $i + chmod 666 $i + ;; + + +udp) + mknod udp c 43 36 + chown bin.bin $i + chmod 666 $i + ;; + +rawip) + mknod $i c 43 37 + chown bin.bin $i + chmod 666 $i + ;; + +ticlts) + mknod $i c 43 38 + chown bin.bin $i + chmod 666 $i + ;; + +ticotsord) + mknod $i c 43 39 + chown bin.bin $i + chmod 666 $i + ;; + +ticots) + mknod $i c 43 40 + chown bin.bin $i + chmod 666 $i + ;; + + +wabi) + mknod $i c 3 2 # /dev/null + chown bin.bin $i + chmod 666 $i + ;; + +*) + echo $i: unknown device + ;; +esac +done + diff --git a/share/examples/emul/svr4/etc/netconfig b/share/examples/emul/svr4/etc/netconfig new file mode 100644 index 00000000000..a2197408c4c --- /dev/null +++ b/share/examples/emul/svr4/etc/netconfig @@ -0,0 +1,11 @@ +# $NetBSD: netconfig,v 1.1 1997/11/13 03:02:06 thorpej Exp $ +# +# SVR4 Network configuration file +# +# service name fl family proto device library +udp tpi_clts v inet udp /dev/udp - +tcp tpi_cots_ord v inet tcp /dev/tcp - +rawip tpi_raw - inet - /dev/rawip - +ticlts tpi_clts v loopback - /dev/ticlts straddr.so +ticotsord tpi_cots_ord v loopback - /dev/ticotsord straddr.so +ticots tpi_cots v loopback - /dev/ticots straddr.so diff --git a/share/examples/emul/svr4/etc/nsswitch.conf b/share/examples/emul/svr4/etc/nsswitch.conf new file mode 100644 index 00000000000..90133c0cf15 --- /dev/null +++ b/share/examples/emul/svr4/etc/nsswitch.conf @@ -0,0 +1,16 @@ +# $NetBSD: nsswitch.conf,v 1.1 1997/11/13 03:02:06 thorpej Exp $ +# +# Name service switch file +# +hosts: dns files +networks: files +protocols: files +ethers: files +rpc: files +netmasks: files +bootparams: files +services: files +# +passwd: files +group: files +netgroup: files diff --git a/share/examples/emul/ultrix/Makefile b/share/examples/emul/ultrix/Makefile new file mode 100644 index 00000000000..80f4fd659aa --- /dev/null +++ b/share/examples/emul/ultrix/Makefile @@ -0,0 +1,5 @@ +# $NetBSD: Makefile,v 1.1 1997/11/13 03:02:07 thorpej Exp $ + +SUBDIR= etc + +.include <bsd.subdir.mk> diff --git a/share/examples/emul/ultrix/etc/Makefile b/share/examples/emul/ultrix/etc/Makefile new file mode 100644 index 00000000000..678795f7466 --- /dev/null +++ b/share/examples/emul/ultrix/etc/Makefile @@ -0,0 +1,7 @@ +# $NetBSD: Makefile,v 1.1 1997/11/13 03:02:08 thorpej Exp $ + +FILES= svc.conf +FILESDIR=/usr/share/examples/emul/ultrix/etc +NOOBJ= noobj + +.include <bsd.prog.mk> diff --git a/share/examples/emul/ultrix/etc/svc.conf b/share/examples/emul/ultrix/etc/svc.conf new file mode 100644 index 00000000000..d6c952caea2 --- /dev/null +++ b/share/examples/emul/ultrix/etc/svc.conf @@ -0,0 +1,29 @@ +# $NetBSD: svc.conf,v 1.1 1997/11/13 03:02:08 thorpej Exp $ +# +# Ultrix-compatible svc.conf file. +# Each line below binds a particular database to one or more resolver +# services. The available services are +# local - local flat files in /etc/ +# yp - NIS (aka yp) +# bind - DNS +# +# Multiple services can be specified by a comma-separated list. +# Order is signficant. Whitespace not allowed except after comments or commas. +# +aliases=local # sendmail /etc/aliases: just run native senmamil. +auth=local +group=local # /etc/group: native and Ultrix are compatible +hosts=local,bind # /etc/hosts (no yp) then DNS +netgroup=local # NOTE: Ultrix netgroup really only works with yp. +networks=local,bind # rfc 1101 +passwd=local # Ultrix and native hashed passwds incompatible +protocols=local # /etc/protocols (getprotoent()) +rpc=local # /etc/rpc (getrpcent()) +services=local # /etc/services (getservbyname()) + +# Minimum password length/lifetime/security goop; see an Ultrix manpage. +# NOTE: running Ultrix /etc/passwd is not good idea. +PASSLENMIN=6 +PASSLENMAX=16 +SOFTEXP=604800 # 7 days in seconds +SECLEVEL=BSD # (BSD | UPGRADE | ENHANCED) |
