Editing Synology package files
Jump to navigation
Jump to search
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: | ||
# | # Create an application.cfg file and image directory as described in '3rd party apps integration guide' | ||
# 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 . | ||
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=== |