Permalink
Browse files

[#2 state:resolved]

  • Loading branch information...
1 parent b5acf59 commit d80235390008b7e32b764aa3c784a4bfa0cff0b2 @AlexanderWillner AlexanderWillner committed Jan 22, 2011
Showing with 54 additions and 0 deletions.
  1. +41 −0 Installer/GPGServices.pkgproj
  2. +13 −0 Installer/check_for_gpg.sh
@@ -693,6 +693,47 @@
<key>STATE</key>
<true/>
</dict>
+ <dict>
+ <key>BEHAVIOR</key>
+ <integer>3</integer>
+ <key>DICTIONARY</key>
+ <dict>
+ <key>IC_REQUIREMENT_SCRIPT_ARGUMENTS</key>
+ <array/>
+ <key>IC_REQUIREMENT_SCRIPT_COMPARATOR</key>
+ <integer>0</integer>
+ <key>IC_REQUIREMENT_SCRIPT_EMBED</key>
+ <true/>
+ <key>IC_REQUIREMENT_SCRIPT_PATH</key>
+ <dict>
+ <key>PATH</key>
+ <string>check_for_gpg.sh</string>
+ <key>PATH_TYPE</key>
+ <integer>1</integer>
+ </dict>
+ <key>IC_REQUIREMENT_SCRIPT_VALUE</key>
+ <integer>0</integer>
+ </dict>
+ <key>IC_REQUIREMENT_CHECK_TYPE</key>
+ <integer>0</integer>
+ <key>IDENTIFIER</key>
+ <string>fr.whitebox.Packages.requirement.scripts</string>
+ <key>MESSAGE</key>
+ <array>
+ <dict>
+ <key>LANGUAGE</key>
+ <string>English</string>
+ <key>SECONDARY_VALUE</key>
+ <string></string>
+ <key>VALUE</key>
+ <string>You must have GnuPG installed</string>
+ </dict>
+ </array>
+ <key>NAME</key>
+ <string>GnuPG</string>
+ <key>STATE</key>
+ <true/>
+ </dict>
</array>
<key>POSTINSTALL_PATH</key>
<dict/>
View
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# this skript returns 0 if either gpg or gpg2 is installed on the system
+
+PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/local/bin
+[ -r "$HOME/.profile" ] && . "$HOME/.profile"
+if( /usr/bin/which -s gpg ) then
+ exit 0;
+fi
+if( /usr/bin/which -s gpg2 ) then
+ exit 0;
+fi
+exit 1;

0 comments on commit d802353

Please sign in to comment.