{"id":166,"date":"2019-09-17T13:24:54","date_gmt":"2019-09-17T11:24:54","guid":{"rendered":"https:\/\/svalgaard.net\/jens\/blog\/?p=166"},"modified":"2019-09-17T13:25:44","modified_gmt":"2019-09-17T11:25:44","slug":"macports-install-port-with-special-configure-options","status":"publish","type":"post","link":"https:\/\/svalgaard.net\/jens\/blog\/2019\/09\/macports-install-port-with-special-configure-options\/","title":{"rendered":"MacPorts: Install port with special configure options"},"content":{"rendered":"\n<p>Sometimes it is nice to be able to reinstall a MacPorts port with your own special configure options.<\/p>\n\n\n\n<p><strong>Step 0: Update Macports<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo port selfupdate\nsudo port upgrade outdated<\/pre>\n\n\n\n<p><strong>Step 1: Locate the Portfile in question and edit it<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/opt\/local\/var\/macports\/sources\/rsync.macports.org\/\/macports\/release\/tarballs\/ports\/devel\/openssl\nsudo emacs -nw Portfile\n# add a few lines e.g., in the configure section\nenable-ssl3 \\\nenable-ssl3-method \\\nenable-weak-ssl-ciphers \\\nenable-rc5 \\<\/pre>\n\n\n\n<p><strong>Step 2: Uninstall and then re-install the Port (-s = from source)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo port uninstall -f openssl\nsudo port -s -v install openssl<\/pre>\n\n\n\n<p><strong>Step \u221e: Remember to redo Steps 1 and 2 each time you do a port selfupdate<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes it is nice to be able to reinstall a MacPorts port with your own special configure options. Step 0: Update Macports sudo port selfupdate sudo port upgrade outdated Step 1: Locate the Portfile in question and edit it cd \/opt\/local\/var\/macports\/sources\/rsync.macports.org\/\/macports\/release\/tarballs\/ports\/devel\/openssl sudo emacs -nw Portfile # add a few lines e.g., in the configure section [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-166","post","type-post","status-publish","format-standard","hentry","category-stuff"],"_links":{"self":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/comments?post=166"}],"version-history":[{"count":3,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/166\/revisions"}],"predecessor-version":[{"id":170,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/posts\/166\/revisions\/170"}],"wp:attachment":[{"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/media?parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/categories?post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/svalgaard.net\/jens\/blog\/wp-json\/wp\/v2\/tags?post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}