license info - revert r43155
[openwrt/staging/yousong.git] / package / network / services / lldpd / Makefile
1 #
2 # Copyright (C) 2008-2013 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.7.7
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:=9031734c69940dd79a0a175123275f83
17
18 PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
19 PKG_LICENSE:=ISC
20
21 PKG_FIXUP:=autoreconf
22 PKG_INSTALL:=1
23
24 TARGET_CFLAGS+=--std=c99
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/lldpd
29 SECTION:=net
30 CATEGORY:=Network
31 SUBMENU:=Routing and Redirection
32 TITLE:=Link Layer Discovery Protocol daemon
33 URL:=https://github.com/vincentbernat/lldpd/wiki
34 DEPENDS:=+libevent2 +USE_EGLIBC:libbsd
35 USERID:=lldp=121:lldp=129
36 endef
37
38 define Package/lldpd/description
39 LLDP (Link Layer Discovery Protocol) is an industry standard protocol designed
40 to supplant proprietary Link-Layer protocols such as
41 Extreme's EDP (Extreme Discovery Protocol) and
42 CDP (Cisco Discovery Protocol).
43 The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver
44 Link-Layer notifications to adjacent network devices.
45 endef
46
47 define Package/lldpd/install
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_DIR) $(1)/etc/config
50 $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin
51 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lldp{cli,ctl,d} $(1)/usr/sbin/
52 $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblldpctl.so* $(1)/usr/lib/
53 $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd
54 $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd
55 endef
56
57 define Package/lldpd/conffiles
58 /etc/config/lldpd
59 endef
60
61 CONFIGURE_ARGS += \
62 --with-privsep-user=lldp \
63 --with-privsep-group=lldp \
64 --with-privsep-chroot=/var/run/lldp \
65 --with-readline=no
66
67 $(eval $(call BuildPackage,lldpd))