Things look quiet here. But I've been doing a lot of blogging at
dan.langille.org because I prefer WordPress now.
Not all my posts there are FreeBSD related.
I am in the midst of migrating The FreeBSD Diary over to WordPress
(and you can read about that here).
Once the migration is completed, I'll move the FreeBSD posts into the
new FreeBSD Diary website.
Installing a port without installing the ports14 January 2000
Someone wanted to upgrade their version of bind8 but they didn't have the port skeletons installed and time was important. I've found
it takes up to an hour to install the port skeletons. My first option was to upgrade
using cvsup, but he didn't have that installed either. So we went for another
The first thing you need for any port is the tarball for that port.
This tarball contains the basic things required to build a port. Here is a short
example of what is needed:
[root@fred:/usr/ports/net/bind8] # ls -l
drwxr-xr-x 2 root wheel 512 Dec 24 18:26 CVS
-rw-r--r-- 1 root wheel 1047 Nov 15 14:03 Makefile
-rw-r--r-- 1 root wheel 710 May 18 1999 README.html
drwxr-xr-x 3 root wheel 512 Dec 24 18:26 files
drwxr-xr-x 3 root wheel 512 Dec 24 18:26 patches
drwxr-xr-x 3 root wheel 512 Dec 24 18:26 pkg
Here is what I did to give him the tarball:
tar cfz bind8.tar.gz bind8/
mv bind8.tar.gz /var/ftp/pub
I did the make clean so I wasn't sending them the .obj files and the binaries.
Then I used tar to create a taball and moved that to my ftp directory. This allowed
the person to grab the tarball from my box.
What they did
They grabbed the tarball from my box by doing this:
Here's a better way to get the tarball if you can't get it from someone
else. And I'd recommand this method rather than the above unless you trust the
person in question.
$ ftp ftp.freebsd.org
Connected to wcarchive.cdrom.com.
220 wcarchive.cdrom.com FTP server ready.
Name (ftp.freebsd.org:dan): ftp
331 Guest login ok, send your email address as password.
230-Welcome to wcarchive - home FTP site for Walnut Creek CDROM.
230-There are currently 4915 users out of 5000 possible.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /pub/FreeBSD/ports/ports/net
250 CWD command successful.
ftp> get bind8.tar
local: bind8.tar remote: bind8.tar
200 PORT command successful.
150 Opening BINARY mode data connection for 'bind8.tar'.
226 Transfer complete.
14336 bytes received in 0.30 seconds (46.39 KB/s)