mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-01-15 11:05:18 +00:00
Add download from github
This commit is contained in:
parent
48201093c3
commit
87f016f27c
@ -4,44 +4,48 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=youtubeUnblock
|
||||
PKG_VERSION:=0.1
|
||||
PKG_REV:=82d65b8f9696ba9be7cdf807e0524a2f93b2bc7a
|
||||
PKG_RELEASE:=1
|
||||
|
||||
SOURCE_DIR:=/home/me/youtubeUnblock
|
||||
PKG_SOURCE_URL:=https://github.com/Waujito/youtubeUnblock.git
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_VERSION:=$(PKG_REV)
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/youtubeUnblock
|
||||
SECTION:=net
|
||||
CATEGORY:=Networking
|
||||
TITLE:=youtubeUnblock
|
||||
SECTION:=net
|
||||
CATEGORY:=Networking
|
||||
TITLE:=youtubeUnblock
|
||||
URL:=https://github.com/Waujito/youtubeUnblock
|
||||
MAINTAINER:=Vadim Vetrov <vetrovvd@gmail.com>
|
||||
endef
|
||||
|
||||
define Package/youtubeUnblock/description
|
||||
Bypasses Googlevideo detection systems that relies on SNI
|
||||
Bypasses Googlevideo detection systems that relies on SNI
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
cp -r $(SOURCE_DIR)/* $(PKG_BUILD_DIR)
|
||||
$(Build/Patch)
|
||||
$(Build/Prepare/Default)
|
||||
$(Build/Patch)
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
PATH="$(TARGET_PATH)" \
|
||||
CC="$(TARGET_CC)" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
CROSS_COMPILE_PLATFORM="$(TARGET_CROSS:-=)"
|
||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||
PATH="$(TARGET_PATH)" \
|
||||
CC="$(TARGET_CC)" \
|
||||
CFLAGS="$(TARGET_CFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||
CROSS_COMPILE_PLATFORM="$(TARGET_CROSS:-=)"
|
||||
endef
|
||||
|
||||
define Package/youtubeUnblock/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build/youtubeUnblock $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/youtubeUnblock.owrt $(1)/etc/init.d/youtubeUnblock
|
||||
$(INSTALL_DIR) $(1)/usr/share/nftables.d/ruleset-post/
|
||||
$(CP) ./files/537-youtubeUnblock.nft $(1)/usr/share/nftables.d/ruleset-post/537-youtubeUnblock.nft
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build/youtubeUnblock $(1)/usr/bin
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) ./files/youtubeUnblock.owrt $(1)/etc/init.d/youtubeUnblock
|
||||
$(INSTALL_DIR) $(1)/usr/share/nftables.d/ruleset-post/
|
||||
$(CP) ./files/537-youtubeUnblock.nft $(1)/usr/share/nftables.d/ruleset-post/537-youtubeUnblock.nft
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,youtubeUnblock))
|
||||
|
Loading…
Reference in New Issue
Block a user