Changeset 46484


Ignore:
Timestamp:
2015-07-25T00:26:44+02:00 (3 years ago)
Author:
cyrus
Message:

mbedtls: package version 2.0, make polarssl compatible

Signed-off-by: Steven Barth <steven@…>

Location:
trunk/package/libs
Files:
3 added
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/package/libs/mbedtls/Makefile

    r46483 r46484  
    99 
    1010PKG_NAME:=mbedtls 
    11 PKG_VERSION:=1.3.11 
     11PKG_VERSION:=2.0.0 
    1212PKG_RELEASE:=1 
    1313PKG_USE_MIPS16:=0 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-gpl.tgz 
    16 PKG_SOURCE_URL:=https://polarssl.org/download/ 
    17 PKG_MD5SUM:=c02ce2e54862d678604794ee484fb59e 
     16PKG_SOURCE_URL:=https://tls.mbed.org/download/ 
     17PKG_MD5SUM:=6b8246a19a7a77737856e729cc8a0952 
    1818 
    1919PKG_BUILD_PARALLEL:=1 
     
    2323include $(INCLUDE_DIR)/cmake.mk 
    2424 
    25 define Package/polarssl/Default 
     25define Package/mbedtls/Default 
    2626  SUBMENU:=SSL 
    2727  TITLE:=Embedded SSL 
    28   URL:=http://polarssl.org/ 
     28  URL:=https://tls.mbed.org 
    2929endef 
    3030 
    31 define Package/polarssl/Default/description 
    32 The aim of the PolarSSL project is to provide a quality, open-source 
     31define Package/mbedtls/Default/description 
     32The aim of the mbedtls project is to provide a quality, open-source 
    3333cryptographic library written in C and targeted at embedded systems. 
    3434endef 
    3535 
    36 define Package/libpolarssl 
    37 $(call Package/polarssl/Default) 
     36define Package/libmbedtls 
     37$(call Package/mbedtls/Default) 
    3838  SECTION:=libs 
    3939  CATEGORY:=Libraries 
     
    4242endef 
    4343 
    44 define Package/libpolarssl/description 
    45 $(call Package/polarssl/Default/description) 
    46 This package contains the PolarSSL library. 
     44define Package/libmbedtls/description 
     45$(call Package/mbedtls/Default/description) 
     46This package contains the mbedtls library. 
    4747endef 
    4848 
     
    5757define Build/InstallDev 
    5858        $(INSTALL_DIR) $(1)/usr/include 
    59         $(CP) $(PKG_INSTALL_DIR)/usr/include/polarssl $(1)/usr/include/ 
     59        $(CP) $(PKG_INSTALL_DIR)/usr/include/mbedtls $(1)/usr/include/ 
    6060        $(INSTALL_DIR) $(1)/usr/lib 
    61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmbedtls.so* $(1)/usr/lib/ 
    62         $(LN) libmbedtls.so $(1)/usr/lib/libpolarssl.so 
     61        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/ 
    6362endef 
    6463 
    65 define Package/libpolarssl/install 
     64define Package/libmbedtls/install 
    6665        $(INSTALL_DIR) $(1)/usr/lib 
    67         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmbedtls.so* $(1)/usr/lib/ 
    68         $(LN) libmbedtls.so $(1)/usr/lib/libpolarssl.so 
     66        $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib/ 
    6967endef 
    7068 
    71 $(eval $(call BuildPackage,libpolarssl)) 
     69$(eval $(call BuildPackage,libmbedtls)) 
  • trunk/package/libs/polarssl/Makefile

    r45925 r46484  
    1010PKG_NAME:=mbedtls 
    1111PKG_VERSION:=1.3.11 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313PKG_USE_MIPS16:=0 
    1414 
     
    5959        $(CP) $(PKG_INSTALL_DIR)/usr/include/polarssl $(1)/usr/include/ 
    6060        $(INSTALL_DIR) $(1)/usr/lib 
    61         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmbedtls.so* $(1)/usr/lib/ 
    62         $(LN) libmbedtls.so $(1)/usr/lib/libpolarssl.so 
     61        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmbedtls.so.* $(1)/usr/lib/ 
     62        $(LN) libmbedtls.so.$(PKG_VERSION) $(1)/usr/lib/libpolarssl.so 
    6363endef 
    6464 
    6565define Package/libpolarssl/install 
    6666        $(INSTALL_DIR) $(1)/usr/lib 
    67         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmbedtls.so* $(1)/usr/lib/ 
    68         $(LN) libmbedtls.so $(1)/usr/lib/libpolarssl.so 
     67        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmbedtls.so.* $(1)/usr/lib/ 
     68        $(LN) libmbedtls.so.$(PKG_VERSION) $(1)/usr/lib/libpolarssl.so 
    6969endef 
    7070 
Note: See TracChangeset for help on using the changeset viewer.