isc-dhcp3-serverのオプション指定を回避する
普通に
cd /usr/ports/net/isc-dhcp3-server make install
でインストールすると、途中でオプション指定が必要になる。
普通に make install なら、
make OPTIONS="DHCP_PARANOIA is on DHCP_JAIL is off DHCP_LDAP is off DHCP_LDAP_SSL is off OPENSSL_BASE is off OPENSSL_PORT is off" BATCH=YES install
portupgradeなら、
/usr/local/etc/pkgtools.conf に下記のように指定すれば、
MAKE_ARGS = { 'net/isc-dhcp3-server' => 'OPTIONS="DHCP_PARANOIA is on DHCP_JAIL is off DHCP_LDAP is off DHCP_LDAP_SSL is off OPENSSL_BASE is off OPENSSL_PORT is off" BATCH=YES', }
で途中オプション指定をすることなくインストールできる。
ntpd 設定
/etc/rc.conf
ntpdate_enable="YES" ntpd_enable="YES"
/etc/ntp.conf
restrict default ignore restrict 127.0.0.1 restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap restrict 210.173.160.27 notrust nomodify notrap restrict 130.69.251.23 notrust nomodify notrap restrict 133.100.11.8 notrust nomodify notrap restrict 203.120.14.5 notrust nomodify notrap server 210.173.160.27 #ntp1.jst.mfeed.ad.jp server 130.69.251.23 #eric.nc.u-tokyo.ac.jp server 133.100.11.8 #clock.tl.fukuoka-u.ac.jp server 203.120.14.5 #time.asia.apple.com server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 driftfile /etc/ntp/drift broadcastdelay 0.008
上記設定後、
ntpdate hostname /etc/rc.d/ntpd start
かリブートするとOK
5.3-p1 インストール
cd /usr/ports/japanese/kon2-14dot make install clean http://d.hatena.ne.jp/yasu0519/searchdiary?word=kon cd /usr/ports/portupgrade make install clean cd /usr/ports/japanese/w3m make install clean ※オプション設定あり
crontab
毎時
・/etc/periodic/weekly/310.locate
毎週
・cvsup portsとsrc
・portsdb -Uu
・potsversionで>のもの
SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin # #minute hour mday month wday command # 30 6 * * * cd /usr/src; make update; /usr/local/sbin/portsdb -Uu 50 * * * * /etc/periodic/weekly/310.locate > /dev/null 2>&1
/usr/local/etc/pkgtools.conf
ports/localカテゴリを反映する
EXTRA_CATEGORIES = [ 'local', ]
ログ出力
PORTUPGRADE_ARGS = ENV['PORTUPGRADE'] || \ '-v -L /var/log/ports/'
/usr/sup/refuse
doc/da_* doc/de_* doc/es_* doc/el_* doc/fr_* doc/it_* doc/nl_* doc/no_* doc/pl_* doc/pt_* doc/ru_* doc/sr_* doc/zh_*
portsのrefuseはportupgrade -UuでINDEXを作る際にエラーになるので
一切refuse(下記ディレクトリ)しない
ports/arabic ports/chinese ports/french ports/german ports/hebrew ports/hungarian ports/korean ports/polish ports/portuguese ports/russian ports/ukrainian ports/vietnamese
/etc/make.conf
CPUTYPE=i686 NOPROFILE=true CFLAGS= -O -pipe # -- use.perl generated deltas -- # # Created: Tue Nov 9 17:19:11 2004 # Setting to use base perl from ports: PERL_VER=5.8.5 PERL_VERSION=5.8.5 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo #ccache config 2004/11/28 3:22 .if !defined(NOCCACHE) CC=/usr/local/libexec/ccache/cc CXX=/usr/local/libexec/ccache/c++ .endif #cvsup config 2004/12/01 12:19 SUP_UPDATE=yes SUP=/usr/local/bin/cvsup SUPFLAGS= -g -L 2 SUPHOST=cvsup3.jp.freebsd.org SUPFILE=/usr/local/etc/cvsup/standard-supfile PORTSSUPFILE=/usr/local/etc/cvsup/ports-supfile DOCSUPFILE=/usr/local/etc/cvsup/doc-supfile KERNCONF=YKERN20041127
dvd+rw-tools は make.conf に ccache の設定があるとportsからmakeできないため、make.conf の ccache の設定部分をコメントアウトして make install clean
/usr/local/etc/pkgtools.conf に下記を追加してOK
MAKE_ARGS = { 'sysutils/dvd+rw-tools' => 'NOCCACHE=y', }