Opened 10 years ago

Closed 10 years ago

#41921 closed update (fixed)

tor: update to 0.2.4.20

Reported by: jeff@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: haspatch Cc:
Port: tor

Description

I attempted to install the new stable version of Tor based on 0.2.4.20. I found it was missing from the macports collection. I spent the afternoon hacking and found a way to get it to successfully build and upgrade over 0.2.3.25.

I downloaded the 0.2.4.20.tar source file from https://www.torproject.org/dist/tor-0.2.4.20.tar.gz I calculated md160 and sha256 checksums and edited the attached Portfile with the new information. Upon execution of 'sudo port upgrade for' command, I received an error during the install process about a missing tor-tsocks.conf file. I simply copied the existing 0.2.3.25 tor-tsocks.conf.sample file into the work directory and renamed it. I re-ran the 'sudo port upgrade tor' command and the upgrade process completed as expected.

I am attaching the Portfile I used. I hope this helps expedite the addition of the official macports version of toe-0.2.4.20

Attachments (2)

Portfile (1.6 KB) - added by jeff@… 10 years ago.
Portfile for Tor-0.2.4.20
tor-0.2.4.20_portfile.diff (843 bytes) - added by jeff@… 10 years ago.
Unified diff file for changes to Portfile

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by jeff@…

Attachment: Portfile added

Portfile for Tor-0.2.4.20

comment:1 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Summary: Tor @0.2.4.20 missing - portfile and workaround includedtor: update to 0.2.4.20

You should attach a unified diff, not a complete new portfile, so that we can more easily review your changes.

Changed 10 years ago by jeff@…

Attachment: tor-0.2.4.20_portfile.diff added

Unified diff file for changes to Portfile

comment:2 Changed 10 years ago by jeff@…

Attached is a unified diff file showing the simple changes I made to the Portfile.

I don't know what the "right" solution to the missing tor-tsocks.conf file is. I am sure it is simple but haven't yet determined how to best solve that issue.

Jeff

comment:3 in reply to:  2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

Replying to jeff@…:

Attached is a unified diff file showing the simple changes I made to the Portfile.

Thanks. It's reversed, but that's ok.

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed

Replying to jeff@…:

I don't know what the "right" solution to the missing tor-tsocks.conf file is. I am sure it is simple but haven't yet determined how to best solve that issue.

The ChangeLog says:

  o Removed files:
    - The tor-tsocks.conf is no longer distributed or installed. We
      recommend that tsocks users use torsocks instead. Resolves
      ticket 8290.

So since they no longer provide a sample conf file for tsocks, we won't install it.

Updated the port in r115102. Also disabled silent rules, because we like our logs to show the actual commands being used to compile.

Note: See TracTickets for help on using tickets.