forked from kenzok8/small-package
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d010ad4
commit 7be2b15
Showing
3,134 changed files
with
543,230 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=adguardhome | ||
PKG_VERSION:=0.106.3 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_VERSION:=v$(PKG_VERSION) | ||
PKG_SOURCE_URL:=https://github.com/AdguardTeam/AdGuardHome | ||
PKG_MIRROR_HASH:=bdf5ad833df90969cd82b9fb6a91846338c738ed01671fc768d867b592102f7c | ||
|
||
PKG_LICENSE:=GPL-3.0-only | ||
PKG_LICENSE_FILES:=LICENSE.txt | ||
PKG_MAINTAINER:=Dobroslaw Kijowski <[email protected]> | ||
|
||
PKG_BUILD_DEPENDS:=golang/host node/host node-yarn/host packr/host | ||
PKG_BUILD_PARALLEL:=1 | ||
PKG_USE_MIPS16:=0 | ||
|
||
PKG_CONFIG_DEPENDS:= \ | ||
CONFIG_ADGUARDHOME_COMPRESS_GOPROXY \ | ||
CONFIG_ADGUARDHOME_COMPRESS_UPX | ||
|
||
GO_PKG:=github.com/AdguardTeam/AdGuardHome | ||
GO_PKG_BUILD_PKG:=github.com/AdguardTeam/AdGuardHome | ||
|
||
AGH_BUILD_TIME:=$(shell date -d @$(SOURCE_DATE_EPOCH) +%FT%TZ%z) | ||
AGH_VERSION_PKG:=github.com/AdguardTeam/AdGuardHome/internal/version | ||
GO_PKG_LDFLAGS_X:=$(AGH_VERSION_PKG).channel=release \ | ||
$(AGH_VERSION_PKG).version=$(PKG_SOURCE_VERSION) \ | ||
$(AGH_VERSION_PKG).buildtime=$(AGH_BUILD_TIME) \ | ||
$(AGH_VERSION_PKG).goarm=$(GO_ARM) \ | ||
$(AGH_VERSION_PKG).gomips=$(GO_MIPS) | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
include ../../lang/golang/golang-package.mk | ||
|
||
define Package/adguardhome | ||
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=Network-wide ads and trackers blocking DNS server | ||
URL:=https://github.com/AdguardTeam/AdGuardHome | ||
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle | ||
endef | ||
|
||
define Package/adguardhome/conffiles | ||
/etc/adguardhome.yaml | ||
endef | ||
|
||
define Package/adguardhome/description | ||
Free and open source, powerful network-wide ads and trackers blocking DNS server. | ||
endef | ||
|
||
define Package/$(PKG_NAME)/config | ||
config ADGUARDHOME_COMPRESS_GOPROXY | ||
bool "Compiling with GOPROXY proxy" | ||
default n | ||
|
||
config ADGUARDHOME_COMPRESS_UPX | ||
bool "Compress executable files with UPX" | ||
default n | ||
endef | ||
|
||
ifeq ($(CONFIG_ADGUARDHOME_COMPRESS_GOPROXY),y) | ||
export GO111MODULE=on | ||
export GOPROXY=https://goproxy.baidu.com | ||
endif | ||
|
||
define Build/Compile | ||
( \ | ||
pushd $(PKG_BUILD_DIR) ; \ | ||
make js-deps js-build ; \ | ||
packr -z -v -i internal ; \ | ||
popd ; \ | ||
$(call GoPackage/Build/Compile) ; \ | ||
) | ||
ifeq ($(CONFIG_ADGUARDHOME_COMPRESS_UPX),y) | ||
$(STAGING_DIR_HOST)/bin/upx --lzma --best $(GO_PKG_BUILD_BIN_DIR)/AdGuardHome | ||
endif | ||
endef | ||
|
||
#define Package/adguardhome/install | ||
# $(call GoPackage/Package/Install/Bin,$(1)) | ||
# $(INSTALL_DIR) $(1)/etc/init.d | ||
# $(INSTALL_BIN) ./files/adguardhome.init $(1)/etc/init.d/adguardhome | ||
#endef | ||
|
||
$(eval $(call GoBinPackage,adguardhome)) | ||
$(eval $(call BuildPackage,adguardhome)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh /etc/rc.common | ||
|
||
PROG=/usr/bin/AdGuardHome | ||
WORK_DIR=/tmp/adguardhome | ||
|
||
USE_PROCD=1 | ||
|
||
# starts after network starts | ||
START=21 | ||
# stops before networking stops | ||
STOP=89 | ||
|
||
start_service() { | ||
[ -d "$WORK_DIR" ] || mkdir -m 0755 -p "$WORK_DIR" | ||
|
||
procd_open_instance | ||
procd_set_param command "$PROG" -c /etc/adguardhome.yaml -w "$WORK_DIR" --no-check-update | ||
procd_set_param stdout 1 | ||
procd_set_param stderr 1 | ||
procd_close_instance | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# | ||
# Copyright (C) 2021 ImmortalWrt | ||
# <https://immortalwrt.org> | ||
# | ||
# This is free software, licensed under the GNU General Public License v3. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=brook | ||
PKG_VERSION:=20210701 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/txthinking/brook/tar.gz/v$(PKG_VERSION)? | ||
PKG_HASH:=92c2253349af05ea5aa7a45cddd39ca638c732b2ffdb5066a5f03d2df40cb0b5 | ||
|
||
PKG_MAINTAINER:=CN_SZTL <[email protected]> | ||
PKG_LICENSE:=GPL-3.0 | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
PKG_BUILD_DEPENDS:=golang/host | ||
PKG_BUILD_PARALLEL:=1 | ||
PKG_USE_MIPS16:=0 | ||
|
||
PKG_CONFIG_DEPENDS:= \ | ||
CONFIG_BROOK_COMPRESS_GOPROXY \ | ||
CONFIG_BROOK_COMPRESS_UPX | ||
|
||
GO_PKG:=github.com/txthinking/brook | ||
GO_PKG_BUILD_PKG:=github.com/txthinking/brook/cli/brook | ||
GO_PKG_LDFLAGS:=-s -w | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk | ||
|
||
define Package/brook | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=Web Servers/Proxies | ||
TITLE:=A cross-platform proxy software | ||
DEPENDS:=$(GO_ARCH_DEPENDS) +ca-bundle | ||
URL:=https://github.com/txthinking/brook | ||
endef | ||
|
||
define Package/brook/description | ||
Brook is a cross-platform strong encryption and not detectable proxy. | ||
Zero-Configuration. | ||
endef | ||
|
||
define Package/brook/config | ||
config BROOK_COMPRESS_GOPROXY | ||
bool "Compiling with GOPROXY proxy" | ||
default n | ||
|
||
config BROOK_COMPRESS_UPX | ||
bool "Compress executable files with UPX" | ||
default y | ||
endef | ||
|
||
ifeq ($(CONFIG_BROOK_COMPRESS_GOPROXY),y) | ||
export GO111MODULE=on | ||
export GOPROXY=https://goproxy.baidu.com | ||
endif | ||
|
||
define Build/Compile | ||
$(call GoPackage/Build/Compile) | ||
ifeq ($(CONFIG_BROOK_COMPRESS_UPX),y) | ||
$(STAGING_DIR_HOST)/bin/upx --lzma --best $(GO_PKG_BUILD_BIN_DIR)/brook | ||
endif | ||
endef | ||
|
||
$(eval $(call GoBinPackage,brook)) | ||
$(eval $(call BuildPackage,brook)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=chinadns-ng | ||
PKG_VERSION:=1.0-beta.25 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/zfl9/chinadns-ng.git | ||
PKG_MIRROR_HASH:=3b66fc0888d9488e3b8e39df3016d51fae1b43325d292381e94aa3c7d2318282 | ||
PKG_SOURCE_VERSION:=14cc6348d67b09cae37d9bce554c89c2c0e0b265 | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
PKG_USE_MIPS16:=0 | ||
|
||
PKG_LICENSE:=AGPL-3.0-only | ||
PKG_LICENSE_FILES:=LICENSE | ||
PKG_MAINTAINER:=pexcn <[email protected]> | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/chinadns-ng | ||
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=ChinaDNS next generation, refactoring with epoll and ipset | ||
URL:=https://github.com/zfl9/chinadns-ng | ||
DEPENDS:=+ipset | ||
endef | ||
|
||
define Package/chinadns-ng/description | ||
ChinaDNS next generation, refactoring with epoll and ipset. | ||
endef | ||
|
||
define Package/chinadns-ng/conffiles | ||
endef | ||
|
||
define Package/chinadns-ng/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/chinadns-ng $(1)/usr/bin | ||
endef | ||
|
||
$(eval $(call BuildPackage,chinadns-ng)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=dns2socks | ||
PKG_VERSION:=2.1 | ||
PKG_RELEASE:=20200218 | ||
|
||
PKG_SOURCE:=SourceCode.zip | ||
PKG_SOURCE_SUBDIR:=DNS2SOCKS | ||
PKG_SOURCE_URL:=@SF/dns2socks | ||
PKG_MD5SUM:=ec82de936ad004cc940502cd2a1bff5b | ||
|
||
PKG_MAINTAINER:=ghostmaker | ||
PKG_LICENSE:=BSD-3-Clause | ||
|
||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) | ||
|
||
PKG_INSTALL:=1 | ||
PKG_USE_MIPS16:=0 | ||
PKG_BUILD_PARALLEL:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/dns2socks/Default | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=IP Addresses and Names | ||
TITLE:=The utility to resolve DNS requests via a SOCKS5 tunnel. | ||
URL:=http://dns2socks.sourceforge.net/ | ||
MAINTAINER:=ghostmaker | ||
DEPENDS:=+libpthread | ||
endef | ||
|
||
define Package/dns2socks | ||
$(call Package/dns2socks/Default) | ||
endef | ||
|
||
define Package/dns2socks/description | ||
This is a utility to resolve DNS requests via a SOCKS5 tunnel and caches the answers. | ||
endef | ||
|
||
define Build/Prepare | ||
mkdir -p $(PKG_BUILD_DIR) | ||
unzip $(DL_DIR)/$(PKG_SOURCE) -d $(PKG_BUILD_DIR) | ||
endef | ||
|
||
define Build/Compile | ||
$(TARGET_CC) \ | ||
$(TARGET_CFLAGS) \ | ||
$(TARGET_CPPFLAGS) \ | ||
$(FPIC) \ | ||
-o $(PKG_BUILD_DIR)/$(PKG_SOURCE_SUBDIR)/$(PKG_NAME) \ | ||
$(PKG_BUILD_DIR)/$(PKG_SOURCE_SUBDIR)/DNS2SOCKS.c \ | ||
$(TARGET_LDFLAGS) -pthread | ||
endef | ||
|
||
define Build/Install | ||
endef | ||
|
||
define Package/dns2socks/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_SOURCE_SUBDIR)/$(PKG_NAME) $(1)/usr/bin/dns2socks | ||
endef | ||
|
||
#$(shell $(RM) $(DL_DIR)/$(PKG_SOURCE)) | ||
|
||
$(eval $(call BuildPackage,dns2socks)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# | ||
# Copyright (C) 2021 ImmortalWrt | ||
# <https://immortalwrt.org> | ||
# | ||
# This is free software, licensed under the GNU General Public License v3. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=gost | ||
PKG_VERSION:=2.11.1 | ||
PKG_RELEASE:=23 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/ginuerzh/gost/tar.gz/v$(PKG_VERSION)? | ||
PKG_HASH:=skip | ||
|
||
PKG_LICENSE:=MIT | ||
PKG_LICENSE_FILE:=LICENSE | ||
PKG_MAINTAINER:=CN_SZTL <[email protected]> | ||
|
||
PKG_CONFIG_DEPENDS:= \ | ||
CONFIG_GOST_COMPRESS_GOPROXY \ | ||
CONFIG_GOST_COMPRESS_UPX | ||
|
||
PKG_BUILD_DEPENDS:=golang/host | ||
PKG_BUILD_PARALLEL:=1 | ||
PKG_USE_MIPS16:=0 | ||
|
||
GO_PKG:=github.com/ginuerzh/gost | ||
GO_PKG_BUILD_PKG:=github.com/ginuerzh/gost/cmd/gost | ||
GO_PKG_LDFLAGS:=-s -w | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk | ||
|
||
define Package/gost | ||
SECTION:=net | ||
CATEGORY:=Network | ||
TITLE:=GO Simple Tunnel | ||
URL:=https://github.com/ginuerzh/gost | ||
DEPENDS:=$(GO_ARCH_DEPENDS) | ||
endef | ||
|
||
define Package/gost/description | ||
A simple security tunnel written in Golang | ||
endef | ||
|
||
define Package/gost/config | ||
config GOST_COMPRESS_GOPROXY | ||
bool "Compiling with GOPROXY proxy" | ||
default n | ||
|
||
config GOST_COMPRESS_UPX | ||
bool "Compress executable files with UPX" | ||
default y | ||
endef | ||
|
||
ifeq ($(CONFIG_GOST_COMPRESS_GOPROXY),y) | ||
export GO111MODULE=on | ||
export GOPROXY=https://goproxy.baidu.com | ||
endif | ||
|
||
define Build/Compile | ||
$(call GoPackage/Build/Compile) | ||
ifeq ($(CONFIG_GOST_COMPRESS_UPX),y) | ||
$(STAGING_DIR_HOST)/bin/upx --lzma --best $(GO_PKG_BUILD_BIN_DIR)/gost | ||
endif | ||
endef | ||
|
||
define Package/gost/install | ||
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR)) | ||
|
||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gost $(1)/usr/bin/gost | ||
|
||
$(INSTALL_DIR) $(1)/etc/config | ||
$(INSTALL_CONF) $(CURDIR)/files/gost.config $(1)/etc/config/gost | ||
$(INSTALL_DIR) $(1)/etc/init.d | ||
$(INSTALL_BIN) $(CURDIR)/files/gost.init $(1)/etc/init.d/gost | ||
endef | ||
|
||
$(eval $(call GoBinPackage,gost)) | ||
$(eval $(call BuildPackage,gost)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
config gost | ||
option enable '0' | ||
option run_command '' | ||
|
Oops, something went wrong.