OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
Line 8... | Line 8... | |||
8 | include $(TOPDIR)/rules.mk |
8 | include $(TOPDIR)/rules.mk |
|
9 | |
9 | |
|
10 | PKG_NAME:=lldpd |
10 | PKG_NAME:=lldpd |
|
Line 11... | Line 11... | |||
11 | PKG_VERSION:=1.0.1 |
11 | PKG_VERSION:=1.0.1 |
|
12 | PKG_RELEASE:=2 |
12 | PKG_RELEASE:=1 |
|
13 | |
13 | |
|
Line 14... | Line 14... | |||
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
14 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
|
15 | PKG_SOURCE_URL:=https://media.luffy.cx/files/lldpd |
15 | PKG_SOURCE_URL:=http://media.luffy.cx/files/lldpd |
|
Line 16... | Line 16... | |||
16 | PKG_HASH:=450b622aac7ae1758f1ef82f3b7b94ec47f2ff33abfb0e6ac82555b9ee55f151 |
16 | PKG_HASH:=450b622aac7ae1758f1ef82f3b7b94ec47f2ff33abfb0e6ac82555b9ee55f151 |
|
17 | |
17 | |
|
Line -... | Line 18... | |||
- | 18 | PKG_MAINTAINER:=Stijn Tintel <stijn@linux-ipv6.be> |
||
- | 19 | PKG_LICENSE:=ISC |
||
18 | PKG_MAINTAINER:=Stijn Tintel <stijn@linux-ipv6.be> |
20 | |
|
Line 19... | Line 21... | |||
19 | PKG_LICENSE:=ISC |
21 | PKG_FIXUP:=autoreconf |
|
20 | |
22 | PKG_INSTALL:=1 |
|
21 | PKG_FIXUP:=autoreconf |
23 | |
|
22 | PKG_INSTALL:=1 |
24 | TARGET_CFLAGS+=--std=c99 |
|
23 | |
25 | |
|
24 | include $(INCLUDE_DIR)/package.mk |
26 | include $(INCLUDE_DIR)/package.mk |
|
25 | |
27 | |
|
26 | define Package/lldpd |
28 | define Package/lldpd |
|
27 | SECTION:=net |
29 | SECTION:=net |
|
28 | CATEGORY:=Network |
30 | CATEGORY:=Network |
|
Line 61... | Line 63... | |||
61 | $(INSTALL_DIR) $(1)/etc/config |
63 | $(INSTALL_DIR) $(1)/etc/config |
|
62 | $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin |
64 | $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/sbin |
|
63 | $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lldp{cli,ctl,d} $(1)/usr/sbin/ |
65 | $(CP) $(PKG_INSTALL_DIR)/usr/sbin/lldp{cli,ctl,d} $(1)/usr/sbin/ |
|
64 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblldpctl.so* $(1)/usr/lib/ |
66 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblldpctl.so* $(1)/usr/lib/ |
|
65 | $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd |
67 | $(INSTALL_BIN) ./files/lldpd.init $(1)/etc/init.d/lldpd |
|
66 | $(INSTALL_CONF) ./files/lldpd.config $(1)/etc/config/lldpd |
68 | $(INSTALL_DATA) ./files/lldpd.config $(1)/etc/config/lldpd |
|
67 | ifneq ($(CONFIG_LLDPD_WITH_CDP),y) |
69 | ifneq ($(CONFIG_LLDPD_WITH_CDP),y) |
|
68 | sed -i -e '/cdp/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd |
70 | sed -i -e '/cdp/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd |
|
69 | endif |
71 | endif |
|
70 | ifneq ($(CONFIG_LLDPD_WITH_FDP),y) |
72 | ifneq ($(CONFIG_LLDPD_WITH_FDP),y) |
|
71 | sed -i -e '/fdp/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd |
73 | sed -i -e '/fdp/d' $(1)/etc/init.d/lldpd $(1)/etc/config/lldpd |
|
Line 105... | Line 107... | |||
105 | $(if $(CONFIG_LLDPD_WITH_CUSTOM),,--disable-custom) \ |
107 | $(if $(CONFIG_LLDPD_WITH_CUSTOM),,--disable-custom) \ |
|
106 | $(if $(CONFIG_LLDPD_WITH_SONMP),,--disable-sonmp) \ |
108 | $(if $(CONFIG_LLDPD_WITH_SONMP),,--disable-sonmp) \ |
|
107 | $(if $(CONFIG_LLDPD_WITH_JSON),--with-json=json-c,--with-json=no) \ |
109 | $(if $(CONFIG_LLDPD_WITH_JSON),--with-json=json-c,--with-json=no) \ |
|
108 | $(if $(CONFIG_LLDPD_WITH_SNMP),--with-snmp,) |
110 | $(if $(CONFIG_LLDPD_WITH_SNMP),--with-snmp,) |
|
Line 109... | Line -... | |||
109 | |
- | ||
110 | # there is no flag to disable libbsd |
- | ||
111 | CONFIGURE_VARS += \ |
- | ||
112 | $(if $(CONFIG_USE_GLIBC),,libbsd_CFLAGS=-ldo-not-link-bsd) \ |
- | ||
113 | $(if $(CONFIG_USE_GLIBC),,libbsd_LDFLAGS=-ldo-not-link-bsd) \ |
- | ||
Line 114... | Line 111... | |||
114 | $(if $(CONFIG_USE_GLIBC),,libbsd_LIBS="-lNONexistent") |
111 | |