12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- # $Id$
- #-
- # This file is part of the OpenADK project. OpenADK is copyrighted
- # material, please see the LICENCE file in the top-level directory.
- include ${TOPDIR}/rules.mk
- PKG_NAME:= openssl
- PKG_VERSION:= 0.9.8k
- PKG_RELEASE:= 2
- CACERT_VER:= 12
- PKG_MD5SUM:= e555c6d58d276aec7fdc53363e338ab3
- MASTER_SITES:= http://www.openssl.org/source/ \
- ftp://ftp.funet.fi/pub/crypt/cryptography/libs/openssl/source/ \
- ftp://ftp.webmonster.de/pub/openssl/source/ \
- ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/
- include ${TOPDIR}/mk/package.mk
- $(eval $(call PKG_template,LIBOPENSSL,libopenssl,${PKG_VERSION}-${PKG_RELEASE}))
- $(eval $(call PKG_template,OPENSSL_UTIL,openssl-util,${PKG_VERSION}-${PKG_RELEASE}))
- $(eval $(call PKG_template,CA_CERTS,ca-certificates,${PKG_VERSION}-${CACERT_VER}))
- BUILD_STYLE:= manual
- INSTALL_STYLE:= auto confprog
- INSTALL_TARGET:= install_sw
- FAKE_FLAGS+= INSTALL_PREFIX=${WRKINST}
- OPENSSL_OPTIONS = shared no-ec no-err no-hw no-krb5 no-threads zlib-dynamic no-engines no-camellia no-idea no-rc5 no-mdc2 no-sha0 no-smime no-aes192 no-ripemd no-cast no-bf
- do-configure:
- (cd $(WRKBUILD); \
- PATH=$(TARGET_PATH) \
- OPTIMIZATION_FLAGS="$(TARGET_CFLAGS) -fPIC" \
- ./Configure linux-embedded \
- --prefix=/usr \
- --openssldir=/etc/ssl \
- --with-cryptodev \
- -I$(STAGING_DIR)/usr/include \
- -L$(STAGING_DIR)/usr/lib -ldl \
- -DOPENSSL_SMALL_FOOTPRINT \
- $(OPENSSL_OPTIONS) \
- );
- do-build:
- $(MAKE) -C $(WRKBUILD) \
- MAKEDEPPROG="$(TARGET_CC)" \
- OPTIMIZATION_FLAGS="$(TARGET_CFLAGS) -fPIC" \
- depend
- $(MAKE) -C $(WRKBUILD) \
- CC="$(TARGET_CC)" \
- AR="$(TARGET_CROSS)ar r" \
- RANLIB="$(TARGET_CROSS)ranlib" \
- OPTIMIZATION_FLAGS="$(TARGET_CFLAGS) -fPIC" \
- all build-shared
- post-install:
- ${INSTALL_DIR} ${IDIR_LIBOPENSSL}/usr/lib
- ${CP} ${WRKINST}/usr/lib/lib*.so.* ${IDIR_LIBOPENSSL}/usr/lib
- chmod 644 ${IDIR_LIBOPENSSL}/usr/lib/lib*.so.*
- ${INSTALL_DIR} ${IDIR_OPENSSL_UTIL}/usr/bin
- ${CP} ${WRKINST}/usr/bin/openssl ${IDIR_OPENSSL_UTIL}/usr/bin
- ${INSTALL_DIR} ${IDIR_OPENSSL_UTIL}/etc/ssl/{,certs,private}
- ${CP} ${WRKSRC}/apps/openssl.cnf ${IDIR_OPENSSL_UTIL}/etc/ssl/
- chmod 0700 ${IDIR_OPENSSL_UTIL}/etc/ssl/private
- ${INSTALL_DIR} ${IDIR_CA_CERTS}/etc/ssl
- ${INSTALL_DATA} cert.pem ${IDIR_CA_CERTS}/etc/ssl/
- include ${TOPDIR}/mk/pkg-bottom.mk
|