fuseki 1.0.1

Closes Homebrew/homebrew#26564.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Hiroyuki Inoue 2014-02-10 19:24:27 +09:00 committed by Mike McQuaid
parent c61f25f4fd
commit 5b7bd5f13b

View file

@ -2,9 +2,9 @@ require 'formula'
class Fuseki < Formula
homepage 'http://jena.apache.org/documentation/serving_data/'
url "http://www.apache.org/dist/jena/binaries/jena-fuseki-1.0.0-distribution.tar.gz"
version "1.0.0"
sha1 '94349d9795a20cabb8b4f5887fc1b341b08cc271'
url 'http://www.apache.org/dist/jena/binaries/jena-fuseki-1.0.1-distribution.tar.gz'
version '1.0.1'
sha1 '556d3bbe0dbac67ea1335c1933576492ecc9213f'
def install
# Remove windows files
@ -17,21 +17,8 @@ class Fuseki < Formula
inreplace 'fuseki-server' do |s|
s.gsub! /export FUSEKI_HOME=.+/,
%'export FUSEKI_HOME="#{libexec}"'
s.gsub! /^exec java\s+(.+)/,
"exec java -Dlog4j.configuration=file:#{etc/'fuseki.log4j.properties'} \\1"
end
# Use file logging instead of STDOUT logging
inreplace 'log4j.properties' do |s|
s.gsub! /^log4j\.rootLogger=.+/, '### \0'
s.gsub! /^log4j\.appender\.stdlog.+/, '### \0'
s.gsub! /^## (log4j\.rootLogger=.+)/, '\1'
s.gsub! /^## (log4j\.appender\.FusekiFileLog.+)/, '\1'
s.gsub! /^log4j.appender.FusekiFileLog.File=.+/,
"log4j.appender.FusekiFileLog.File=#{(var/'log/fuseki/fuseki.log')}"
end
etc.install 'log4j.properties' => 'fuseki.log4j.properties'
# Install and symlink wrapper binaries into place
libexec.install 'fuseki-server'
bins = ['s-delete', 's-get', 's-head', 's-post', 's-put', 's-query', 's-update', 's-update-form']
@ -68,9 +55,9 @@ class Fuseki < Formula
uses traditional Unix paths: please inspect the settings here first:
#{etc}/fuseki.ttl
NOTE: Currently the logging configuration file will be overwritten
if you re-install or upgrade Fuseki. This file is located here:
#{etc}/'fuseki.log4j.properties'
* NOTE: Fuseki uses 1) log4j.configuration if defined, 2) 'log4j.properties' file if exists,
or built-in configuration. See also:
https://issues.apache.org/jira/browse/JENA-536
EOS
end