7bfbed2667
To prevent conflicting service commands, install some AWS packages to libexec and don't symlink in the service command. Closes Homebrew/homebrew#16591.
28 lines
861 B
Ruby
28 lines
861 B
Ruby
require 'formula'
|
|
|
|
class RdsCommandLineTools < AmazonWebServicesFormula
|
|
homepage 'http://aws.amazon.com/developertools/2928'
|
|
url 'http://s3.amazonaws.com/rds-downloads/RDSCli.zip'
|
|
version '1.10.003'
|
|
sha1 '668cd776e88f76084164811cb4cab3e6373009dc'
|
|
|
|
def install
|
|
rm Dir['bin/*.cmd'] # Remove Windows command files
|
|
libexec.install "bin", "lib"
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
(bin/'service').unlink # Don't keep this symlink
|
|
end
|
|
|
|
def caveats
|
|
s = standard_instructions "AWS_RDS_HOME", libexec
|
|
s += <<-EOS.undent
|
|
|
|
To check that your setup works properly, run the following command:
|
|
rds-describe-db-instances --headers
|
|
|
|
You should see a header line. If you have database instances already configured,
|
|
you will see a description line for each database instance.
|
|
EOS
|
|
return s
|
|
end
|
|
end
|