Editing Synology package files

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 93: Line 93:
Even before the firmware 722, it was possible to create a '3rdparty' option in the disk station manager. Using the package installer, this will become much easier to do.  
Even before the firmware 722, it was possible to create a '3rdparty' option in the disk station manager. Using the package installer, this will become much easier to do.  
It's quite simple:
It's quite simple:
# To install your application on the DSM Management Menu, create an application.cfg file and image directory as described in '3rd party apps integration guide'
# Create an application.cfg file and image directory as described in '3rd party apps integration guide'
# To install your application on the DSM Desktop, create a desktop.cfg file.
# place that file along with program files, images, cgi scripts and all in ''package.tgz''
# place that file along with program files, images, cgi scripts and all in ''package.tgz''
# Create a softlink (ln -s ) from /usr/syno/synoman/3rdparty/webman/$SYNOPKG_PKGNAME to  $SYNOPKG_PKGDEST in your ''postinst'' script and make sure link is removed in the ''postuninst''
# Create a softlink (ln -s ) from /usr/syno/synoman/3rdparty/webman/$SYNOPKG_PKGNAME to  $SYNOPKG_PKGDEST in your ''postinst'' script and make sure link is removed in the ''postuninst''
Line 100: Line 99:
# Create other files (scripts, INFO) and pack them (tar -cvf whatevername.spk *) into a .spk .
# Create other files (scripts, INFO) and pack them (tar -cvf whatevername.spk *) into a .spk .


That's it. By installing it, it will also create a 3rdparty directory. If you press 'reload' you will see the package can also be found in the navigation tree. Uninstallation removes all the files of the package, including the softlink.
Thats it. By installing it, it will also create a 3rdparty directory. If you press 'reload' you will see the package can also be found in the navigation tree. Uninstallation removes all the files of the package, including the softlink.


===Tips for creating packages===
===Tips for creating packages===
Please note that all contributions to wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wiki:Copyrights for details). Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)