welcome: please sign in
location: DarwinPorts

DarwinPorts quick install guide

DarwinPorts ist das pendant zu den FreeBSD ports für Mac OS X. Hat nur ein Bruchteil der Pakete, und ist eher ein Extra als ein Standard-Tool, dennoch ist es (vielleicht auch wegen der Autoren...) sehr sauber und unkompliziert gemacht, die Paketliste wird jeden Tag länger, und vor allem Netzwerktools wie nmap, ettercap, snort and Co sind alle vertreten...

hier eine Kurzanleitung zur Installation... Auf en weil's auf en kompakter ist und sowieso... ;)

Shoot up ure Terminal.app...

To get darwinports up and running on Mac OS X:

go to some place where to store the port program and guisources to make them, e.g.: /Volumes/Software/cvs-projects (could be anything at this stage...)

root#: cd /Volumes/Software/cvs-projects
root#: cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login
root#: cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P darwinports

Set your own prefix for port application, as well as the dports later. It defaults to /opt/local, but to keep it in synch with your freebsd habits you should change the prefix to /usr/local. BTW, Apple keeps /usr/local empty by default, so there is no real danger of overwriting it when using softwareupdate. I personally have the local dir on a separate partition and a symlink to it., though ;).

root#: setenv PREFIX /usr/local
root#: cd /Volumes/Software/cvs-projects/darwinports
root#: make -E PREFIX install

then get/update dports:

root#: cd $PREFIX
root#: cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P dport

Set the PREFIX in these files as well:

Last but not least, dont forget to add the PREFIX/bin and /sbin dirs to your path, as well as the PREFIX/man dir to the man path:

edit (or create if absent) ~/Library/init/tcsh/path, change the file contents to (assuming /usr/local as PREFIX here):

setenv PATH "${PATH}:/usr/local/bin:/usr/local/sbin"
setenv MANPATH "${MANPATH}:/usr/local/man"

Make ure current terminal aware of the news...

setenv PATH "${PATH}:/usr/local/bin:/usr/local/sbin"
setenv MANPATH "${MANPATH}:/usr/local/man"
root#: rehash

to search for ports (example):

root#: /usr/local/bin/port search mysql

to install ports:

root#: /usr/local/bin/port install mysql

manual:

man port

* more info: http://www.darwinports.org/

GUI (optional, I dont use it personally...):

Use the following commands to get DarwinPorts.app (GUI to DarwinPorts)
from the Open Darwin CVS server:

root#: cd /Volumes/Software/cvs-projects/
root#: cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od login
root#: cvs -d :pserver:anonymous@anoncvs.opendarwin.org:/Volumes/src/cvs/od co -P dp-cocoa
root#: setenv PREFIX /usr/local
root#: cd /Volumes/Software/cvs-projects/dp-cocoa
root#: make -E PREFIX install

Voraussetzungen


KategorieMac

DarwinPorts (last edited 2008-07-14 09:55:40 by localhost)