Add python-gnutls package. This package is a prerequisite for mediaproxy 
package. This package provides a high level object oriented wrapper around 
libgnutls.

Signed-off-by: Jiri Slachta <slac...@cesnet.cz>
Index: lang/python-gnutls/Makefile
===================================================================
--- lang/python-gnutls/Makefile (revision 0)
+++ lang/python-gnutls/Makefile (revision 0)
@@ -0,0 +1,50 @@
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=python-gnutls
+PKG_VERSION:=1.2.4
+PKG_RELEASE:=1
+PKG_MD5SUM:=e3536c421291a791869d875a41dcb26a
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=http://pypi.python.org/packages/source/p/python-gnutls/
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+$(call include_mk, python-package.mk)
+
+define Package/python-gnutls
+  SECTION:=lang-python
+  CATEGORY:=Languages
+  SUBMENU:=Python
+  TITLE:=python-gnutls
+  URL:=http://ag-projects.com/
+  DEPENDS:=+python +libgnutls +libgnutls-extra
+endef
+
+define Package/python-gnutls/description
+This package provides a high level object oriented wrapper around libgnutls, 
+as well as low level bindings to the GNUTLS types and functions via ctypes. 
+The high level wrapper hides the details of accessing the GNUTLS library via 
+ctypes behind a set of classes that encapsulate GNUTLS sessions, certificates 
+and credentials and expose them to python applications using a simple API. 
+endef
+
+define Build/Compile
+       $(call Build/Compile/PyMod,,install --prefix=/usr 
--root=$(PKG_INSTALL_DIR))
+endef
+
+define Package/python-gnutls/install
+       $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)/
+       $(CP) \
+               $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
+               $(1)$(PYTHON_PKG_DIR)/
+endef
+
+$(eval $(call BuildPackage,python-gnutls))
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to