ほっしーの技術ネタ備忘録

技術ネタの備忘録です。基本的に私が忘れないためのものです。他の人の役にも立つといいなぁ。

mod_php が分離された

いつも通り php脆弱性対応でバージョンを上げようと思ったらこれですよ。

===>>> Currently installed version: php5-5.4.24
===>>> Port directory: /usr/ports/lang/php5

        ===>>> This port is marked IGNORE
        ===>>> doesn't install the Apache module anymore: update your OPTIONS and build www/mod_php5 port instead


        ===>>> If you are sure you can build it, remove the
               IGNORE line in the Makefile and try again.

===>>> Update for php5-5.4.24 failed
===>>> Aborting update

ん?と思って /usr/ports/UPDATING を眺める。

20140327:
  AFFECTS: users of lang/php5 and lang/php55 with Apache module
  AUTHOR: ale@FreeBSD.org

  The Apache PHP module has been separated from the main PHP port.
  If it is needed, install either www/mod_php5 or www/mod_php55.

どうやら、今まで lang/php5 で一緒に入っていた Apache モジュールが www/mod_php5 に分離された様子。
というわけで、指示通り、php5 のコンパイルオプションを編集。

# cd /usr/ports/lang/php5
# make config

うん、確かに APACHE の項目がなくなっている模様。
他に変更する箇所がないのでそのままOK。


これで OPTIONS ファイルが更新されたので、
いつも通り更新して、mod_php5 をインストールすればOK。

# portmaster -d php5
# portmaster www/mod_php5