mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2025-01-15 11:05:18 +00:00
Add kernel module build unit
This commit is contained in:
parent
db1f5ee4f1
commit
ad9a337795
47
kyoutubeUnblock/Makefile
Normal file
47
kyoutubeUnblock/Makefile
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
# This file is used by OpenWRT SDK buildsystem to package the application for routers.
|
||||||
|
# This file provides the kernel model version of youtubeUnblock
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
|
PKG_NAME:=youtubeUnblock
|
||||||
|
PKG_VERSION:=0.3.2
|
||||||
|
PKG_REV:=5870df44df86e2e642465b56a8392a3a77b4f9e0
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE_URL:=https://github.com/Waujito/youtubeUnblock.git
|
||||||
|
PKG_SOURCE_PROTO:=git
|
||||||
|
PKG_SOURCE_VERSION:=$(PKG_REV)
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
|
define KernelPackage/youtubeUnblock
|
||||||
|
SECTION:=net
|
||||||
|
CATEGORY:=Networking
|
||||||
|
TITLE:=kmod youtubeUnblock
|
||||||
|
VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
||||||
|
FILES:=$(PKG_BUILD_DIR)/kyoutubeUnblock.$(LINUX_KMOD_SUFFIX)
|
||||||
|
URL:=https://github.com/Waujito/youtubeUnblock
|
||||||
|
MAINTAINER:=Vadim Vetrov <vetrovvd@gmail.com>
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Prepare
|
||||||
|
$(Build/Prepare/Default)
|
||||||
|
$(Build/Patch)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Build/Compile
|
||||||
|
$(MAKE) -C $(LINUX_DIR) \
|
||||||
|
ARCH="$(LINUX_KARCH)" \
|
||||||
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||||
|
M="$(PKG_BUILD_DIR)" \
|
||||||
|
CONFIG_kyoutubeUnblock=m \
|
||||||
|
modules
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/youtubeUnblock/install
|
||||||
|
$(INSTALL_DIR) $(1)/etc/init.d
|
||||||
|
$(INSTALL_BIN) ./files/kmod_youtubeUnblock $(1)/etc/init.d/kmod_youtubeUnblock
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,youtubeUnblock))
|
13
kyoutubeUnblock/files/kmod_youtubeUnblock
Executable file
13
kyoutubeUnblock/files/kmod_youtubeUnblock
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh /etc/rc.common
|
||||||
|
START=91
|
||||||
|
STOP=91
|
||||||
|
|
||||||
|
# Openwrt init script. It just runs and stops the kernel module.
|
||||||
|
|
||||||
|
start() {
|
||||||
|
modprobe kyoutubeUnblock
|
||||||
|
}
|
||||||
|
|
||||||
|
stop() {
|
||||||
|
rmmod kyoutubeUnblock
|
||||||
|
}
|
@ -20,6 +20,7 @@ define Package/youtubeUnblock
|
|||||||
DEPENDS:=+libpthread
|
DEPENDS:=+libpthread
|
||||||
URL:=https://github.com/Waujito/youtubeUnblock
|
URL:=https://github.com/Waujito/youtubeUnblock
|
||||||
MAINTAINER:=Vadim Vetrov <vetrovvd@gmail.com>
|
MAINTAINER:=Vadim Vetrov <vetrovvd@gmail.com>
|
||||||
|
VERSION:=$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/youtubeUnblock/description
|
define Package/youtubeUnblock/description
|
||||||
|
Loading…
Reference in New Issue
Block a user