treewide: change email
[feed/packages.git] / net / lksctp-tools / Makefile
1 #
2 # Copyright (C) 2010-2015 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:=lksctp-tools
11 PKG_VERSION:=1.0.18
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/sctp/lksctp-tools/tar.gz/v$(PKG_VERSION)?
16 PKG_HASH:=3e9ab5b3844a8b65fc8152633aafe85f406e6da463e53921583dfc4a443ff03a
17
18 PKG_MAINTAINER:=
19 PKG_LICENSE:=GPL-2.0
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/lksctp-tools/Default
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=SCTP user-land
32 URL:=https://github.com/sctp/lksctp-tools
33 endef
34
35 define Package/libsctp
36 $(call Package/lksctp-tools/Default)
37 SUBMENU:=Networking
38 SECTION:=libs
39 CATEGORY:=Libraries
40 TITLE+= library
41 DEPENDS:=+kmod-sctp
42 endef
43
44 define Package/sctp
45 $(call Package/lksctp-tools/Default)
46 TITLE+= (meta)
47 DEPENDS:=+libsctp +sctp-tools
48 BUILDONLY:=1
49 endef
50
51 define Package/sctp-tools
52 $(call Package/lksctp-tools/Default)
53 TITLE+= tools
54 DEPENDS:=+libsctp
55 endef
56
57 define Build/InstallDev
58 $(INSTALL_DIR) $(1)/usr/include/netinet
59 $(INSTALL_DATA) \
60 $(PKG_INSTALL_DIR)/usr/include/netinet/sctp.h \
61 $(1)/usr/include/netinet
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/lib/libsctp.{a,so*} \
65 $(1)/usr/lib/
66 endef
67
68 define Package/libsctp/install
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) \
71 $(PKG_INSTALL_DIR)/usr/lib/libsctp.so.* \
72 $(1)/usr/lib/
73 endef
74
75 define Package/sctp-tools/install
76 $(INSTALL_DIR) $(1)/usr/bin
77 $(INSTALL_BIN) \
78 $(PKG_INSTALL_DIR)/usr/bin/checksctp \
79 $(1)/usr/bin/
80 $(INSTALL_BIN) \
81 $(PKG_INSTALL_DIR)/usr/bin/sctp_{darn,status,test} \
82 $(1)/usr/bin/
83 endef
84
85 $(eval $(call BuildPackage,libsctp))
86 $(eval $(call BuildPackage,sctp))
87 $(eval $(call BuildPackage,sctp-tools))