{"id":903,"date":"2015-07-23T10:49:05","date_gmt":"2015-07-23T13:49:05","guid":{"rendered":"http:\/\/blog.abratel.com.br\/?p=903"},"modified":"2015-07-23T10:49:11","modified_gmt":"2015-07-23T13:49:11","slug":"substituicao-ports-freebsd-por-svn","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=903","title":{"rendered":"Substitui\u00e7\u00e3o Ports Freebsd por SVN"},"content":{"rendered":"<p>As of July 2012, FreeBSD uses Subversion as the primary version control system for storing all of FreeBSD&#8217;s source code, documentation, and the Ports Collection.<\/p>\n<p><strong>Installation<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# cd \/usr\/ports\/devel\/subversion\r\n# make install clean\r\n<\/pre>\n<p>If the ports tree is not available, Subversion can be installed as a package:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# pkg install devel\/subversion\r\n<\/pre>\n<p><strong>Running Subversion<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsvn checkout https:\/\/svn.FreeBSD.org\/ports\/head \/usr\/ports\r\n<\/pre>\n<p>where:<\/p>\n<p>svn-mirror is a URL for one of the Subversion mirror sites.<\/p>\n<p>repository is one of the Project repositories, i.e., base, ports, or doc.<\/p>\n<p>branch depends on the repository used. ports and doc are mostly updated in the head branch, while base maintains the latest version of -CURRENT under head and the respective latest versions of the -STABLE branches under stable\/8 (for 8.x), stable\/9 (9.x) and stable\/10 (10.x).<\/p>\n<p>lwcdir is the target directory where the contents of the specified branch should be placed. This is usually \/usr\/ports for ports, \/usr\/src for base, and \/usr\/doc for doc.<\/p>\n<p>Because the initial checkout has to download the full branch of the remote repository, it can take a while. Please be patient.<\/p>\n<p>After the initial checkout, the local working copy can be updated by running:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# svn update lwcdir\r\n<\/pre>\n<p>To update \/usr\/ports created in the example above, use:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# svn update \/usr\/ports\r\n<\/pre>\n<p>The update is much quicker than a checkout, only transferring files that have changed.<\/p>\n<p>An alternate way of updating the local working copy after checkout is provided by the Makefile in the \/usr\/ports, \/usr\/src, and \/usr\/doc directories. Set SVN_UPDATE and use the update target. For example, to update \/usr\/src:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# cd \/usr\/src\r\n\r\n# make update SVN_UPDATE=yes\r\n\r\n<\/pre>\n<p>Ref: https:\/\/www.freebsd.org\/doc\/handbook\/svn.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As of July 2012, FreeBSD uses Subversion as the primary version control system for storing all of FreeBSD&#8217;s source code, documentation, and the Ports Collection. Installation If the ports tree is not available, Subversion can be installed as a package: Running Subversion where: svn-mirror is&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/903"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=903"}],"version-history":[{"count":2,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/903\/revisions"}],"predecessor-version":[{"id":905,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/903\/revisions\/905"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}