mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-01-15 19:15:17 +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_NAME:=youtubeUnblock
|
||||||
PKG_VERSION:=0.1
|
PKG_VERSION:=0.1
|
||||||
|
PKG_REV:=82d65b8f9696ba9be7cdf807e0524a2f93b2bc7a
|
||||||
PKG_RELEASE:=1
|
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
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/youtubeUnblock
|
define Package/youtubeUnblock
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Networking
|
CATEGORY:=Networking
|
||||||
TITLE:=youtubeUnblock
|
TITLE:=youtubeUnblock
|
||||||
|
URL:=https://github.com/Waujito/youtubeUnblock
|
||||||
|
MAINTAINER:=Vadim Vetrov <vetrovvd@gmail.com>
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/youtubeUnblock/description
|
define Package/youtubeUnblock/description
|
||||||
Bypasses Googlevideo detection systems that relies on SNI
|
Bypasses Googlevideo detection systems that relies on SNI
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
define Build/Prepare
|
||||||
mkdir -p $(PKG_BUILD_DIR)
|
$(Build/Prepare/Default)
|
||||||
cp -r $(SOURCE_DIR)/* $(PKG_BUILD_DIR)
|
$(Build/Patch)
|
||||||
$(Build/Patch)
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) -C $(PKG_BUILD_DIR) \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
PATH="$(TARGET_PATH)" \
|
PATH="$(TARGET_PATH)" \
|
||||||
CC="$(TARGET_CC)" \
|
CC="$(TARGET_CC)" \
|
||||||
CFLAGS="$(TARGET_CFLAGS)" \
|
CFLAGS="$(TARGET_CFLAGS)" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
CROSS_COMPILE_PLATFORM="$(TARGET_CROSS:-=)"
|
CROSS_COMPILE_PLATFORM="$(TARGET_CROSS:-=)"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/youtubeUnblock/install
|
define Package/youtubeUnblock/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build/youtubeUnblock $(1)/usr/bin
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/build/youtubeUnblock $(1)/usr/bin
|
||||||
$(INSTALL_DIR) $(1)/etc/init.d
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
$(INSTALL_BIN) ./files/youtubeUnblock.owrt $(1)/etc/init.d/youtubeUnblock
|
$(INSTALL_BIN) ./files/youtubeUnblock.owrt $(1)/etc/init.d/youtubeUnblock
|
||||||
$(INSTALL_DIR) $(1)/usr/share/nftables.d/ruleset-post/
|
$(INSTALL_DIR) $(1)/usr/share/nftables.d/ruleset-post/
|
||||||
$(CP) ./files/537-youtubeUnblock.nft $(1)/usr/share/nftables.d/ruleset-post/537-youtubeUnblock.nft
|
$(CP) ./files/537-youtubeUnblock.nft $(1)/usr/share/nftables.d/ruleset-post/537-youtubeUnblock.nft
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,youtubeUnblock))
|
$(eval $(call BuildPackage,youtubeUnblock))
|
||||||
|
Loading…
Reference in New Issue
Block a user