Skip to content

haiwen/seafile-rpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seafile server package for Raspberry Pi. Maintained by seafile community.

Download

  • The latest stable rpi version is here.

Build

E.g. to compile Seafile server v9.0.9:

$ wget https://raw.githubusercontent.com/haiwen/seafile-rpi/master/build.sh
$ chmod u+x build.sh
$ sudo ./build.sh -DTA -v 9.0.9 -h https://github.com/haiwen/seafile-rpi/blob/feat/master/requirements/seahub_requirements_v9.0.9.txt -d https://github.com/haiwen/seafile-rpi/blob/feat/master/requirements/seafdav_requirements_v9.0.9.txt

Calling ./build.sh without arguments will return usage information and a list of all available arguments:

seafile@rpi-focal:~$ sudo ./build.sh

Usage:
  build.sh [OPTIONS]

  OPTIONS:
    -D          Install build dependencies
    -T          Install thirdparty requirements

    -1          Build/update libevhtp
    -2          Build/update libsearpc
    -3          Build/update seafile (c_fileserver)
    -4          Build/update seafile (go_fileserver)
    -5          Build/update seahub
    -6          Build/update seafobj
    -7          Build/update seafdav
    -8          Build/update Seafile server

    -A          All options -1 to -8 in one go

    -v <vers>   Set seafile server version to build
                default: 9.0.9
    -r <vers>   Set libsearpc version
                default: 3.3-latest
    -f <vers>   Set fixed libsearpc version
                default: 3.1.0
    -h <vers>   Set python requirement file for seahub
                default: https://raw.githubusercontent.com/haiwen/seahub/v9.0.9-server/requirements.txt
    -d <vers>   Set python requirement file for seafdav
                default: https://raw.githubusercontent.com/haiwen/seafdav/v9.0.9-server/requirements.txt

    use --version for version info of this script.

Schema of created directory structure after execution of ./build.sh:

seafile@rpi-focal:~$ tree . -L 3
.
├── build.sh
├── build-server.py.patch
├── built-seafile-server-pkgs
│   └── seafile-server-9.0.9-focal-armv7l.tar.gz
├── built-seafile-sources
│   └── R9.0.9
├── go
│   └── pkg
├── haiwen-build
│   ├── libevhtp
│   ├── libsearpc
│   ├── seafdav
│   ├── seafile-server
│   ├── seafobj
│   ├── seahub
│   └── seahub_thirdparty
└── opt
    └── local

Batch Build

If you want to build for multiple distributions and architectures via lxc containers you can run:

$ wget https://raw.githubusercontent.com/haiwen/seafile-rpi/master/build-batch.sh
$ chmod u+x build-batch.sh
$ sudo time bash ./build-batch.sh 9.0.9

Edit the script in order to build for your preferred distributions.

If want to execute the script in the background with logs written to build-batch.log call:

sudo su
nohup bash -c "sudo time bash ./build-batch.sh 9.0.9" >build-batch.log 2>build-batch.log < /dev/null &

Manual and Guides

Reporting Issues / GitHub Issues

If you have any problems or suggestions when using the seafile rpi server package, please report it on seafile server forum.

GitHub Issues support is dropped and will not be maintained anymore. If you need help, clarification or report some weird behaviour, please post it on the seafile server forum as well.

Contributors

See CONTRIBUTORS.