homebrew-core/Formula/geoserver.rb
Wayne Graham 0e449fd453 geoserver 2.6.2
Bumps geoserver version to 2.6.2

Closes Homebrew/homebrew#36771.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-02-12 22:14:48 -05:00

28 lines
706 B
Ruby

require 'formula'
class Geoserver < Formula
homepage 'http://geoserver.org/'
url 'https://downloads.sourceforge.net/project/geoserver/GeoServer/2.6.2/geoserver-2.6.2-bin.zip'
sha1 '16b2dd0a8471a2af420d6999906d21ccd9384812'
def install
libexec.install Dir['*']
(bin/'geoserver').write <<-EOS.undent
#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: $ geoserver path/to/data/dir"
else
cd "#{libexec}" && java -DGEOSERVER_DATA_DIR=$1 -jar start.jar
fi
EOS
end
def caveats; <<-EOS.undent
To start geoserver:
geoserver path/to/data/dir
See the Geoserver homepage for more setup information:
brew home geoserver
EOS
end
end