Ports/Packagesからのインストール bash-2.05b.004 The GNU Bourne Again Shell ja-nkf-2.02 Network Kanji code conversion Filter ltmdm-1.4_5 Driver for the Lucent LT Winmodem chipset pciutils-2.1.11 PCI configuration utilities ファイル名の検索を高速に行う # echo /usr/libexec/locate.updatedb | su -fm nobody pciutilsをPackagesからインストールした場合ltmodemのscanmodem中のlspciのPATHを/usr/local/binにする winmodem agere(Lucent)ドライバのインストール /usr/ports/comms/ltmdmでmake;make install -------------------------------------------------------------------------------- [proftpd-1.2.9.tar.gz] # tar xvzf proftpd-1.2.9.tar.gz # cd proftpd-1.2.9 # ./configure # make # make install # mkdir /var/run/proftpd # chown ftp:wheel /var/run/proftpd # chmod 0700 /var/run/proftpd # mkdir /var/log/proftpd # chown ftp:wheel /var/log/proftpd # chmod 0700 /var/log/proftpd # vi /etc/proftpd.conf # vi /usr/local/etc/rc.d/proftpd.sh # chmod 755 /usr/local/etc/rc.d/proftpd.sh # vi /etc/pam.conf ftp account required pam_unix.so try_first_pass ftp session required pam_permit.so -------------------------------------------------------------------------------- [make-3.80.tar.gz] # tar xvzf make-3.80.tar.gz # cd make-3.80 # ./configure # make # make install -------------------------------------------------------------------------------- [openssh-3.8p1.tar.gz] # tar xvzf openssh-3.8p1.tar.gz # cd openssh-3.8p1 # ./configure --prefix=/usr --with-pam --with-ssl-dir=/usr # make # make install -------------------------------------------------------------------------------- [perl-5.8.3.tar.gz] # tar xvzf perl-5.8.3.tar.gz # cd perl-5.8.3 # sh ./Configure Would you like to see the instructions? [n] Which of these apply, if any? [freebsd] Operating system name? [freebsd] Operating system version? [4.8-release] Build Perl for SOCKS? [n] Use the PerlIO abstraction layer? [y] Build a threading Perl? [n] Build Perl for multiplicity? [n] Use which C compiler? [cc] gcc Directories to use for library searches? [/usr/lib /usr/local/lib] What is the file extension used for shared libraries? [so] Try to use long doubles if available? [n] What libraries to use? [-lm -lcrypt -lutil -lc] What optimizer/debugger flag should be used? [-O] -O2 Any additional cc flags? [-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include] Any additional ld flags (NOT including libraries)? [-Wl,-E -L/usr/local/lib] -Wl,-E -L/usr/lib -L/usr/local/lib Try to use 64-bit integers, if available? [n] Try to use maximal 64-bit support, if available? [n] What is your architecture name [i386-freebsd] Installation prefix to use? (~name ok) [/usr/local] /usr What installation prefix should I use for installing files? (~name ok) [/usr] Pathname where the private library files will reside? (~name ok) [/usr/lib/perl5/5.8.3] /usr/libdata/perl/5.8.3 Where do you want to put the public architecture-dependent libraries? (~name ok) [/usr/libdata/perl/5.8.3/i386-freebsd] Other username to test security of setuid scripts with? [none] Does your kernel have *secure* setuid scripts? [n] Do you want to do setuid/setgid emulation? [n] Do you wish to attempt to use the malloc that comes with perl5? [n] Installation prefix to use for add-on modules and utilities? (~name ok) [/usr] Pathname for the site-specific library files? (~name ok) [/usr/lib/perl5/site_perl/5.8.3] /usr/local/lib/perl5/site_perl/5.8.3 Pathname for the site-specific architecture-dependent library files? (~name ok) [/usr/local/lib/perl5/site_perl/5.8.3/i386-freebsd] Do you want to configure vendor-specific add-on directories? [n] Colon-separated list of additional directories for perl to search? [none] Pathname where the public executables will reside? (~name ok) [/usr/bin] Install any extra modules (y or n)? [n] Directory for the main Perl5 html pages? (~name ok) [none] Directory for the Perl5 module html pages? (~name ok) [none] List of earlier versions to include in @INC? [none] Shall I use /usr/bin/nm to extract C symbols from the libraries? [n] Do you wish to use dynamic loading? [y] Source file to use for dynamic loading [ext/DynaLoader/dl_dlopen.xs] Any special flags to pass to gcc -c to compile shared library modules? [-DPIC -fPIC] What command should be used to create dynamic libraries? [gcc] Any special flags to pass to gcc to create a dynamically loaded library? [-shared -L/usr/lib -L/usr/local/lib] Any special flags to pass to gcc to use dynamic linking? [none] Build a shared libperl.so (y/n) [n] Where do the main Perl5 manual pages (source) go? (~name ok) [/usr/share/man/man1] What suffix should be used for the main Perl5 man pages? [1] Where do the perl5 library man pages (source) go? (~name ok) [/usr/share/man/man3] What suffix should be used for the perl5 library man pages? [3] Your host name appears to be "fax.viewhotels.co.jp". Right? [y] What is your domain name? [.viewhotels.co.jp] What is your e-mail address? [mic@fax.viewhotels.co.jp] postmaster@fax.viewhotels.co.jp Perl administrator e-mail address [postmaster@fax.viewhotels.co.jp] Do you want to install only the version-specific parts of perl? [n] What shall I put after the #! to start up perl ("none" to not use #!)? [/usr/bin/perl] Where do you keep publicly executable scripts? (~name ok) [/usr/bin] Pathname where the add-on public executables should be installed? (~name ok) [/usr/bin] Pathname where the site-specific html pages should be installed? (~name ok) [none] Pathname where the site-specific library html pages should be installed? (~name ok) [none] Pathname where the site-specific manual pages should be installed? (~name ok) [/usr/share/man/man1] Pathname where the site-specific library manual pages should be installed? (~name ok) [/usr/share/man/man3] Pathname where add-on public executable scripts should be installed? (~name ok) [/usr/bin] Use the "fast stdio" if available? [y] What is the extension of dynamically loaded modules [so] Shall I ignore gethostname() from now on? [n] What is the size of a character (in bytes)? [1] Do you still want to use vfork()? [y] Doubles must be aligned on a how-many-byte boundary? [4] Use which function to generate random numbers? [drand48] What type pointer is the second argument to getgroups() and setgroups()? [gid_t] What pager is used on your system? [/usr/bin/less] Which compiler compiler (byacc or yacc) shall I use? [/usr/bin/byacc] What extensions do you wish to load dynamically? [B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Time/HiRes Unicode/Normalize XS/APItest XS/Typemap attrs re threads threads/shared] What extensions do you wish to load statically? [none] Run make depend now? [y] # make # make install -------------------------------------------------------------------------------- [efax-0.9a-001114a9-ja.tar.gz] # tar xvzf efax-0.9a-001114a9-ja.tar.gz # cd efax-0.9a-001114a9-ja # make # make install # ln -sf cual0 /dev/modem # mkdir -p /var/lock # chmod 755 /var/lock # mkdir -p /var/log/fax # chmod 700 /var/log/fax # mkdir -p /var/spool/fax/incoming # chown fax /var/spool/fax/incoming # chmod 755 /var/spool/fax/incoming # mkdir -p /var/spool/fax/outgoing # chown fax /var/spool/fax/outgoing # chmod 755 /var/spool/fax/outgoing # vi /etc/efax.rc -------------------------------------------------------------------------------- [qmail-1.03.tar.gz] # tar xvzf qmail-1.03.tar.gz # cd qmail-1.03 # patch -p1 < qmail-date-localtime.patch # patch -p1 < qmail-large-dns.patch # patch -p1 < qmail-smtpd-relay-reject.patch # mkdir /var/qmail # pw groupadd nofiles # pw useradd alias -g nofiles -d /var/qmail/alias -s /noexistent # pw useradd qmaild -g nofiles -d /var/qmail -s /noexistent # pw useradd qmaill -g nofiles -d /var/qmail -s /noexistent # pw useradd qmailp -g nofiles -d /var/qmail -s /noexistent # pw groupadd qmail # pw useradd qmailq -g qmail -d /var/qmail -s /noexistent # pw useradd qmailr -g qmail -d /var/qmail -s /noexistent # pw useradd qmails -g qmail -d /var/qmail -s /noexistent # make setup # make check # ./config-fast fax.viewhotels.co.jp # rm /usr/sbin/sendmail # ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail # vi /var/qmail/control/defaultdomain # vi /var/qmail/control/locals # vi /var/qmail/control/rcpthosts # vi /var/qmail/control/me # vi /var/qmail/control/plusdomain # echo "&mic@beppers.jp" > ~alias/.qmail-webmaster # echo "&mic@beppers.jp" > ~alias/.qmail-postmaster # echo "&mic@beppers.jp" > ~alias/.qmail-mailer-daemon # echo "&mic@beppers.jp" > ~alias/.qmail-root # chown -R alias ~alias/.qmail* # echo "&mic@beppers.jp" > ~mic/.qmail # chown -R mic:mic ~mic/.qmail* -------------------------------------------------------------------------------- [ucspi-tcp-0.88.tar.gz] (tcpserver) # tar xvzf ucspi-tcp-0.88.tar.gz # cd ucspi-tcp-0.88 # make setup # make check # vi /etc/tcp.smtp 192.168.1.:allow,RELAYCLIENT="" 127.:allow,RELAYCLIENT="" # /usr/local/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp -------------------------------------------------------------------------------- [checkpassword-0.90.tar.gz] # tar xvzf checkpassword-0.90.tar.gz # cd checkpassword-0.90 # vi conf-home /usr/local # make # make setup # make check -------------------------------------------------------------------------------- [daemontools-0.76.tar.gz] # mkdir -p /package # chmod 755 /package # chmod +t /package # cd /package # tar xvpfz /usr/local/src/daemontools-0.76.tar.gz # cd admin/daemontools-0.76 # ./package/install # mkdir /var/qmail/services # mkdir /var/qmail/services/qmail # chmod +t /var/qmail/services/qmail # vi /var/qmail/services/qmail/run #!/bin/sh exec env - PATH="/var/qmail/bin:$PATH" qmail-start ./Maildir/ # chmod 755 /var/qmail/services/qmail/run # mkdir /var/qmail/services/qmail/log # vi /var/qmail/services/qmail/log/run #!/bin/sh exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail # chmod 755 /var/qmail/services/qmail/log/run # mkdir /var/log/qmail # chown qmaill:nofiles /var/log/qmail # chmod 700 /var/log/qmail # mkdir /var/qmail/services/pop3d # chmod +t /var/qmail/services/pop3d # vi /var/qmail/services/pop3d/run #!/bin/sh PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin exec tcpserver -HR -l 192.168.1.98 -v 0 pop3 /var/qmail/bin/qmail-popup 192.168.1.98 /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1 # chmod 755 /var/qmail/services/pop3d/run # mkdir /var/qmail/services/pop3d/log # vi /var/qmail/services/pop3d/log/run #!/bin/sh exec /usr/local/bin/setuidgid qmailp /usr/local/bin/multilog t /var/log/pop3d # chmod 755 /var/qmail/services/pop3d/log/run # mkdir /var/log/pop3d # chown qmailp:nofiles /var/log/pop3d # chmod 700 /var/log/pop3d # mkdir /var/qmail/services/smtpd # chmod +t /var/qmail/services/smtpd # vi /var/qmail/services/smtpd/run #!/bin/sh PATH=/var/qmail/bin:/usr/local/bin:/bin:/usr/bin tcpserver -HR -l 192.168.1.98 -v -u 92 -g 91 -x /etc/tcp.smtp.cdb 0 smtp /var/qmail/bin/qmail-smtpd 2>&1 # chmod 755 /var/qmail/services/smtpd/run # mkdir /var/qmail/services/smtpd/log # vi /var/qmail/services/smtpd/log/run #!/bin/sh exec /usr/local/bin/setuidgid qmails /usr/local/bin/multilog t /var/log/smtpd # chmod 755 /var/qmail/services/smtpd/log/run # mkdir /var/log/smtpd # chown qmails:nofiles /var/log/smtpd # chmod 700 /var/log/smtpd # ln -s /var/qmail/services/qmail /service/qmail # ln -s /var/qmail/services/pop3d /service/pop3d # ln -s /var/qmail/services/smtpd /service/smtpd