Thank you for your help and that hint. I tried to do this with the help of this Tutorial:
https://wiki.debian.org/BuildingTutorial
The step where i try to install the dependencies failed:
pi@rpi:~/src/debian/seafile-6.2.9 $ sudo apt-get build-dep seafile-cli
Paketlisten werden gelesen... Fertig
Als Quellpaket wird »seafile« statt »seafile-cli« gewählt.
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Einige Pakete konnten nicht installiert werden. Das kann bedeuten, dass
Sie eine unmögliche Situation angefordert haben oder, wenn Sie die
Unstable-Distribution verwenden, dass einige erforderliche Pakete noch
nicht erstellt wurden oder Incoming noch nicht verlassen haben.
Die folgenden Informationen helfen Ihnen vielleicht, die Situation zu lösen:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
builddeps:seafile : Hängt ab von: libsearpc-dev (>= 3.1.0) aber 3.0.8-1 soll installiert werden
E: Probleme können nicht korrigiert werden, Sie haben zurückgehaltene defekte Pakete.
For the non German people: It seems that the package requires libsearpc-dev in Version >= 3.1.0 - but only 3.0.8-1 seems to be available.
So i installed the latest version (3.0.8-1) via sudo apt install libsearpc-dev.
In the file ~/src/debian/seafile-6.2.9/debian/control i changed the dependencies of libsearpc-dev also to the latest available.(not sure if this step is really necessary)
After that i tried to build the package again with debuild -b -uc -us but i got some errors that there were still some dependencies missing. I installed them via sudo apt install . And after that - i was able to compile seafile-cli via debuild -b -uc -us. (that took a long time…)
…but it seemed to work:
pi@rpi:~/src/debian $ ls
libseafile0_6.2.9-1~bpo9+1_armhf.deb seafile_6.2.9-1~bpo9+1_armhf.build seafile_6.2.9.orig.tar.gz
libseafile0-dbgsym_6.2.9-1~bpo9+1_armhf.deb seafile_6.2.9-1~bpo9+1_armhf.buildinfo seafile-cli_6.2.9-1~bpo9+1_all.deb
libseafile-dev_6.2.9-1~bpo9+1_armhf.deb seafile_6.2.9-1~bpo9+1_armhf.changes seafile-daemon_6.2.9-1~bpo9+1_armhf.deb
python-seafile_6.2.9-1~bpo9+1_all.deb seafile_6.2.9-1~bpo9+1.debian.tar.xz seafile-daemon-dbgsym_6.2.9-1~bpo9+1_armhf.deb
seafile-6.2.9 seafile_6.2.9-1~bpo9+1.dsc
i tried to install seafile-cli but it didn’t work out directly:
pi@raspberrypilivingroom:~/src/debian $ sudo dpkg -i seafile-cli_6.2.9-1~bpo9+1_all.deb
Vormals nicht ausgewähltes Paket seafile-cli wird gewählt.
(Lese Datenbank ... 70490 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von seafile-cli_6.2.9-1~bpo9+1_all.deb ...
Entpacken von seafile-cli (6.2.9-1~bpo9+1) ...
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von seafile-cli:
seafile-cli hängt ab von seafile-daemon (>= 6.2.9-1~bpo9+1); aber:
Paket seafile-daemon ist nicht installiert.
seafile-cli hängt ab von python-seafile (>= 6.2.9-1~bpo9+1); aber:
Paket python-seafile ist nicht installiert.
dpkg: Fehler beim Bearbeiten des Paketes seafile-cli (--install):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Trigger für man-db (2.7.6.1-2) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
seafile-cli
But after i installed seafile-daemon and python-seafile via sudo dpkg -i it worked. at least it installed. On init i failed again:
pi@raspberrypilivingroom:~ $ seaf-cli init -d seaf-cli
Traceback (most recent call last):
File "/usr/bin/seaf-cli", line 99, in <module>
import seafile
File "/usr/lib/python2.7/dist-packages/seafile/__init__.py", line 2, in <module>
from rpcclient import SeafileRpcClient as RpcClient
File "/usr/lib/python2.7/dist-packages/seafile/rpcclient.py", line 1, in <module>
from pysearpc import searpc_func, SearpcError, NamedPipeClient
ImportError: cannot import name NamedPipeClient
Before that evening in never thought that i will one day try to compile and change debian source packages by myself - but with your help @schlarbm and the posted tutorial it was easier than thought - even there were some difficulties. So i am optimistic that also now someone can help me - i’d like to sync