{"id":141,"date":"2004-02-05T18:14:18","date_gmt":"2004-02-05T11:14:18","guid":{"rendered":""},"modified":"2004-02-05T18:14:18","modified_gmt":"2004-02-05T11:14:18","slug":"darwinports-in-13-steps","status":"publish","type":"post","link":"https:\/\/deepquest.code511.com\/blog\/2004\/02\/darwinports-in-13-steps\/","title":{"rendered":"DarwinPorts in 13 steps"},"content":{"rendered":"<p>The DarwinPorts Project&#8217;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&#8217;s Mac OS X operating system back in 1999.<br \/>\nDarwinPorts is NOT Darwin, just a tools to enhance Darwin usage.<br \/>\nWe&#8217;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.<!--more--><\/p>\n<p>Requirement: MacOS X 10.2 or higher, freebsd or netbsd (gcc, autocon etc&#8230;). But well stay on the MacosX requirements: install developper tools.<\/p>\n<p>1-launch terminal<br \/>\n(\/Applications\/Utilities\/terminal.app)<\/p>\n<p>2-<i>cd ~\/<\/i><br \/>\n(to make sure you&#8217;re at the top of your home directory)<\/p>\n<p>3-<i>cvs -d :pserver:anonymous@anoncvs.opendarwin.org:\/Volumes\/src\/cvs\/od login<\/i><br \/>\n(just press enter when asked for a password)<\/p>\n<p>4-<i>cvs -d :pserver:anonymous@anoncvs.opendarwin.org:\/Volumes\/src\/cvs\/od co -P darwinports<\/i><br \/>\n(it will download the all the ports (963 as 5\/2\/04)<\/p>\n<p>5-<i>cd darwinports\/base\/<i><\/p>\n<p>6-&#8220;.\/configure&#8221;<\/p>\n<p>7-<i>make<\/i><\/p>\n<p>8-<i>sudo make install<\/i><br \/>\n(enter your root password)<\/p>\n<p>9-<i>make DSTGRP=wheel<\/i><\/p>\n<p>10-<i>vi \/etc\/ports\/sources.conf<i><br \/>\n(if your not familiar with vi or pico and have [url=http:\/\/www.barebones.com\/products\/bbedit]bbedit[\/url] installed just type in terminal <i>bbedit \/etc\/ports\/sources.conf<\/i> ==DO NOT USE textedit==)<\/p>\n<p>11- insert your local path the for eg. <i>file:\/\/\/Users\/foobar\/darwinports\/dports<\/i> in the sources.conf (change foobar to your username). Remove any other lines except the # lines which are comments.<\/p>\n<p>12- <i>cd ~\/<\/i><\/p>\n<p>13-<i>ls -al .cshrc<\/i><br \/>\nif you have file not found error, then create one with bbedit named <i>.cshrc<\/i> and put <i>set path=($path  \/opt\/local\/bin)<\/i><\/p>\n<p>Your done!<\/p>\n<p>To test if open new terminal and type for eg: <i>port search nmap<\/i><br \/>\nYou&#8217;ll have the following answer: &#8220;nmap net\/nmap        3.50            Port scanning utility for large networks&#8221;<\/p>\n<p>make sure you read [url=http:\/\/darwinports.opendarwin.org\/docs\/]DarwinPorts documentation[\/url].<\/p>\n<p>The DarwinPort commands has bunch of commands and options most usefull are:<\/p>\n<p>*portindex: force index update of the cvs tree (packadges available)<\/p>\n<p>*port has many options:<br \/>\n         &#8211;<i>port install packadgename<\/i> (must do a sudo! so do a &#8220;port install packadgename&#8221;)<br \/>\n         &#8211;<i>port search packadgename<\/i><br \/>\n         &#8211;<i>port search &#8216;.+&#8217;<\/i> or <i>port list<\/i> (displays all ports available)<br \/>\n         &#8211;<i>port deps packadgename<\/i> (will display the dependencies of a packadge)<br \/>\n         &#8211;<i>port uninstall packadgename<i> (must do a sudo! so do a <i>sudo  port uninstall portname<\/i>)<\/p>\n<p>At this time there&#8217;s no update for installed ports meaning that if you installed for eg nmap you have to uninstall <i>(<i>sudo port uninstall nmap<\/i>)<\/i> then reinstall it with the latest one (<i>&#8220;sudo port install nmap<\/i>).<\/p>\n<p>Ressources:<br \/>\n[url=http:\/\/darwinports.opendarwin.org\/]DarwinPorts home[\/url]<\/p>\n<p>[url=http:\/\/opendarwin.org\/]OpenDarwin Project[\/url]<\/p>\n<p>join irc on irc.freenode.org #opendarwin<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The DarwinPorts Project&#8217;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&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-141","post","type-post","status-publish","format-standard","hentry","category-apple"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4bBYZ-2h","_links":{"self":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/comments?post=141"}],"version-history":[{"count":0,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/posts\/141\/revisions"}],"wp:attachment":[{"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/media?parent=141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/categories?post=141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deepquest.code511.com\/blog\/wp-json\/wp\/v2\/tags?post=141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}