Bug 752620

Summary: Override install paths for OS X (Darwin) + Macports install
Product: [Community] Publican Reporter: Misty Stanley-Jones <misty>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: Misty Stanley-Jones <misty>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: futureCC: lcarlon, mhideo, rlandman+disabled
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 3.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-31 03:11:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Misty Stanley-Jones 2011-11-10 00:50:37 UTC
To install Publican on OS X with Macports, set the following install_path parameters:

sudo ./Build install --install_path datadir=/opt/local/share/publican --install_path generated=/opt/local/share/publican/sitetemplate  --install_path web=/opt/local/share/publican/sitetemplate --install_path templates=/opt/local/share/publican/templates --install_path etc=/opt/local/etc --install_path completion=/opt/local/etc/bash_completion.d

Publican also needs to override the common_config and common_content paths like this:

publican create --name=testbook --common_config=/opt/local/share/publican --common_content=/opt/local/share/publican/Common_Content

Perl information:

misty:~ misty$ perl -e 'print $^O, "\n"'
darwin

The Perl installed by default in OS X is at /usr/bin/perl and reports the same architecture:
misty:~ misty$ /usr/bin/perl -e 'print $^O, "\n"'
darwin

It might be worth checking the path for perl, and only overriding the paths if Perl is installed in /opt/local/bin. Both binaries present as exactly the same version. If you were using /usr/bin/perl you'd probably want to install Publican into its standard paths.

Comment 1 Jeff Fearn 🐞 2011-11-10 03:18:40 UTC
Hi, I have put the code for this in place, however I can't test it has the desired effect on darwin ... since I don't have it :)

Changed default install paths on darwin:

from '/usr/share/publican' to '/opt/local/share/publican'
from '/etc' to '/opt/local/etc'
from '/etc/bash_completion.d' to '/opt/local/etc/bash_completion.d'

Changed default path for common_config from '/usr/share/publican'  to '/opt/local/share/publican'

Changed default path for common_content from '/usr/share/publican/Common_Content'  to '/opt/local/share/publican/Common_Content'

Applied changes to branches/publican-2x and trunk.

Committed revision 1939.

Comment 2 Michael Hideo 2012-06-08 01:49:08 UTC
only misty can do this. sorry misty.

Comment 3 Misty Stanley-Jones 2012-06-08 09:55:01 UTC
Verified in the real world two weeks ago.