Files
i2p.i2p/installer/lib/wrapper/copy.sh
zzz e3a4a54802 Build: Update wrapper to 3.5.60
- Remove Solaris Sparc 32-bit wrapper files
- Remove Linux PPC 32-bit BE wrapper files (never included in packages, no longer supported by Tanuki)
- Add patch to fix breakage on Debian xx-ea Java versions

All binaries from Tanuki Delta Pack Community Edition,
except for armhf (armv6), compiled on Raspberry Pi:
      ant 1.10.9
      openjdk 1.8.0_312
      gcc 10.2.1

Windows binaries remain unchanged as we must recompile them ourselves
(32 bit just to change the icon; 64 bit is not provided by Tanuki)

Patch file is unmodified in this checkin, as a base for future merges.
Patch will be in next checkin.
Do not squash.
2025-03-08 08:57:36 -05:00

70 lines
1.8 KiB
Bash
Executable File

#
# copy the files out of the unzipped delta pack
#
V=3.5.60
D=wrapper-delta-pack-$V
T=$D.tar.gz
U=https://download.tanukisoftware.com/wrapper/$V/$T
if [ ! -f $T ]
then
echo "Downloading delta pack from $U"
wget $U
fi
if [ ! -d $D ]
then
echo "Untarring $T"
tar xzf $T
fi
B=$D/bin
L=$D/lib
cp $L/wrapper.jar all
#
# In delta pack but not used:
#
# AIX
# FreeBSD ARM
# HPUX
# Linux PPC
# Solaris
#
# You must update postinstall.sh to add support for new architectures.
#
set -x
cp $L/libwrapper-freebsd-x86-32.so freebsd/libwrapper.so
cp $L/libwrapper-freebsd-x86-64.so freebsd64/libwrapper.so
cp $L/libwrapper-linux-x86-32.so linux/libwrapper.so
cp $L/libwrapper-linux-x86-64.so linux64/libwrapper.so
cp $L/libwrapper-linux-armel-32.so linux-armv5/libwrapper.so
cp $L/libwrapper-linux-armhf-32.so linux-armv7/libwrapper.so
cp $L/libwrapper-linux-arm-64.so linux64-armv8/libwrapper.so
cp $L/libwrapper-macosx-universal-32.jnilib macosx/libwrapper-macosx-universal-32.jnilib
cp $L/libwrapper-macosx-universal-64.jnilib macosx/libwrapper-macosx-universal-64.jnilib
cp $B/wrapper-freebsd-x86-32 freebsd/i2psvc
cp $B/wrapper-freebsd-x86-64 freebsd64/i2psvc
cp $B/wrapper-linux-x86-32 linux/i2psvc
cp $B/wrapper-linux-x86-64 linux64/i2psvc
cp $B/wrapper-linux-armel-32 linux-armv5/i2psvc
cp $B/wrapper-linux-armhf-32 linux-armv7/i2psvc
cp $B/wrapper-linux-arm-64 linux64-armv8/i2psvc
cp $B/wrapper-macosx-universal-32 macosx/i2psvc-macosx-universal-32
cp $B/wrapper-macosx-universal-64 macosx/i2psvc-macosx-universal-64
set +x
for i in freebsd freebsd64 linux linux64
do
strip $i/i2psvc $i/libwrapper.so
chmod -x $i/i2psvc $i/libwrapper.so
done
for i in linux-armv5 linux-armv7 linux64-armv8
do
chmod -x $i/i2psvc $i/libwrapper.so
done
echo 'Windows binaries not copied, see README.txt'
echo 'Now compile the armv6 binaries on a Raspberry Pi, see linux-armv6/README.txt'