Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

ArchLinux support #46

Merged
merged 1 commit into from

2 participants

@caolan

Only tested with couchdb 1.2.0 so far...

@jhs

Nice! How is it working for you?

@jhs jhs merged commit b74b341 into iriscouch:master
@caolan

Seems pretty good so far, I'll try building another version today. Ideally I'd try this on an Arch VM to see if I missed any essential packages I just happened to already have installed, but this is a start for anyone else at least...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 10, 2012
  1. @caolan

    started ArchLinux support

    caolan authored
This page is out of date. Refresh to see the latest.
View
10 tasks/all.rake
@@ -66,6 +66,16 @@ namespace :build do
end
end
+ task :arch_dependencies => :known_distro do
+ if DISTRO[0] == :arch
+ # For building OTP
+ install_packages %w[ flex lksctp-tools zlib zip ]
+
+ # All Arch gets these.
+ install_packages %w[ libxslt automake make ruby libtool gcc libcap m4 openssl ]
+ end
+ end
+
task :mac_dependencies => :known_distro do
%w[ gcc make ].each do |dep|
raise 'Please install Xcode from Apple' if DISTRO[0] == :osx and system("#{dep} --version > /dev/null 2> /dev/null") == false
View
4 tasks/lib/distros.rb
@@ -12,6 +12,10 @@ def detect_distro
return [:solaris, `uname -r`.chomp]
end
+ if `uname -r`.chomp[-4..-1] == "ARCH"
+ return [:arch, `uname -r`.chomp]
+ end
+
# Ubuntu
if File.exist? '/etc/lsb-release'
info = Hash[ *File.new('/etc/lsb-release').lines.map{ |x| x.split('=').map { |y| y.chomp } }.flatten ]
View
5 tasks/lib/package_dep.rb
@@ -41,6 +41,11 @@ def package_dep opts
if !installed.member?(package)
sh "sudo pkg-get install #{package}"
end
+ when :arch
+ installed = `pacman -Q`.split("\n")
+ if !installed.member?(package)
+ sh "sudo pacman -S #{package}"
+ end
when :osx
installed = `brew list`.split("\n")
if !installed.member?(package)
Something went wrong with that request. Please try again.