Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #
  2. # Copyright (C) 2008-2012 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.1
  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:=cee0e2ae7d4b8bf25ae234d9536052b8
  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
  26. endef
  27. define Package/lldpd/description
  28. LLDP (Link Layer Discovery Protocol) is an industry standard protocol designed
  29. to supplant proprietary Link-Layer protocols such as
  30. Extreme's EDP (Extreme Discovery Protocol) and
  31. CDP (Cisco Discovery Protocol).
  32. The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver
  33. Link-Layer notifications to adjacent network devices.
  34. endef
  35. define Package/lldpd/install
  36. $(INSTALL_DIR) $(1)/etc/init.d
  37. $(INSTALL_DIR) $(1)/etc/config
  38. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin
  39. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lldp{ctl,d} $(1)/usr/sbin/
  40. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblldpctl.so* $(1)/usr/lib/
  41. $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
  42. $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd
  43. endef
  44. define Package/lldpd/conffiles
  45. /etc/config/lldpd
  46. endef
  47. CONFIGURE_ARGS += \
  48. --with-privsep-user=lldp \
  49. --with-privsep-group=lldp \
  50. --with-privsep-chroot=/var/run/lldp
  51. $(eval $(call BuildPackage,lldpd))