Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lldpd spk package #4554

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions cross/lldpd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
PKG_NAME = lldpd
PKG_VERS = 1.0.18
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/lldpd/lldpd/releases/download/$(PKG_VERS)
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)

DEPENDS = cross/libcap cross/libxml2 cross/readline

# cross/libcap
UNSUPPORTED_ARCHS = $(OLD_PPC_ARCHS) $(ARMv5_ARCHS)

HOMEPAGE = https://lldpd.github.io
COMMENT = lldpd is a 802.1AB implementation (LLDP) to help you locate neighbors of all your equipments.
LICENSE = ISC

GNU_CONFIGURE = 1
CONFIGURE_ARGS = --disable-static
CONFIGURE_ARGS += --disable-doxygen-doc --disable-doxygen-html --disable-doxygen-pdf
CONFIGURE_ARGS += --with-readline
# build service and cli tools into bin instead of sbin folder
CONFIGURE_ARGS += --sbindir=$(INSTALL_PREFIX)/bin
# Enable Privilege separation and specify user:group as sc-lldpd:synocommunity
CONFIGURE_ARGS += --enable-privsep --with-privsep-user=sc-lldpd --with-privsep-group=synocommunity
CONFIGURE_ARGS += --runstatedir=$(INSTALL_PREFIX_VAR)

ADDITIONAL_CFLAGS = -O2

include ../../mk/spksrc.cross-cc.mk
6 changes: 6 additions & 0 deletions cross/lldpd/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
bin:bin/lldpcli
lnk:bin/lldpctl
bin:bin/lldpd
lnk:lib/liblldpctl.so
lnk:lib/liblldpctl.so.4
lib:lib/liblldpctl.so.4.9.1
3 changes: 3 additions & 0 deletions cross/lldpd/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
lldpd-1.0.18.tar.gz SHA1 49d21ad64809d146930977d7327d3c4ada4d0549
lldpd-1.0.18.tar.gz SHA256 38cd319aa02ab61d9a2ad130e22f906795ccca9ac73a0a0d9dac19ca99a8a870
lldpd-1.0.18.tar.gz MD5 53e8db980c97197547fd3fe9ed2e6d50
25 changes: 25 additions & 0 deletions spk/lldpd/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
SPK_NAME = lldpd
SPK_VERS = 1.0.18
SPK_REV = 1
SPK_ICON = src/lldpd.png

UNSUPPORTED_ARCHS = $(OLD_PPC_ARCHS) $(ARMv5_ARCHS)

DEPENDS = cross/lldpd

MAINTAINER = SynoCommunity
DESCRIPTION = LLDP \(Link Layer Discovery Protocol\) is an industry standard protocol designed to supplant proprietary Link-Layer protocols such as Extreme's EDP \(Extreme Discovery Protocol\) and CDP \(Cisco Discovery Protocol\). The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver Link-Layer notifications to adjacent network devices.
DISPLAY_NAME = lldpd
CHANGELOG = "Initial package release."

HOMEPAGE = https://lldpd.github.io
LICENSE = ISC

SERVICE_USER = auto
STARTABLE = yes

SERVICE_SETUP = src/service-setup.sh

SPK_COMMANDS = bin/lldpcli bin/lldpctl

include ../../mk/spksrc.spk.mk
Binary file added spk/lldpd/src/lldpd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions spk/lldpd/src/service-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

# required for DSM < 7 only:
GROUP=synocommunity

SERVICE_COMMAND="${SYNOPKG_PKGDEST}/bin/lldpd -p ${PID_FILE}"