48cc32790399bd394d9f9432e11a7d6d4657db25
[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 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/lldpd
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=Link Layer Discovery Protocol damon
27 URL:=http://www.bitwizard.nl/lldpd/
28 endef
29
30 define Package/lldpd/description
31 LLDP (Link Layer Discovery Protocol) is an industry standard protocol designed
32 to supplant proprietary Link-Layer protocols such as
33 Extreme's EDP (Extreme Discovery Protocol) and
34 CDP (Cisco Discovery Protocol).
35 The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver
36 Link-Layer notifications to adjacent network devices.
37 endef
38
39 CONFIGURE_ARGS += \
40 --enable-cdp \
41 --enable-fdp \
42 --enable-edp \
43 --enable-lldpmed \
44 --enable-dot1 \
45 --enable-dot3 \
46
47 CONFIGURE_VARS += \
48 ac_cv_lib_nl_nl_connect=no \
49
50 define Package/lldpd/install
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_DIR) $(1)/etc/config
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lldpd $(1)/usr/sbin/
55 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lldpctl $(1)/usr/sbin/
56 $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
57 $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd
58 endef
59
60 $(eval $(call BuildPackage,lldpd))