source: packages/net/lldpd/Makefile @ 29170

Last change on this file since 29170 was 29170, checked in by nico, 5 years ago

packages/lldpd: use new service functions

File size: 1.5 KB
Line 
1#
2# Copyright (C) 2008-2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=lldpd
11PKG_VERSION:=0.3
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.luffy.cx/lldpd/
16PKG_MD5SUM:=317e1144ec7d2781ff123ec16845a2fc
17
18include $(INCLUDE_DIR)/package.mk
19
20define Package/lldpd
21  SECTION:=net
22  CATEGORY:=Network
23  SUBMENU:=Routing and Redirection
24  TITLE:=Link Layer Discovery Protocol damon
25  URL:=https://trac.luffy.cx/lldpd/
26endef
27
28define 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.
35endef
36
37CONFIGURE_ARGS += \
38        --enable-cdp \
39        --enable-fdp \
40        --enable-edp \
41        --enable-lldpmed \
42        --enable-dot1 \
43        --enable-dot3 \
44
45CONFIGURE_VARS += \
46        ac_cv_lib_nl_nl_connect=no
47
48define Package/lldpd/install
49        $(INSTALL_DIR) $(1)/etc/init.d
50        $(INSTALL_DIR) $(1)/etc/config
51        $(INSTALL_DIR) $(1)/usr/sbin
52        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lldpd $(1)/usr/sbin/
53        $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lldpctl $(1)/usr/sbin/
54        $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
55        $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd
56endef
57
58$(eval $(call BuildPackage,lldpd))
Note: See TracBrowser for help on using the repository browser.