aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRune Botten2009-09-19 02:54:56 +0200
committerMax Howell2009-09-30 01:24:32 +0100
commitd8d6670f2eb1a3f8d50b0efa09c1a132a905f2f2 (patch)
treec37a650026a6f17f849487c97f64100b108664f2 /Library/Formula
parent1406a66a47716b91d88d167c2cae683fdcc77c9e (diff)
downloadhomebrew-d8d6670f2eb1a3f8d50b0efa09c1a132a905f2f2.tar.bz2
Add mediatomb formula
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/mediatomb.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/mediatomb.rb b/Library/Formula/mediatomb.rb
new file mode 100644
index 000000000..1fe9f2cc3
--- /dev/null
+++ b/Library/Formula/mediatomb.rb
@@ -0,0 +1,30 @@
+require 'brewkit'
+
+class Mediatomb <Formula
+ @url='http://downloads.sourceforge.net/mediatomb/mediatomb-0.11.0.tar.gz'
+ @homepage='http://mediatomb.cc'
+ @md5='661f08933830d920de21436fe122fb15'
+
+ def patches
+ DATA
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ system "make install"
+ end
+end
+
+__END__
+diff -Naur mediatomb-0.11.0/src/url.cc mediatomb-0.11.0/src/url-patched.cc
+--- mediatomb-0.11.0/src/url.cc 2009-09-19 02:37:12.000000000 +0200
++++ mediatomb-0.11.0/src/url-patched.cc 2009-09-19 02:37:21.000000000 +0200
+@@ -75,7 +75,7 @@
+
+ if (only_header)
+ {
+- curl_easy_setopt(curl_handle, CURLOPT_NOBODY);
++ curl_easy_setopt(curl_handle, CURLOPT_NOBODY, 1);
+ curl_easy_setopt(curl_handle, CURLOPT_HEADERFUNCTION, URL::dl);
+ curl_easy_setopt(curl_handle, CURLOPT_HEADERDATA,
+ (void *)buffer.getPtr());