Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #73 from boxen/minor-usr-local-fixes
Browse files Browse the repository at this point in the history
Minor custom rootdir fixes
  • Loading branch information
dgoodlad committed Dec 11, 2014
2 parents 504759e + 3c34fa8 commit 30fb50d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
]:
ensure => 'directory',
owner => $::boxen_user,
group => 'admin',
group => 'staff',
mode => '0755',
require => undef,
before => Exec["install homebrew to ${installdir}"],
Expand Down Expand Up @@ -93,6 +93,7 @@
file {
[
"${boxen::config::envdir}/homebrew.sh",
"${boxen::config::envdir}/30_homebrew.sh",
"${boxen::config::envdir}/cflags.sh",
"${boxen::config::envdir}/ldflags.sh",
]:
Expand All @@ -102,6 +103,6 @@
->
boxen::env_script { 'homebrew':
content => template('homebrew/env.sh.erb'),
priority => higher,
priority => highest,
}
}
8 changes: 8 additions & 0 deletions templates/env.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ export CFLAGS="-I$HOMEBREW_ROOT/include"
<% if @set_ldflags %>
export LDFLAGS="-L$HOMEBREW_ROOT/lib"
<% end %>

# Add homebrew'd stuff to the path.

export PATH=$HOMEBREW_ROOT/bin:$HOMEBREW_ROOT/sbin:$PATH

# Add homebrew'd stuff to the manpath.

export MANPATH=$HOMEBREW_ROOT/share/man:$MANPATH

0 comments on commit 30fb50d

Please sign in to comment.