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

Commit 30fb50d

Browse files
committed
Merge pull request #73 from boxen/minor-usr-local-fixes
Minor custom rootdir fixes
2 parents 504759e + 3c34fa8 commit 30fb50d

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

manifests/init.pp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
]:
4747
ensure => 'directory',
4848
owner => $::boxen_user,
49-
group => 'admin',
49+
group => 'staff',
5050
mode => '0755',
5151
require => undef,
5252
before => Exec["install homebrew to ${installdir}"],
@@ -93,6 +93,7 @@
9393
file {
9494
[
9595
"${boxen::config::envdir}/homebrew.sh",
96+
"${boxen::config::envdir}/30_homebrew.sh",
9697
"${boxen::config::envdir}/cflags.sh",
9798
"${boxen::config::envdir}/ldflags.sh",
9899
]:
@@ -102,6 +103,6 @@
102103
->
103104
boxen::env_script { 'homebrew':
104105
content => template('homebrew/env.sh.erb'),
105-
priority => higher,
106+
priority => highest,
106107
}
107108
}

templates/env.sh.erb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@ export CFLAGS="-I$HOMEBREW_ROOT/include"
1010
<% if @set_ldflags %>
1111
export LDFLAGS="-L$HOMEBREW_ROOT/lib"
1212
<% end %>
13+
14+
# Add homebrew'd stuff to the path.
15+
16+
export PATH=$HOMEBREW_ROOT/bin:$HOMEBREW_ROOT/sbin:$PATH
17+
18+
# Add homebrew'd stuff to the manpath.
19+
20+
export MANPATH=$HOMEBREW_ROOT/share/man:$MANPATH

0 commit comments

Comments
 (0)