spksrc icon indicating copy to clipboard operation
spksrc copied to clipboard

Add lldpd spk package

Open ixs opened this issue 4 years ago • 3 comments

Add a lldpd package that runs the lldp daemon from http://lldpd.github.io allowing the synology device to be discovered on the network.

Checklist

  • [x] Build rule all-supported completed successfully
  • [x] Package upgrade completed successfully
  • [x] New installation of package completed successfully

ixs avatar Apr 14 '21 00:04 ixs

@ixs are you still using lldpd for Synology?

I applied an update and some adjustments. For DSM < 7 it works out of the box.

For DSM 7 it needs manual adjustment of the previlege file to allow the package execution as root. (will add a related wizard page with instructions for DSM 7 later).

hgy59 avatar Nov 25 '24 20:11 hgy59

@hgy59 I have been using it with < 7 but when after the upgrade, I stumbled over the problem you described and did not get around to fixing things yet. Your change otherwise looks pretty good.

What is needed for the privilege file?

Is - libcap: Arch 88f6281 is not a supported architecture a known problem?

ixs avatar Nov 25 '24 21:11 ixs

What is needed for the privilege file?

After installation (and after repair or upgrade) the privilege file must be modified to replace the user definition "package" by "root".

To do so call sudo sed -i 's/package/root/g' /var/packages/lldpd/conf/privilege and finally start the package with sudo synopkg start lldpd.

But this needs further validation. For lldpd to work under DSM 7, I manually started the daemon once like this: /var/packages/lldpd/target/bin/lldpd -d Then (when no error was logged) terminated with Ctl+C and started with synopkg.

So there are some pending tasks:

  • [ ] add wizard page for DSM 7 with instructions to run the package as root
  • [ ] evaluate whether the initial manual start is required or how it can be fixed otherwise
  • [ ] didn't find a solution to get logs from lldpd

hgy59 avatar Nov 25 '24 21:11 hgy59