port axtls to buildroot-ng
authorNicolas Thill <nico@openwrt.org>
Wed, 19 Jul 2006 06:53:07 +0000 (06:53 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 19 Jul 2006 06:53:07 +0000 (06:53 +0000)
SVN-Revision: 4164

libs/axtls/Makefile [new file with mode: 0644]
libs/axtls/files/config [new file with mode: 0644]
libs/axtls/patches/001-opt_flags.patch [new file with mode: 0644]
libs/axtls/patches/002-strip.patch [new file with mode: 0644]

diff --git a/libs/axtls/Makefile b/libs/axtls/Makefile
new file mode 100644 (file)
index 0000000..8a56704
--- /dev/null
@@ -0,0 +1,62 @@
+# 
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=axtls
+PKG_VERSION:=0.95
+PKG_RELEASE:=1
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/axTLS
+PKG_SOURCE:=axTLS-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://www.leroc.com.au/axTLS/
+PKG_MD5SUM:=cd887f379f303dd3ef691d8641307f0e
+PKG_CAT:=zcat
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libaxtls
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=Embedded client/server TLSv1 SSL library
+  DESCRIPTION:=Embedded client/server TLSv1 SSL library.
+  URL:=http://www.axtls.co.nr/
+endef
+
+define Package/awhttpd
+  SECTION:=libs
+  CATEGORY:=Libraries
+  DEPENDS:=libaxtls
+  TITLE:=Anti-Web webserver
+  DESCRIPTION:=Anti-Web webserver.
+  URL:=http://www.axtls.co.nr/
+endef
+
+define Build/Configure
+       $(CP) ./files/config $(PKG_BUILD_DIR)/config/.config
+       $(MAKE) -C $(PKG_BUILD_DIR) oldconfig
+endef
+
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               CC=$(TARGET_CC) \
+               OPT_CFLAGS="$(TARGET_CFLAGS)" OPT_LDFLAGS=""
+endef
+
+define Package/libaxtls/install
+       install -d -m0755 $(1)/usr/lib
+       install -m0755 $(PKG_BUILD_DIR)/libaxtls.so $(1)/usr/lib/
+endef
+
+define Package/awhttpd/install
+       install -d -m0755 $(1)/usr/sbin
+       install -m0755 $(PKG_BUILD_DIR)/awhttpd $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,libaxtls))
+$(eval $(call BuildPackage,awhttpd))
diff --git a/libs/axtls/files/config b/libs/axtls/files/config
new file mode 100644 (file)
index 0000000..ea7cf68
--- /dev/null
@@ -0,0 +1,98 @@
+#
+# Automatically generated make config: don't edit
+#
+HAVE_DOT_CONFIG=y
+CONFIG_PLATFORM_LINUX=y
+# CONFIG_PLATFORM_CYGWIN is not set
+# CONFIG_PLATFORM_SOLARIS is not set
+# CONFIG_PLATFORM_WIN32 is not set
+
+#
+# General Configuration
+#
+# CONFIG_DEBUG is not set
+# CONFIG_VISUAL_STUDIO_DOT_NET is not set
+CONFIG_VISUAL_STUDIO_DOT_NET_BASE=""
+# CONFIG_VISUAL_STUDIO_6_0 is not set
+CONFIG_VISUAL_STUDIO_6_0_BASE=""
+CONFIG_EXTRA_CFLAGS_OPTIONS=""
+CONFIG_EXTRA_LDFLAGS_OPTIONS=""
+
+#
+# SSL Library
+#
+# CONFIG_SSL_SERVER_ONLY is not set
+# CONFIG_SSL_CERT_VERIFICATION is not set
+# CONFIG_SSL_ENABLE_CLIENT is not set
+CONFIG_SSL_FULL_MODE=y
+# CONFIG_SSL_PROT_LOW is not set
+CONFIG_SSL_PROT_MEDIUM=y
+# CONFIG_SSL_PROT_HIGH is not set
+CONFIG_SSL_USE_DEFAULT_KEY=y
+CONFIG_SSL_HAS_PEM=y
+CONFIG_SSL_USE_PKCS12=y
+CONFIG_SSL_EXPIRY_TIME=24
+CONFIG_X509_MAX_CA_CERTS=4
+CONFIG_SSL_MAX_CERTS=2
+# CONFIG_WIN32_USE_CRYPTO_LIB is not set
+# CONFIG_PERFORMANCE_TESTING is not set
+# CONFIG_SSL_TEST is not set
+CONFIG_AWHTTPD=y
+
+#
+# Awhttpd Configuration
+#
+# CONFIG_HTTP_STATIC_BUILD is not set
+CONFIG_HTTP_HAS_SSL=y
+CONFIG_HTTP_HTTPS_PORT=443
+CONFIG_STANDARD_AWHTTPD=y
+CONFIG_HTTP_WEBROOT=""
+CONFIG_HTTP_PORT=0
+# CONFIG_HTTP_USE_TIMEOUT is not set
+CONFIG_HTTP_TIMEOUT=0
+CONFIG_HTTP_INITIAL_SLOTS=0
+CONFIG_HTTP_MAX_USERS=0
+# CONFIG_HTTP_HAS_CGI is not set
+CONFIG_HTTP_CGI_EXTENSION=""
+# CONFIG_HTTP_DIRECTORIES is not set
+# CONFIG_HTTP_PERM_CHECK is not set
+# CONFIG_HTTP_HAS_IPV6 is not set
+# CONFIG_HTTP_VERBOSE is not set
+# CONFIG_HTTP_IS_DAEMON is not set
+
+#
+# Language Bindings
+#
+# CONFIG_BINDINGS is not set
+# CONFIG_CSHARP_BINDINGS is not set
+# CONFIG_VBNET_BINDINGS is not set
+CONFIG_DOT_NET_FRAMEWORK_BASE=""
+# CONFIG_JAVA_BINDINGS is not set
+CONFIG_JAVA_HOME=""
+# CONFIG_PERL_BINDINGS is not set
+CONFIG_PERL_CORE=""
+CONFIG_PERL_LIB=""
+
+#
+# Samples
+#
+# CONFIG_SAMPLES is not set
+# CONFIG_C_SAMPLES is not set
+# CONFIG_CSHARP_SAMPLES is not set
+# CONFIG_VBNET_SAMPLES is not set
+# CONFIG_JAVA_SAMPLES is not set
+# CONFIG_PERL_SAMPLES is not set
+
+#
+# BigInt Options
+#
+# CONFIG_BIGINT_CLASSICAL is not set
+# CONFIG_BIGINT_MONTGOMERY is not set
+CONFIG_BIGINT_BARRETT=y
+CONFIG_BIGINT_CRT=y
+# CONFIG_BIGINT_KARATSUBA is not set
+MUL_KARATSUBA_THRESH=0
+SQU_KARATSUBA_THRESH=0
+CONFIG_BIGINT_SLIDING_WINDOW=y
+CONFIG_BIGINT_SQUARE=y
+# CONFIG_BIGINT_CHECK_ON is not set
diff --git a/libs/axtls/patches/001-opt_flags.patch b/libs/axtls/patches/001-opt_flags.patch
new file mode 100644 (file)
index 0000000..a27b3a4
--- /dev/null
@@ -0,0 +1,33 @@
+diff -ruN axTLS-0.95-old/config/makefile.conf axTLS-0.95-new/config/makefile.conf
+--- axTLS-0.95-old/config/makefile.conf        2006-02-28 02:50:28.000000000 +0100
++++ axTLS-0.95-new/config/makefile.conf        2006-05-18 22:24:02.000000000 +0200
+@@ -87,20 +87,23 @@
+ endif
+ ifdef CONFIG_DEBUG
+-CFLAGS += -g
++OPT_CFLAGS = -g
+ else
+-LDFLAGS += -s
++OPT_LDFLAGS = -s
+ ifdef CONFIG_PLATFORM_SOLARIS
+-CFLAGS += -O 
++OPT_CFLAGS = -O 
+ else
+-CFLAGS += -O3
++OPT_CFLAGS = -O3
+ endif
+ endif # CONFIG_DEBUG
+ endif   # WIN32
+-CFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
+-LDFLAGS+=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
++EXTRA_CFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_CFLAGS_OPTIONS)))
++EXTRA_LDFLAGS=$(subst ",, $(strip $(CONFIG_EXTRA_LDFLAGS_OPTIONS)))
++
++CFLAGS += $(OPT_CFLAGS) $(EXTRA_CFLAGS)
++LDFLAGS += $(OPT_LDFLAGS) $(EXTRA_LDFLAGS)
+ endif   # not 'clean'
diff --git a/libs/axtls/patches/002-strip.patch b/libs/axtls/patches/002-strip.patch
new file mode 100644 (file)
index 0000000..95570b6
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ruN axTLS-0.95-old/httpd/Makefile axTLS-0.95-new/httpd/Makefile
+--- axTLS-0.95-old/httpd/Makefile      2006-02-28 02:50:28.000000000 +0100
++++ axTLS-0.95-new/httpd/Makefile      2006-05-18 22:24:02.000000000 +0200
+@@ -87,7 +87,7 @@
+       $(LD) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
+ ifndef CONFIG_DEBUG
+ ifndef CONFIG_PLATFORM_SOLARIS
+-      strip --remove-section=.comment $(TARGET)
++      $(STRIP) --remove-section=.comment $(TARGET)
+ endif
+ endif
+ else    # Win32