forked from rssnsj/network-feeds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (42 loc) · 1.29 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
#
# Copyright (c) 2015 Justin Liu
# Author: Justin Liu <[email protected]>
# https://github.com/rssnsj/network-feeds
#
include $(TOPDIR)/rules.mk
PKG_NAME:=minivtun
PKG_VERSION:=20151110
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=https://github.com/rssnsj/minivtun.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=a82f23246b2a87ca86689b28c81d016539958c19
include $(INCLUDE_DIR)/package.mk
define Package/minivtun
CATEGORY:=Network
TITLE:=Non-standard VPN that helps you to get through firewalls
URL:=https://github.com/rssnsj/network-feeds
MAINTAINER:=Justin Liu <[email protected]>
DEPENDS:=+ip +ipset-lists +kmod-tun +libopenssl +luci
endef
define Package/minivtun/conffiles
/etc/config/minivtun
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src CC="$(TARGET_CROSS)gcc" \
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)"
endef
define Package/minivtun/install
mkdir -p $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/minivtun $(1)/usr/sbin
$(CP) -a files/* $(1)/
endef
define Package/minivtun/postinst
#!/bin/sh
if [ -e /etc/openwrt_release ]; then
/etc/init.d/minivtun.sh enable || :
fi
endef
$(eval $(call BuildPackage,minivtun))