summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xthirdparty/gnupg/build_gnupg.sh68
-rw-r--r--thirdparty/openvpn/README (renamed from openvpn/README)0
-rw-r--r--thirdparty/openvpn/Sources (renamed from openvpn/Sources)0
-rwxr-xr-xthirdparty/openvpn/build.zsh.old (renamed from openvpn/build.zsh)0
-rwxr-xr-xthirdparty/openvpn/openvpn.sh (renamed from openvpn/openvpn.sh)0
5 files changed, 68 insertions, 0 deletions
diff --git a/thirdparty/gnupg/build_gnupg.sh b/thirdparty/gnupg/build_gnupg.sh
new file mode 100755
index 00000000..e125b684
--- /dev/null
+++ b/thirdparty/gnupg/build_gnupg.sh
@@ -0,0 +1,68 @@
+#!/usr/bin/env sh
+
+# ----------------------------------------------------------
+# Compile gnupg binary, to distribute with Bitmask bundles.
+# ----------------------------------------------------------
+# You will need to import the keys for the gnupg developers into your keyring,
+# see https://www.gnupg.org/download/integrity_check.html
+# and https://www.gnupg.org/signature_key.html
+
+# For osx specific details, see:
+# http://macgpg.sourceforge.net/docs/howto-build-gpg-osx.txt.asc
+# osx doesn't allow to build static binaries, see:
+# http://stackoverflow.com/questions/5259249/creating-static-mac-os-x-c-build
+
+set -e
+set -x
+
+gnupg_version="gnupg-1.4.20"
+url="ftp://ftp.gnupg.org/gcrypt/gnupg/$gnupg_version.tar.bz2"
+
+platform='unknown'
+unamestr=`uname`
+if [[ "$unamestr" == 'Linux' ]]; then
+ platform='linux'
+elif [[ "$unamestr" == 'Darwin' ]]; then
+ platform='osx'
+fi
+
+function prepare_source()
+{
+ wget -c $url -O $gnupg_version.tar.bz2;
+ wget -c $url.sig -O $gnupg_version.tar.bz2.sig;
+ #gpg --verify $gnupg_version.tar.bz2.sig $gnupg_version.tar.bz2;
+ tar -xjf $gnupg_version.tar.bz2;
+ cd $gnupg_version;
+}
+
+
+function build_static_gpg()
+{
+ ./configure CFLAGS="-static";
+ make;
+}
+
+function build_gpg()
+{
+ ./configure;
+ make;
+}
+
+function copy_to_builddir()
+{
+ mkdir -p ~/leap_thirdparty_build
+ cp g10/gpg ~/leap_thirdparty_build
+}
+
+function main()
+{
+ if [[ $platform == 'linux' ]]; then
+ (prepare_source; build_static_gpg; copy_to_builddir)
+ elif [[ $platform == 'osx' ]]; then
+ (prepare_source; build_gpg; copy_to_builddir)
+ fi
+
+}
+
+main "$@"
+
diff --git a/openvpn/README b/thirdparty/openvpn/README
index bf2205c2..bf2205c2 100644
--- a/openvpn/README
+++ b/thirdparty/openvpn/README
diff --git a/openvpn/Sources b/thirdparty/openvpn/Sources
index e2fe7bb3..e2fe7bb3 100644
--- a/openvpn/Sources
+++ b/thirdparty/openvpn/Sources
diff --git a/openvpn/build.zsh b/thirdparty/openvpn/build.zsh.old
index b36717c1..b36717c1 100755
--- a/openvpn/build.zsh
+++ b/thirdparty/openvpn/build.zsh.old
diff --git a/openvpn/openvpn.sh b/thirdparty/openvpn/openvpn.sh
index db63c987..db63c987 100755
--- a/openvpn/openvpn.sh
+++ b/thirdparty/openvpn/openvpn.sh