haiwen / seafile-client

Seafile desktop client.
http://seafile.com
Apache License 2.0
471 stars 279 forks source link

how to build deb using the latest source #565

Closed hnuzhoulin closed 5 years ago

hnuzhoulin commented 9 years ago

Hello,I noticed that the source version is 4.2.0 now.

But the ubuntu client version is just 4.1.6

so I want to build deb package from source...

But I can not find any documents.

Thanks for such a wonderful software.

allo- commented 9 years ago

Have a look here: https://github.com/haiwen/seafile/tree/master/scripts/build

AFAIK there is no proper support to build it just with dpkg-buildpackage in some way you can put it into an repo easily.

shanto commented 9 years ago

Here's an attempt to package Seafile (server suite) for ReadyNAS (Debian Wheezy) systems. ReadyNAS requires all files to be under /apps/. But you can probably make it work for you by:

However, note that although I got it barely working for ReadyNAS, it is not thoroughly tested, and probably a lot more patches are needed than existing to address/undo Seafile's assumption on a complex and fixed directory layout.

To build this for your architecture, change directory to your git clone, and do:

mk-build-deps -i
dpkg -i <generated-package> && apt-get -f install
dpkg-buildpackage -b

Hope this helps.

allo- commented 9 years ago

with the different scripts to install to a custom prefix a real debian package with everything in one might be possible with the usual build process.

The debian project itself says the packages and build-process are too much linked together and they would like to see an option to package libsearpc, ccnet, seafile and seafile-client in seperate independent packages.

shoeper commented 5 years ago

https://packages.debian.org/search?keywords=seafile

allo- commented 5 years ago

By the way: The Ubuntu PPA does not contain a version for Ubuntu "cosmic", yet. Is this PPA updated by the seafile project itself?