-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
56 lines (42 loc) · 1.16 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
#
# Copyright (C) 2015-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v3.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=LingTiGameAcc
PKG_VERSION:=2023
PKG_RELEASE:=1.7.1
PKG_LICENSE:=GPLv3
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=eSir Playground
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
CATEGORY:=eSir Playground
SUBMENU:=2. GameAcc
TITLE:=LingTi Game Accelerator
URL:=https://github.com/esirplayground/LingTiGameAcc
DEPENDS:=+kmod-tun
endef
define Package/$(PKG_NAME)/description
LingTi Game Acc is a Game Accelerator which is paid service.
endef
DIR_ARCH:=$(ARCH)
define Build/Prepare
mkdir $(PKG_BUILD_DIR)/$(PKG_NAME)
cp -r ./files/$(DIR_ARCH)/* $(PKG_BUILD_DIR)/$(PKG_NAME)/lingti
endef
define Build/Compile
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME)/lingti $(1)/usr/bin
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./root/etc/init.d/lingti $(1)/etc/init.d
endef
define Package/$(PKG_NAME)/postinst
#!/bin/sh
chmod +x $(1)/usr/bin/lingti
chmod +x $(1)/etc/init.d/lingti
endef
$(eval $(call BuildPackage,$(PKG_NAME)))