diff --git a/requirements/alpine_requirements.txt b/requirements/alpine_requirements.txt deleted file mode 100644 index 52a6fb63b..000000000 --- a/requirements/alpine_requirements.txt +++ /dev/null @@ -1 +0,0 @@ -gcc make python3-dev python3 libffi-dev mariadb-dev libc-dev krb5-dev openldap-dev jpeg-dev linux-headers sshpass openssh-client build-base libressl libffi-dev libressl-dev libxslt-dev libxml2-dev xmlsec-dev xmlsec diff --git a/requirements/apk_pkg.sh b/requirements/apk_pkg.sh new file mode 100644 index 000000000..649435811 --- /dev/null +++ b/requirements/apk_pkg.sh @@ -0,0 +1,2 @@ +#!/bin/sh +apk add gcc make python3-dev python3 libffi-dev mariadb-dev libc-dev krb5-dev openldap-dev jpeg-dev linux-headers sshpass openssh-client build-base libressl libffi-dev libressl-dev libxslt-dev libxml2-dev xmlsec-dev xmlsec diff --git a/requirements/deb_pkg.sh b/requirements/deb_pkg.sh new file mode 100644 index 000000000..8a8586bcd --- /dev/null +++ b/requirements/deb_pkg.sh @@ -0,0 +1,5 @@ +#!/bin/bash +apt install \ + g++ make iputils-ping default-libmysqlclient-dev libpq-dev libffi-dev \ + libldap2-dev libsasl2-dev sshpass pkg-config libxml2-dev libxmlsec1-dev \ + libxmlsec1-openssl libaio-dev freetds-dev diff --git a/requirements/deb_requirements.txt b/requirements/deb_requirements.txt deleted file mode 100644 index 39b280ed7..000000000 --- a/requirements/deb_requirements.txt +++ /dev/null @@ -1 +0,0 @@ -g++ make iputils-ping default-libmysqlclient-dev libpq-dev libffi-dev libldap2-dev libsasl2-dev sshpass pkg-config libxml2-dev libxmlsec1-dev libxmlsec1-openssl libaio-dev freetds-dev diff --git a/requirements/lfs_requirements.sh b/requirements/mac_pkg.sh similarity index 56% rename from requirements/lfs_requirements.sh rename to requirements/mac_pkg.sh index f460164f4..d93350cbc 100644 --- a/requirements/lfs_requirements.sh +++ b/requirements/mac_pkg.sh @@ -1,9 +1,13 @@ #!/bin/bash -# BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" PROJECT_DIR=$(dirname "$BASE_DIR") +echo "1. 安装依赖" +brew install libtiff libjpeg webp little-cms2 openssl gettext git git-lfs mysql libxml2 libxmlsec1 pkg-config -echo "下载 IP 数据库" +echo "2. 下载 IP 数据库" ip_db_path="${PROJECT_DIR}/apps/common/utils/geoip/GeoLite2-City.mmdb" wget "https://download.jumpserver.org/files/GeoLite2-City.mmdb" -O "${ip_db_path}" + +echo "3. 安装依赖的插件" +git lfs install diff --git a/requirements/mac_requirements.sh b/requirements/mac_requirements.sh deleted file mode 100644 index 575e6d98c..000000000 --- a/requirements/mac_requirements.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -echo "安装依赖" -brew install libtiff libjpeg webp little-cms2 openssl gettext git git-lfs mysql libxml2 libxmlsec1 pkg-config - -echo "安装依赖的插件" -git lfs install diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 4648e413e..948774e7a 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -49,7 +49,7 @@ olefile==0.44 openapi-codec==1.3.2 paramiko==2.7.2 passlib==1.7.1 -Pillow==9.0.0 +Pillow==9.0.1 pyasn1==0.4.8 pycparser==2.19 pycryptodome==3.12.0 diff --git a/requirements/rpm_pkg.sh b/requirements/rpm_pkg.sh new file mode 100644 index 000000000..2836fac50 --- /dev/null +++ b/requirements/rpm_pkg.sh @@ -0,0 +1,2 @@ +#!/bin/bash +yum -y install gcc-c++ sshpass mariadb-devel openldap-devel libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel diff --git a/requirements/rpm_requirements.txt b/requirements/rpm_requirements.txt deleted file mode 100644 index 360f5e026..000000000 --- a/requirements/rpm_requirements.txt +++ /dev/null @@ -1 +0,0 @@ -gcc-c++ sshpass mariadb-devel openldap-devel libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel