Go back to OpenWrt libcyassl

This commit is contained in:
Steven Barth 2010-03-07 17:46:58 +00:00
parent 72e3b2c7e5
commit 66fc0c4692
2 changed files with 1 additions and 61 deletions

View file

@ -1,60 +0,0 @@
#
# Copyright (C) 2008 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_BASENAME:=cyassl
PKG_NAME:=$(PKG_BASENAME)-luci
PKG_VERSION:=1.2.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_BASENAME)-$(PKG_VERSION).zip
PKG_SOURCE_URL:=http://www.yassl.com/
PKG_MD5SUM:=de12e76b3faf760107e45af487adcbde
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_BASENAME)-$(PKG_VERSION)
PKG_UNPACK=unzip -d $(BUILD_DIR)/$(PKG_NAME) $(DL_DIR)/$(PKG_SOURCE)
include $(INCLUDE_DIR)/package.mk
define Package/cyassl-luci/Default
TITLE:=CyaSSL (LuCI embedded flavor)
URL:=http://www.yassl.com/
endef
define Package/libcyassl-luci
$(call Package/cyassl-luci/Default)
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=Internal Libraries
TITLE+= (library)
endef
define Package/libcyassl-luci/description
CyaSSL is an SSL library optimized for small footprint, both on disk and for memory use.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += --without-zlib
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/ctaocrypt
$(INSTALL_DIR) $(1)/usr/include/cyassl
$(CP) $(PKG_BUILD_DIR)/ctaocrypt/include/*.h $(1)/usr/include/ctaocrypt
$(CP) -R $(PKG_BUILD_DIR)/include/* $(1)/usr/include/cyassl/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/src/.libs/libcyassl.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/src/libcyassl.la $(1)/usr/lib/
endef
define Package/libcyassl-luci/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/src/.libs/libcyassl.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libcyassl-luci))

View file

@ -297,7 +297,7 @@ define Package/luci-nixio/config
config PACKAGE_luci-nixio_cyassl config PACKAGE_luci-nixio_cyassl
bool "CyaSSL" bool "CyaSSL"
select PACKAGE_libcyassl-luci select PACKAGE_libcyassl
config PACKAGE_luci-nixio_openssl config PACKAGE_luci-nixio_openssl
bool "OpenSSL" bool "OpenSSL"