openssl: cleanup and rework

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-12-19 14:38:37 +01:00
parent d1aeeacd67
commit 33b4515aa2
3 changed files with 33 additions and 20 deletions

View File

@ -43,18 +43,30 @@ case $TARGET_ARCH in
esac
cd $PKG_BUILD
./Configure \
--prefix=/usr \
--openssldir=/etc/ssl \
zlib-dynamic \
threads \
shared \
$TARGET
./Configure --prefix=/usr \
--libdir=lib \
--openssldir=/etc/pki/tls \
--install_prefix="$SYSROOT_PREFIX" \
shared \
threads \
zlib-dynamic \
enable-camellia \
enable-seed \
enable-tlsext \
enable-rfc3779 \
enable-cms \
enable-md2 \
no-krb5 \
no-idea \
no-mdc2 \
no-rc5 \
no-ec \
no-ecdh \
no-ecdsa \
$TARGET
$SED -i -e "s:-march=[-a-z0-9] ::" \
-e "s:-mcpu=[-a-z0-9] ::g" \
-e "s:-O[0-9]:$CFLAGS:" Makefile
make CC=$CC LD=$LD RANLIB=$RANLIB LIBDIR=lib all build-shared
make CC=$CC LD=$LD RANLIB=$RANLIB LIBDIR=lib do_linux-shared
make CC=$CC LD=$LD RANLIB=$RANLIB LIBDIR=lib INSTALL_PREFIX=$SYSROOT_PREFIX install_sw
make CC="$CC" \
AR="$AR r" \
RANLIB="$RANLIB" \
MAKEDEPPROG="$CC" \
depend all build-shared install

View File

@ -22,13 +22,15 @@
. config/options $1
mkdir -p $INSTALL/etc/ssl
cp -P $PKG_BUILD/apps/openssl.cnf $INSTALL/etc/ssl
mkdir -p $INSTALL/etc/pki/tls
cp -P $PKG_BUILD/apps/openssl.cnf $INSTALL/etc/pki/tls
mkdir -p $INSTALL/usr/bin
cp -P $PKG_BUILD/apps/openssl $INSTALL/usr/bin
mkdir -p $INSTALL/usr/lib
cp -P $PKG_BUILD/libcrypto.so* $INSTALL/usr/lib
cp -P $PKG_BUILD/libssl.so* $INSTALL/usr/lib
mkdir -p $INSTALL/usr/lib/ssl/engines
cp -P $PKG_BUILD/engines/*.so $INSTALL/usr/lib/ssl/engines
# cp -P $PKG_BUILD/engines/ccgost/*.so $INSTALL/usr/lib/ssl/engines
mkdir -p $INSTALL/usr/lib/engines
cp -P $PKG_BUILD/engines/*.so $INSTALL/usr/lib/engines

View File

@ -20,7 +20,6 @@
PKG_NAME="openssl"
PKG_VERSION="1.0.0e"
#PKG_VERSION="0.9.8r"
PKG_REV="1"
PKG_ARCH="any"
PKG_LICENSE="OSS"