Skip to content

Commit

Permalink
openssl: cleanup and rework
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Raue <stephan@openelec.tv>
  • Loading branch information
sraue committed Dec 19, 2011
1 parent d1aeeac commit 33b4515
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 20 deletions.
40 changes: 26 additions & 14 deletions packages/security/openssl/build
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 7 additions & 5 deletions packages/security/openssl/install
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion packages/security/openssl/meta
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 33b4515

Please sign in to comment.