The Exim port on FreeBSD does not have a menu-driven configuration system accessible by running make config, although it does have a plethora of options described in /usr/ports/mail/exim/options. If using portupgrade, you can pass these options with the -m flag; for example:
# portupgrade -m “WITH_CONTENT_SCAN=yes WITH_SASLAUTHD=yes WITH_DOMAINKEYS=yes” exim
A brief summary of after-installation MySQL configuration when using FreeBSD’s ports system.
Log into the database as root, and run the following commands to remove anonymous accounts:
use mysql;
delete from user where User=”;
delete from db where User=”;
flush privileges;
SET PASSWORD FOR root@localhost=PASSWORD(‘newgoodstrongpassword’);
SET PASSWORD FOR root@127.0.0.1=PASSWORD(‘newgoodstrongpassword’);
SET PASSWORD FOR root@host.example.com=PASSWORD(‘newgoodstrongpassword’);
When attempting to upgrade a port on FreeBSD, you may run into a problem like this:
> sudo portupgrade -rR php5
—> Upgrading ‘php5-5.1.6′ to ‘php5-5.1.6_1′ (lang/php5)
—> Building ‘/usr/ports/lang/php5′
===> Cleaning for autoconf-2.59_2
===> Cleaning for pkg-config-0.21
===> Cleaning for libxml2-2.6.26
===> Cleaning for perl-5.8.8
===> Cleaning for m4-1.4.4
===> Cleaning for help2man-1.36.4_1
===> Cleaning for gmake-3.81_1
===> Cleaning for libiconv-1.9.2_2
===> Cleaning for p5-gettext-1.05_1
===> Cleaning [...]
When upgrading FreeBSD ports, you will lose any customizations that you’ve made to files within the port; this is especially problematic with configuration files. A quick and easy way to check for modifications you may have made is to use the -g flag to pkg_info. For example:
> pkg_info -g -x drupal
Information for drupal-4.6.9:
Mismatched Checksums:
/usr/local/www/drupal/.htaccess fails the original MD5 [...]
Set the following in /etc/make.conf:
WRKDIRPREFIX=/home/anl/ports-build
DISTDIR=/home/anl/ports-dist
WRKDIRPREFIX is a directory that the unprivileged user as able to write to; DISTDIR is the directory their downloads of source files are written to.
If the port you are building requires another port to be installed for it to be built, you will be prompted for the root password, so this technique is not suitable [...]
Use the -o flag to portupgrade to replace the perl5 port with a the perl5.8 port:
# portupgrade -rR -o lang/perl5.8 lang/perl5
After the upgrade (this is applicable after any Perl ports upgrade, such as 5.8.8 to 5.8.9), run the perl-after-upgrade script, first in test mode, then in fix mode:
# perl-after-upgrade
# perl-after-upgrade -f
Fix any errors highlighted by perl-after-upgrade, and reinstall any required packages. [...]
Filed in Perl
|
Also tagged
|