mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-30 20:49:48 -05:00
NSS: Remove unnecessary prefix on binaries
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
This commit is contained in:
1 parent
744e003799
commit
507722b144
1 file changed
+5
-8
@@ -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
|
||||
Reference in new issue
Block a user