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

Update string replacement for file path #22

Merged
merged 1 commit into from
Sep 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions files/brews/dnsmasq.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Dnsmasq < Formula
homepage "http://www.thekelleys.org.uk/dnsmasq/doc.html"
url "http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.76.tar.gz"
sha256 "777c4762d2fee3738a0380401f2d087b47faa41db2317c60660d69ad10a76c32"
version "2.76-boxen2"
version "2.76-boxen3"

bottle do
cellar :any_skip_relocation
Expand All @@ -26,7 +26,7 @@ def install
ENV.deparallelize

# Fix etc location
inreplace "src/config.h", "/etc/dnsmasq.conf", "#{etc}/dnsmasq.conf"
inreplace "src/config.h", "/etc/dnsmasq.conf", "#{etc}/boxen/dnsmasq/dnsmasq.conf"

# Optional IDN support
if build.with? "libidn"
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
}

package { 'boxen/brews/dnsmasq':
ensure => '2.76-boxen2',
ensure => '2.76-boxen3',
notify => Service[$service],
}

Expand Down
2 changes: 1 addition & 1 deletion spec/classes/dnsmasq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
should contain_homebrew__formula('dnsmasq')

should contain_package('boxen/brews/dnsmasq').with({
:ensure => '2.76-boxen2',
:ensure => '2.76-boxen3',
:notify => "Service[#{service_name}]",
})

Expand Down