Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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.6.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:=d2f9ae67e0bcce0206a3a501a81d0738
  14. PKG_MAINTAINER:=Jo-Philipp Wich <[email protected]>
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/lldpd
  19. SECTION:=net
  20. CATEGORY:=Network
  21. SUBMENU:=Routing and Redirection
  22. TITLE:=Link Layer Discovery Protocol daemon
  23. URL:=https://github.com/vincentbernat/lldpd/wiki
  24. DEPENDS:=+libevent2
  25. endef
  26. define Package/lldpd/description
  27. LLDP (Link Layer Discovery Protocol) is an industry standard protocol designed
  28. to supplant proprietary Link-Layer protocols such as
  29. Extreme's EDP (Extreme Discovery Protocol) and
  30. CDP (Cisco Discovery Protocol).
  31. The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver
  32. Link-Layer notifications to adjacent network devices.
  33. endef
  34. define Package/lldpd/install
  35. $(INSTALL_DIR) $(1)/etc/init.d
  36. $(INSTALL_DIR) $(1)/etc/config
  37. $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin
  38. $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lldp{ctl,d} $(1)/usr/sbin/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblldpctl.so* $(1)/usr/lib/
  40. $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
  41. $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd
  42. endef
  43. define Package/lldpd/conffiles
  44. /etc/config/lldpd
  45. endef
  46. CONFIGURE_ARGS += \
  47. --with-privsep-user=lldp \
  48. --with-privsep-group=lldp \
  49. --with-privsep-chroot=/var/run/lldp
  50. $(eval $(call BuildPackage,lldpd))