e56547e8532bf6242055ab65acc27d1d60f60622
[feed/packages.git] / net / libndp / Makefile
1 #
2 # Copyright (C) 2017-2018 Thomas Guyot-Sionnest <tguyot@gmail.com>
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:=libndp
11 PKG_VERSION:=1.7
12 PKG_RELEASE:=1
13 PKG_LICENSE:=LGPL-2.1
14 PKG_MAINTAINER:=Thomas Guyot-Sionnest <tguyot@gmail.com>
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://libndp.org/files/
18 PKG_HASH:=2c480afbffb02792dbae3c13bbfb71d89f735562f2795cca0640ed3428b491b6
19
20
21 PKG_INSTALL:=1
22 PKG_BUILD_PARALLEL:=1
23 PKG_FIXUP:=autoreconf
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/libndp
28 SECTION:=net
29 CATEGORY:=Network
30 TITLE:=NDP Library
31 URL:=https://github.com/jpirko/libndp/
32 endef
33
34 define Package/libndp/description
35 Library for Neighbor Discovery Protocol
36 endef
37
38 define Package/libndp/install
39 $(INSTALL_DIR) $(1)/usr/lib/
40 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libndp.so.* $(1)/usr/lib/
41 endef
42
43 define Package/ndptool
44 SECTION:=net
45 CATEGORY:=Network
46 TITLE:=NDP Tool
47 URL:=https://github.com/jpirko/libndp/
48 DEPENDS:= +libndp
49 endef
50
51 define Package/ndptool/description
52 Tool for Neighbor Discovery Protocol
53 endef
54
55 define Package/ndptool/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ndptool $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,libndp))
61 $(eval $(call BuildPackage,ndptool))
62