From d6e17e4e8cd9b8b9004bdb63754178ee292b9d33 Mon Sep 17 00:00:00 2001 From: "ssu%netscape.com" Date: Fri, 26 Jan 2001 00:47:56 +0000 Subject: [PATCH] fixing bug 64649 - add psm to mozilla installers r=dgragg, sr=dgragg affects only linux not part of tinderbox builds. git-svn-id: svn://10.0.0.236/trunk@85534 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpinstall/packager/unix/config.it | 27 +++++++++++++----- mozilla/xpinstall/packager/unix/makeall.pl | 1 + mozilla/xpinstall/packager/unix/psm.jst | 33 ++++++++++++++++++++++ 3 files changed, 54 insertions(+), 7 deletions(-) create mode 100644 mozilla/xpinstall/packager/unix/psm.jst diff --git a/mozilla/xpinstall/packager/unix/config.it b/mozilla/xpinstall/packager/unix/config.it index 27512afcc66..160246ad654 100644 --- a/mozilla/xpinstall/packager/unix/config.it +++ b/mozilla/xpinstall/packager/unix/config.it @@ -38,9 +38,10 @@ Description Long=Navigator and Mail & News C0=Component0 C1=Component1 C2=Component2 -C3=Component4 +C3=Component3 C4=Component5 C5=Component6 +C6=Component7 [Setup Type1] ; *** LOCALIZE ME BABY *** @@ -54,6 +55,7 @@ C3=Component3 C4=Component4 C5=Component5 C6=Component6 +C7=Component7 [Setup Type2] ; *** LOCALIZE ME BABY *** @@ -62,9 +64,10 @@ Description Short=Navigator Description Long=Navigator only C0=Component0 C1=Component1 -C2=Component4 -C3=COmponent5 -C4=Component6 +C2=Component3 +C3=Component5 +C4=COmponent6 +C5=Component7 [Setup Type3] ; *** LOCALIZE ME BABY *** @@ -78,6 +81,7 @@ C3=Component3 C4=Component4 C5=Component5 C6=Component6 +C7=Component7 ;------------------------------------------------------------------------- @@ -116,6 +120,15 @@ Attributes=SELECTED URL0=$URLPath$ [Component3] +Description Short=Personal Security Manager +; *** LOCALIZE ME BABY *** +Description Long=Personal Security Manager (PSM) for crypto operations +Archive=psm.xpi +$InstallSize$:psm +Attributes=SELECTED +URL0=$URLPath$ + +[Component4] Description Short=Chatzilla ; *** LOCALIZE ME BABY *** Description Long=Chatzilla IRC client @@ -124,7 +137,7 @@ $InstallSize$:chatzilla Attributes=SELECTED URL0=$URLPath$ -[Component4] +[Component5] Description Short=Quality Feedback Agent ; *** LOCALIZE ME BABY *** Description Long=Tool for reporting software crashes to Netscape @@ -133,7 +146,7 @@ $InstallSize$:talkback Attributes=SELECTED URL0=$URLPath$ -[Component5] +[Component6] Description Short=English US Profile Defaults ; *** LOCALIZE ME BABY *** Description Long=English US Profile Defaults @@ -142,7 +155,7 @@ $InstallSize$:deflenus Attributes=SELECTED|INVISIBLE URL0=$URLPath$ -[Component6] +[Component7] Description Short=English US Language Pack ; *** LOCALIZE ME BABY *** Description Long=English US Language Pack diff --git a/mozilla/xpinstall/packager/unix/makeall.pl b/mozilla/xpinstall/packager/unix/makeall.pl index 8f74cbbd536..02c0dc3a59f 100755 --- a/mozilla/xpinstall/packager/unix/makeall.pl +++ b/mozilla/xpinstall/packager/unix/makeall.pl @@ -66,6 +66,7 @@ if(!(-e "$inDistPath")) # Make all xpi files MakeXpiFile("xpcom"); MakeXpiFile("browser"); +MakeXpiFile("psm"); MakeXpiFile("mail"); MakeXpiFile("chatzilla"); MakeXpiFile("talkback"); diff --git a/mozilla/xpinstall/packager/unix/psm.jst b/mozilla/xpinstall/packager/unix/psm.jst new file mode 100644 index 00000000000..cc48da44763 --- /dev/null +++ b/mozilla/xpinstall/packager/unix/psm.jst @@ -0,0 +1,33 @@ +var srDest = $SpaceRequired$; +var err; + +err = initInstall("Netscape Personal Security Manager", + "Netscape Personal Security Manager", "$Version$"); +logComment("initInstall: " + err); + +var communicatorFolder = getFolder("Communicator"); +logComment("communicatorFolder: " + communicatorFolder); + +if(verifyDiskSpace(communicatorFolder, srDest)) +{ + err = addDirectory("Program", // reg entry + "$Version$", // version + "bin", // jar source + communicatorFolder, // target folder + "", // relative subdir + true ); // force flag + logComment("addDirectory() returned: " + err); + + if(err==SUCCESS) + { + err = performInstall(); + logComment("performInstall() returned: " + err); + } + else + { + cancelInstall(); + logComment("cancelInstall() due to error: "+err); + } +} +else + cancelInstall(INSUFFICIENT_DISK_SPACE);