-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (49 loc) · 1.27 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
#
# Copyright (C) 2014-2015 KyleRicardo
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=evasi0n
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/evasi0n
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libpcap +libstdcpp
TITLE:=A Digital China Client Daemon
URL:=http://code.google.com/p/evasi0n/
SUBMENU:=DigitalChina
endef
define Package/evasi0n/description
A Digital China Client Daemon,
Most usually used in China collages.
endef
CONFIGURE_ARGS += \
--disable-notify
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Package/evasi0n/conffiles
/jffs/etc/evasi0n.conf
endef
define Build/Compile
#$(Build/Compile/$(PKG_NAME))
$(MAKE) -C $(PKG_BUILD_DIR)/ \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS) -ldl"
endef
define Package/evasi0n/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/evasi0n $(1)/usr/bin/
$(INSTALL_DIR) $(1)/jffs/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/evasi0n.conf $(1)/jffs/etc/evasi0n.conf
endef
$(eval $(call BuildPackage,$(PKG_NAME)))