runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
954 stars 134 forks source link

Support for Synology Router SRM #23

Open KibaNoOu opened 5 years ago

KibaNoOu commented 5 years ago

Hi Andreas, your work is really great! But it would be even more useful if you could somehow create a .spk for SRM as well.

Best regards, Keep up the good work!

runfalk commented 5 years ago

Hi Kiba's King,

Unfortunately I won't be able to do that since I don't own an SRM router. I don't even know how to build SPKs for them (https://github.com/SynologyOpenSource/pkgscripts-ng that I use only support DSM as far as I know).

If someone wants to do this and have questions I may be able to aid them. If someone wants help with this I am open for PRs.

fonix232 commented 4 years ago

@runfalk SRM is "just" another target for Synology packages. Specifically, three different targets, due to the different architecture of the SoCs in the three different routers (northstarplus would be the old RT1900ac, ipq806x is the RT2600ac, and dakota or ipq4019 is the MR2200ac).

Versions are also different, currently SRM is on 1.2.3 (toolkit is for 1.2.x).

Based on my quick read-through of the repo you linked, it should be relatively simple to add the SRM targets to EnvDeploy, though some small parts need to change (the URL won't match their current scheme). I've opened a ticket for that.

Otherwise, SRM targets are practically the same as DSM, so once the scripts are updated to support it, you should be able to do so as well. You'll need to change SynoBuildConf/depends though.

Or if you're feeling adventurous, you could try manually establishing the build environment, following the EnvDeploy script's steps:

fonix232 commented 4 years ago

Looks like someone already picked it up, albeit using spksrc (which to me looks like a much easier to use build system for SPKs): https://github.com/publicarray/spksrc (check wireguard branch).

runfalk commented 4 years ago

Nice research! Seems like the commits are quite old and probably would require some serious work to get going. I'd definitely use spksrc if I did this project from scratch, so if someone wants to do a PR for that knock yourself out.

Unfortunately I don't think Synology monitors issues in that repository so it'll probably never be fixed.