2006-07-19 06:53:07 +00:00
|
|
|
#
|
2010-04-19 09:28:16 +00:00
|
|
|
# Copyright (C) 2006-2010 OpenWrt.org
|
2006-07-19 06:53:07 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=axtls
|
2010-04-19 09:28:16 +00:00
|
|
|
PKG_VERSION:=1.2.4
|
2009-05-20 16:55:01 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-07-19 06:53:07 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
|
2009-05-20 16:55:01 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/axtls
|
2010-04-19 09:28:16 +00:00
|
|
|
PKG_MD5SUM:=4b7a6dafbe45357f63813410dae676fd
|
2006-07-19 06:53:07 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libaxtls
|
2010-04-19 09:28:16 +00:00
|
|
|
SUBMENU:=SSL
|
2006-07-19 06:53:07 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2009-06-06 18:10:24 +00:00
|
|
|
SUBMENU:=SSL
|
2006-07-19 06:53:07 +00:00
|
|
|
TITLE:=Embedded client/server TLSv1 SSL library
|
2006-08-09 00:36:24 +00:00
|
|
|
URL:=http://sourceforge.net/projects/axtls
|
2006-07-19 06:53:07 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-08 15:50:39 +00:00
|
|
|
define Package/axhttpd
|
2010-04-19 09:28:16 +00:00
|
|
|
SUBMENU:=Web
|
2006-07-26 01:26:21 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2007-04-08 15:50:39 +00:00
|
|
|
TITLE:=A small embedded web server using the axTLS library
|
2006-07-19 06:53:07 +00:00
|
|
|
URL:=http://www.axtls.co.nr/
|
2010-04-19 09:28:16 +00:00
|
|
|
DEPENDS:=+libaxtls
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/axtlswrap
|
|
|
|
SUBMENU:=SSL
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
SUBMENU:=Web
|
|
|
|
TITLE:=A simple TLS/SSL wrapper using the axTLS library
|
|
|
|
URL:=http://sourceforge.net/projects/axtls
|
|
|
|
DEPENDS:=+libaxtls
|
2006-07-19 06:53:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) oldconfig
|
|
|
|
endef
|
|
|
|
|
2010-03-24 17:19:26 +00:00
|
|
|
TAR_CMD:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components 1 $(TAR_OPTIONS)
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2006-07-19 06:53:07 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
2006-08-04 03:28:27 +00:00
|
|
|
CC="$(TARGET_CC)" \
|
2007-04-08 15:50:39 +00:00
|
|
|
STRIP="/bin/true" \
|
|
|
|
OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS="" \
|
|
|
|
all
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
PREFIX="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-05-20 16:55:01 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/axTLS $(1)/usr/include/
|
2009-05-20 16:55:01 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.{a,so*} $(1)/usr/lib/
|
2007-04-08 15:50:39 +00:00
|
|
|
endef
|
|
|
|
|
2006-07-19 06:53:07 +00:00
|
|
|
define Package/libaxtls/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libaxtls.so.* $(1)/usr/lib/
|
2006-07-19 06:53:07 +00:00
|
|
|
endef
|
|
|
|
|
2007-04-08 15:50:39 +00:00
|
|
|
define Package/axhttpd/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
2010-04-19 09:28:16 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/axhttpd $(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/axtlswrap/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/_stage/axtlswrap $(1)/usr/sbin/
|
2006-07-19 06:53:07 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libaxtls))
|
2007-04-08 15:50:39 +00:00
|
|
|
$(eval $(call BuildPackage,axhttpd))
|
2010-04-19 09:28:16 +00:00
|
|
|
$(eval $(call BuildPackage,axtlswrap))
|