Subscribe via feed.

DarwinPorts in 13 steps

Posted by deepquest on February 5, 2004 – 6:14 pm

The DarwinPorts Project’s main goal is to provide an easy way to install various open-source software products on a Darwin, Mac OS X, FreeBSD, or Linux system. DarwinPorts is based on Darwin has been the open-source OS technology underlying Apple’s Mac OS X operating system back in 1999.
DarwinPorts is NOT Darwin, just a tools to enhance Darwin usage.
We’ll try to explain in very few steps how to install and run your favorite open-source softwares without doing 2 lines of parameters, options to compile them.

Requirement: MacOS X 10.2 or higher, freebsd or netbsd (gcc, autocon etc…). But well stay on the MacosX requirements: install developper tools.

1-launch terminal
(/Applications/Utilities/terminal.app)

2-cd ~/
(to make sure you’re at the top of your home directory)

3-cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login
(just press enter when asked for a password)

4-cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P darwinports
(it will download the all the ports (963 as 5/2/04)

5-cd darwinports/base/

6-“./configure”

7-make

8-sudo make install
(enter your root password)

9-make DSTGRP=wheel

10-vi /etc/ports/sources.conf
(if your not familiar with vi or pico and have [url=http://www.barebones.com/products/bbedit]bbedit[/url] installed just type in terminal bbedit /etc/ports/sources.conf ==DO NOT USE textedit==)

11- insert your local path the for eg. file:///Users/foobar/darwinports/dports in the sources.conf (change foobar to your username). Remove any other lines except the # lines which are comments.

12- cd ~/

13-ls -al .cshrc
if you have file not found error, then create one with bbedit named .cshrc and put set path=($path /opt/local/bin)

Your done!

To test if open new terminal and type for eg: port search nmap
You’ll have the following answer: “nmap net/nmap 3.50 Port scanning utility for large networks”

make sure you read [url=http://darwinports.opendarwin.org/docs/]DarwinPorts documentation[/url].

The DarwinPort commands has bunch of commands and options most usefull are:

*portindex: force index update of the cvs tree (packadges available)

*port has many options:
port install packadgename (must do a sudo! so do a “port install packadgename”)
port search packadgename
port search ‘.+’ or port list (displays all ports available)
port deps packadgename (will display the dependencies of a packadge)
port uninstall packadgename (must do a sudo! so do a sudo port uninstall portname)

At this time there’s no update for installed ports meaning that if you installed for eg nmap you have to uninstall (sudo port uninstall nmap) then reinstall it with the latest one (“sudo port install nmap).

Ressources:
[url=http://darwinports.opendarwin.org/]DarwinPorts home[/url]

[url=http://opendarwin.org/]OpenDarwin Project[/url]

join irc on irc.freenode.org #opendarwin


This post is under “Apple” and has no respond so far.
If you enjoy this article, make sure you subscribe to my RSS Feed.

Post a reply

You must be logged in to post a comment.