libidn: update to 1.42
[feed/packages.git] / net / mrmctl / Makefile
1 #
2 # Copyright (C) 2019 EWSI
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:=mrmctl
11 PKG_VERSION:=1.1.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=macremapper-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/ewsi/macremapper/tar.gz/v$(PKG_VERSION)?
16 PKG_HASH:=f9580427803123d13d50f3422623a37212034a5d72a485f9c04904f19509e4bb
17 PKG_BUILD_DIR:=$(BUILD_DIR)/macremapper-$(PKG_VERSION)
18
19 PKG_MAINTAINER:=Carey Sonsino <careys@edgewaterwireless.com>
20 PKG_LICENSE:=Apache-2.0
21 PKG_LICENSE_FILES:=userland/COPYING
22
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25 PKG_BUILD_FLAGS:=gc-sections lto
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/mrmctl
30 SECTION:=net
31 CATEGORY:=Network
32 SUBMENU:=Routing and Redirection
33 TITLE:=Dual-Channel WiFi macremapper utility
34 URL:=https://www.edgewaterwireless.com
35 DEPENDS:= +kmod-macremapper
36 endef
37
38 define Package/mrmctl/description
39 Command-line utility to manually manipulate the macremapper kernel module
40 endef
41
42 MAKE_PATH:=userland
43 CONFIGURE_PATH:=userland
44 CONFIGURE_ARGS += \
45 --enable-shared
46
47 TARGET_CFLAGS += -std=c89
48 TARGET_LDFLAGS += -Wl,--as-needed
49
50 define Build/InstallDev
51 $(INSTALL_DIR) $(1)/usr/include
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
53 $(INSTALL_DIR) $(1)/usr/lib
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
55 endef
56
57 define Package/mrmctl/install
58 $(INSTALL_DIR) $(1)/bin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/bin/
60
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/
63 endef
64
65 $(eval $(call BuildPackage,mrmctl))