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
15e7acc
commit 3995843
Showing
330 changed files
with
36,119 additions
and
19,989 deletions.
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,71 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=ariang | ||
PKG_VERSION:=1.3.2 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip | ||
PKG_SOURCE_URL:=https://github.com/mayswind/AriaNg/releases/download/$(PKG_VERSION) | ||
PKG_HASH:=2186dacf57c9d1650e00084c0454f2227e910f3203d89c6190f547b40cac7243 | ||
UNPACK_CMD=unzip -q -d $(1) $(DL_DIR)/$(PKG_SOURCE) | ||
|
||
PKG_MAINTAINER:=Ansuel Smith <[email protected]> | ||
PKG_LICENSE:=MIT | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/ariang/default | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=Download Manager | ||
DEPENDS:=+aria2 | ||
TITLE:=AriaNg webui | ||
URL:=https://ariang.mayswind.net | ||
PKGARCH:=all | ||
endef | ||
|
||
define Package/ariang/description | ||
AriaNg is a web frontend making aria2 easier to use. AriaNg is written in pure html & javascript, thus it does not need any compilers or runtime environment. | ||
endef | ||
|
||
Package/ariang-nginx/description = $(Package/ariang/description) | ||
|
||
define Package/ariang | ||
$(Package/ariang/default) | ||
DEPENDS += +uhttpd | ||
TITLE += for uhttpd webserver | ||
endef | ||
|
||
define Package/ariang-nginx | ||
$(Package/ariang/default) | ||
DEPENDS += +nginx | ||
TITLE += for nginx webserver | ||
endef | ||
|
||
define Build/Compile | ||
endef | ||
|
||
define Package/ariang/install | ||
$(INSTALL_DIR) \ | ||
$(1)/www/ariang | ||
|
||
$(CP) \ | ||
$(PKG_BUILD_DIR)/{langs,css,js,fonts} \ | ||
$(PKG_BUILD_DIR)/index.html \ | ||
$(PKG_BUILD_DIR)/LICENSE \ | ||
$(PKG_BUILD_DIR)/favicon.* \ | ||
$(PKG_BUILD_DIR)/robots.txt \ | ||
$(1)/www/ariang | ||
endef | ||
|
||
define Package/ariang-nginx/install | ||
$(Package/ariang/install) | ||
$(INSTALL_DIR) $(1)/etc/nginx/conf.d/ | ||
$(INSTALL_BIN) ./files/ariang.locations $(1)/etc/nginx/conf.d/ | ||
$(INSTALL_DIR) $(1)/etc/uci-defaults | ||
$(INSTALL_BIN) ./files/80_ariang-nginx-support $(1)/etc/uci-defaults/80_ariang-nginx-support | ||
endef | ||
|
||
$(eval $(call BuildPackage,ariang)) | ||
$(eval $(call BuildPackage,ariang-nginx)) |
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 @@ | ||
#!/bin/sh | ||
|
||
[ -x /etc/init.d/nginx ] && /etc/init.d/nginx running && /etc/init.d/nginx reload | ||
|
||
exit 0 |
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,4 @@ | ||
location /ariang { | ||
index index.html; | ||
alias /www/ariang/; | ||
} |
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 |
---|---|---|
@@ -1,44 +1,44 @@ | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
# | ||
# Copyright (C) 2021 ImmortalWrt.org | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=brook | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
# | ||
# Copyright (C) 2021 ImmortalWrt.org | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=brook | ||
PKG_VERSION:=20230122 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/txthinking/brook/tar.gz/v$(PKG_VERSION)? | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/txthinking/brook/tar.gz/v$(PKG_VERSION)? | ||
PKG_HASH:=52643df51144b4b1afbacb51156f92ba61adbcff77dd8f76e3278ce70644f237 | ||
|
||
PKG_MAINTAINER:=Tianling Shen <[email protected]> | ||
PKG_LICENSE:=GPL-3.0 | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
PKG_BUILD_DEPENDS:=golang/host | ||
PKG_BUILD_PARALLEL:=1 | ||
PKG_USE_MIPS16:=0 | ||
|
||
GO_PKG:=github.com/txthinking/brook | ||
GO_PKG_BUILD_PKG:=$(GO_PKG)/cli/brook | ||
|
||
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 | ||
|
||
$(eval $(call GoBinPackage,brook)) | ||
$(eval $(call BuildPackage,brook)) | ||
|
||
PKG_MAINTAINER:=Tianling Shen <[email protected]> | ||
PKG_LICENSE:=GPL-3.0 | ||
PKG_LICENSE_FILES:=LICENSE | ||
|
||
PKG_BUILD_DEPENDS:=golang/host | ||
PKG_BUILD_PARALLEL:=1 | ||
PKG_USE_MIPS16:=0 | ||
|
||
GO_PKG:=github.com/txthinking/brook | ||
GO_PKG_BUILD_PKG:=$(GO_PKG)/cli/brook | ||
|
||
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 | ||
|
||
$(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,47 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=cgroupfs-mount | ||
PKG_RELEASE:=2 | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/tianon/$(PKG_NAME) | ||
PKG_SOURCE_VERSION:=0549428171605eae3097a3e21bf7664845eac9e8 | ||
PKG_SOURCE_DATE:=2020-06-26 | ||
PKG_MIRROR_HASH:=ca217ffff5aa938149d2d8adfe15d800903d2fec180acb2400c36d62905988ea | ||
|
||
PKG_MAINTAINER:=Gerard Ryan <[email protected]> | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/cgroupfs-mount/config | ||
config CGROUPFS_MOUNT_KERNEL_CGROUPS | ||
bool "Enable kernel cgroups support" | ||
depends on PACKAGE_cgroupfs-mount | ||
default y if ( DOCKER_KERNEL_OPTIONS || LXC_KERNEL_OPTIONS ) | ||
select KERNEL_CGROUPS | ||
endef | ||
|
||
define Package/cgroupfs-mount | ||
SECTION:=utils | ||
CATEGORY:=Utilities | ||
TITLE:=cgroup mount scripts | ||
DEPENDS:=+mount-utils | ||
MENU:=1 | ||
endef | ||
|
||
define Package/cgroupfs-mount/description | ||
Simple scripts to properly mount the cgroupfs hierarchy, especially structured for Debian packaging | ||
endef | ||
|
||
Build/Compile=# Nothing to compile, just install the scripts | ||
|
||
define Package/cgroupfs-mount/install | ||
$(INSTALL_DIR) $(1)/usr/bin/ | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cgroupfs-mount $(1)/usr/bin/ | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/cgroupfs-umount $(1)/usr/bin/ | ||
|
||
$(INSTALL_DIR) $(1)/etc/init.d | ||
$(INSTALL_BIN) ./files/cgroupfs-mount.init $(1)/etc/init.d/cgroupfs-mount | ||
endef | ||
|
||
$(eval $(call BuildPackage,cgroupfs-mount)) |
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,12 @@ | ||
#!/bin/sh /etc/rc.common | ||
|
||
START=01 | ||
|
||
boot() { | ||
# Procd mounts non-hierarchical cgroupfs so unmount first before cgroupfs-mount | ||
if mountpoint -q /sys/fs/cgroup; then | ||
umount /sys/fs/cgroup/ | ||
fi | ||
|
||
cgroupfs-mount | ||
} |
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
# | ||
# Copyright (C) 2021 ImmortalWrt.org | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=chinadns-ng | ||
PKG_VERSION:=1.0-beta.25 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/zfl9/chinadns-ng.git | ||
PKG_SOURCE_DATE:=2021-05-08 | ||
PKG_SOURCE_VERSION:=14cc6348d67b09cae37d9bce554c89c2c0e0b265 | ||
PKG_MIRROR_HASH:=3b66fc0888d9488e3b8e39df3016d51fae1b43325d292381e94aa3c7d2318282 | ||
|
||
PKG_LICENSE:=AGPL-3.0-only | ||
PKG_LICENSE_FILES:=LICENSE | ||
PKG_MAINTAINER:=pexcn <[email protected]> | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
PKG_INSTALL:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/chinadns-ng | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=IP Addresses and Names | ||
TITLE:=ChinaDNS next generation, refactoring with epoll and ipset. | ||
URL:=https://github.com/zfl9/chinadns-ng | ||
DEPENDS:=+ipset | ||
endef | ||
|
||
define Package/chinadns-ng/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/chinadns-ng $(1)/usr/bin | ||
endef | ||
|
||
$(eval $(call BuildPackage,chinadns-ng)) | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
# | ||
# Copyright (C) 2021 ImmortalWrt.org | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=chinadns-ng | ||
PKG_VERSION:=1.0-beta.25 | ||
PKG_RELEASE:=$(AUTORELEASE) | ||
|
||
PKG_SOURCE_PROTO:=git | ||
PKG_SOURCE_URL:=https://github.com/zfl9/chinadns-ng.git | ||
PKG_SOURCE_DATE:=2021-05-08 | ||
PKG_SOURCE_VERSION:=14cc6348d67b09cae37d9bce554c89c2c0e0b265 | ||
PKG_MIRROR_HASH:=3b66fc0888d9488e3b8e39df3016d51fae1b43325d292381e94aa3c7d2318282 | ||
|
||
PKG_LICENSE:=AGPL-3.0-only | ||
PKG_LICENSE_FILES:=LICENSE | ||
PKG_MAINTAINER:=pexcn <[email protected]> | ||
|
||
PKG_BUILD_PARALLEL:=1 | ||
PKG_INSTALL:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/chinadns-ng | ||
SECTION:=net | ||
CATEGORY:=Network | ||
SUBMENU:=IP Addresses and Names | ||
TITLE:=ChinaDNS next generation, refactoring with epoll and ipset. | ||
URL:=https://github.com/zfl9/chinadns-ng | ||
DEPENDS:=+ipset | ||
endef | ||
|
||
define Package/chinadns-ng/install | ||
$(INSTALL_DIR) $(1)/usr/bin | ||
$(INSTALL_BIN) $(PKG_INSTALL_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,86 @@ | ||
# | ||
# Copyright (C) 2018 Lim Guo Wei | ||
# | ||
# This is free software, licensed under the GNU General Public License v2. | ||
# See /LICENSE for more information. | ||
# | ||
|
||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=coremark | ||
PKG_SOURCE_DATE:=2022-01-03 | ||
PKG_SOURCE_VERSION:=b24e397f7103061b3673261d292a0667bd3bc1b8 | ||
PKG_RELEASE:=1 | ||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz | ||
PKG_SOURCE_URL:=https://codeload.github.com/eembc/coremark/tar.gz/$(PKG_SOURCE_VERSION)? | ||
PKG_HASH:=1b8c36b202f39b4f8a872ed7d5db1dc4473ee27f7bc2885a9da20e72925c58c3 | ||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION) | ||
|
||
PKG_MAINTAINER:=Lim Guo Wei <[email protected]> \ | ||
Aleksander Jan Bajkowski <[email protected]> | ||
PKG_LICENSE:=Apache-2.0 | ||
PKG_LICENSE_FILES:=LICENSE.md | ||
|
||
PKG_USE_MIPS16:=0 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/coremark | ||
SECTION:=utils | ||
CATEGORY:=Utilities | ||
TITLE:=CoreMark Embedded Microprocessor Benchmark | ||
URL:=https://github.com/eembc/coremark | ||
endef | ||
|
||
define Package/coremark/description | ||
Embedded Microprocessor Benchmark | ||
endef | ||
|
||
define Package/coremark/config | ||
config COREMARK_OPTIMIZE_O3 | ||
bool "Use all optimizations (-O3)" | ||
depends on PACKAGE_coremark | ||
default y | ||
help | ||
This enables additional optmizations using the -O3 compilation flag. | ||
|
||
config COREMARK_ENABLE_MULTITHREADING | ||
bool "Enable multithreading support" | ||
depends on PACKAGE_coremark | ||
default n | ||
help | ||
This enables multithreading support | ||
|
||
config COREMARK_NUMBER_OF_THREADS | ||
int "Number of threads" | ||
depends on COREMARK_ENABLE_MULTITHREADING | ||
default 2 | ||
help | ||
Number of threads to run in parallel | ||
endef | ||
|
||
TARGET_CFLAGS += -flto | ||
|
||
ifeq ($(CONFIG_COREMARK_OPTIMIZE_O3),y) | ||
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3 | ||
endif | ||
|
||
ifeq ($(CONFIG_COREMARK_ENABLE_MULTITHREADING),y) | ||
EXTRA_CFLAGS := -DMULTITHREAD=$(CONFIG_COREMARK_NUMBER_OF_THREADS) -DUSE_PTHREAD | ||
endif | ||
|
||
define Build/Compile | ||
$(SED) 's|EXE = .exe|EXE =|' $(PKG_BUILD_DIR)/posix/core_portme.mak | ||
mkdir $(PKG_BUILD_DIR)/$(ARCH) | ||
$(CP) -r $(PKG_BUILD_DIR)/linux/* $(PKG_BUILD_DIR)/$(ARCH) | ||
$(MAKE) -C $(PKG_BUILD_DIR) PORT_DIR=$(ARCH) $(MAKE_FLAGS) \ | ||
PORT_CFLAGS="$(TARGET_CFLAGS)" XCFLAGS="$(EXTRA_CFLAGS)" compile | ||
endef | ||
|
||
define Package/coremark/install | ||
$(INSTALL_DIR) $(1)/bin | ||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/coremark $(1)/bin/ | ||
endef | ||
|
||
$(eval $(call BuildPackage,coremark)) |
Oops, something went wrong.