2008-05-08 19:28:32 +00:00
|
|
|
#
|
2009-04-19 16:14:42 +00:00
|
|
|
# Copyright (C) 2005-2009 OpenWrt.org
|
2006-07-23 12:11:27 +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:=gnutls
|
2009-04-19 16:14:42 +00:00
|
|
|
PKG_VERSION:=2.6.4
|
|
|
|
PKG_RELEASE:=1
|
2006-07-23 12:11:27 +00:00
|
|
|
|
2007-09-07 20:27:27 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2009-03-09 16:03:10 +00:00
|
|
|
PKG_SOURCE_URL:=ftp://ftp.gnu.org/pub/gnu/gnutls/ \
|
2009-04-19 16:14:42 +00:00
|
|
|
ftp://ftp.mirrors.wiretapped.net/pub/security/network-security/gnutls/
|
|
|
|
PKG_MD5SUM:=747111ab0d86e7b06a4bb120ba456ad8
|
2006-07-23 12:11:27 +00:00
|
|
|
|
2007-12-27 02:12:04 +00:00
|
|
|
PKG_FIXUP = libtool
|
|
|
|
|
2006-07-23 12:11:27 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/gnutls/Default
|
2006-07-23 12:11:27 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2006-10-28 22:43:08 +00:00
|
|
|
TITLE:=GNU TLS
|
2006-07-23 12:11:27 +00:00
|
|
|
URL:=http://www.gnu.org/software/gnutls/
|
|
|
|
endef
|
|
|
|
|
2007-09-07 20:27:27 +00:00
|
|
|
define Package/gnutls/Default/description
|
|
|
|
GnuTLS is a project that aims to develop a library which provides a
|
|
|
|
secure layer, over a reliable transport layer. Currently the GnuTLS
|
2009-04-19 16:14:42 +00:00
|
|
|
library implements the SSL 3.0, TLS 1.0, and TLS 1.1 protocols.
|
2007-09-07 20:27:27 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-09 14:07:57 +00:00
|
|
|
|
|
|
|
define Package/certtool
|
|
|
|
$(call Package/gnutls/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
TITLE+= (certool utility)
|
|
|
|
DEPENDS+= +libgnutls +libncurses +libreadline
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/certtool/description
|
|
|
|
$(call Package/gnutls/Default/description)
|
|
|
|
This package contains the GnuTLS certtool utility.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2006-07-26 01:26:21 +00:00
|
|
|
define Package/gnutls-utils
|
2007-09-09 14:07:57 +00:00
|
|
|
$(call Package/gnutls/Default)
|
2006-07-26 01:26:21 +00:00
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2006-10-28 22:43:08 +00:00
|
|
|
TITLE+= (utilities)
|
2007-09-09 14:07:57 +00:00
|
|
|
DEPENDS+= +libgnutls +libgnutls-extra
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/gnutls-utils/description
|
|
|
|
$(call Package/gnutls/Default/description)
|
2008-07-27 12:34:42 +00:00
|
|
|
This package contains the GnuTLS gnutls-cli, gnutls-serv, psktool,
|
|
|
|
and srptool utilities.
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-09 14:07:57 +00:00
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libgnutls
|
2007-09-09 14:07:57 +00:00
|
|
|
$(call Package/gnutls/Default)
|
|
|
|
TITLE+= (library)
|
2008-07-29 23:31:37 +00:00
|
|
|
DEPENDS+= +zlib +libgcrypt +libgpg-error
|
2007-09-09 14:07:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgnutls/description
|
|
|
|
$(call Package/gnutls/Default/description)
|
|
|
|
This package contains the GnuTLS shared library, needed by other programs.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/libgnutls-extra
|
|
|
|
$(call Package/gnutls/Default)
|
|
|
|
TITLE+= (extra library)
|
|
|
|
DEPENDS+= +libgnutls
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgnutls-extra/description
|
|
|
|
$(call Package/gnutls/Default/description)
|
|
|
|
This package contains the GnuTLS extra shared library.
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-09 14:07:57 +00:00
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libgnutls-openssl
|
2007-09-09 14:07:57 +00:00
|
|
|
$(call Package/gnutls/Default)
|
|
|
|
TITLE+= (OpenSSL compat library)
|
|
|
|
DEPENDS+= +libgnutls
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libgnutls-openssl/description
|
|
|
|
$(call Package/gnutls/Default/description)
|
|
|
|
This package contains the GnuTLS OpenSSL compatibility layer shared library.
|
2006-07-23 12:11:27 +00:00
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-09-09 14:07:57 +00:00
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static \
|
|
|
|
--disable-openpgp-authentication \
|
2008-07-29 23:31:37 +00:00
|
|
|
--with-included-libcfg \
|
|
|
|
--with-included-libtasn1 \
|
2007-09-09 14:07:57 +00:00
|
|
|
--with-libgcrypt-prefix="$(STAGING_DIR)/usr" \
|
|
|
|
--with-libreadline-prefix="$(STAGING_DIR)/usr" \
|
2008-05-08 19:28:32 +00:00
|
|
|
--with-libz-prefix="$(STAGING_DIR)/usr" \
|
2007-09-09 14:07:57 +00:00
|
|
|
|
|
|
|
# XXX: AM_CFLAGS duplicates with CFLAGS
|
|
|
|
MAKE_ARGS:= \
|
|
|
|
AM_CFLAGS="" \
|
|
|
|
|
2006-07-23 12:11:27 +00:00
|
|
|
define Build/Configure
|
2007-09-09 14:07:57 +00:00
|
|
|
$(SED) 's,-I$$$${includedir},,g' $(PKG_BUILD_DIR)/configure
|
|
|
|
$(SED) 's,-L$$$${libdir},,g' $(PKG_BUILD_DIR)/configure
|
|
|
|
$(call Build/Configure/Default)
|
2006-07-23 12:11:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
2007-12-27 02:12:04 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) $(MAKE_ARGS) DESTDIR="$(PKG_INSTALL_DIR)" all install
|
2006-07-23 12:11:27 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-12-27 02:12:26 +00:00
|
|
|
mkdir -p $(1)/usr/bin $(2)/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
|
2007-12-23 21:36:03 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libgnutls{,-extra}-config $(2)/bin/
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/gnutls $(1)/usr/include/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls{,-extra,-openssl}.{a,so*} $(1)/usr/lib/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/gnutls{,-extra}.pc $(1)/usr/lib/pkgconfig/
|
2006-07-23 12:11:27 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-09 14:07:57 +00:00
|
|
|
define Package/certtool/conffiles
|
|
|
|
/etc/gnutls/certtool.cfg
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/certtool/install
|
|
|
|
$(INSTALL_DIR) $(1)/etc/gnutls
|
|
|
|
$(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/certtool.cfg $(1)/etc/gnutls/
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/certtool $(1)/usr/bin/
|
2007-09-09 14:07:57 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/gnutls-utils/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gnutls-{cli,serv} $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/psktool $(1)/usr/bin/
|
2008-07-27 12:34:42 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/srptool $(1)/usr/bin/
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-09 14:07:57 +00:00
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libgnutls/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2007-09-09 14:07:57 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
|
|
|
define Package/libgnutls-extra/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls-extra.so.* $(1)/usr/lib/
|
2006-10-28 22:43:08 +00:00
|
|
|
endef
|
|
|
|
|
2007-09-09 14:07:57 +00:00
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libgnutls-openssl/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libgnutls-openssl.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2007-09-09 14:07:57 +00:00
|
|
|
|
|
|
|
$(eval $(call BuildPackage,certtool))
|
2006-10-28 22:43:08 +00:00
|
|
|
$(eval $(call BuildPackage,gnutls-utils))
|
2006-07-23 12:11:27 +00:00
|
|
|
$(eval $(call BuildPackage,libgnutls))
|
2007-09-09 14:07:57 +00:00
|
|
|
$(eval $(call BuildPackage,libgnutls-extra))
|
2006-07-23 12:11:27 +00:00
|
|
|
$(eval $(call BuildPackage,libgnutls-openssl))
|