summaryrefslogtreecommitdiffstats
path: root/net/libndp/Makefile
blob: 13fd4e1c02c608ec5dc6b5a71586c990ea1a227a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# Copyright (C) 2017-2018 Thomas Guyot-Sionnest <tguyot@gmail.com>
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=libndp
PKG_VERSION:=1.8
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://libndp.org/files/
PKG_HASH:=88ffb66ee2eb527f146f5c02f5ccbc38ba97d2b0d57eb46bfba488821ab0c02b

PKG_MAINTAINER:=Thomas Guyot-Sionnest <tguyot@gmail.com>
PKG_LICENSE:=LGPL-2.1-or-later
PKG_CPE_ID:=cpe:/a:libndp:libndp

PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1

include $(INCLUDE_DIR)/package.mk

define Package/libndp
  SECTION:=net
  CATEGORY:=Network
  TITLE:=NDP Library
  URL:=https://github.com/jpirko/libndp/
endef

define Package/libndp/description
    Library for Neighbor Discovery Protocol
endef

define Package/libndp/install
	$(INSTALL_DIR) $(1)/usr/lib/
	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libndp.so.* $(1)/usr/lib/
endef

define Package/ndptool
  SECTION:=net
  CATEGORY:=Network
  TITLE:=NDP Tool
  URL:=https://github.com/jpirko/libndp/
  DEPENDS:= +libndp
endef

define Package/ndptool/description
    Tool for Neighbor Discovery Protocol
endef

define Package/ndptool/install
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ndptool $(1)/usr/bin/
endef

$(eval $(call BuildPackage,libndp))
$(eval $(call BuildPackage,ndptool))