2 # Copyright (C) 2009-2015, 2017-2018 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
10 PKG_NAME
:=python-crypto
15 PKG_HASH
:=f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c
17 PKG_LICENSE
:=Public Domain
18 PKG_LICENSE_FILES
:=COPYRIGHT
19 PKG_CPE_ID
:=cpe
:/a
:dlitz
:pycrypto
20 PKG_MAINTAINER
:=Jeffery To
<jeffery.to@gmail.com
>
23 include $(INCLUDE_DIR
)/package.mk
24 include ..
/python-package.mk
25 include ..
/python3-package.mk
27 PYTHON_PKG_SETUP_ARGS
:=
28 PYTHON_PKG_SETUP_VARS
:= \
29 CONFIG_BIG_ENDIAN
="$(CONFIG_BIG_ENDIAN)"
31 PYTHON3_PKG_SETUP_ARGS
:=
32 PYTHON3_PKG_SETUP_VARS
:= \
33 CONFIG_BIG_ENDIAN
="$(CONFIG_BIG_ENDIAN)"
35 define Package
/python-crypto
/Default
39 TITLE
:=Python Cryptography Toolkit
40 URL
:=https
://www.dlitz.net
/software
/pycrypto
/
44 define Package
/python-crypto
45 $(call Package
/python-crypto
/Default
)
46 DEPENDS
+=+PACKAGE_python-crypto
:python
50 define Package
/python3-crypto
51 $(call Package
/python-crypto
/Default
)
52 DEPENDS
+=+PACKAGE_python3-crypto
:python3
56 define Package
/python-crypto
/description
57 A collection of both secure hash functions
(such
as MD5 and SHA
),
58 and various encryption algorithms
(AES
, DES
, IDEA
, RSA
, ElGamal
, etc.
).
61 define Package
/python3-crypto
/description
62 $(call Package
/python-crypto
/description
)
67 $(eval
$(call PyPackage
,python-crypto
))
68 $(eval
$(call BuildPackage
,python-crypto
))
69 $(eval
$(call BuildPackage
,python-crypto-src
))
71 $(eval
$(call Py3Package
,python3-crypto
))
72 $(eval
$(call BuildPackage
,python3-crypto
))
73 $(eval
$(call BuildPackage
,python3-crypto-src
))