[afnog] Installing Courier-authlib
Brian Candler
B.Candler at pobox.com
Mon May 16 15:54:39 EAT 2005
On Mon, May 16, 2005 at 11:51:05AM +0000, Musa.E.A.Kijera wrote:
>
> Hello All ,
> I am new to freeBSD . I am installing a new E-mail server using
> Courier, Exim , Mysql and Sqwebmail . Any time I try to install
> Courier-authlib using the command
> pkg_add -r courier-authlib
> i get the error
> pkg_add: unable to fetch
> '[1]ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-5.3-release/
> Latest/courier-authlib.tbz' by URL -
One thing you can do is to poke around the ftp server yourself to try to
find out why. Note that 5.3 release is old.
$ ftp ftp.freebsd.org
Name (ftp.freebsd.org:brian): ftp
331 Please specify the password.
Password: <your E-mail address>
ftp> cd /pub/FreeBSD/ports/i386/packages-5.3-release/Latest
250 Directory successfully changed.
ftp> dir courier*
229 Entering Extended Passive Mode (|||16339|)
150 Here comes the directory listing.
lrwxr-xr-x 1 110 0 31 Oct 06 2004 courier-imap.tbz -> ../All/courier-imap-3.0.7,1.tbz
lrwxr-xr-x 1 110 0 25 Oct 06 2004 courier.tbz -> ../All/courier-0.45.4.tbz
226 Directory send OK.
ftp> cd ../All
250 Directory successfully changed.
ftp> dir courier*
229 Entering Extended Passive Mode (|||48719|)
150 Here comes the directory listing.
-rw-r--r-- 1 110 0 1819668 Oct 21 2004 courier-0.45.4.tbz
-rw-r--r-- 1 110 0 1460608 Oct 21 2004 courier-imap-3.0.7,1.tbz
226 Directory send OK.
You can see these packages have not been built since October 2004. In fact,
courier-imap-3.x predates the courier-authlib package completely;
courier-imap-4.x goes with courier-authlib.
So your options are:
1. Build the package yourself from ports. This is your safest bet. See
below.
2. Build courier-authlib/courier-imap yourself from source code.
3. Find yourself a newer set of packages:
ftp> cd /pub/FreeBSD/ports/i386/packages-5-stable/All
250 Directory successfully changed.
ftp> dir courier*
229 Entering Extended Passive Mode (|||33579|)
150 Here comes the directory listing.
-rw-r--r-- 1 110 0 2170 Apr 28 01:39 courier-authlib-0.55_2.tbz
-rw-r--r-- 1 110 0 109494 Apr 28 01:03 courier-authlib-base-0.55_2.tbz
-rw-r--r-- 1 110 0 18628 Apr 28 01:46 courier-authlib-ldap-0.55_2.tbz
-rw-r--r-- 1 110 0 20497 Apr 28 01:52 courier-authlib-mysql-0.55_2.tbz
-rw-r--r-- 1 110 0 15053 Apr 28 01:45 courier-authlib-pgsql-0.55_2.tbz
-rw-r--r-- 1 110 0 34221 Apr 28 01:59 courier-authlib-userdb-0.55_2.tbz
-rw-r--r-- 1 110 0 34483 Apr 28 01:50 courier-authlib-usergdbm-0.55_2.tbz
-rw-r--r-- 1 110 0 686393 Apr 28 01:59 courier-imap-4.0.2,1.tbz
226 Directory send OK.
However, should you choose to fetch these files manually and install them,
you are very likely to find yourself in dependency hell (i.e. these packages
will depend on newer versions of other packages that are on your system)
You could upgrade *all* your packages to the newer versions, for example
using portupgrade -aPP. This is likely to take a long time and a lot of
bandwidth though.
4. If you upgrade your base system to 5-STABLE (using cvsup / make
buildworld etc) then pkg_add -r will fetch from packages-5-stable instead of
packages-5.3-release automatically. But you'll still have the dependency
issues and the need to upgrade lots of other packages.
> I also tried using the port option with the command
> cd /usr/ports/mail/courier-authlib
> Again that directory . Is there any other way that I can use to make
> it work with any of these commands .
If that directory doesn't exist (which is I think what you're trying to
say!) then it's because your ports collection is out of date; it probably
still dates back to the 5.3-release days.
You can upgrade your ports collection by:
# pkg_add -r cvsup-without-gui
# cvsup -g -L 2 -h cvsup.uk.freebsd.org /usr/share/examples/cvsup/ports-supfile
(you can replace 'cvsup.uk.freebsd.org' with another cvsup mirror which is
closer to you, network-wise).
This takes a long time the first time you run it, but basically it sucks
down all the differences between your current ports collection and the most
up-to-date ports on the net, so that /usr/ports then mirrors the current
collection. I suggest you start it off overnight when bandwidth is more
likely to be spare.
If you then run it every week or so, you'll get just the differences to
bring your collection more up to date.
If bandwidth is very scarce then you can look into CTM, which is another way
of achieving the same thing, but it's harder to set up and I've not tested
it myself. It's described in the FreeBSD handbook in the same section as
cvsup.
Regards,
Brian.
More information about the afnog
mailing list