This article describes the process for crosss-compiling and packaging the UrBackup Server for Synology DSM 5.2 for armadaxp architecture. Probably the scripts work for other DSM versions and platforms but weren’t tested by me. The resulting spk file was tested on DiskStation DS414
Download the front-end scripts from here and extract them in a directory
toolkit. We will refer the directory
mkdir -p toolkit tar xf pkgscripts.tgz -C toolkit
Using EnvDeploy download and set up pre-build environment.
cd $TOOLKIT/pkgscripts ./EnvDeploy -v 5.2 -p "armadaxp"
After this the pre-build environment for architecture armadaxp and DSM 5.2 must exist in directory
- the source for packaging UrBackup for synology
- the UrBackup Server sources
- the Crypto++® Library
- the FUSE sources
and extract them into
mkdir -p $TOOLKIT/source/urbackup tar zxf UrBackupServer-syno-source.tar.gz -C $TOOLKIT/source/urbackup/ tar zxf urbackup-server-1.4.9.tar.gz -C $TOOLKIT/source/urbackup/ unzip cryptopp562.zip -d $TOOLKIT/source/urbackup/cryptopp-5.6.2/ tar zxf fuse-2.9.4.tar.gz -C $TOOLKIT/source/urbackup/
Compile and package the synology UrBackup server spk file
sudo pkgscripts/PkgCreate.py --no-sign -x0 -c urbackup
-c option, it will execute
SynoBuildConf/install and put the final package spk file to
PkgCreate.py --help to find help about other options like
The ones who trust me (be careful – the spk package is run with root privileges on your DSM) can download the packages for different platforms (older UrBackupServer versions can be found in Archive - UrBackup Server for Synology):
If someone wants to have a package compiled for other architecture please ask in comments bellow. But there is no guarantee that I will provide a package for other architecture – this depends on my free time.
More details about the process can be found in the official Synology DSM 3rd-Party Package Developer Guide.
Everything presented here was executed in a Lubuntu 15.04 virtual machine and package installed/tested on DS414.
- I will not be liable for any loss or damage; Use everything at your own risk.
- There is no guarantee that I will update the package for other future DSM or UrBackup versions.