include $(TOPDIR)/rules.mk
PKG_NAME:=attrs
-PKG_VERSION:=15.2.0
+PKG_VERSION:=16.0.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://pypi.python.org/packages/source/a/attrs
-PKG_MD5SUM:=b3c460eb6482f6e557c0e4025475c007
+PKG_SOURCE_URL:=https://pypi.python.org/packages/89/15/80d388d696c8c8ba14874635207aa698eb30ef1242dbb54d9eccf0e927ff
+PKG_MD5SUM:=5bcdd418f6e83e580434c63067c08a73
PKG_BUILD_DEPENDS:=python python-setuptools
include $(TOPDIR)/rules.mk
PKG_NAME:=cffi
-PKG_VERSION:=1.5.2
-PKG_RELEASE:=2
+PKG_VERSION:=1.7.0
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://pypi.python.org/packages/source/c/cffi
-PKG_MD5SUM:=fa766133f7299464c8bf857e0c966a82
+PKG_SOURCE_URL:=https://pypi.python.org/packages/83/3c/00b553fd05ae32f27b3637f705c413c4ce71290aa9b4c4764df694e906d9
+PKG_MD5SUM:=34122a545060cee58bab88feab57006d
PKG_BUILD_DEPENDS:=python python-setuptools
HOST_BUILD_DEPENDS:=libffi/host python/host python-setuptools/host python-pycparser/host
CATEGORY:=Libraries
TITLE:=Rakshasa's BitTorrent library
URL:=http://libtorrent.rakshasa.no/
- DEPENDS:=+libopenssl +libsigcxx
+ DEPENDS:=+libopenssl +libsigcxx +zlib
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
endef
CATEGORY:=Libraries
TITLE:=HTTP and WebDAV client library
URL:=http://www.webdav.org/neon/
- DEPENDS:=+libopenssl +libexpat
+ DEPENDS:=+libopenssl +libexpat +zlib
MAINTAINER:=Federico Di Marco <fededim@gmail.com>
endef
define Package/mutt
SECTION:=mail
CATEGORY:=Mail
- DEPENDS:=+libopenssl +libncursesw
+ DEPENDS:=+libopenssl +libncursesw +zlib
TITLE:=Console mail client
URL:=http://www.mutt.org/
endef
define Package/aircrack-ng
SECTION:=net
CATEGORY:=Network
- DEPENDS:=+libpcap +libpthread +libopenssl +libnl-core +libnl-genl
+ DEPENDS:=+libpcap +libpthread +libopenssl +libnl-core +libnl-genl +zlib
TITLE:=WLAN tools (without airmon-ng) for breaking 802.11 WEP/WPA keys
URL:=http://www.aircrack-ng.org/
SUBMENU:=wireless
PKG_NAME:=aria2
PKG_VERSION:=1.25.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=https://github.com/aria2/aria2/releases/download/release-$(PKG_VERSION)/
option enable_dht 'true'
option follow_torrent 'true'
option user 'root'
- option dir '/mnt/sda1'
+ option dir '/mnt/sda1/aria2'
option save_session_interval '30'
section_enabled "$s" || return 1
config_get config_dir "$s" 'config_dir' '/var/etc/aria2'
+ config_get dir "$s" 'dir'
config_get user "$s" 'user'
config_file="$config_dir/aria2.conf"
[ -d "$config_dir" ] || {
mkdir -m 0755 -p "$config_dir"
touch "$config_file"
- [ -z "$user" ] || chown -R $user $config_dir
}
- touch "$session_file"
+ [ -d "$dir" ] || {
+ mkdir -m 0755 -p "$dir" # create download dir
+ touch "$dir"
+ }
+
+ touch "$session_file" # create session file
echo -e "enable-rpc=true\nrpc-allow-origin-all=true\nrpc-listen-all=true\nquiet=true" > $config_file
echo -e "continue=true\ninput-file=$session_file\nsave-session=$session_file" >> $config_file
option_disabled "$s" 'enable_dht' || echo "dht-file-path=$dht_file" >> $config_file
option_disabled "$s" 'enable_log' || {
- touch "$log_file"
+ [ -f "$log_file" ] && echo > $log_file # if log file exist, clear it
echo -e "log=$log_file" >> $config_file
}
+ # if user is set, change dir owner
+ [ -z "$user" ] || {
+ chown -R $user:$user $config_dir
+ chown -R $user:$user $dir
+ }
+
append_params "$s" \
file_allocation bt_enable_lpd enable_dht rpc_user rpc_passwd rpc_listen_port dir bt_tracker disk_cache \
max_overall_download_limit max_overall_upload_limit max_download_limit max_upload_limit max_concurrent_downloads \
max_connection_per_server min_split_size split save_session_interval follow_torrent listen_port bt_max_peers \
- peer_id_prefix user_agent rpc_secret
+ peer_id_prefix user_agent rpc_secret log_level
config_list_foreach "$s" extra_settings append_extrasettings
CATEGORY:=Network
URL:=https://wiki.hamburg.ccc.de/index.php/ChaosVPN::DebianHowto
SUBMENU:=VPN
- DEPENDS:=+tinc +ip +kmod-tun +libopenssl
+ DEPENDS:=+tinc +ip +kmod-tun +libopenssl +zlib
endef
define Package/chaosvpn/description
define Package/freeradius2-common
$(call Package/freeradius2/Default)
TITLE:=common files
- DEPENDS:=+libpthread +FREERADIUS_OPENSSL:libopenssl
+ DEPENDS:=+libpthread +FREERADIUS_OPENSSL:libopenssl +zlib
endef
define Package/freeradius2-mod-chap
SECTION:=net
CATEGORY:=Network
SUBMENU:=Version Control Systems
- DEPENDS:=+libopenssl +libpthread +librt
+ DEPENDS:=+libopenssl +libpthread +librt +zlib
TITLE:=The fast version control system
URL:=http://git-scm.com
MAINTAINER:=Peter Wagner <tripolar@gmx.at>
PKG_NAME:=mini_snmpd
PKG_VERSION:=1.4-rc1
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_MAINTAINER:=Luke McKee <hojuruku@gmail.com>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
local name="$1" netdev netdev_count
[ -z $netdev_count ] && netdev_count=0
# for the purposes of snmp monitoring it doesn't need to be up, it just needs to exist in /proc/net/dev
- netdev=$(ubus -S call network.interface dump|jsonfilter -e "@.interface[@.interface=\"$name\"].device")
+ netdev=$(ubus -S call network.interface dump|jsonfilter -e "@.interface[@.interface=\"$name\"].l3_device")
if [ -n "$netdev" ] && grep -qF "$netdev" /proc/net/dev ]; then
[ $netdev_count -ge 4 ] && {
_err "$cfg: too many network interfaces configured, ignoring $name"
define Package/stunnel
SECTION:=net
CATEGORY:=Network
- DEPENDS:=+libopenssl
+ DEPENDS:=+libopenssl +zlib
TITLE:=SSL TCP Wrapper
URL:=http://www.stunnel.org/
endef
--- /dev/null
+#
+# Copyright (C) 2016 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:=tcpreplay
+PKG_VERSION:=4.1.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/appneta/tcpreplay/releases/download/v$(PKG_VERSION)
+PKG_MD5SUM:=80394c33fe697b53b69eac9bb0968ae9
+
+PKG_LICENSE:=GPL-3.0
+
+PKG_FIXUP:=libtool
+PKG_INSTALL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+TCPREPLAY_MODULES:= \
+ tcpbridge tcpcapinfo tcpliveplay tcpprep \
+ tcpreplay tcpreplay-edit tcprewrite
+
+define Package/tcpreplay/default
+ SUBMENU:=tcprelay
+ SECTION:=net
+ CATEGORY:=Network
+ URL:=http://tcpreplay.appneta.com/
+ MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
+ DEPENDS:=+librt +libpcap
+endef
+
+define Package/tcpbridge
+$(call Package/tcpreplay/default)
+ TITLE:=Bridge network traffic across two interfaces
+endef
+
+define Package/tcpcapinfo
+$(call Package/tcpreplay/default)
+ TITLE:=Pcap file dissector for debugging broken pcap files
+endef
+
+define Package/tcpliveplay
+$(call Package/tcpreplay/default)
+ TITLE:=Replays network traffic stored in a pcap file on live networks using new TCP connections
+endef
+
+define Package/tcpprep
+$(call Package/tcpreplay/default)
+ TITLE:=Create a tcpreplay cache file from a pcap file
+endef
+
+define Package/tcpreplay
+$(call Package/tcpreplay/default)
+ TITLE:=Replay network traffic stored in pcap files
+endef
+
+define Package/tcpreplay-edit
+$(call Package/tcpreplay/default)
+ TITLE:=Replay network traffic stored in pcap files
+endef
+
+define Package/tcprewrite
+$(call Package/tcpreplay/default)
+ TITLE:=Rewrite the packets in a pcap file
+endef
+
+define Package/tcpreplay-all
+$(call Package/tcpreplay/default)
+ TITLE:=Pcap editing and replaying utilities
+ DEPENDS:=$(foreach m,$(TCPREPLAY_MODULES),+$(m))
+endef
+
+define Package/tcpbridge/description
+ tcpbridge is a tool for selectively briding network traffic across two
+ interfaces and optionally modifying the packets in between
+endef
+
+define Package/tcpcapinfo/description
+ tcpcapinfo is a tool for decoding the structure of a pcap(3) file with a
+ focus on finding broken pcap files and determining how two related pcap
+ files might differ.
+endef
+
+define Package/tcpliveplay/description
+ This program, 'tcpliveplay' replays a captured set of packets using new TCP
+ connections with the captured TCP payloads against a remote host in order
+ to do comprehensive vulnerability testings.
+endef
+
+define Package/tcpprep/description
+ tcpprep is a ``pcap(3)'' file pre-processor which creates a cache file
+ which provides "rules" for ``tcprewrite(1)'' and ``tcpreplay(1)'' on how to
+ process and send packets.
+endef
+
+define Package/tcpreplay/description
+ tcpreplay is a tool for replaying network traffic from files saved with
+ tcpdump or other tools which write pcap(3) files.
+endef
+
+define Package/tcpreplay-edit/description
+ tcpreplay-edit includes all the functionality of both tcpreplay
+ and tcprewrite.
+endef
+
+define Package/tcprewrite/description
+ Rewrite/edit the packets in a pcap file
+endef
+
+define Package/tcpreplay-all/description
+ Tcpreplay is a suite of free Open Source utilities for
+ editing and replaying previously captured network traffic.
+ Originally designed to replay malicious traffic patterns to
+ Intrusion Detection/Prevention Systems, it has seen many evolutions
+ including capabilities to replay to web servers.
+
+ Version 4.0.0 introduces features and performance enhancements
+ to support switches, routers, and IP Flow/NetFlow appliances.
+endef
+
+CONFIGURE_ARGS += \
+ --enable-force-pf \
+ --enable-dynamic-link \
+ --prefix="$(PKG_INSTALL_DIR)/usr" \
+ --exec-prefix="$(PKG_INSTALL_DIR)/usr" \
+ --with-libpcap="$(STAGING_DIR)/usr"
+
+define tcpreplayTemplate
+ define Package/$(1)/install
+ $(INSTALL_DIR) $$(1)/usr/bin ; \
+ $(CP) $$(PKG_INSTALL_DIR)/usr/bin/$(1) $$(1)/usr/bin
+ endef
+endef
+
+define Package/tcpreplay-all/install
+ :
+endef
+
+$(foreach m, $(TCPREPLAY_MODULES), \
+ $(eval $(call tcpreplayTemplate,$(m))) \
+ $(eval $(call BuildPackage,$(m))) \
+)
+
+$(eval $(call BuildPackage,tcpreplay-all))
+
--- /dev/null
+diff --git a/configure.ac b/configure.ac
+index 6c61381..7f72871 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -773,7 +773,6 @@ if ! test $using_pcap_config = yes; then
+ AC_CHECK_LIB(nl, nl_cache_alloc, [nl_found=yes])
+ AC_CHECK_LIB(nl-genl-3, genl_connect, [nl_genl_3_found=yes])
+ AC_CHECK_LIB(nl-3, nl_cache_alloc, [nl_3_found=yes])
+- AC_CHECK_LIB(dbus-1, dbus_malloc, [dbus_1_found=yes])
+ if test "$nl_found" = "yes"; then
+ LPCAPLIB="$LPCAPLIB -lnl"
+ fi
define Package/tinc
SECTION:=net
CATEGORY:=Network
- DEPENDS:=+liblzo +libopenssl +kmod-tun
+ DEPENDS:=+liblzo +libopenssl +kmod-tun +zlib
TITLE:=VPN tunneling daemon
URL:=http://www.tinc-vpn.org/
MAINTAINER:=Saverio Proto <zioproto@gmail.com>
define Package/tor
$(call Package/tor/Default)
TITLE:=An anonymous Internet communication system
- DEPENDS:=+libevent2 +libopenssl +libpthread +librt
+ DEPENDS:=+libevent2 +libopenssl +libpthread +librt +zlib
endef
define Package/tor/description
define Package/transmission-daemon/Default
$(call Package/transmission/template)
- DEPENDS:=+libcurl +libpthread +libevent2 +librt
+ DEPENDS:=+libcurl +libpthread +libevent2 +librt +zlib
USERID:=transmission=224:transmission=224
endef
define Package/transmission-daemon-polarssl
$(call Package/transmission-daemon/Default)
TITLE+= (with PolarSSL)
- DEPENDS+=+libpolarssl +zlib
+ DEPENDS+=+libpolarssl
VARIANT:=polarssl
endef
define Package/transmission-cli/Default
$(call Package/transmission/template)
- DEPENDS:=+libcurl +libpthread +libevent2 +librt
+ DEPENDS:=+libcurl +libpthread +libevent2 +librt +zlib
endef
define Package/transmission-cli-openssl
define Package/transmission-cli-polarssl
$(call Package/transmission-cli/Default)
TITLE+= (with PolarSSL)
- DEPENDS+=+libpolarssl +zlib
+ DEPENDS+=+libpolarssl
VARIANT:=polarssl
endef
define Package/transmission-remote/Default
$(call Package/transmission/template)
- DEPENDS:=+libcurl +libpthread +libevent2 +librt
+ DEPENDS:=+libcurl +libpthread +libevent2 +librt +zlib
endef
define Package/transmission-remote-openssl
define Package/transmission-remote-polarssl
$(call Package/transmission-remote/Default)
TITLE+= (with PolarSSL)
- DEPENDS+=+libpolarssl +zlib
+ DEPENDS+=+libpolarssl
VARIANT:=polarssl
endef
define Package/wget/Default
SECTION:=net
CATEGORY:=Network
- DEPENDS:=+libpcre
+ DEPENDS:=+libpcre +zlib
SUBMENU:=File Transfer
TITLE:=Non-interactive network downloader
URL:=http://www.gnu.org/software/wget/index.html
define Package/wget-nossl
$(call Package/wget/Default)
TITLE+= (without SSL support)
- DEPENDS+= +zlib
VARIANT:=nossl
endef