perl5 を入れようとした。(perl5.004_04)
     1  1:06    cd /usr/src2/pkgsrc/
     2  1:06    cd lang/perl
     3  1:06    cd lang/perl5/

次のように言われるので、
Your package tools need to be updated to 1999/01/19 versions.
The installed package tools were last updated on 1998/12/31.
Please make and install the pkgsrc/pkgtools/pkg_install package.
cd pkgsrc/pkgtools/pkg_install
してから make install

pkg_install-19990119.tar.gz

(ftp で持って来るところは次の通り。持っているならここに置いておけ
ば良い)
 /usr/src2/pkgsrc/distfiles/

perl

--- Makefile-ooo	Sat Jan 30 08:51:13 1999
+++ Makefile	Sat Jan 30 08:51:46 1999
@@ -14,7 +14,7 @@
 HAS_CONFIGURE=		yes
 CONFIGURE_ENV+=		PREFIX=${PREFIX}
 CONFIGURE_SCRIPT=	Configure
-CONFIGURE_ARGS+=	-sde -Dprefix=${PREFIX}  -Dd_bincompat3=undef \
+CONFIGURE_ARGS+=	-sde -U d_setlocale -Dprefix=${PREFIX}  -Dd_bincompat3=undef \
 			-Darchname=${MACHINE_ARCH}-netbsd -Dusemymalloc=false
 MAKE_ENV+=		LD_LIBRARY_PATH=${WRKSRC}
 

make deinstall


pkg_create: can't stat `/usr/pkg/lib/perl5/powerpc-netbsd/5.00404/auto/SDBM_File/SDBM_File.a'

     1  8:21    cd /usr/src2/pkgsrc/
     2  8:21    ls
     3  8:21    cd pkgtools/
     4  8:21    ls
     5  8:21    make install
     6  8:21    cd pkg_install/
     7  8:21    make
     8  8:22    make install
     9  8:23    cd ../..
    10  8:23    cd lang/perl5/
    11  8:23    make
    12  8:38    make install
    13  8:51    cp Makefile Makefile-ooo
    14  8:51    vi Makefile
    15  8:51    make
    16  8:52    make clean
    17  8:52    make install
    18  11:38   make deinstall
    19  11:40   setenv FORCE_PKG_REGISTER true
    20  11:40   make install
    21  12:11   ls -l /usr/pkg/lib/perl5/powerpc-netbsd/5.00404/auto/Sock
    22  12:11   ls -l /usr/pkg/lib/perl5/powerpc-netbsd/5.00404/auto/
    23  12:11   ls -l /usr/pkg/lib/perl5/powerpc-netbsd/5.00404/auto/Socket/
    24  12:14   history


Signaling: (file-error "Searching for program" "no such file or directory" "lockfile")
  call-process("lockfile" nil nil nil "-2" "-r4" "-l10" "/home/makoto/Mail/.lock")
  apply(call-process "lockfile" nil nil nil ("-2" "-r4" "-l10" "/home/makoto/Mail/.lock"))
  prom-wait-lock("~/Mail/.lock")
  prom-lock("~/Mail/.lock")
  prom-get-new-mail()
  prom-mew-init("*Prom*" nil)
  prom-mew(nil)
  call-interactively(prom-mew)



root@harry  12:14:20/990130(...lang/perl5)# chmod u+s /bin/rcmd

procmail-3.11pre7

makoto@harry  12:20:49/990130(...src2/procmail-3.11pre7)> make
/bin/sh ./initmake /bin/sh "/bin/tcsh" "/bin/rm -f" "mv -f" "ln"  "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun  -lgen -lsockdns -ldl"  "/lib /usr/lib /usr/local/lib"  /dev/null "make" o  "gcc" "-O" "-s " "procmail lockfile formail mailstat"  "procmail formail lockfile"  "procmailrc procmailsc procmailex" "src man"  "/usr/bin"
Warning: really perverted make detected
***************************** WARNING *********************************
* You seem to have set the LD_LIBRARY_PATH variable, this might cause *
* some trouble during the compilation of this package.  If the make   *
* does not finish by itself, do a: "make clean", clear                *
* LD_LIBRARY_PATH from the environment, and start over.               *
***************************** WARNING *********************************



#define MAX_argc 15300
/* Your system's strstr() is 1.44 times SLOWER than my C-routine */
#define SLOWstrstr                            /* using my substitute instead */
#define UDP_protocolno 17
#define BIFF_serviceport "512"
#define IP_localhost {127,0,0,1,}
#define setrgid_RUNTIME_CHECK
#define MAILSPOOLDIR "/var/mail/"
#define SENDMAIL "/usr/sbin/sendmail"
#define CF_no_procmail_yet
#define defPATH "PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
/*locktype: 4, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
/*locktype: 4, countlocks: 0, timeout 0, watchdog 8, ./_locktest*/
/*locktype: 6, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
/*locktype: 6, countlocks: 0, timeout 0, watchdog 8, ./_locktest*/
/*locktype: 7, countlocks: 80, timeout 1, watchdog 14, /tmp/_locktest*/
/* Hotwire LOCKINGTEST=110 */
/* Procmail will lock via: dotlocking, fcntl(), lockf() */
#define USElockf
/* autoconf completed */
==========================================================================
echo Housekeeping file >config.check
mkdir new 2>/dev/null; exit 0
cd src; make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat
gcc -c -O procmail.c
gcc -c -O cstdio.c
gcc -c -O common.c
gcc -c -O exopen.c
gcc -c -O goodies.c
gcc -c -O locking.c
gcc -c -O mailfold.c
gcc -c -O misc.c
gcc -c -O pipes.c
gcc -c -O regexp.c
gcc -c -O robust.c
gcc -c -O sublib.c
gcc -c -O acommon.c
gcc -c -O mcommon.c
gcc -c -O lastdirsep.c
gcc -c -DPROCMAIL -O authenticate.c
gcc -O procmail.o cstdio.o common.o exopen.o goodies.o locking.o  mailfold.o misc.o pipes.o regexp.o robust.o sublib.o  acommon.o mcommon.o lastdirsep.o authenticate.o -o procmail -s  -lm -lc
ln ../src/procmail ../new/procmail
gcc -c -O lockfile.c
gcc -O lockfile.o exopen.o sublib.o acommon.o mcommon.o authenticate.o -o lockfile -s  -lm -lc
ln ../src/lockfile ../new/lockfile
gcc -c -O formail.c
gcc -c -O fields.c
gcc -c -O formisc.c
gcc -c -O ecommon.c
gcc -O formail.o common.o fields.o formisc.o sublib.o ecommon.o  acommon.o -o formail -s  -lm -lc
ln ../src/formail ../new/formail
cp ../examples/mailstat mailstat
ln ../src/mailstat ../new/mailstat
cd man; make ../new/procmail.1 ../new/formail.1 ../new/lockfile.1 ../new/procmailrc.5 ../new/procmailsc.5 ../new/procmailex.5
/bin/sh ./mansed /bin/sh procmail.man procmail.1 "/bin/rm -f" /dev/null
ln ../man/procmail.1 ../new/procmail.1
/bin/sh ./mansed /bin/sh formail.man formail.1 "/bin/rm -f" /dev/null
ln ../man/formail.1 ../new/formail.1
/bin/sh ./mansed /bin/sh lockfile.man lockfile.1 "/bin/rm -f" /dev/null
ln ../man/lockfile.1 ../new/lockfile.1
/bin/sh ./mansed /bin/sh procmailrc.man procmailrc.5 "/bin/rm -f" /dev/null
ln ../man/procmailrc.5 ../new/procmailrc.5
/bin/sh ./mansed /bin/sh procmailsc.man procmailsc.5 "/bin/rm -f" /dev/null
ln ../man/procmailsc.5 ../new/procmailsc.5
/bin/sh ./mansed /bin/sh procmailex.man procmailex.5 "/bin/rm -f" /dev/null
ln ../man/procmailex.5 ../new/procmailex.5
================================================================ ===============
If you are a system administrator you should consider integrating procmail
into the mail-delivery system -- for advanced functionality, speed AND
SECURITY --.  For more information about this topic you should look in the
examples/advanced file.

Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it):

chown root /usr/bin/procmail
chgrp wheel /usr/bin/procmail /usr/bin/lockfile
chmod 6755 /usr/bin/procmail
chmod 2755 /usr/bin/lockfile
chmod g+w /var/mail.
================================================================ ===============
If you would like to inspect the results before running make install:
All installable files can be found in the new/ subdirectory.
makoto@harry  12:26:12/990130(...src2/procmail-3.11pre7)> su mmmm
su: unknown login mmmm
makoto@harry  12:26:25/990130(...src2/procmail-3.11pre7)> su mmm
Password:
Sorry
makoto@harry  12:26:28/990130(...src2/procmail-3.11pre7)> su mmm
Password:
root@harry  12:26:31/990130(...src2/procmail-3.11pre7)# make install-suid
`recommend' is up to date.
================================================================ ===============
If you are a system administrator you should consider integrating procmail
into the mail-delivery system -- for advanced functionality, speed AND
SECURITY --.  For more information about this topic you should look in the
examples/advanced file.

Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it):

chown root /usr/bin/procmail
chgrp wheel /usr/bin/procmail /usr/bin/lockfile
chmod 6755 /usr/bin/procmail
chmod 2755 /usr/bin/lockfile
chmod g+w /var/mail.
================================================================ ===============
cd src; make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat
`../new/procmail' is up to date.
`../new/lockfile' is up to date.
`../new/formail' is up to date.
`../new/mailstat' is up to date.
cp new/procmail new/lockfile new/formail new/mailstat /usr/bin
echo Housekeeping file >install.bin
chown root /usr/bin/procmail
chgrp wheel /usr/bin/procmail /usr/bin/lockfile
chmod 6755 /usr/bin/procmail
chmod 2755 /usr/bin/lockfile
chmod g+w /var/mail.
chmod: /var/mail.: No such file or directory
*** Error code 1

Stop.
root@harry  12:26:55/990130(...src2/procmail-3.11pre7)# ls /var/mail