2 # Copyright (C) 2008-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://media.luffy.cx/files/lldpd
16 PKG_MD5SUM:=9031734c69940dd79a0a175123275f83
18 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
22 PKG_LICENSE_FILES:=README.md
27 TARGET_CFLAGS+=--std=c99
29 include $(INCLUDE_DIR)/package.mk
34 SUBMENU:=Routing and Redirection
35 TITLE:=Link Layer Discovery Protocol daemon
36 URL:=https://github.com/vincentbernat/lldpd/wiki
37 DEPENDS:=+libevent2 +USE_EGLIBC:libbsd
38 USERID:=lldp=121:lldp=129
41 define Package/lldpd/description
42 LLDP (Link Layer Discovery Protocol) is an industry standard protocol designed
43 to supplant proprietary Link-Layer protocols such as
44 Extreme's EDP (Extreme Discovery Protocol) and
45 CDP (Cisco Discovery Protocol).
46 The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver
47 Link-Layer notifications to adjacent network devices.
50 define Package/lldpd/install
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_DIR) $(1)/etc/config
53 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin
54 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lldp{cli,ctl,d} $(1)/usr/sbin/
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblldpctl.so* $(1)/usr/lib/
56 $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
57 $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd
60 define Package/lldpd/conffiles
65 --with-privsep-user=lldp \
66 --with-privsep-group=lldp \
67 --with-privsep-chroot=/var/run/lldp \
70 $(eval $(call BuildPackage,lldpd))