2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://ftp.dlitz.net
/pub
/dlitz
/crypto
/pycrypto
/
16 PKG_MD5SUM
:=88dad0a270d1fe83a39e0467a66a22bb
18 include $(INCLUDE_DIR
)/package.mk
19 $(call include_mk
, python-package.mk
)
21 define Package
/python-crypto
26 URL
:=http
://www.pycrypto.org
/
27 DEPENDS
:=+python
+libgmp
30 define Package
/python-crypto
/description
31 A collection of both secure hash functions
(such
as MD5 and SHA
),
32 and various encryption algorithms
(AES
, DES
, IDEA
, RSA
, ElGamal
, etc.
).
36 $(call Build
/Compile
/PyMod
,,install --prefix=/usr
--root
=$(PKG_INSTALL_DIR
))
39 define Package
/python-crypto
/install
40 $(INSTALL_DIR
) $(1)$(PYTHON_PKG_DIR
)/
42 $(PKG_INSTALL_DIR
)$(PYTHON_PKG_DIR
)/* \
43 $(1)$(PYTHON_PKG_DIR
)/
46 $(eval
$(call BuildPackage
,python-crypto
))