config/Makefile.local.i86pc.sos5 < /usr/local/sbin --- > /usr/etc NISを使用しないとき config/os-sos5.h # diff config/os-sos5.h config/os-sos5.h.orig 291,292c291,292 < #define HAS_NISPLUS /* do you use NIS+? */ < #define HAS_NISPLUS_MAP /* do you have NIS+ maps? */ --- > /* #define HAS_NISPLUS */ /* do you use NIS+? */ > /* #define HAS_NISPLUS_MAP */ /* do you have NIS+ maps? */ config/Makefile.sos5 # diff config/Makefile.sos5 config/Makefile.sos5.orig 51c51 < SYSLIB = -lnsl -lsocket --- > SYSLIB = -lnsl config/mtab_svr4.c # diff mtab_svr4.c mtab_svr4.c.orig 150c150 < if (gettimeofday(&tv,(void *)0) < 0) --- > if (gettimeofday(&tv) < 0) hlfsd/hlfsd.c # diff hlfsd/hlfsd.c hlfsd/hlfsd.c.orig 71c71 < /* #include */ --- > #include amd/wire.c # diff amd/wire.c amd/wire.c.orig 358c358 < #define size(ifr) (max((ifr)->ifr_addr.sa_data[14], sizeof((ifr)->ifr_addr)) + sizeof(ifr->ifr_name)) --- > #define size(ifr) (max((ifr)->ifr_addr.sa_len, sizeof((ifr)->ifr_addr)) + sizeof(ifr->ifr_name)) ########################################################################## root@pluto{/export/solaris/make/net/amd-upl102}# make install install'ing amd make[1]: Entering directory `/export/solaris/make/net/amd-upl102/amd' make[2]: Entering directory `/export/solaris/make/net/amd-upl102/amd' # ... No OS= option specified; dynamically determining OS type # ... OS appears to be "sos5" # ... No OSVER= option specified; dynamically determining OSVER for "sos5" # ... OS Version appears to be "5.6" # ... ARCH appears to be "i86pc" cd ../A.i86pc_sos5_5.6 make Make=make SHELL=/bin/sh -f ../Makefile.com -f ../Makefile.mods -f ../amd/Makefile.amd -f ../Makefile.build -f ../config/Makefile.config -f ../config/Makefile.sos5 -f ../config/Makefile.local.i86pc_sos5 ARCH=i86pc OS=sos5 OSVER=5.6 install make[3]: Entering directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' Please install the amd manual page by hand install -c -m 755 -o root amd /usr/local/sbin/amd make[3]: Leaving directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' make[2]: Leaving directory `/export/solaris/make/net/amd-upl102/amd' make[1]: Leaving directory `/export/solaris/make/net/amd-upl102/amd' install'ing amq make[1]: Entering directory `/export/solaris/make/net/amd-upl102/amq' make[2]: Entering directory `/export/solaris/make/net/amd-upl102/amq' # ... No OS= option specified; dynamically determining OS type # ... OS appears to be "sos5" # ... No OSVER= option specified; dynamically determining OSVER for "sos5" # ... OS Version appears to be "5.6" # ... ARCH appears to be "i86pc" cd ../A.i86pc_sos5_5.6 make Make=make SHELL=/bin/sh -f ../Makefile.com -f ../Makefile.mods -f ../amq/Makefile.amq -f ../Makefile.build -f ../config/Makefile.config -f ../config/Makefile.sos5 -f ../config/Makefile.local.i86pc_sos5 ARCH=i86pc OS=sos5 OSVER=5.6 install make[3]: Entering directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' Please install the amq manual page by hand install -c -m 755 -o root amq /usr/local/sbin/amq make[3]: Leaving directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' make[2]: Leaving directory `/export/solaris/make/net/amd-upl102/amq' make[1]: Leaving directory `/export/solaris/make/net/amd-upl102/amq' install'ing mk-amd-map make[1]: Entering directory `/export/solaris/make/net/amd-upl102/mk-amd-map' make[2]: Entering directory `/export/solaris/make/net/amd-upl102/mk-amd-map' # ... No OS= option specified; dynamically determining OS type # ... OS appears to be "sos5" # ... No OSVER= option specified; dynamically determining OSVER for "sos5" # ... OS Version appears to be "5.6" # ... ARCH appears to be "i86pc" cd ../A.i86pc_sos5_5.6 make Make=make SHELL=/bin/sh -f ../Makefile.com -f ../Makefile.mods -f ../mk-amd-map/Makefile.mk-amd-map -f ../Makefile.build -f ../config/Makefile.config -f ../config/Makefile.sos5 -f ../config/Makefile.local.i86pc_sos5 ARCH=i86pc OS=sos5 OSVER=5.6 install make[3]: Entering directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' install -c -m 755 -o root mk-amd-map /usr/local/sbin/mk-amd-map make[3]: Leaving directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' make[2]: Leaving directory `/export/solaris/make/net/amd-upl102/mk-amd-map' make[1]: Leaving directory `/export/solaris/make/net/amd-upl102/mk-amd-map' install'ing fsinfo make[1]: Entering directory `/export/solaris/make/net/amd-upl102/fsinfo' make[2]: Entering directory `/export/solaris/make/net/amd-upl102/fsinfo' # ... No OS= option specified; dynamically determining OS type # ... OS appears to be "sos5" # ... No OSVER= option specified; dynamically determining OSVER for "sos5" # ... OS Version appears to be "5.6" # ... ARCH appears to be "i86pc" cd ../A.i86pc_sos5_5.6 make Make=make SHELL=/bin/sh -f ../Makefile.com -f ../Makefile.mods -f ../fsinfo/Makefile.fsinfo -f ../Makefile.build -f ../config/Makefile.config -f ../config/Makefile.sos5 -f ../config/Makefile.local.i86pc_sos5 ARCH=i86pc OS=sos5 OSVER=5.6 install make[3]: Entering directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' install -c -m 755 -o root fsinfo /usr/local/sbin/fsinfo make[3]: Leaving directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' make[2]: Leaving directory `/export/solaris/make/net/amd-upl102/fsinfo' make[1]: Leaving directory `/export/solaris/make/net/amd-upl102/fsinfo' install'ing hlfsd make[1]: Entering directory `/export/solaris/make/net/amd-upl102/hlfsd' make[2]: Entering directory `/export/solaris/make/net/amd-upl102/hlfsd' # ... No OS= option specified; dynamically determining OS type # ... OS appears to be "sos5" # ... No OSVER= option specified; dynamically determining OSVER for "sos5" # ... OS Version appears to be "5.6" # ... ARCH appears to be "i86pc" cd ../A.i86pc_sos5_5.6 make Make=make SHELL=/bin/sh -f ../Makefile.com -f ../Makefile.mods -f ../hlfsd/Makefile.hlfsd -f ../Makefile.build -f ../config/Makefile.config -f ../config/Makefile.sos5 -f ../config/Makefile.local.i86pc_sos5 ARCH=i86pc OS=sos5 OSVER=5.6 install make[3]: Entering directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' Please install the hlfsd manual page by hand install -c -m 755 -o root hlfsd /usr/local/sbin/hlfsd make[3]: Leaving directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' make[2]: Leaving directory `/export/solaris/make/net/amd-upl102/hlfsd' make[1]: Leaving directory `/export/solaris/make/net/amd-upl102/hlfsd' install'ing wire-test make[1]: Entering directory `/export/solaris/make/net/amd-upl102/wire-test' make[2]: Entering directory `/export/solaris/make/net/amd-upl102/wire-test' # ... No OS= option specified; dynamically determining OS type # ... OS appears to be "sos5" # ... No OSVER= option specified; dynamically determining OSVER for "sos5" # ... OS Version appears to be "5.6" # ... ARCH appears to be "i86pc" cd ../A.i86pc_sos5_5.6 make Make=make SHELL=/bin/sh -f ../Makefile.com -f ../Makefile.mods -f ../wire-test/Makefile.wire-test -f ../Makefile.build -f ../config/Makefile.config -f ../config/Makefile.sos5 -f ../config/Makefile.local.i86pc_sos5 ARCH=i86pc OS=sos5 OSVER=5.6 install make[3]: Entering directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' install -c -m 755 -o root wire-test /usr/local/sbin/wire-test make[3]: Leaving directory `/export/solaris/make/net/amd-upl102/A.i86pc_sos5_5.6' make[2]: Leaving directory `/export/solaris/make/net/amd-upl102/wire-test' make[1]: Leaving directory `/export/solaris/make/net/amd-upl102/wire-test' ########################################################################## # vi /etc/rpc # diff /etc/rpc /etc/rpc.orig 65d64 < amd 300019 amq # cp text/amd.start.ex /etc/init.d/amd.start # vi /etc/init.d/amd.start ############################################################################ #!/bin/sh - # # Copyright (c) 1989 Jan-Simon Pendry # Copyright (c) 1989 Imperial College of Science, Technology & Medicine # Copyright (c) 1989 The Regents of the University of California. # All rights reserved. # # This code is derived from software contributed to Berkeley by # Jan-Simon Pendry at Imperial College, London. # # 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. All advertising materials mentioning features or use of this software # must display the following acknowledgement: # This product includes software developed by the University of # California, Berkeley and its contributors. # 4. Neither the name of the University nor the names of its contributors # may be used to endorse or promote products derived from this software # without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``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 REGENTS OR CONTRIBUTORS 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. # # %W% (Berkeley) %G% # # Start amd # # $Id: amd.start.ex,v 5.2.2.1 1992/02/09 15:11:32 jsp beta $ # PATH=/usr/local/sbin:/usr/sbin:/bin:/usr/bin:$PATH export PATH # # Either name of logfile or "syslog" # #LOGFILE=syslog LOGFILE=/var/log/amd/amd.log # # Name of amd's pid # PIDFILE=/var/log/amd/amd.pid # # Figure out whether domain name is in host name # If the hostname is just the machine name then # pass in the name of the local domain so that the # hostnames in the map are domain stripped correctly. # case `hostname` in *.*) dmn= ;; *) dmn='-d yy.ics.keio.ac.jp' esac # # Zap earlier log file # case "$LOGFILE" in */*) mv "$LOGFILE" "$LOGFILE"- > "$LOGFILE" ;; syslog) : nothing ;; esac #cd /usr/local/amd # # -r restart # -d dmn local domain # -w wait wait between unmount attempts # -l log logfile or "syslog" # eval nice --4 /usr/local/sbin/amd -p > "$PIDFILE" \ -r $dmn -w 240 -l "$LOGFILE" \ /home /usr/local/amd/home.map -cache:=inc \ /import /usr/local/amd/import.map -cache:=inc ############################################################################ # vi /etc/rc2.d/S81amd ############################################################################ #! /usr/bin/sh # amd PATH=/usr/bin:/bin case $1 in 'start') if [ -f /etc/init.d/amd.start -a -f /usr/local/sbin/amd ]; then sh /etc/init.d/amd.start; (echo -n ' amd') >/dev/console fi ;; 'stop') amdpid=`cat /var/log/amd/amd.pid` if [ "$amdpid" -gt 0 ]; then echo "Stopping amd. Send SIGTERM." kill -SIGTERM $amdpid fi ;; *) echo "usage: /etc/rc2.d/S81amd {start|stop}" ;; esac exit 0 ############################################################################ # mv /etc/rc2.d/S74autofs /etc/rc2.d/sfotua47S