portmaster で関連の php-extensions も一気に更新しておきました。
![]() |
| php56-5.6.23 のビルドオプション |
パソコンと会話ができる男 Livingston のブログ
----孝行(こうこう)とは 親のように大切に扱うこと を示します----
/!\ WARNING /!\
You have security/openssl installed but do not have DEFAULT_VERSIONS+=ssl=openssl set in your make.conf
# vi /etc/make.conf
-- 最終行へ追加 --
DEFAULT_VERSIONS+=ssl=openssl
===> Cleaning for openssl-1.0.2_13
===> openssl-1.0.2_13 has known vulnerabilities:
openssl-1.0.2_13 is vulnerable:
OpenSSL -- vulnerability in DSA signing
CVE: CVE-2016-2178
WWW: https://vuxml.FreeBSD.org/freebsd/6f0529e2-2e82-11e6-b2ec-b499baebfeaf.html
1 problem(s) in the installed packages found.
=> Please update your ports tree and try again.
=> Note: Vulnerable ports are marked as such even if there is no update available.
=> If you wish to ignore this vulnerability rebuild with 'make DISABLE_VULNERABILITIES=yes'
*** Error code 1
Stop.
make[1]: stopped in /usr/ports/security/openssl
*** Error code 1
Stop.
make: stopped in /usr/ports/security/openssl
===>>> make build failed for security/openssl
===>>> Aborting update
===>>> Update for security/openssl failed
===>>> Aborting update
![]() |
| isc-dhcp43-server-4.3.4 のビルドオプション |
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces=""
dhcpd_withumask="022"
dhcpd_enable="YES"
dhcpd_ifaces="bge0"
FreeBSD cyrus-sasl2-saslauthd のコアダンプの怪
http://near-unix.blogspot.jp/2016/05/freebsd-cyrus-sasl2-saslauthd.html
# portupgrade -af --batch
# cd /usr/src
# make delete-old
# make delete-old-libs
![]() |
| 自宅サーバで使っていた古いハードディスクをパソコンへ接続してアップグレードを行っているところです。 |
自宅サーバのハードディスク交換作業
http://near-unix.blogspot.jp/2016/05/blog-post_22.html
# portupgrade -af --batch
FreeBSD-SA-16:24.ntp
- Multiple vulnerabilities of ntp -
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:24.ntp.asc
# svn update /usr/src
Updating '/usr/src':
U /usr/src/contrib/ntp/ntpd/ntp_config.c
U /usr/src/contrib/ntp/ntpd/ntp_keyword.h
U /usr/src/contrib/ntp/ntpd/ntp_parser.h
U /usr/src/contrib/ntp/ntpd/ntpd-opts.c
U /usr/src/contrib/ntp/ntpd/ntpd.1ntpdman
U /usr/src/contrib/ntp/ntpd/ntpd.man.in
U /usr/src/contrib/ntp/ntpdc/invoke-ntpdc.texi
U /usr/src/contrib/ntp/ntpdc/ntpdc.1ntpdcman
U /usr/src/contrib/ntp/ntpd/ntpd.1ntpdmdoc
U /usr/src/contrib/ntp/ntpd/ntpd.mdoc.in
U /usr/src/contrib/ntp/ntpdc/ntpdc-opts.c
U /usr/src/UPDATING
↓
↓
↓
U /usr/src/usr.sbin/ntp/config.h
U /usr/src/usr.sbin/ntp/doc/ntpd.8
U /usr/src/usr.sbin/ntp/scripts/mkver
Updated to revision 301309.
# cd /usr/src
# make buildworld
# make installworld
# reboot
FreeBSD-SA-16:20.linux
- Kernel stack disclosure in Linux compatibility layer -
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:20.linux.asc
FreeBSD-SA-16:21.43bsd
- Kernel stack disclosure in 4.3BSD compatibility layer -
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:21.43bsd.asc
FreeBSD-SA-16:22.libarchive
- Directory traversal in cpio(1) -
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:22.libarchive.asc
FreeBSD-SA-16:23.libarchive (FreeBSD 9.3 only)
- Buffer overflow in libarchive(3) -
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:23.libarchive.asc
# svn update /usr/src
Updating '/usr/src':
U /usr/src/UPDATING
U /usr/src/sys/compat/linux/linux_ioctl.c
U /usr/src/sys/compat/linux/linux_misc.c
U /usr/src/sys/conf/newvers.sh
U /usr/src/sys/kern/vfs_syscalls.c
U /usr/src/contrib/libarchive/cpio/bsdcpio.1
U /usr/src/contrib/libarchive/cpio/cpio.c
U /usr/src/contrib/libarchive/libarchive/archive.h
U /usr/src/contrib/libarchive/libarchive/archive_write_disk.3
U /usr/src/contrib/libarchive/libarchive/archive_write_disk_posix.c
U /usr/src/contrib/libarchive/libarchive/test/test_write_disk_secure.c
U /usr/src
Updated to revision 301110.
# cd /usr/src
# make buildworld
# make buildkernel KERNCONF=MYKERNEL
# make installkernel
# make installworld
# reboot
# service saslauthd start
Starting saslauthd.
Segmentation fault (core dumped)
/usr/local/etc/rc.d/saslauthd: WARNING: failed to start saslauthd
# portmaster security/cyrus-sasl2 security/cyrus-sasl2-saslauthd
# pkg install security/cyrus-sasl2 security/cyrus-sasl2-saslauthd
# portupgrade -af --batch
27.9. SMTP Authentication - FreeBSD
https://www.freebsd.org/doc/handbook/SMTP-Auth.html
HASH: Out of overflow pages. Increase page size
/usr/ports/INDEX-10:20155:dbm_store failed
# cd /usr/ports
# ls | grep INDEX
.portsnap.INDEX
INDEX-10
INDEX-10.db
INDEX-6
INDEX-7
INDEX-8
INDEX-8.db
INDEX-9
INDEX-9.db
# rm -rf INDEX*
# make index
Generating INDEX-10 - please wait..--- describe.accessibility ---
--- describe.arabic ---
--- describe.archivers ---
# portsdb -uU
Updating the ports index ... Generating INDEX20160528-41516-6hhlqn - please wait..--- describe.accessibility ---
--- describe.arabic ---
--- describe.archivers ---
# ls | grep INDEX
.portsnap.INDEX
INDEX-10
INDEX-10.db
# pkg info | grep ruby
ruby-2.2.5,1 Object-oriented interpreted scripting language
ruby21-2.1.9,1 Object-oriented interpreted scripting language
ruby21-bdb-0.6.6_4 Ruby interface to Oracle Berkeley DB
# pkg delete ruby-2.2.5,1 ruby21-2.1.9,1 ruby21-bdb-0.6.6_4 portupgrade-2.4.14,2
# portmaster ports-mgmt/portupgrade
===>>> The following actions will be taken if you choose to proceed:
Install ports-mgmt/portupgrade
Install databases/ruby-bdb
Install lang/ruby22
===>>> Proceed? y/n [y]
# portsdb -FU
# portversion -vL=
pkg-static: Unable to access file
/usr/ports/work/databases/p5-DBI/stage/usr/local/share/man/man1/dbiproxy.1.gz:
No such file or directory
*** [fake-pkg] Error code 74
# remove when 5.20 goes away.
.sinclude "${LOCALBASE}/etc/perl5_version"
.if defined(PERL_VERSION)
PERL5_DEPEND= ${PERL5}
THIS_IS_OLD_PERL= yes
.else
# end of remove
.if defined(THIS_IS_OLD_PERL)
#SITE_MAN1_REL?= share/man/man1
SITE_MAN1_REL?= ${SITE_PERL_REL}/man/man1
.else
SITE_MAN1_REL?= ${SITE_PERL_REL}/man/man1
.endif
/usr/local/lib/perl5/site_perl/man/man1/
FreeBSD 10.3 へアップグレード
http://near-unix.blogspot.jp/2016/05/freebsd-103.html
# portmaster dns/bind99
===>>> The following actions will be taken if you choose to proceed:
Install dns/bind99
Install dns/idnkit
===>>> Proceed? y/n [y]
# cp -Rp /etc/namedb /usr/local/etc/namedb
- /etc/rc.conf の named の起動部分 -
named_enable="YES"
named_flags="-4 -u bind"
# /usr/local/etc/rc.d/named start
# vi /etc/resolv.conf
- /etc/resolv.conf の編集部分 -
nameserver 127.0.0.1
BIND - name server error "the working directory is not writable"
http://scratching.psybermonkey.net/2009/09/bind-name-server-error-working.html
# chown -R bind:wheel /var/name/etc
# vi /etc/mtree/BIND.chroot.dist
/set type=dir uname=bind gname=wheel mode=0755
.
dev mode=0555
..
etc
namedb
dynamic uname=bind
..
master uname=bind
..
slave uname=bind
..
working uname=bind
..
..
..
/set type=dir uname=bind gname=wheel mode=0755
var uname=root
dump
..
log
..
run
named
..
..
stats
..
..
..
FreeBSD Bind9 (named) のインストール
http://near-unix.blogspot.jp/2016/05/freebsd-bind9-named.html
# vi /user/local/etc/dhcpd.conf
# /usr/local/etc/rc.d/isc-dhcpd restart
# vi /etc/resolv.conf
# cp -Rp /etc /etc.old
- ソースツリーのあるディレクトリを削除 -
# rm -Rf /usr/src
- 新しくソースツリーを作成 -
# mkdir /usr/src
# cd /usr/src
# svn checkout https://svn0.us-west.FreeBSD.org/base/releng/10.3 /usr/src
- GENERIC から MYKERNEL へ複写 -
# cp /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/MYKERNEL
カーネルのデバックを行うことがないため、カーネルの巨大化を防ぐためにシンボル類のビルドも中止させました。" # " 記号でコメント化しました。- MYKERNEL を編集 -
# vi /usr/src/sys/i386/conf/MYKERNEL
- MYKERNEL 編集部分の一部 -
#makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
#makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support
# cd /usr/src
# make buildworld && make buildkernel KERNCONF=MYKERNEL
カーネルのインストールが終わったところで、再起動させました。# make installkernel
# reboot
ERROR : Required unbound user is missing. see /usr/src/UPDATING.
"mergemaster -p" では /etc/group と /etc/master.passwd の二つのファイルを、新規インストール時に設定されるファイルと順次比較して表示してくれます。# mergemaster -p
# cd /usr/src
# make installworld
# mergemaster -Ui
# reboot
# cd /etc/mail
# make
# make install
# make restart
Checking for packages with security vulnerabilities:
samba36-3.6.25_3
samba36 -- 現状のバージョン
samba42 -- インストールしたバージョン
samba43
samba44
# pkg set -o net/samba36:net/samba42
Change origin from net/samba36 to net/samba42 for samba36-3.6.25_3? [y/N]: y
# portmaster net/samba42
![]() |
| samba42-4.2.12 のビルドオプション |
FreeBSD にて depends on file: /usr/local/bin/perl5.20.2 - not found エラー
http://near-unix.blogspot.jp/2016/05/freebsd-depends-on-file.html
# pkg install net/samba42
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
pkg: gnutls has a missing dependency: trousers-tddl
The following 6 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
samba42: 4.2.12
ruby: 2.2.5,1
py27-dnspython: 1.12.0
ntdb: 1.0
ldb: 1.1.26
libinotify: 20160505
The process will require 150 MiB more space.
27 MiB to be downloaded.
Proceed with this action? [y/N]: Y
# cp /usr/local/etc/smb.conf /usr/local/etc/smb4.conf
# vi /etc/rc.conf
- rc.conf の変更内容 -
samba_enable="YES"
nmbd_enable="YES"
smbd_enable="YES"
↓↓↓
samba_server_enable="YES"
パッケージ名 -- depends on file: /usr/local/bin/perl5.20.2 - found
パッケージ名 -- depends on file: /usr/local/bin/perl5.20.2 - not found
# ls /usr/local/bin/perl5*
/usr/local/bin/perl5
/usr/local/bin/perl5.20.2
/usr/local/bin/perl5.20.3
# rm /usr/local/bin/perl5.20.2
# vi /usr/local/etc/perl5_version
- 以下は編集内容 -
# Do not modify PERL_VERSION here, instead use DEFAULT_VERSIONS= perl5=5.20
PERL_VERSION=5.20.2
↓↓↓
PERL_VERSION=5.20.3
FreeBSD-SA-16:18.atkbd
- Buffer overflow in keyboard driver -
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:18.atkbd.asc
FreeBSD-SA-16:19.sendmsg (FreeBSD 10 only)
- Incorrect argument handling in sendmsg(2) -
https://www.freebsd.org/security/advisories/FreeBSD-SA-16:19.sendmsg.asc
# svn update /usr/srcUpdating '/usr/src':
G /usr/src/UPDATING
U /usr/src/sys/conf/newvers.sh
U /usr/src/sys/dev/kbd/kbd.c
Updated to revision 300113.
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel
# reboot