[Info] How to Create a SPK for Synology DSM to Distribute yo

This forum is for devlopers to discuss questions about apps/plug-ins/extension modules/API specifically developed for using with Synology DiskStations.
Forum rules
We've moved! Head over to Synology Community (community.synology.com) to meet up with our team and other Synology enthusiasts!
User avatar
Posts: 10
Joined: Fri Jan 24, 2014 8:25 am
Location: Taipei, Taiwan

[Info] How to Create a SPK for Synology DSM to Distribute yo

Unread post by amigoccs » Sat May 17, 2014 8:17 am

Dear all,

I summarize my experience packaging ZurmoCRM for Synology DSM 5.0. It shall save your time if you want to build a LAMP package for DSM.

You might also be interested in the following two post related to DSM environment.

1. phpinfo() Reports on NAS

2. Synology DSM Configuration and Executable Files

Compared to Asustor APK, Synology provides Wizard to communicate with user during SPK installation. But the lack of complete information, example, and Asustor-like python script, you have to pack with tar and several trial-and-error. The 3rd Party Developer Guide.pdf from Synology just cover some of the keys and tags. Even worse, some of them are wrong or incompatible with DSM 5.0. Totally waste of time.

Here is a quick guide.

1. Download The 3rd Party Developer Guide.pdf and SPK file which is similar to your project. The later will help you to learn from others.

2. Create package.tgz which includes your LAMP application and necessary configuration and icon files to integrate with DSM.

3. Create a project folder contains package.tgz, INFO, icons, conf folder, and script folder. This is the most complicated part and is different from the PDF guide. For example, conf folder is described as optional in document but you will get error message if DSM cannot find it during installation.

If you need Wizard, please add WIZARD_UIFILE folder and related configuration files.

4. Compress with tar and upload to test if it works.

Detail explain in How to Create a SPK for Synology DSM to Distribute your LAMP

Wish it helps!

Best regards,

I am currently self-employee providing CRM Consulting service and developing a Model Thinking Apps with Zen.

My recently project is to port ZurmoCRM onto Synology DSM platform.


I'm New!
I'm New!
Posts: 6
Joined: Wed Nov 01, 2017 9:22 am

Re: [Info] How to Create a SPK for Synology DSM to Distribute yo

Unread post by HansM2013 » Wed Jan 10, 2018 9:19 pm

Hi Amigo,

it seems like you are more experienced with these Synology packages than me. Could you take a look on the issue here: https://www.phpbb.com/community/viewtop ... p=14905876 and my github repository if you have time: https://github.com/SeppPenner/PhpBBFixMariaDB5Issue

Thanks in advance :)


Return to “Developer Discussion Room”