Opened 15 years ago
Closed 14 years ago
#23405 closed enhancement (fixed)
openldap: allow non-root install
Reported by: | cgilmour@… | Owned by: | landonf (Landon Fuller) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | haspatch | Cc: | ryandesign (Ryan Carsten Schmidt) |
Port: | openldap |
Description
Hi,
I was trying to compile Macports as a regular user (instead of running via sudo), and an issue occurred with openldap. Similar in concept to the dbus "no_root" variant, I modified the openldap port file to allow this.
Thanks, Caleb
Attachments (1)
Change History (5)
Changed 15 years ago by cgilmour@…
Attachment: | openldap.Portfile.trac23405_v1.diff added |
---|
comment:1 Changed 15 years ago by cgilmour@…
Changes are:
- Add variant, and set startupitem.create to no. If it stays set to yes, build would fail when "activating", as it applies the other startup parameters
- Wrap the group creation with a 'variant isset' check
- Wrap the xinstall command with a 'variant isset' check
comment:2 Changed 15 years ago by jmroot (Joshua Root)
Keywords: | haspatch added |
---|---|
Owner: | changed from macports-tickets@… to landonf@… |
Version: | 1.8.2 |
Please remember to cc the maintainer.
comment:3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added |
---|
I'm not thrilled with adding a variant for this purpose.
Instead, it would make sense for the user to set startupitem_type to none in macports.conf when he installs MacPorts as a non-root user and does not want launchd plists created. Then, the port could be modified to only create the user account and data directory if ${startupitem.type} is not none. At least I theorize this should work; I have not tested.
comment:4 Changed 14 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Summary: | openldap no_root variant → openldap: allow non-root install |
Base changes make most of this unnecessary. Fixed the one thing that would have still been preventing non-root installation in r76807.
Diff for adding "no_root" variant