pkg: PACKAGESITE in pkg.conf is no longer supported.

As FreeBSD 10.1 spoil me with pkg then I stumble upon FreeBSD 9.2 box that installed due to its default ports. Yes another requirement of PHP 5.2.17 in the house yo.

The problem I encounter is :

# pkg info
pkg: PACKAGESITE in pkg.conf is no longer supported. Convert to the new repository style. See pkg.conf(5)
pkg: Cannot parse configuration file!

I guess that error lead to error problem when compile PHP 5.2.17 from ports.

……..

……….

Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

***************************************************************
====> Compressing man pages (compress-man)
===> Building package for php52-5.2.17_14
Creating package /usr/ports/lang/php52/work/pkg/php52-5.2.17_14.tbz
Registering depends: apache22-2.2.27_2 apr-1.5.1.1.5.3 gdbm-1.11 gettext-0.18.3.1 libxml2-2.8.0_5 libiconv-1.14_3 db48-4.8.30.0 pcre-8.34 perl5-5.16.3_9 expat-2.1.0.
Registering conflicts: php53-5* php5-5*.
Creating bzip’d tar ball in ‘/usr/ports/lang/php52/work/pkg/php52-5.2.17_14.tbz’
tar: bin/php: Cannot stat: No such file or directory
tar: bin/php-config: Cannot stat: No such file or directory
tar: bin/phpize: Cannot stat: No such file or directory
tar: etc/php.conf: Cannot stat: No such file or directory
tar: etc/php.ini-dist: Cannot stat: No such file or directory
tar: etc/php.ini-recommended: Cannot stat: No such file or directory
tar: include/php/TSRM/TSRM.h: Cannot stat: No such file or directory
tar: include/php/TSRM/acconfig.h: Cannot stat: No such file or directory
tar: include/php/TSRM/readdir.h: Cannot stat: No such file or directory
tar: include/php/TSRM/tsrm_config.h: Cannot stat: No such file or directory
tar: include/php/TSRM/tsrm_config.w32.h: Cannot stat: No such file or directory
tar: include/php/TSRM/tsrm_config_common.h: Cannot stat: No such file or directory
tar: include/php/TSRM/tsrm_nw.h: Cannot stat: No such file or directory
tar: include/php/TSRM/tsrm_strtok_r.h: Cannot stat: No such file or directory
tar: include/php/TSRM/tsrm_virtual_cwd.h: Cannot stat: No such file or directory

Yes.

# ls /usr/local/etc/ | grep pkg
pkg.conf
pkg.conf.sample

Replace pkg.conf

# mv /usr/local/etc/pkg.conf.sample /usr/local/etc/pkg.conf

# pkg info
pkg-1.4.6 Package manager

NO error this time.

# echo ‘NO_WARNING_PKG_INSTALL_EOL=yes’ >> /etc/make.conf

pkg update
Updating FreeBSD repository catalogue…
pkg: Repository FreeBSD has a wrong packagesite, need to re-create database
Fetching meta.txz: 100% 968 B 1.0k/s 00:01
Fetching packagesite.txz: 100% 5 MB 230.6k/s 00:23
Processing entries: 100%
FreeBSD repository update completed. 23846 packages processed

Re try compile but not work but at least “pkg: PACKAGESITE in pkg.conf is no longer supported.’ no longer appear.