diff options
| author | Michael T. Conigliaro | 2011-09-22 09:25:52 -0600 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-09-23 16:28:16 -0700 |
| commit | 507722b144fda25a10bd2e080d48c436e2aaaab8 (patch) | |
| tree | aaa851b0ad950333fd7cd2b348fdaf0dda16ab6e | |
| parent | 744e00379942d39e243286d27abbb3b6b79f7ec2 (diff) | |
| download | homebrew-507722b144fda25a10bd2e080d48c436e2aaaab8.tar.bz2 | |
NSS: Remove unnecessary prefix on binaries
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
| -rw-r--r-- | Library/Formula/nss.rb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Library/Formula/nss.rb b/Library/Formula/nss.rb index 2941aa437..199fc9846 100644 --- a/Library/Formula/nss.rb +++ b/Library/Formula/nss.rb @@ -28,8 +28,7 @@ class Nss < Formula bin.mkdir Dir['mozilla/dist/Darwin*/bin/*'].each do |file| - # Add 'nss-' prefix to prevent collisions with other binaries. - cp file, "#{bin}/nss-" + File.basename(file) + cp file, bin end include.mkdir @@ -48,13 +47,11 @@ class Nss < Formula end def test - # http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html - password = "It's a secret to everyone." - + # See: http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html mktemp do - File.open('passwd', 'w') {|f| f.write(password) } - system "nss-certutil -N -d #{Dir.getwd} -f passwd" - system "nss-certutil -L -d #{Dir.getwd}" + File.open('passwd', 'w') {|f| f.write("It's a secret to everyone.") } + system "certutil -N -d #{Dir.getwd} -f passwd" + system "certutil -L -d #{Dir.getwd}" end end end |
