aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRémi Prévost2010-02-06 14:12:04 -0500
committerAdam Vandenberg2010-02-06 15:55:26 -0800
commitb0f98007741af4688bd1668e5b240bee6c267766 (patch)
tree48bcdca390e6dc599479c756407c68f55239d3d2 /Library/Formula
parent441efd9ecf64f3be58a5cdfa0178a0b1083d5aa6 (diff)
downloadhomebrew-b0f98007741af4688bd1668e5b240bee6c267766.tar.bz2
Bcrypt 1.1
Bcrypt is a cross platform file encryption utility. Encrypted files are portable across all supported operating systems and processors. Passphrases must be between 8 and 56 characters and are hashed internally to a 448 bit key. However, all characters supplied are significant. The stronger your passphrase, the more secure your data. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bcrypt.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/bcrypt.rb b/Library/Formula/bcrypt.rb
new file mode 100644
index 000000000..4000e6fdf
--- /dev/null
+++ b/Library/Formula/bcrypt.rb
@@ -0,0 +1,33 @@
+require 'formula'
+
+class Bcrypt <Formula
+ url 'http://bcrypt.sourceforge.net/bcrypt-1.1.tar.gz'
+ homepage 'http://bcrypt.sourceforge.net'
+ md5 '8ce2873836ccd433329c8df0e37e298c'
+
+ def patches
+ DATA
+ end
+
+ def install
+ system "make"
+ system "make install"
+ end
+
+end
+__END__
+diff --git a/Makefile b/Makefile
+index b84da0f..96d07e2 100644
+--- a/Makefile
++++ b/Makefile
+@@ -3,8 +3,8 @@ CC = gcc
+ CFLAGS = -O2 -Wall
+ COMPILE = ${CC} ${CFLAGS}
+ OBJS = main.o blowfish.o rwfile.o keys.o wrapbf.o endian.o wrapzl.o
+-LDFLAGS = -L/usr/local/lib -lz
+-PREFIX = /usr/local
++LDFLAGS = -L`brew --prefix`/lib -lz
++PREFIX = `brew --prefix`/Cellar/bcrypt/1.1
+
+ bcrypt: ${OBJS} Makefile
+ ${COMPILE} -o bcrypt ${OBJS} ${LDFLAGS}