aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorWessel Louwris2013-06-11 10:58:51 +0200
committerAdam Vandenberg2013-08-05 22:08:22 -0700
commite4702921f5b8568bb74c056b1ff3b33794b79a77 (patch)
tree83a3183850ac205afa8699e09ee9c3e7f9bba3fb /Library/Formula
parent82d8dbca04437a5924a04dc2e76e65789105080d (diff)
downloadhomebrew-e4702921f5b8568bb74c056b1ff3b33794b79a77.tar.bz2
burp: 1.3.36 - backup and restore program
New formula for burp backup and restore program http://burp.grke.org/wiki/index.php/Mac_client_installation with patches to put the files in dir's according to homebrew convention and dependency for rsync Closes #20408. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/burp.rb102
1 files changed, 102 insertions, 0 deletions
diff --git a/Library/Formula/burp.rb b/Library/Formula/burp.rb
new file mode 100644
index 000000000..9e4d189a9
--- /dev/null
+++ b/Library/Formula/burp.rb
@@ -0,0 +1,102 @@
+require 'formula'
+
+class Burp < Formula
+ homepage 'http://burp.grke.org/'
+ url 'http://downloads.sourceforge.net/project/burp/burp-1.3.36%20%28stable%20candidate%29/burp-1.3.36.tar.bz2'
+ sha1 '471237090e631b3cb91ff864db84c7644c42bf87'
+
+ head 'https://github.com/grke/burp.git'
+
+ depends_on 'librsync'
+
+ # patches to change directories to brew conventions in Makefile and config files
+ def patches
+ DATA
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}",
+ "--sysconfdir=#{etc}/burp",
+ "--sbindir=#{bin}",
+ "--localstatedir=#{var}/burp"
+ system "make", "install"
+ end
+
+ test do
+ system "#{bin}/burp", "-v"
+ end
+end
+
+__END__
+diff --git a/Makefile.in b/Makefile.in
+index ac22a24..0cf112b 100755
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -90,8 +90,8 @@ installdirs:
+ $(MKDIR) $(DESTDIR)$(sbindir)
+ $(MKDIR) $(DESTDIR)$(sysconfdir)
+ $(MKDIR) $(DESTDIR)$(sysconfdir)/CA-client
+- $(MKDIR) $(DESTDIR)/var/run
+- $(MKDIR) $(DESTDIR)/var/spool/burp
++ $(MKDIR) HOMEBREW_PREFIX/var/run
++ $(MKDIR) HOMEBREW_PREFIX/var/spool/burp
+ @if [ ! -d $(DESTDIR)$(sysconfdir)/clientconfdir ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/clientconfdir ; cp configs/server/clientconfdir/testclient $(DESTDIR)$(sysconfdir)/clientconfdir/testclient ; fi
+ @if [ ! -d $(DESTDIR)$(sysconfdir)/clientconfdir/incexc ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/clientconfdir/incexc ; cp configs/server/clientconfdir/incexc $(DESTDIR)$(sysconfdir)/clientconfdir/incexc/example ; fi
+ @if [ ! -d $(DESTDIR)$(sysconfdir)/autoupgrade/client ] ; then $(MKDIR) $(DESTDIR)$(sysconfdir)/autoupgrade/client ; fi
+diff --git a/configs/client/burp.conf b/configs/client/burp.conf
+index 1b47476..76fcd8d 100644
+--- a/configs/client/burp.conf
++++ b/configs/client/burp.conf
+@@ -5,7 +5,7 @@ port = 4971
+ server = 127.0.0.1
+ password = abcdefgh
+ cname = testclient
+-pidfile = /var/run/burp.client.pid
++pidfile = HOMEBREW_PREFIX/var/run/burp.client.pid
+ syslog = 0
+ stdout = 1
+ progress_counter = 1
+diff --git a/configs/server/burp.conf b/configs/server/burp.conf
+index 45a4b70..c9081d0 100644
+--- a/configs/server/burp.conf
++++ b/configs/server/burp.conf
+@@ -3,9 +3,9 @@
+ mode = server
+ port = 4971
+ status_port = 4972
+-directory = /var/spool/burp
+-clientconfdir = /etc/burp/clientconfdir
+-pidfile = /var/run/burp.server.pid
++directory = HOMEBREW_PREFIX/var/spool/burp
++clientconfdir = HOMEBREW_PREFIX/etc/burp/clientconfdir
++pidfile = HOMEBREW_PREFIX/var/run/burp.server.pid
+ hardlinked_archive = 0
+ working_dir_recovery_method = delete
+ max_children = 5
+diff --git a/configs/client/burp.conf b/configs/client/burp.conf
+index 76fcd8d..9cd7edb 100644
+--- a/configs/client/burp.conf
++++ b/configs/client/burp.conf
+@@ -41,17 +41,17 @@ cross_all_filesystems=0
+
+ # Uncomment the following lines to automatically generate a certificate signing
+ # request and send it to the server.
+-ca_burp_ca = /usr/sbin/burp_ca
+-ca_csr_dir = /etc/burp/CA-client
++ca_burp_ca = HOMEBREW_PREFIX/bin/burp_ca
++ca_csr_dir = HOMEBREW_PREFIX/etc/burp/CA-client
+
+ # SSL certificate authority - same file on both server and client
+-ssl_cert_ca = /etc/burp/ssl_cert_ca.pem
++ssl_cert_ca = HOMEBREW_PREFIX/etc/burp/ssl_cert_ca.pem
+
+ # Client SSL certificate
+-ssl_cert = /etc/burp/ssl_cert-client.pem
++ssl_cert = HOMEBREW_PREFIX/etc/burp/ssl_cert-client.pem
+
+ # Client SSL key
+-ssl_key = /etc/burp/ssl_cert-client.key
++ssl_key = HOMEBREW_PREFIX/etc/burp/ssl_cert-client.key
+
+ # Client SSL ciphers
+ #ssl_ciphers =