packages/fanctrolled: use new service functions
[openwrt/svn-archive/archive.git] / net / lldpd / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lldpd
11 PKG_VERSION:=0.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.luffy.cx/lldpd/
16 PKG_MD5SUM:=317e1144ec7d2781ff123ec16845a2fc
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/lldpd
21 SECTION:=net
22 CATEGORY:=Network
23 SUBMENU:=Routing and Redirection
24 TITLE:=Link Layer Discovery Protocol damon
25 DEPENDS:=@!LINUX_2_4
26 URL:=https://trac.luffy.cx/lldpd/
27 endef
28
29 define Package/lldpd/description
30 LLDP (Link Layer Discovery Protocol) is an industry standard protocol designed
31 to supplant proprietary Link-Layer protocols such as
32 Extreme's EDP (Extreme Discovery Protocol) and
33 CDP (Cisco Discovery Protocol).
34 The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver
35 Link-Layer notifications to adjacent network devices.
36 endef
37
38 CONFIGURE_ARGS += \
39 --enable-cdp \
40 --enable-fdp \
41 --enable-edp \
42 --enable-lldpmed \
43 --enable-dot1 \
44 --enable-dot3 \
45
46 CONFIGURE_VARS += \
47 ac_cv_lib_nl_nl_connect=no
48
49 define Package/lldpd/install
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_DIR) $(1)/etc/config
52 $(INSTALL_DIR) $(1)/usr/sbin
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lldpd $(1)/usr/sbin/
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lldpctl $(1)/usr/sbin/
55 $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
56 $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd
57 endef
58
59 $(eval $(call BuildPackage,lldpd))