aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/rtpbreak.rb
diff options
context:
space:
mode:
authorSimon Sigurdhsson2012-06-30 12:32:12 +0200
committerAdam Vandenberg2012-07-03 07:18:34 -0700
commit81a335d299a700b97e2f803cae05343420a33049 (patch)
tree59dc9b2aafb0b557bd47becc9f91fafc3d9b30ce /Library/Formula/rtpbreak.rb
parentffbcf7ada9c802c6eb739d909712242eed085f43 (diff)
downloadhomebrew-81a335d299a700b97e2f803cae05343420a33049.tar.bz2
rtpbreak 3.1a
Closes #13092. Closes #13121. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/rtpbreak.rb')
-rw-r--r--Library/Formula/rtpbreak.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/rtpbreak.rb b/Library/Formula/rtpbreak.rb
new file mode 100644
index 000000000..d4ce0a1fa
--- /dev/null
+++ b/Library/Formula/rtpbreak.rb
@@ -0,0 +1,34 @@
+require 'formula'
+
+class Rtpbreak < Formula
+ homepage 'http://www.dallachiesa.com/code/rtpbreak/doc/rtpbreak_en.html'
+ url 'http://dallachiesa.com/code/rtpbreak/rtpbreak-1.3a.tgz'
+ sha1 'd22e9c37cc28c2fc36475d221b4eb2cc2c5aafbb'
+
+ depends_on 'libnet'
+
+ def patches
+ # main.c is missing the netinet/udp.h header; reported upstream by email
+ {:p0 => DATA}
+ end
+
+ def install
+ system "make", "CC=#{ENV.cc}"
+ bin.install('src/rtpbreak')
+ end
+
+ def test
+ system "rtpbreak"
+ end
+end
+__END__
+--- src/main.c 2012-06-30 12:22:29.000000000 +0200
++++ src/main.c 2012-06-30 12:19:11.000000000 +0200
+@@ -25,6 +25,7 @@
+
+ #include <time.h>
+ #include <sys/stat.h>
++#include <netinet/udp.h>
+ #include <pwd.h>
+ #include <grp.h>
+ #include "queue.h"