mirror of
https://github.com/YunoHost-Apps/synapse_ynh.git
synced 2024-09-03 20:26:38 +02:00
Use prebuilt source for ARM
This commit is contained in:
commit
fa8a618ea0
3 changed files with 32 additions and 11 deletions
|
@ -14,7 +14,8 @@ If you don't have a dh.pem file in `/etc/yunohost/certs/YOUR DOMAIN/dh.pem` you
|
||||||
You could built it by this cmd : `sudo openssl dhparam -out /etc/yunohost/certs/YOUR DOMAIN/dh.pem 2048 > /dev/null`
|
You could built it by this cmd : `sudo openssl dhparam -out /etc/yunohost/certs/YOUR DOMAIN/dh.pem 2048 > /dev/null`
|
||||||
After that you can install it without problem.
|
After that you can install it without problem.
|
||||||
|
|
||||||
The install use the python virtualenvironement. Everything is built on the install and some package a compiled so it could take a long time if the processor is slow.
|
The package use a prebuild python virtualenvironnement. The binary are taken from this repos : https://github.com/Josue-T/synapse_python_build
|
||||||
|
The script to build the binary is also available.
|
||||||
|
|
||||||
### Package update package
|
### Package update package
|
||||||
|
|
||||||
|
|
12
conf/armv7.src
Normal file
12
conf/armv7.src
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
SOURCE_URL=https://github.com/Josue-T/synapse_python_build/releases/download/v0.24.1/matrix-synapse_0.24.1-bin1_armv7l.tar.gz
|
||||||
|
SOURCE_SUM=20b6b3b195210aa778a017796a310b4327d8ecbd1b423214e83603aae319957c
|
||||||
|
# (Optional) Program to check the integrity (sha256sum, md5sum...)
|
||||||
|
# default: sha256
|
||||||
|
SOURCE_SUM_PRG=sha256sum
|
||||||
|
# (Optional) Archive format
|
||||||
|
# default: tar.gz
|
||||||
|
SOURCE_FORMAT=tar.gz
|
||||||
|
# (Optional) Put false if sources are directly in the archive root
|
||||||
|
# default: true
|
||||||
|
SOURCE_IN_SUBDIR=true
|
|
@ -8,7 +8,7 @@ synapse_db_user="matrix_synapse"
|
||||||
synapse_version="0.24.1"
|
synapse_version="0.24.1"
|
||||||
|
|
||||||
install_dependances() {
|
install_dependances() {
|
||||||
ynh_install_app_dependencies coturn build-essential python2.7-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libjpeg-dev libpq-dev postgresql
|
ynh_install_app_dependencies coturn build-essential python2.7-dev libffi-dev python-pip python-setuptools sqlite3 libssl-dev python-virtualenv libxml2-dev libxslt1-dev python-lxml libjpeg-dev libpq-dev postgresql
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install --upgrade virtualenv
|
pip install --upgrade virtualenv
|
||||||
}
|
}
|
||||||
|
@ -25,15 +25,23 @@ setup_dir() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_source() {
|
install_source() {
|
||||||
# Install synapse in virtualenv
|
if [ -n "$(uname -m | grep arm)" ]
|
||||||
PS1=""
|
then
|
||||||
cp ../conf/virtualenv_activate $final_path/bin/activate
|
ynh_setup_source $final_path/ "armv7"
|
||||||
source $final_path/bin/activate
|
else
|
||||||
pip install --upgrade pip
|
# Install virtualenv if it don't exist
|
||||||
pip install --upgrade setuptools
|
test -e $final_path/bin || virtualenv -p python2.7 $final_path
|
||||||
pip install --upgrade cffi ndg-httpsclient psycopg2 lxml
|
|
||||||
pip install --upgrade https://github.com/matrix-org/synapse/tarball/master
|
# Install synapse in virtualenv
|
||||||
deactivate
|
PS1=""
|
||||||
|
cp ../conf/virtualenv_activate $final_path/bin/activate
|
||||||
|
source $final_path/bin/activate
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install --upgrade setuptools
|
||||||
|
pip install --upgrade cffi ndg-httpsclient psycopg2 lxml
|
||||||
|
pip install --upgrade https://github.com/matrix-org/synapse/tarball/master
|
||||||
|
deactivate
|
||||||
|
fi
|
||||||
|
|
||||||
# Set permission
|
# Set permission
|
||||||
chown $synapse_user:root -R $final_path
|
chown $synapse_user:root -R $final_path
|
||||||
|
|
Loading…
Add table
Reference in a new issue