aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMartin Wilhelmi2014-07-30 23:49:38 +0200
committerMike McQuaid2014-07-31 20:37:31 +0200
commit6a2d25bd84c04a00f313513ce2ba8b86ec58327b (patch)
tree76c4bc560e5b7c38fdcdb0bc70cddc13a04a7dbe /Library/Formula
parentd3c1108c3f54637be38c1ccef9404b2a524eb74e (diff)
downloadhomebrew-6a2d25bd84c04a00f313513ce2ba8b86ec58327b.tar.bz2
udpxy 1.0.23-9 (new formula)
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/udpxy.rb58
1 files changed, 58 insertions, 0 deletions
diff --git a/Library/Formula/udpxy.rb b/Library/Formula/udpxy.rb
new file mode 100644
index 000000000..b976041a9
--- /dev/null
+++ b/Library/Formula/udpxy.rb
@@ -0,0 +1,58 @@
+require "formula"
+
+class Udpxy < Formula
+ homepage "http://www.udpxy.com/"
+ url "http://www.udpxy.com/download/1_23/udpxy.1.0.23-9-prod.tar.gz"
+ sha1 "4194fc98d51284da48d07c44bbc5bdfa4813a4b8"
+ version "1.0.23-9"
+
+ # Fix gzip path in Makefile for uname Darwin, this is needed to fix the install task
+ # http://sourceforge.net/p/udpxy/patches/4/
+ patch :DATA
+
+ def install
+ system "make"
+ system "make", "install", "DESTDIR=#{prefix}", "PREFIX=''"
+ end
+
+ plist_options :manual => "udpxy -p 4022"
+
+ def plist; <<-EOS.undent
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+ <plist version="1.0">
+ <dict>
+ <key>KeepAlive</key>
+ <true/>
+ <key>Label</key>
+ <string>#{plist_name}</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>#{opt_bin}/udpxy</string>
+ <string>-p</string>
+ <string>4022</string>
+ </array>
+ <key>RunAtLoad</key>
+ <true/>
+ <key>WorkingDirectory</key>
+ <string>#{HOMEBREW_PREFIX}</string>
+ </dict>
+ </plist>
+ EOS
+ end
+end
+
+__END__
+--- a/Makefile 2014-07-31 18:40:40.000000000 +0200
++++ b/Makefile 2014-07-31 18:41:05.000000000 +0200
+@@ -32,7 +32,9 @@
+ ALL_FLAGS = -W -Wall -Werror --pedantic $(CFLAGS)
+
+ SYSTEM=$(shell uname 2>/dev/null)
+-ifeq ($(SYSTEM), FreeBSD)
++ifeq ($(SYSTEM), Darwin)
++GZIP := /usr/bin/gzip
++else ifeq ($(SYSTEM), FreeBSD)
+ MAKE := gmake
+ GZIP := /usr/bin/gzip
+ endif