lldpd: move to trunk and add myself as maintainer
[openwrt/svn-archive/archive.git] / package / network / services / lldpd / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=lldpd
11 PKG_VERSION:=0.6.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://media.luffy.cx/files/lldpd
16 PKG_MD5SUM:=77279577e3b6d85a33dc0afe7c960b27
17
18 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
19
20 PKG_FIXUP:=autoreconf
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/lldpd
26 SECTION:=net
27 CATEGORY:=Network
28 SUBMENU:=Routing and Redirection
29 TITLE:=Link Layer Discovery Protocol daemon
30 URL:=https://github.com/vincentbernat/lldpd/wiki
31 DEPENDS:=+libevent2
32 endef
33
34 define Package/lldpd/description
35 LLDP (Link Layer Discovery Protocol) is an industry standard protocol designed
36 to supplant proprietary Link-Layer protocols such as
37 Extreme's EDP (Extreme Discovery Protocol) and
38 CDP (Cisco Discovery Protocol).
39 The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver
40 Link-Layer notifications to adjacent network devices.
41 endef
42
43 define Package/lldpd/install
44 $(INSTALL_DIR) $(1)/etc/init.d
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_DIR) $(1)/usr/sbin
47 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/lldp{ctl,d} $(1)/usr/sbin/
48 $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
49 $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd
50 endef
51
52 define Package/lldpd/conffiles
53 /etc/config/lldpd
54 endef
55
56 $(eval $(call BuildPackage,lldpd))