openhab / openhab-syno-spk

openHAB Synology SPK Install Package
Eclipse Public License 2.0
161 stars 42 forks source link

Expaination how the SPK works #101

Closed thopiekar closed 6 years ago

thopiekar commented 6 years ago

Could you explain how the SPK works? I installed openHAB to the home directory of the openHAB2 user and found this: image Is it a kind of chroot we are using? If so, why?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/50179291-expaination-how-the-spk-works?utm_campaign=plugin&utm_content=tracker%2F19715072&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F19715072&utm_medium=issues&utm_source=github).
cniweb commented 6 years ago

@SchoppAx can you explain how the SPK works with the home directory?

thopiekar commented 6 years ago

Also I would really like to understand how SPK works in general. Something like a brief summary, so I check get an kickstart on this. Before I had updates working on my QPKG package, but my QNAP made a lot of trouble so I got my money back after a year and now I'm on the Synology trian. Maybe we can get something awesome working.. At least doing some cleanups, so the package does not mention openHAB2 anymore. I remember @kaikreuzer got itchy eyes, when he saw similar things in on the QPKG project 😄

SchoppAx commented 6 years ago

For the beginning you can look inside the DSM Developer Guide: https://developer.synology.com/download/developer-guide.pdf You don't need the build environment. So you can start on page 45.

The minimal source structure is like: YourPackageSource/ ├── INFO ├── LICENSE ├── PKG_DEPS ├── PACKAGE_ICON.PNG ├── PACKAGE_ICON_256.PNG ├── scripts/ | ├── postinst | ├── postuninst | ├── postupgrade | ├── preinst | ├── preuninst | ├── preupgrade | └── start-stop

There is a good picture of the building workflow on page 16. To Build a Package you only have to: cd /YourPackageSource tar -cvf YourPackageSource-0.001.spk *

All you need to know about the package structure are described in the Package Structure section, page 45 - 71. And about the UI wizard and files on page 72 - 84.

cniweb commented 6 years ago

You can join our german synology openhab skype chat room: https://join.skype.com/jUy7dOUy2z7P

cniweb commented 6 years ago

@thopiekar You have skype?

thopiekar commented 6 years ago

Yes, I have. Sorry that I was not responding for a long time. Very busy with my graduation and I'm far way from my NAS at the moment.

Will join the room soon.