-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
66 lines (51 loc) · 1.54 KB
/
Makefile
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
64
65
66
#
# Copyright (C) 2021 Shiji Yang ([email protected])
# This is free software, licensed under the GNU General Public License v3.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=mentohust
PKG_VERSION:=0.3.1
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/HustLion/mentohust.git
PKG_SOURCE_DATE:=2016-08-06
PKG_SOURCE_VERSION:=2f9ef2d6df5d95c0faa2e542f1cb77114824e697
PKG_MIRROR_HASH:=8acebf27f619b3492d24edb9f393911146a7848a3ba34adb2809c4feda35fecb
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_MAINTAINER:=Shiji Yang <[email protected]>
PKG_LICENSE:=GPL-3.0-or-later
PKG_LICENSE_FILES:=COPYING
include $(INCLUDE_DIR)/package.mk
define Package/mentohust
SECTION:=net
CATEGORY:=Network
TITLE:=Ruijie certification Client
DEPENDS:=+libpcap
PKG_BUILD_DEPENDS:=gettext-full/host
MAINTAINER:=HustLion
URL:=$(PKG_SOURCE_URL)
endef
define Package/mentohust/description
MentoHUST is a program that supports Ruijie certification under Windows,
Linux, and Mac OS.
endef
CONFIGURE_ARGS += \
--disable-encodepass \
--disable-notify \
define Build/Configure
( cd $(PKG_BUILD_DIR); ./autogen.sh )
$(call Build/Configure/Default)
endef
define Package/mentohust/conffiles
/etc/mentohust.conf
endef
define Package/mentohust/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/mentohust $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/src/mentohust.conf $(1)/etc/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/mentohust.init $(1)/etc/init.d/mentohust
endef
$(eval $(call BuildPackage,mentohust))