mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00:00
Compare commits
3 Commits
d4321095cd
...
12342ac3ea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
12342ac3ea | ||
|
|
9d6d44487f | ||
|
|
ccdef839f5 |
@@ -1,62 +0,0 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=netstinky
|
||||
PKG_VERSION:=1.0.0
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE:=nsids-$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/wanduow/netstinky-ids/releases/download/v$(PKG_VERSION)/
|
||||
PKG_HASH:=143e8d7a9ee7f58893d92b065aed7eca35798f5807b07d9a78f404ea8614e216
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/nsids-$(PKG_VERSION)
|
||||
|
||||
PKG_MAINTAINER:=Andrew Mackintosh <amackint@waikato.ac.nz>
|
||||
PKG_LICENSE:=BSD-2-Clause
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_INSTALL:=1
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/netstinky
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
DEPENDS:=+libpcap +libuv +libopenssl +umdns
|
||||
TITLE:=NetStinky IDS for detecting IoCs on an active network
|
||||
URL:=https://netstinky.wand.net.nz/
|
||||
endef
|
||||
|
||||
define Package/netstinky/description
|
||||
The NetStinky IDS is a component of the NetStinky suite of tools. It
|
||||
monitors the traffic on the LAN interfaces of your router for Indications
|
||||
of Compromise (IoCs), drawn from an auto-updating list of definitions.
|
||||
IoCs are subsequently reported to the NetStinky smartphone applications.
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-mdns=no \
|
||||
--enable-updates
|
||||
|
||||
define Package/netstinky/conffiles
|
||||
/etc/config/netstinky
|
||||
endef
|
||||
|
||||
define Package/netstinky/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(INSTALL_BIN) \
|
||||
$(PKG_INSTALL_DIR)/usr/bin/nsids \
|
||||
$(1)/usr/bin
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/init.d
|
||||
$(INSTALL_BIN) \
|
||||
./files/nsids.init \
|
||||
$(1)/etc/init.d/nsids
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/config
|
||||
$(INSTALL_CONF) \
|
||||
./files/nsids.conf \
|
||||
$(1)/etc/config/netstinky
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,netstinky))
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
|
||||
config netstinky 'ids'
|
||||
option interface 'lan'
|
||||
option port '8089'
|
||||
option updatehost 'netstinky-api.wand.net.nz'
|
||||
option updateport '15000'
|
||||
option sslnoverify 'false'
|
||||
|
||||
@@ -1,64 +0,0 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
START=95
|
||||
STOP=01
|
||||
|
||||
CONFIGURATION=netstinky
|
||||
|
||||
validate_ids_section()
|
||||
{
|
||||
uci_load_validate netstinky netstinky "$1" "$2" \
|
||||
'interface:string:lan' \
|
||||
'port:uinteger:8089' \
|
||||
'updatehost:string' \
|
||||
'updateport:uinteger' \
|
||||
'sslnoverify:bool:false'
|
||||
}
|
||||
|
||||
netstinky_instance()
|
||||
{
|
||||
[ "$2" = 0 ] || {
|
||||
echo "validation failed"
|
||||
return 1
|
||||
}
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/bin/nsids
|
||||
|
||||
if [ -n "${interface}" ]; then
|
||||
local iface
|
||||
network_get_device iface "${interface}"
|
||||
procd_append_param command -i "${iface}"
|
||||
fi
|
||||
procd_append_param command -p "${port}"
|
||||
[ -n "${updatehost}" ] && procd_append_param command --update-host "${updatehost}"
|
||||
[ -n "${updateport}" ] && procd_append_param command --update-port "${updateport}"
|
||||
[ "${sslnoverify}" -eq 1 ] && procd_append_param command --ssl-no-verify
|
||||
|
||||
procd_set_param stderr 1
|
||||
procd_set_param stdout 1
|
||||
|
||||
procd_add_mdns "netstinky" "tcp" "$port"
|
||||
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
start_service()
|
||||
{
|
||||
. /lib/functions/network.sh
|
||||
|
||||
config_load "${CONFIGURATION}"
|
||||
config_foreach validate_ids_section netstinky netstinky_instance
|
||||
}
|
||||
|
||||
service_triggers()
|
||||
{
|
||||
procd_add_config_trigger "config.change" "netstinky" /etc/init.d/nsids reload
|
||||
|
||||
config_load "${CONFIGURATION}"
|
||||
|
||||
procd_add_validation validate_ids_section
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
--- a/updates/ids_tls_update.c
|
||||
+++ b/updates/ids_tls_update.c
|
||||
@@ -68,11 +68,13 @@ setup_context(const char *hostname, int
|
||||
int rc;
|
||||
unsigned long ssl_err = 0;
|
||||
|
||||
+#if OPENSSL_API_COMPAT < 0x10100000L
|
||||
SSL_load_error_strings();
|
||||
SSL_library_init();
|
||||
OpenSSL_add_all_algorithms();
|
||||
ERR_load_BIO_strings();
|
||||
ERR_load_crypto_strings();
|
||||
+#endif
|
||||
|
||||
#ifdef HAVE_TLS_METHOD
|
||||
method = TLS_method();
|
||||
@@ -1,52 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2016-2020 OpenWrt.org
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=webui-aria2
|
||||
PKG_SOURCE_DATE:=2018-12-09
|
||||
PKG_SOURCE_VERSION:=fb9d758d5cdc2be0867ee9502c44fd17560f5d24
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
|
||||
PKG_SOURCE_URL:=https://codeload.github.com/ziahamza/webui-aria2/tar.gz/$(PKG_SOURCE_VERSION)?
|
||||
PKG_HASH:=4cddcbd64a7b20baf0c2c31cb3c07d0fa01576a12c4e6feefd0840acd3f65919
|
||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
|
||||
|
||||
PKG_LICENSE:=MIT
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Hsing-Wang Liao <kuoruan@gmail.com>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/webui-aria2
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
SUBMENU:=Download Manager
|
||||
DEPENDS:=
|
||||
TITLE:=An interface to interact with aria2
|
||||
URL:=https://github.com/ziahamza/webui-aria2
|
||||
PKGARCH:=all
|
||||
endef
|
||||
|
||||
define Package/webui-aria2/description
|
||||
The aim for this project is to create the worlds best and hottest interface to interact with aria2. Very simple to use.
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
endef
|
||||
|
||||
define Package/webui-aria2/install
|
||||
$(INSTALL_DIR) $(1)/www/webui-aria2
|
||||
|
||||
$(CP) \
|
||||
$(PKG_BUILD_DIR)/docs/* \
|
||||
$(PKG_BUILD_DIR)/{LICENSE,favicon.ico} \
|
||||
$(1)/www/webui-aria2
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,webui-aria2))
|
||||
@@ -1,11 +0,0 @@
|
||||
--- a/docs/index.html
|
||||
+++ b/docs/index.html
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<!-- {{{ head -->
|
||||
<head>
|
||||
- <link rel="icon" href="../favicon.ico" />
|
||||
+ <link rel="icon" href="favicon.ico" />
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
@@ -1,12 +1,12 @@
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=syncthing
|
||||
PKG_VERSION:=2.0.11
|
||||
PKG_VERSION:=2.0.12
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE:=syncthing-source-v$(PKG_VERSION).tar.gz
|
||||
PKG_SOURCE_URL:=https://github.com/syncthing/syncthing/releases/download/v$(PKG_VERSION)
|
||||
PKG_HASH:=a9656cded5048bac4937e7046b1b4d5fb6d78bca01df2eed495335be6d4ab643
|
||||
PKG_HASH:=56004ae6d974aa387c3c6a734eb98aafd5d6159fc657a1f4c618e0b1814fadae
|
||||
|
||||
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/$(PKG_NAME)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user