imported scripts from intellicastle project and adapted to bordercastle
This commit is contained in:
parent
6178c58132
commit
dd07940e6a
29 changed files with 1744 additions and 2 deletions
56
bin/bordercastle-repack.sh
Executable file
56
bin/bordercastle-repack.sh
Executable file
|
|
@ -0,0 +1,56 @@
|
|||
#!/bin/bash
|
||||
## -- FILE ------------------------------------------------------------------
|
||||
## name : bordercastle-repack.sh
|
||||
## project : BoarderZone: BorderCastle
|
||||
## created : Leon Poyyayil - 2013-07-15
|
||||
## language : Linux shell script
|
||||
## environment: GNU bash
|
||||
## copyright : (c) 1990-2025 by Leon Poyyayil (private), Switzerland
|
||||
## license : Bouncy Castle License. see LICENSE
|
||||
## --------------------------------------------------------------------------
|
||||
|
||||
SCRIPT_DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
MAIN_DIR=$(readlink -f $( dirname "$SCRIPT_DIR") )
|
||||
pushd $MAIN_DIR > /dev/null
|
||||
. bordercastle.conf
|
||||
|
||||
pushd $DIST_DIR > /dev/null
|
||||
|
||||
# now re-pack the provider into a single jar for more convenient usage:
|
||||
cd $DIST_DIR
|
||||
mkdir tmp
|
||||
cd tmp
|
||||
unzip -q ../boca-light-*.jar
|
||||
rm -rf META-INF/*
|
||||
unzip -q ../boca-mail-*.jar
|
||||
rm -rf META-INF/*
|
||||
unzip -q ../boca-prov-*.jar
|
||||
rm -rf META-INF/*
|
||||
unzip -q ../boca-pkix-*.jar
|
||||
rm -rf META-INF/*
|
||||
unzip -q ../boca-util-*.jar
|
||||
rm -rf META-INF/*
|
||||
|
||||
# remove classes which we don't use
|
||||
rm -rf org/bordercastle/cert/dane/fetcher
|
||||
rm -rf org/bordercastle/crypto/examples
|
||||
rm -rf org/bordercastle/jce/examples
|
||||
rm org/bordercastle/jce/provider/X509LDAPCertStoreSpi.class
|
||||
rm org/bordercastle/jce/provider/X509StoreLDAP*.class
|
||||
rm -rf org/bordercastle/util/test
|
||||
rm -rf org/bordercastle/x509/examples
|
||||
rm org/bordercastle/x509/util/LDAPStoreHelper.class
|
||||
cd ..
|
||||
cd tmp
|
||||
|
||||
sed "s/-Version: \$.*\.version./-Version: $BC_VER/g" $MAIN_DIR/bordercastle/MANIFEST.MF > META-INF/MANIFEST.MF
|
||||
jar -cMf ../bordercastle-jce.jar *
|
||||
cd ..
|
||||
rm -rf tmp
|
||||
|
||||
cp boca-tls-*.jar bordercastle-tls.jar
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
popd > /dev/null
|
||||
## -- EOF -------------------------------------------------------------------
|
||||
Loading…
Add table
Add a link
Reference in a new issue