useradd -m -s /bin/csh -g users -c USERNAME USERNAME vi /etc/group #Add /etc/group USERNAME as wheel |
cat<<EOF>〓/.cshrc set path=(/{usr/{local,X11R6}/,usr/}bin /{,usr/}sbin /usr/games) set prompt='%m{!}%〓 %# ' setenv CFLAGS -pipe setenv MANPATH /usr/local/man:/usr/X11R6/man:/usr/share/man EOF |
cd / cat syssrc.tgz|gzip -d|tar -xf- cd /usr/src/sys/arch/i386/conf cp -p GENERIC HOSTNAME vi HOSTNAME config HOSTNAME cd ../compile/HOSTNAME make clean depend all mv /netbsd /netbsd.org mv netbsd / cat<<EOF>>/etc/rc.conf hostname=HOSTNAME wscons=NO apmd=YES EOF cat<<EOF>/etc/ifconfig.ne0 192.168.0.1 netmask 0xffffff00 EOF shutdown -r now |
cat<<EOF>>/etc/hosts 192.168.0.1 HOSTNAME.DOMAINNAME HOSTNAME EOF |
cat<<EOF>>/etc/rc.local echo '106 Japanese keyboard.'; /sbin/wsconsctl -w encoding=jp EOF |
cd 〓/src cat m4-1.4.tar.gz|gzip -d|tar -xf- cd m4-1.4 ./configure make make install |
cd 〓/src cat autoconf-2.13.tar.gz|gzip -d|tar -xf- cd autoconf-2.13 ./configure make make install |
cd 〓/src cat make-3.79.1.tar.gz|gzip -d|tar -xf- cd make-3.79.1 ./configure make make install |
cd 〓/src cat tcsh-6.11.tar.gz|gzip -d|tar -xf- cd tcsh-6.11.00 ./configure make make install install.man cat<<EOF>>/etc/shells /usr/local/bin/tcsh EOF chsh USERNAME |
cd 〓/src cat less-358.tar.gz|gzip -d|tar -xf- cd less-358 cat less-358-iso254.patch.gz|gzip -d|patch ./configure make make install cat<<EOF>>〓/.cshrc setenv LANG ja_JP.eucJP setenv PAGER less EOF |
cd 〓/src cat tcp_wrappers_7.6.tar.gz |gzip -d|tar -xf- cd tcp_wrappers_7.6 chmod u+w Makefile patch<<EOF --- Makefile Sat Mar 22 03:27:21 1997 +++ Makefile Fri Aug 8 17:55:48 2003 @@ -47,7 +47,7 @@ #REAL_DAEMON_DIR=/usr/sbin # # BSD 4.4 -#REAL_DAEMON_DIR=/usr/libexec +REAL_DAEMON_DIR=/usr/local/real # # HP-UX SCO Unicos #REAL_DAEMON_DIR=/etc @@ -491,7 +491,7 @@ # Uncomment the next definition to turn on the language extensions # (examples: allow, deny, banners, twist and spawn). # -#STYLE = -DPROCESS_OPTIONS # Enable language extensions. +STYLE = -DPROCESS_OPTIONS # Enable language extensions. ################################################################ # Optional: Changing the default disposition of logfile records @@ -659,7 +659,7 @@ SHELL = /bin/sh .c.o:; $(CC) $(CFLAGS) -c $*.c -CFLAGS = -O -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) 〓 +CFLAGS = -O2 -m486 -pipe -DFACILITY=$(FACILITY) $(ACCESS) $(PARANOID) $(NETGROUP) 〓 $(BUGS) $(SYSTYPE) $(AUTH) $(UMASK) 〓 -DREAL_DAEMON_DIR=〓"$(REAL_DAEMON_DIR)〓" $(STYLE) $(KILL_OPT) 〓 -DSEVERITY=$(SEVERITY) -DRFC931_TIMEOUT=$(RFC931_TIMEOUT) 〓 EOF make netbsd chmod a-w tcpd tcpdchk tcpdmatch try-from safe_finger cp tcpd tcpdchk tcpdmatch try-from safe_finger /usr/local/bin cp *3 /usr/local/man/man3 cp *5 /usr/local/man/man5 cp *8 /usr/local/man/man8 mkdir /usr/local/real cat<<EOF>/etc/hosts.allow tcp-env: 192.168.0.0/255.255.255.0: setenv RELAYCLIENT: ALLOW tcp-env: ALL: ALLOW ALL: 192.168.0.0/255.255.255.0: ALLOW ALL: 127.0.0.1: ALLOW ALL: ALL: spawn (/bin/echo 'Denied %d[%p] from %u@%n(%a).'|/usr/bin/mail -s 'Denied %a' USERNAME) &: DENY EOF #tcpdchk -v #tcpdmatch telnetd 123.45.67.89 #tail -f /var/log/maillog |
mv /usr/libexec/telnetd /usr/local/real ln -s /usr/local/bin/tcpd /usr/libexec/telnetd cat<<EOF>>/etc/inetd.conf telnet stream tcp nowait root /usr/libexec/telnetd telnetd EOF |
mv /usr/libexec/ftpd /usr/local/real ln -s /usr/local/bin/tcpd /usr/libexec/ftpd useradd -m -s /sbin/nologin -g wheel -c 'anonymous ftp' ftp mkdir 〓ftp/bin 〓ftp/etc 〓ftp/pub cat<<EOF>〓ftp/etc/master.passwd root::0:0::0:0::: EOF pwd_mkdb -d 〓ftp 〓ftp/etc/master.passwd cat<<EOF>〓ftp/etc/group wheel::0: EOF cat<<EOF>/etc/ftpwelcome Hello ! I am ftp server on HOSTNAME. EOF cat<<EOF>〓ftp/etc/motd Welcome to anonymous ftp server on HOSTNAME. EOF chown -R root:wheel 〓ftp chmod 444 〓ftp/etc/* chmod 555 〓ftp 〓ftp/bin 〓ftp/etc cat<<EOF>>/etc/inetd.conf ftp stream tcp nowait root /usr/libexec/ftpd ftpd -ll EOF |
mkdir -p /etc/ppp/peers cat<<EOF>/etc/ppp/peers/PROVIDERNAME tty00 115200 crtscts connect '/usr/sbin/chat -v -f /etc/ppp/chat-PROVIDERNAME' name USERID@PROVIDERID defaultroute EOF cat<<EOF>/etc/ppp/chat-PROVIDERNAME ABORT "NO CARRIER" ABORT "ERROR" ABORT "BUSY" "" atx0 "" at$n1=1 "" atdTELEPHONENUMBER CONNECT EOF cat<<EOF>/etc/ppp/pap-secrets USERID@PROVIDERID * PASSWORD EOF chmod go-rwx /etc/ppp/pap-secrets cp -p /etc/ppp/pap-secrets /etc/ppp/chap-secrets pppd call PROVIDERNAME |
cat<<EOF>/etc/ifconfig.pppoe0 create ! /sbin/ifconfig rtk0 up ! /sbin/pppoectl -e rtk0 〓$int ! /sbin/pppoectl 〓$int myauthproto=pap myauthname=USERID@PROVIDERID myauthsecret=PASSWORD 0.0.0.0 0.0.0.1 up EOF chmod go-rwx /etc/ifconfig.pppoe0 mkdir /etc/ppp cat<<EOF>/etc/ppp/ip-up #! /bin/sh /sbin/route add default 〓$5 EOF cat<<EOF>/etc/ppp/ip-down #! /bin/sh /sbin/route delete default 〓$5 EOF chmod a+x /etc/ppp/ip-up /etc/ppp/ip-down cat<<EOF>>/etc/rc.conf ifwatchd=YES EOF |
cat<<EOF>/etc/ipf.conf pass in from any to any pass out from any to any EOF cat<<EOF>>/etc/rc.conf ipfilter=YES EOF cat<<EOF>/etc/ipnat.conf map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 proxy port ftp ftp/tcp mssclamp 1402 map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp 1025:65000 mssclamp 1402 map pppoe0 192.168.0.0/24 -> 0.0.0.0/32 mssclamp 1402 rdr pppoe0 0.0.0.0/0 port WINNYPORT -> 192.168.0.1 port WINNYPORT tcp EOF cat<<EOF>>/etc/rc.conf ipnat=YES EOF cat<<EOF>>/etc/sysctl.conf net.inet.tcp.mss_ifmtu = 1 EOF |
cd 〓/src cat samba-3.0.13.tar.gz|gzip -d|tar -xf- cd samba-3.0.13/source ./configure make make install mv /usr/local/samba/sbin/smbd /usr/local/real mv /usr/local/samba/sbin/nmbd /usr/local/real mv /usr/local/samba/sbin/swat /usr/local/real ln -s /usr/local/bin/tcpd /usr/local/samba/sbin/smbd ln -s /usr/local/bin/tcpd /usr/local/samba/sbin/nmbd ln -s /usr/local/bin/tcpd /usr/local/samba/sbin/swat cat<<EOF>>/etc/inetd.conf netbios-ssn stream tcp nowait root /usr/local/samba/sbin/smbd smbd netbios-ns dgram udp wait root /usr/local/samba/sbin/nmbd nmbd swat stream tcp nowait.400 root /usr/local/samba/sbin/swat swat EOF #http://localhost:901 |
cd 〓/src cat checkpassword-0.90.tar.gz|gzip -d|tar -xf- cd checkpassword-0.90 su make setup check exit cd .. cat qmail-1.03.tar.gz|gzip -d|tar -xf- cd qmail-1.03 patch<<EOF --- date822fmt.c Mon Jun 15 19:53:16 1998 +++ date822fmt.c Wed Dec 26 17:12:53 2001 @@ -24,6 +24,6 @@ i = fmt_uint0(s,dt->min,2); len += i; if (s) s += i; i = fmt_str(s,":"); len += i; if (s) s += i; i = fmt_uint0(s,dt->sec,2); len += i; if (s) s += i; - i = fmt_str(s," -0000〓n"); len += i; if (s) s += i; + i = fmt_str(s," +0900 (JST)〓n"); len += i; if (s) s += i; return len; } --- datetime.c Mon Jun 15 19:53:16 1998 +++ datetime.c Wed Dec 26 17:13:19 2001 @@ -11,6 +11,8 @@ int yday; int wday; int mon; + + t += 32400; tod = t % 86400; day = t / 86400; --- conf-cc Mon Jun 15 19:53:16 1998 +++ conf-cc Wed Dec 26 17:14:26 2001 @@ -1,3 +1,3 @@ -cc -O2 +cc -O2 -m486 -pipe This will be used to compile .c files. EOF su mkdir /var/qmail groupadd nofiles groupadd qmail useradd -g nofiles -d /var/qmail/alias -s /sbin/nologin -c alias alias useradd -g nofiles -d /var/qmail -s /sbin/nologin -c qmaild qmaild useradd -g nofiles -d /var/qmail -s /sbin/nologin -c qmaill qmaill useradd -g nofiles -d /var/qmail -s /sbin/nologin -c qmailp qmailp useradd -g qmail -d /var/qmail -s /sbin/nologin -c qmailq qmailq useradd -g qmail -d /var/qmail -s /sbin/nologin -c qmailr qmailr useradd -g qmail -d /var/qmail -s /sbin/nologin -c qmails qmails make setup check ./config #./config-fast HOSTNAME.DOMAINNAME (cd 〓alias; touch .qmail-postmaster .qmail-mailer-daemon .qmail-root) chmod 644 〓alias/.qmail* cp /var/qmail/boot/home /var/qmail/rc patch<<EOF --- /var/qmail/rc +++ /var/qmail/rc @@ -4,4 +4,4 @@ # Using qmail-local to deliver messages to 〓/Mailbox by default. exec env - PATH="/var/qmail/bin:$PATH" 〓 -qmail-start ./Mailbox splogger qmail +qmail-start ./Maildir/ splogger qmail EOF mv /usr/sbin/sendmail /usr/sbin/sendmail.org mv /usr/libexec/sendmail/sendmail /usr/libexec/sendmail/sendmail.org chmod a-rwx /usr/libexec/sendmail/sendmail.org /usr/libexec/mail.local ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail ln -s /var/qmail/bin/sendmail /usr/libexec/sendmail/sendmail mv /var/qmail/bin/tcp-env /usr/local/real mv /var/qmail/bin/qmail-popup /usr/local/real ln -s /usr/local/bin/tcpd /var/qmail/bin/tcp-env ln -s /usr/local/bin/tcpd /var/qmail/bin/qmail-popup cat<<EOF>>/etc/inetd.conf smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail-smtpd pop3 stream tcp nowait root /var/qmail/bin/qmail-popup qmail-popup HOSTNAME.DOMAINNAME /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir EOF cat<<EOF>>/etc/rc.local echo 'Starting qmail.'; /bin/csh -cf '/var/qmail/rc &' EOF exit /var/qmail/bin/maildirmake 〓/Maildir |
cat<<EOF>/etc/resolv.conf nameserver 127.0.0.1 search DOMAINNAME EOF |
cd 〓/src cat perl-5.8.6.tar.gz|gzip -d|tar -xf- cd perl-5.8.6 ./Configure make make test make install |
cd 〓/src cat httpd_2.0.54.tar.gz|gzip -d|tar -xf- cd httpd_2.0.54 ./configure --enable-module=proxy --enable-module=so make make install cd /usr/local/apache2/conf patch<<EOF --- httpd.conf +++ httpd.conf @@ -216,7 +216,7 @@ # #Listen 12.34.56.78:80 Listen 0.0.0.0:80 -Listen [::]:80 +#Listen [::]:80 # # Dynamic Shared Object (DSO) Support @@ -274,7 +274,7 @@ # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com # -ServerAdmin you@example.com +ServerAdmin mune@mune.plala.jp # # ServerName gives the name and port that the server uses to identify itself. @@ -288,7 +288,7 @@ # You will have to access it by its address anyway, and this will make # redirections work in a sensible way. # -#ServerName www.example.com:80 +ServerName mune.plala.jp:80 # # UseCanonicalName: Determines how Apache constructs self-referencing EOF cat<<EOF>>/etc/rc.local echo 'Starting Apache HTTP server.'; /usr/local/apache2/bin/apachectl start EOF cd /usr/local/apache2/htdocs #cp -p index.html.ja.jis index.html cat<<EOF>index.html <html> <head><title>testpage</title></head> <body> This is test page. Coming soon.<p> <a href=phpinfo.php>phpinfo</a><p> <a href=http://www.netbsd.org/><img src=sitedrivenby.gif border=0></a><p> <a href=http://www.apache.org/><img src=apache_pb.png border=0></a><p> <hr> <i>Last modified 20050515</i> <address><a href=mailto:mune@mune.plala.jp>mune@mune.plala.jp</a></address><p> </body> </html> EOF #tail -f /usr/local/apache/logs/access_log|/usr/local/apache/bin/logresolve |
cd 〓/src cat postgresql-8.0.2.tar.gz|gzip -d|tar -xf- cd postgresql-8.0.2 ./configure make make check su make install useradd -d /usr/local/pgsql -s /bin/csh -g users -c postgres postgres mkdir /usr/local/pgsql/data chown postgres:users /usr/local/pgsql/data su - postgres -c '/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data' patch<<EOF --- /usr/local/pgsql/data/pg_hba.conf 2005-05-15 10:07:39.000000000 +0900 +++ /usr/local/pgsql/data/pg_hba.conf 2005-08-06 19:08:29.000000000 +0900 @@ -71,5 +71,6 @@ local all all trust # IPv4 local connections: host all all 127.0.0.1/32 trust +host all all 192.168.0.0/24 trust # IPv6 local connections: host all all ::1/128 trust EOF cat<<EOF>>/etc/rc.local echo 'Starting PostgreSQL RDBMS.' su - postgres -c '/usr/local/pgsql/bin/postmaster -i -D /usr/local/pgsql/data &' EOF su - postgres -c '/usr/local/pgsql/bin/createuser -d -A USERNAME' su - USERNAME -c '/usr/local/pgsql/bin/createdb -E EUC_JP' |
cd 〓/src cat libxml2-2.6.19.tar.bz2|gzip -d|tar -xf- cd libxml2-2.6.19 ./configure make make install |
cd 〓/src cat php-5.0.4.tar.gz|gzip -d|tar -xf- cd php-5.0.4 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-pgsql make make install cp php.ini-dist /usr/local/lib/php.ini cd /usr/local/apache2/conf patch<<EOF --- httpd.conf +++ httpd.conf @@ -229,6 +229,8 @@ # # Example: # LoadModule foo_module modules/mod_foo.so +LoadModule php5_module modules/libphp5.so +AddType application/x-httpd-php .php .phtml # # EOF cat<<EOF>/usr/local/apache2/htdocs/phpinfo.php <?php phpinfo()?> EOF |
cd 〓/src cat pine4.33.tar.gz|gzip -d|tar -xf- cd pine4.33 patch -p<<EOF --- pico/makefile.neb Tue Jun 30 07:23:50 1998 +++ pico/makefile.neb Wed Dec 26 18:27:46 2001 @@ -30,9 +30,9 @@ RM= rm -f LN= ln -s MAKE= make -OPTIMIZE= # -O +OPTIMIZE= -O2 -m486 -pipe PROFILE= # -pg -DEBUG= -g -DDEBUG +DEBUG= # -g -DDEBUG STDCFLAGS= -Dneb -DJOB_CONTROL -DPOSIX -DMOUSE CFLAGS= 〓$(OPTIMIZE) 〓$(PROFILE) 〓$(DEBUG) 〓$(EXTRACFLAGS) 〓$(STDCFLAGS) --- pine/makefile.neb Fri Nov 10 09:57:03 2000 +++ pine/makefile.neb Wed Dec 26 18:29:26 2001 @@ -45,9 +45,9 @@ RM= rm -f LN= ln -s MAKE= make -OPTIMIZE= # -O +OPTIMIZE= -O2 -m486 -pipe PROFILE= # -pg -DEBUG= -g -DDEBUG +DEBUG= # -g -DDEBUG CCLIENTDIR= ../c-client PICODIR= ../pico --- imap/src/osdep/unix/Makefile Fri Feb 2 03:35:47 2001 +++ imap/src/osdep/unix/Makefile Wed Dec 26 18:37:40 2001 @@ -430,7 +430,7 @@ SPOOLDIR=/var 〓〓 ACTIVEFILE=/var/db/news/active 〓〓 RSHPATH=/usr/bin/rsh 〓〓 - BASECFLAGS="-g -O -pipe" 〓〓 + BASECFLAGS="-O2 -m486 -pipe" 〓〓 BASELDFLAGS="-lcrypt" nec: # NEC UX EOF ./build neb chmod a-w imap/imapd/imapd imap/ipopd/ipop2d imap/ipopd/ipop3d cp imap/imapd/imapd imap/ipopd/ipop2d imap/ipopd/ipop3d /usr/local/real ln -s /usr/local/bin/tcpd /usr/libexec/imapd ln -s /usr/local/bin/tcpd /usr/libexec/ipop2d ln -s /usr/local/bin/tcpd /usr/libexec/ipop3d cat<<EOF>>/etc/inetd.conf imap stream tcp nowait root /usr/libexec/imapd imapd pop2 stream tcp nowait root /usr/libexec/ipop2d ipop2d pop3 stream tcp nowait root /usr/libexec/ipop3d ipop3d EOF |
cd 〓/src cat X420src-1.tgz|gzip -d|tar -xf- cat X420src-2.tgz|gzip -d|tar -xf- cd xc/config/cf patch<<EOF --- xf86site.def Thu Jan 17 03:36:00 2002 +++ xf86site.def Tue Jul 15 23:10:52 2003 @@ -54,9 +54,8 @@ * uncomment the following line, and remove '-fno-strength-reduce' * If you are building binaries for a 486, it may be beneficial to add * -m486 - * -#define DefaultGcc2i386Opt -O2 -fno-strength-reduce */ +#define DefaultGcc2i386Opt -O2 -m486 -pipe -fno-strength-reduce /* * This allows the GCC warning flags to be set. The default is shown here. EOF cd ../.. make World make install install.man xf86cfg cat<<EOF>>/etc/ttys ttyE4 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure EOF |
cd 〓/src cat kterm-6.2.0.tar.gz|gzip -d|tar -xf- cd kterm-6.2.0 xmkmf -a;make make install install.man |
cat<<EOF>〓/.xsession xrdb .Xresources kinput2 -jserver localhost & /usr/bin/nice -n 10 xclock -d -up 1 -geometry -0+0 & /usr/bin/nice -n 10 xlogo -geometry -45+80 & /usr/bin/nice -n 10 xeyes -geometry -20+230 & /usr/bin/nice -n 10 xload -geometry -210+195 & kterm -r -sb -km euc -geometry +10+10 & kterm -r -sb -km euc -geometry -10-10 & twm EOF chmod a+x 〓/.xsession |
cat<<EOF>>/etc/ld.so.conf /usr/local/lib /usr/X11R6/lib EOF cat<<EOF>>〓/.cshrc setenv LD_LIBRARY_PATH /usr/local/lib:/usr/X11R6/lib EOF |
cat<<EOF>/etc/namedb/named.conf options { directory "/etc/namedb"; }; zone "." { type hint; file "root.cache"; }; zone "localhost" { type master; file "localhost"; }; zone "127.IN-ADDR.ARPA" { type master; file "127"; }; zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.int" { type master; file "loopback.v6"; }; zone "DOMAINNAME" { type master; file "DOMAINNAME"; }; zone "0.168.192.IN-ADDR.ARPA" { type master; file "192.168.0"; }; EOF cat<<EOF>/etc/namedb/127 〓$TTL 3600 @ IN SOA HOSTNAME.DOMAINNAME. USERNAME.HOSTNAME.DOMAINNAME. ( 2001122600 ; Serial 10800 ; Refresh 3600 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. 1.0.0 IN PTR localhost. EOF cat<<EOF>/etc/namedb/localhost 〓$TTL 3600 @ IN SOA HOSTNAME.DOMAINNAME. USERNAME.HOSTNAME.DOMAINNAME. ( 2001122600 ; Serial 10800 ; Refresh 3600 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. localhost. IN A 127.0.0.1 IN AAAA ::1 EOF cat<<EOF>/etc/namedb/192.168.0 〓$TTL 3600 @ IN SOA HOSTNAME.DOMAINNAME. USERNAME.HOSTNAME.DOMAINNAME. ( 2001122600 ; Serial 10800 ; Refresh 3600 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. 1 IN PTR HOSTNAME.DOMAINNAME. 2 IN PTR HOSTNAME.DOMAINNAME. EOF cat<<EOF>/etc/namedb/DOMAINNAME 〓$TTL 3600 @ IN SOA HOSTNAME.DOMAINNAME. USERNAME.HOSTNAME.DOMAINNAME. ( 2001122600 ; Serial 10800 ; Refresh 3600 ; Retry 3600000 ; Expire 86400 ) ; Minimum IN NS localhost. HOSTNAME.DOMAINNAME. IN A 192.168.0.1 HOSTNAME.DOMAINNAME. IN A 192.168.0.2 EOF cat<<EOF>>/etc/rc.conf named=YES named_flags="-b /etc/namedb/named.conf" EOF |
cat<<EOF>/etc/exports /home -alldirs -network 192.168.0/24 EOF cat<<EOF>>/etc/rc.conf rpcbind=YES mountd=YES nfs_server=YES EOF |
cd 〓/src cat glib-1.2.8.tar.gz|gzip -d|tar -xf- cd glib-1.2.8 ./configure make make install |
cd 〓/src cat gtk+-1.2.8.tar.gz|gzip -d|tar -xf- cd gtk+-1.2.8 ./configure make make install |
cd 〓/src cat FreeWnn-1.10.tar.gz|gzip -d|tar -xf- cd Xsi patch<<EOF --- configure Tue Apr 6 12:12:18 1999 +++ configure Thu Jul 17 20:33:22 2003 @@ -704,11 +704,11 @@ CPP=/lib/cpp fi ;; -"FreeBSD") +"NetBSD") CCOPTIONS="-DCSRG_BASED" - CDEBUGFLAGS="-O2 -fno-strength-reduce" - if test -x /usr/libexec/cpp; then - CPP=/usr/libexec/cpp + CDEBUGFLAGS="-O2 -m486 -pipe -fno-strength-reduce" if test -x /usr/bin/cpp; then + CPP=/usr/bin/cpp fi ;; "SunOS") EOF ./configure cd Wnn make useradd -s /bin/csh -d /noexistent -g users -c wnn wnn make install cat<<EOF>>/etc/rc.local echo 'Starting Wnn server.'; su wnn -c /usr/local/bin/Wnn4/jserver EOF |
cd 〓/src cat kinput2-v3.tar.gz|gzip -d|tar -xf- cd kinput2-v3 patch<<EOF --- Kinput2.conf Thu May 27 08:55:18 1999 +++ Kinput2.conf Thu Jul 17 20:57:13 2003 @@ -15,10 +15,10 @@ ** command line option. **/ -/* #define UseWnn */ /* define if you are going to use Wnn (v4 or v6) */ +#define UseWnn /* define if you are going to use Wnn (v4 or v6) */ /* #define UseWnn6 */ /* define if you are going to use Wnn6 */ -#define UseCanna /* define if you are going to use Canna */ -#define UseSj3 /* define if you are going to use Sj3 */ +/* #define UseCanna */ /* define if you are going to use Canna */ +/* #define UseSj3 */ /* define if you are going to use Sj3 */ XCOMM Wnn configuration @@ -51,17 +51,17 @@ * WnnLibDir above. */ XCOMM use installed header files -XCOMM WNNINCDIR = /usr/X11R6/include/wnn +WNNINCDIR = /usr/X11R6/include/wnn XCOMM use installed library -XCOMM WNNLIB = -lwnn +WNNLIB = -lwnn /* * Or, use library in the source tree.. */ XCOMM use library in the source tree -WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn -WNNINCDIR = $(WNNSRC)/include -WNNLIB = $(WNNSRC)/jlib/libwnn.a +XCOMM WNNSRC = $(CONTRIBSRC)/programs/Xsi/Wnn +XCOMM WNNINCDIR = $(WNNSRC)/include +XCOMM WNNLIB = $(WNNSRC)/jlib/libwnn.a XCOMM Canna configuration @@ -86,8 +86,8 @@ * but not installed yet.. */ XCOMM use headers/libraries in the source tree -CANNASRC = $(CONTRIBSRC)/programs/Canna32 -CANNALIB = -L$(CANNASRC)/lib/canna16 -lcanna16 +XCOMM CANNASRC = $(CONTRIBSRC)/programs/Canna32 +XCOMM CANNALIB = -L$(CANNASRC)/lib/canna16 -lcanna16 XCOMM SJ3 configuration @@ -99,7 +99,7 @@ * definition files are to be installed */ -SJ3DEF_DIR = $(LIBDIR)/sj3def +XCOMM SJ3DEF_DIR = $(LIBDIR)/sj3def /* * If you have installed SJ3 library and header file, @@ -116,8 +116,8 @@ * Use compiled library in the source tree.. */ XCOMM use library in the source tree -SJ3SRC = $(CONTRIBSRC)/programs/sj3 -SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a +XCOMM SJ3SRC = $(CONTRIBSRC)/programs/sj3 +XCOMM SJ3LIB = $(SJ3SRC)/sj3lib/libsj3lib.a /** EOF xmkmf -a;make make install install.man cat<<EOF>〓/.Xresources *vt100*translations: #override Ctrl<Key>Shift_R: begin-conversion() EOF cat<<EOF>>〓/.cshrc setenv XMODIFIERS "@im=kinput2" EOF |
cd 〓/src cat zip23.tar.gz|gzip -d|tar -xf- cd zip-2.3/unix patch<<EOF --- Makefile Mon Nov 29 14:22:42 1999 +++ Makefile Thu Jul 17 22:25:15 2003 @@ -21,7 +21,7 @@ BIND = $(CC) AS = $(CC) -c E = -CPP = /lib/cpp +CPP = /usr/bin/cpp # probably can change this to 'install' if you have it INSTALL = cp @@ -45,7 +45,7 @@ # CFLAGS flags for C compile # LFLAGS1 flags after output file spec, before obj file list # LFLAGS2 flags after obj file list (libraries, etc) -CFLAGS = -O2 -I. -DUNIX $(LOCAL_ZIP) +CFLAGS = -O2 -m486 -pipe -I. -DUNIX $(LOCAL_ZIP) LFLAGS1 = LFLAGS2 = -s EOF cd .. make -f unix/Makefile generic make -f unix/Makefile install |
cd 〓/src cat libIDL-0.6.8.tar.gz|gzip -d|tar -xf- cd libIDL-0.6.8 ./configure make make install |
cd 〓/src cat libiconv-1.8.tar.gz|gzip -d|tar -xf- cd libiconv-1.8 ./configure make make check make install |
cd 〓/src cat mozilla-source-1.4.tar.gz|gzip -d|tar -xf- cd mozilla ./configure --disable-debug --enable-crypto make ./dist/bin/mozilla & |
mkdir -p /usr/local/teTeX/share/texmf cd /usr/local/teTeX/share/texmf cat tetex-texmf-2.0.2.tar.gz|gzip -d|tar -xf- rm -f /usr/local/teTeX/share/texmf/ls-R cat ptex-texmf-2.1.tar.gz|gzip -d|tar -xf- cd 〓/src cat tetex-src-2.0.2.tar.gz|gzip -d|tar -xf- cd tetex-src-2.0.2/texk/web2c cat ptex-src-3.1.2.tar.gz|gzip -d|tar -xf- cd .. cat dvipsk-jpatch-p1.6.tar.gz|gzip -d|tar -xf- patch -p0<dvipsk-5.92b-p1.6.patch cd .. ./configure make make install cd texk/web2c/ptex-3.1.2 ./configure euc make make install cat<<EOF>>/usr/local/teTeX/share/texmf/dvips/config/psfonts.map rml Ryumin-Light-H rmlv Ryumin-Light-V gbm GothicBBB-Medium-H gbmv GothicBBB-Medium-V EOF cat<<EOF>>〓/.cshrc set path=(/usr/local/teTeX/bin/i386-unknown-netbsdelf1.6.1 〓$path) EOF mktexlsr |
cd 〓/src cat giflib-4.1.0.tar.gz|gzip -d|tar -xf- cd giflib-4.1.0 ./configure make make install |
cd 〓/src cat jpegsrc.v6b.tar.gz|gzip -d|tar -xf- cd jpeg-6b ./configure make make install install-lib |
cd 〓/src cat libpng-1.0.9.tar.gz|gzip -d|tar -xf- cd libpng-1.0.9 cp scripts/makefile.std Makefile patch<<EOF --- Makefile Sat Jan 6 09:25:50 2001 +++ Makefile Wed Dec 26 11:53:39 2001 @@ -6,13 +6,13 @@ prefix=/usr/local # Where the zlib library and include files are located -#ZLIBLIB=/usr/local/lib -#ZLIBINC=/usr/local/include -ZLIBLIB=../zlib -ZLIBINC=../zlib +ZLIBLIB=/usr/lib +ZLIBINC=/usr/include +#ZLIBLIB=../zlib +#ZLIBINC=../zlib CC=cc -CFLAGS=-I〓$(ZLIBINC) -O # -g -DPNG_DEBUG=5 +CFLAGS=-I〓$(ZLIBINC) -O2 -m486 -pipe # -g -DPNG_DEBUG=5 LDFLAGS=-L. -L〓$(ZLIBLIB) -lpng -lz -lm #RANLIB=echo EOF make make install cp *3 /usr/local/man/man3 cp *5 /usr/local/man/man5 |
cd 〓/src cat tiff-v3.5.5.tar.gz|gzip -d|tar -xf- cd tiff-v3.5.5 patch<<EOF --- configure Tue Mar 21 03:20:42 2000 +++ configure Wed Dec 26 12:00:41 2001 @@ -591,7 +591,7 @@ Note "Looks like 〓$CCOMPILER supports the -g option." # NB: cannot use captureX here 'cuz we lose stderr if 〓$CCOMPILER 〓$ENVOPTS -c -g -O dummy.c >t 2>&1 && CheckForGandO t; then - GCOPTS="-g" GCOPTS="-O2 -m486 -pipe" else Note "... but not together with the -O option, not using it." GCOPTS= EOF ./configure make make install |
cd 〓/src cat cups-1.1.19-source.tar.bz2|gzip -d|tar -xf- cd cups-1.1.19 ./configure #configure can not find jpeglib.h png.h tiff.h. Why ? make make install #Printer drivers are contained in gimp-print-4.2.5.tar.gz. |
cd 〓/src cat gimp-print-4.2.5.tar.gz|gzip -d|tar -xf- cd gimp-print-4.2.5 ./configure make make install #lpinfo -v #lpinfo -m #http://localhost:631 #lpadmin -p PRINTERNAME -m DRIVERNAME.ppd -v parallel:/dev/lpt0 -E #lpadmin -p PRINTERNAME -m DRIVERNAME.ppd -v ipp://SERVERNAME/printers/PRINTERNAME -E #lpoptions -l #lpoptions -o PageSize=A4 #vi /etc/cups/mime.types #vi /etc/cups/mime.convs #vi /etc/cups/cupsd.conf |
cd 〓/src cat espgs-7.07.1rc1-source.tar.bz2|gzip -d|tar -xf- cd espgs-7.07.1rc1 cat jpegsrc.v6b.tar.gz|gzip -d|tar -xf- ln -s jpeg-6b jpeg cat libpng-1.0.9.tar.gz|gzip -d|tar -xf- ln -s libpng-1.0.9 libpng ./configure --without-gimp-print make make install cd /usr/local/share/ghostscript cat ghostscript-fonts-std-6.0.tar.gz|gzip -d|tar -xf- cat ghostscript-fonts-other-6.0.tar.gz|gzip -d|tar -xf- cat acro5-cmaps-2001.tar.gz|gzip -d|tar -xf- cat adobe-cmaps-200211.tar.gz|gzip -d|tar -xf- #mkdir /usr/local/share/ghostscript/CIDFont #cp CIDfont/samples/* /usr/local/share/ghostscript/CIDFont #cat<<EOF>>./7.07/lib/CIDFnmap #/Ryumin-Light (/usr/local/share/ghostscript/CIDFont/WadaMin-Regular); #/GothicBBB-Medium (/usr/local/share/ghostscript/CIDFont/WadaGo-Bold); #EOF mkdir /usr/local/share/ghostscript/TTFont cp /msdos/WINDOWS/FONTS/MSMINCHO.TTC /msdos/WINDOWS/FONTS/MSGOTHIC.TTC /usr/local/share/ghostscript/TTFont cat<<EOF>>./7.07/lib/CIDFnmap /Ryumin-Light (/usr/local/share/ghostscript/TTFont/MSMINCHO.TTC); /GothicBBB-Medium (/usr/local/share/ghostscript/TTFont/MSGOTHIC.TTC); EOF |
cd 〓/src cat gimp-1.2.5.tar.bz2|gzip -d|tar -xf- cd gimp-1.2.5 ./configure --with-libiconv-prefix=/usr/local make make install |
cd 〓/src mv /usr/X11R6/include/GL /usr/X11R6/include/GL.org mkdir /usr/X11R6/lib/GL.org mv /usr/X11R6/lib/libGL* /usr/X11R6/lib/GL.org cat /home/ftp/pub/distfiles/MesaLib-3.5.tar.bz2|gzip -d|tar -xf- cat /home/ftp/pub/distfiles/MesaDemos-3.5.tar.bz2|gzip -d|tar -xf- cd Mesa-3.5 ln -s `pwd`/include/GL /usr/include/GL patch<<EOF --- configure Thu Jun 21 07:20:53 2001 +++ configure Thu Jul 31 18:06:22 2003 @@ -2080,7 +2080,7 @@ CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then - CFLAGS="-g -O2" + CFLAGS="-O2 -m486 -pipe" else CFLAGS="-g" fi @@ -2577,7 +2577,7 @@ CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then - CXXFLAGS="-g -O2" + CXXFLAGS="-O2 -m486 -pipe" else CXXFLAGS="-g" fi EOF ./configure make rm /usr/include/GL ln -s /usr/local/include/GL /usr/include/GL make install ln -s /usr/local/lib/libGL.la /usr/X11R6/lib/libGL.la ln -s /usr/local/lib/libGL.so.3.350 /usr/X11R6/lib/libGL.so ln -s /usr/local/lib/libGL.so.3.350 /usr/X11R6/lib/libGL.so.3 ln -s /usr/local/lib/libGL.so.3.350 /usr/X11R6/lib/libGL.so.3.350 ln -s /usr/local/lib/libGLU.la /usr/X11R6/lib/libGLU.la ln -s /usr/local/lib/libGLU.so.4.350 /usr/X11R6/lib/libGLU.so ln -s /usr/local/lib/libGLU.so.4.350 /usr/X11R6/lib/libGLU.so.4 ln -s /usr/local/lib/libGLU.so.4.350 /usr/X11R6/lib/libGLU.so.4.350 ln -s /usr/local/lib/libMesaOS.la /usr/X11R6/lib/libMesaOS.la ln -s /usr/local/lib/libMesaOS.so.8.350 /usr/X11R6/lib/libMesaOS.so ln -s /usr/local/lib/libMesaOS.so.8.350 /usr/X11R6/lib/libMesaOS.so.8 ln -s /usr/local/lib/libMesaOS.so.8.350 /usr/X11R6/lib/libMesaOS.so.8.350 ln -s /usr/local/lib/libglut.la /usr/X11R6/lib/libglut.la ln -s /usr/local/lib/libglut.so.10.0 /usr/X11R6/lib/libglut.so ln -s /usr/local/lib/libglut.so.10.0 /usr/X11R6/lib/libglut.so.10 ln -s /usr/local/lib/libglut.so.10.0 /usr/X11R6/lib/libglut.so.10.0 |
cd 〓/src cat gle-3.0.0.tar.gz|gzip -d|tar -xf- cd gle-3.0.0 ./configure make make install |
cd 〓/src cat lesstif-0.93.0.tar.gz|gzip -d|tar -xf- cd lesstif-0.93.0 ./configure --enable-default-20 --enable-production --disable-shared make make install cp -p clients/Motif-1.2/mwm/Mwm.ad /usr/X11R6/lib/X11/app-defaults/Mwm |
cd 〓/src cat xlockmore-5.04.tar.bz2|gzip -d|tar -xf- cd xlockmore-5.04 ./configure make make install |
cd 〓/src cat compface.tar.gz|gzip -d|tar -xf- cd compface patch -p<<lEOF --- Makefile Wed Mar 22 04:09:40 1995 +++ Makefile Wed Dec 26 15:38:00 2001 @@ -51,7 +51,7 @@ #CFLAGS = 〓$(CDEFS) 〓$(CCOMP) CC = gcc -CFLAGS = -g +CFLAGS = -O2 -m486 -pipe all: 〓$(NAME) 〓$(UNNAME) EOF make make install |
cd 〓/src cat xemacs-21.1.14.tar.bz2|gzip -d|tar -xf- cd xemacs-21.1.14 ./configure --site-includes=/usr/local/include --site-libraries=/usr/local/lib --with-pop --with-mule make make install #cd /usr/local/lib/xemacs #cat xemacs-sumo-2002-09-19.tar.bz2|gzip -d|tar -xf- #cat xemacs-mule-sumo-2002-09-19.tar.bz2|gzip -d|tar -xf- |
cd 〓/src cat lynx2.8.4dev.9.tar.bz2|gzip -d|tar -xf- cd lynx2-8-4 patch<<EOF --- src/LYCurses.c Fri Sep 1 20:23:46 2000 +++ src/LYCurses.c Wed Dec 26 15:10:37 2001 @@ -1454,7 +1454,7 @@ * Alpha, since prior ports of curses were broken. BSD touchline() has a * 4th parameter since it is used internally by touchwin(). */ - touchline(stdscr, row, 1, 0); + touchline(stdscr, row, 1); #else #if !defined(USE_SLANG) touchwin(stdscr); EOF ./configure make make install |
cd 〓/src cat mkhybrid-1.11.1.tar.gz|gzip -d|tar -xf- cd mkhybrid-1.11.1 ./configure make make install |
cd 〓/src cat lame-3.93.1.tar.gz |gzip -d|tar -xf- cd lame-3.93.1 ./configure --enable-mp3x --enable-mp3rtp --disable-shared --with-gtk-prefix=/usr/local make make install #lame -q 0 -b 96 SOUND.wav SOUND.mp3 |
cd 〓/src cat mlvwm091.tar.gz|gzip -d|tar -xf- cd mlvwm091 xmkmf -a;make make install install.man |
ntpdate sutns.sut.ac.jp |