Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # Copyright (C) 2008-2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=lldpd
  9. PKG_VERSION:=0.7.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://media.luffy.cx/files/lldpd
  13. PKG_MD5SUM:=9031734c69940dd79a0a175123275f83
  14. PKG_MAINTAINER:=Jo-Philipp Wich <[email protected]>
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. TARGET_CFLAGS+=--std=c99
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/lldpd
  20. SECTION:=net
  21. CATEGORY:=Network
  22. SUBMENU:=Routing and Redirection
  23. TITLE:=Link Layer Discovery Protocol daemon
  24. URL:=https://github.com/vincentbernat/lldpd/wiki
  25. DEPENDS:=+libevent2 +USE_EGLIBC:libbsd
  26. USERID:=lldp:lldp
  27. endef
  28. define Package/lldpd/description
  29. LLDP (Link Layer Discovery Protocol) is an industry standard protocol designed
  30. to supplant proprietary Link-Layer protocols such as
  31. Extreme's EDP (Extreme Discovery Protocol) and
  32. CDP (Cisco Discovery Protocol).
  33. The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver
  34. Link-Layer notifications to adjacent network devices.
  35. endef
  36. define Package/lldpd/install
  37. $(INSTALL_DIR) $(1)/etc/init.d
  38. $(INSTALL_DIR) $(1)/etc/config
  39. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin
  40. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lldp{cli,ctl,d} $(1)/usr/sbin/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblldpctl.so* $(1)/usr/lib/
  42. $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
  43. $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd
  44. endef
  45. define Package/lldpd/conffiles
  46. /etc/config/lldpd
  47. endef
  48. CONFIGURE_ARGS += \
  49. --with-privsep-user=lldp \
  50. --with-privsep-group=lldp \
  51. --with-privsep-chroot=/var/run/lldp \
  52. --with-readline=no
  53. $(eval $(call BuildPackage,lldpd))