New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #9051 (closed enhancement: fixed)

Opened 6 years ago

Last modified 5 years ago

UPDATE tor-devel-0.1.1.19-rc

Reported by: kayos@… Owned by: toby@…
Priority: Normal Milestone:
Component: ports Version: 1.2
Keywords: Cc: toby@…
Port:

Description

Attached is a diff to the tor-devel Portfile. It bumps tor-devel-0.1.1.19-rc up to revision 1.

This version creates a tor user, directories for tor to keep its datafiles, and creates a startupitem.

This version makes tor "just work" out of the box. Just install and then run the launchd command to start it up (there will be a big comment reminding the user how they should run launchd).

I used the mysql4+server and privoxy Portfiles as examples of how to create startupitems, users, and data directories. The only part I don't like about this version is that, by default, it will create a user with a uid above 500 so on OS X, the user will appear in the user list in the login window. Privoxy and some other ports do the same thing.

If the user is already present, then it just uses the exising user. I used this to first create a user with a uid of 401 so it won't appear in the user list. There are also other hints at macosxhints.com on how to hide users from the login window.

This patch is against tor-devel because I would think that adding extra features to the -devel version wouldn't cause much fuss. Users of -devel are problably more advanced and less risk-adverse or they probably wouldn't be using the -devel version in the first place.

Feel free to also apply this to the standard tor port.

Cheers and thank you very much.

Attachments

Portfile.diff Download (1.8 KB) - added by kayos@… 6 years ago.
Patch to Portfile

Change History

Changed 6 years ago by kayos@…

Patch to Portfile

Changed 6 years ago by kayos@…

I would suggest removing/deprecating tor-devel in favor of updating the normal tor package to version 0.1.1.20. The 0.1.1.x line of tor has been changed from unstable to stable by the upstream maintainers so there isn't a point in maintaining a tor-devel package.

Changed 6 years ago by rhwood@…

  • severity changed from normal to enhancement

Updates and new ports are enhancements

Changed 6 years ago by pguyot@…

  • owner changed from darwinports-bugs@… to toby@…

Changed 5 years ago by toby@…

  • status changed from new to closed
  • resolution set to fixed

tor 0.1.1.24 = r19886 tor 0.1.2.1-alpha = r19887

Note: See TracTickets for help on using tickets.