Merge pull request #12159 from peter-stadler/nginx-smp
authorRosen Penev <rosenp@gmail.com>
Sun, 24 May 2020 02:53:54 +0000 (19:53 -0700)
committerGitHub <noreply@github.com>
Sun, 24 May 2020 02:53:54 +0000 (19:53 -0700)
nginx: do not reduce max processes

127 files changed:
admin/netatop/Makefile
admin/syslog-ng/Makefile
admin/syslog-ng/files/syslog-ng.init
devel/meson/Makefile
kernel/exfat-nofuse/Makefile
lang/golang/golang-package.mk
lang/golang/golang-values.mk
lang/golang/golang/Makefile
lang/php7-pecl-redis/Makefile
lang/php7/Makefile
lang/python/README.md
lang/python/django-jsonfield2/Makefile [new file with mode: 0644]
lang/python/django-postoffice/Makefile
lang/python/python-atomicwrites/Makefile
lang/python/python-chardet/Makefile
lang/python/python-more-itertools/Makefile
lang/python/python-twisted/Makefile
lang/python/python3-find-stdlib-depends.sh [new file with mode: 0644]
lang/python/python3-package.mk
lang/python/python3-version.mk
lang/python/python3/Makefile
lang/python/python3/files/python3-package-dev.mk
lang/python/python3/files/python3-package-openssl.mk
lang/python/python3/files/python3-package-pip.mk
lang/python/python3/files/python3-package-setuptools.mk
lang/python/python3/patches-setuptools/004-site-patch.patch [new file with mode: 0644]
lang/python/python3/patches/004-do-not-write-bytes-codes.patch
lang/python/python3/patches/014-remove-platform-so-suffix.patch
lang/python/python3/patches/016-adjust-config-paths.patch
lang/python/python3/patches/020-ssl-module-emulate-tls-methods.patch
lang/python/python3/patches/021-openssl-deprecated.patch
libs/c-ares/Makefile
libs/faad2/Makefile
libs/faad2/patches/010-lc-decoder.patch [deleted file]
libs/faad2/patches/020-bits.patch [deleted file]
libs/libcap-ng/Makefile [new file with mode: 0644]
libs/libcap-ng/patches/add_library_if_header_found.patch [new file with mode: 0644]
libs/libcap-ng/patches/fix-includes.patch [new file with mode: 0644]
libs/libcap-ng/patches/fix_build_without_threads.patch [new file with mode: 0644]
libs/libebml/Makefile [new file with mode: 0644]
libs/libfuse3/Makefile [new file with mode: 0644]
libs/libmariadb/Makefile
libs/libmatroska/Makefile [new file with mode: 0644]
libs/libmicrohttpd/Makefile
libs/libnpupnp/Makefile
libs/libupnpp/Makefile
libs/libwebp/Makefile
libs/measurement-kit/Makefile
libs/nspr/Makefile
libs/nss/Makefile
libs/nss/patches/003-openwrt_fix.patch
libs/p11-kit/Makefile
libs/spice-protocol/Makefile
libs/taglib/Makefile [new file with mode: 0644]
multimedia/ffmpeg/Makefile
multimedia/ffmpeg/patches/050-glibc.patch [new file with mode: 0644]
multimedia/gerbera/Makefile
net/adblock/Makefile
net/adblock/files/README.md
net/adblock/files/adblock.init
net/adblock/files/adblock.sh
net/adblock/files/adblock.sources
net/apache/Makefile
net/apache/files/apache2.init
net/bind/Makefile
net/cifs-utils/Makefile
net/dawn/Makefile
net/etesync-server/Makefile [new file with mode: 0644]
net/etesync-server/files/81_setup-etesync-server [new file with mode: 0644]
net/etesync-server/files/etesync.locations [new file with mode: 0644]
net/etesync-server/files/uci.cfg [new file with mode: 0644]
net/etesync-server/files/uwsgi.ini [new file with mode: 0644]
net/etesync-server/files/uwsgi.init [new file with mode: 0644]
net/fastd/Config.in
net/fastd/Makefile
net/fastd/patches/0001-resolve-fix-segmentation-fault-with-musl-1.1.20.patch [deleted file]
net/fastd/patches/0002-doc-examples-openwrt-fix-init-script-wasn-t-working-.patch [deleted file]
net/knot/Makefile
net/knot/patches/03-configure-allow-to-manually-disable-POSIX-capabiliti.patch [new file with mode: 0644]
net/libreswan/Makefile
net/libreswan/files/ipsec.init
net/libreswan/patches/030-fix_nss_3.52.patch [new file with mode: 0644]
net/libreswan/patches/099-continue_on_missing_ipv6.patch [new file with mode: 0644]
net/netsniff-ng/Makefile [new file with mode: 0644]
net/netsniff-ng/patches/0001-configure-script-honors-C-LD-FLAGS.patch [new file with mode: 0644]
net/netsniff-ng/patches/0002-fix-ncurses-check-during-configure.patch [new file with mode: 0644]
net/netsniff-ng/patches/0003-removed-flowtop-pkg-config-usage-for-ncurses.patch [new file with mode: 0644]
net/nextdns/Makefile
net/openvswitch/Makefile
net/seafile-ccnet/Makefile
net/seafile-seahub/Makefile
net/seafile-seahub/patches/030-uci-conf.patch
net/seafile-server/Makefile
net/seafile-server/patches/060-timestamps-as-int64.patch
net/shorewall-core/Makefile
net/shorewall-lite/Makefile
net/shorewall/Makefile
net/shorewall6-lite/Makefile
net/shorewall6/Makefile
net/unbound/Makefile
sound/mpd/Makefile
sound/upmpdcli/Makefile
utils/collectd/Makefile
utils/collectd/files/exec-scripts/sqm_collectd.sh
utils/containerd/Makefile
utils/docker-ce/Makefile
utils/fuse/Makefile [new file with mode: 0644]
utils/fuse/patches/100-missing_includes.patch [new file with mode: 0644]
utils/fuse/patches/112-no_break_on_mknod.patch [new file with mode: 0644]
utils/fuse/patches/200-backport_arm64_fuse_kernel_h_clean_includes.patch [new file with mode: 0644]
utils/lxc/Config.in
utils/lxc/Makefile
utils/lxc/files/lxc-auto.init
utils/lxc/patches/001-nl-avoid-NULL-pointer-dereference.patch [deleted file]
utils/lxc/patches/002-compile.patch [deleted file]
utils/lxc/patches/003-compile.patch [deleted file]
utils/lxc/patches/010-Remove-distro-check.patch [new file with mode: 0644]
utils/lxc/patches/010-compile.patch [deleted file]
utils/lxc/patches/015-getline.patch
utils/lxc/patches/020-lxc-checkconfig.patch
utils/lxc/patches/025-remove-unsupported-option.patch
utils/lxc/patches/030-prlimit.patch [deleted file]
utils/mariadb/Makefile
utils/open-vm-tools/Makefile
utils/open-vm-tools/patches/0010-Use-uintmax_t-for-handling-rlim_t.patch
utils/qemu/Makefile
utils/runc/Makefile

index f872d40c3dbb70f0e4c16ab7b8875c6ed78a8424..aca607d8aeec40b4e0c4c297a420230b444c04e7 100644 (file)
@@ -6,10 +6,10 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=netatop
 PKG_RELEASE:=1
-PKG_VERSION:=2.0
+PKG_VERSION:=3.1
 PKG_LICENSE:=GPL-2.0
 PKG_SOURCE_URL:=https://www.atoptool.nl/download/
-PKG_HASH:=c66d7ca094d667428924f2faff2afb816b17565e8c3628e43bfa0e1a2e22c20e
+PKG_HASH:=736f43572c31a90748f023f0a5a814bff58d44c0c3f060d776cfd6e6e8435c62
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_MAINTAINER:=Toni Uhlig <matzeton@googlemail.com>
index 50540d54e7820d6390472dca6e02f40c73e221c2..5be6f4365824a5b018fdab7549b17cfc589a03e0 100644 (file)
@@ -1,8 +1,8 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=syslog-ng
-PKG_VERSION:=3.26.1
-PKG_RELEASE:=2
+PKG_VERSION:=3.27.1
+PKG_RELEASE:=1
 
 PKG_MAINTAINER:=Josef Schlehofer <josef.schlehofer@nic.cz>
 PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later
@@ -11,7 +11,7 @@ PKG_CPE_ID:=cpe:/a:balabit:syslog-ng
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://github.com/syslog-ng/syslog-ng/releases/download/$(PKG_NAME)-$(PKG_VERSION)/
-PKG_HASH:=90214223864df252cea80dbb35c88a2464edcbbb2c9fbc6f6f6c13ee60cb62cd
+PKG_HASH:=c54c633c97f7fd8dd68261cfd784a76211e6e52965178e3aa4d0e32b899d61b3
 
 PKG_BUILD_PARALLEL:=1
 PKG_INSTALL:=1
@@ -48,7 +48,7 @@ define Build/Configure
 endef
 
 CONFIGURE_ARGS +=  \
-       --disable-snmp-dest \
+       --disable-afsnmp \
        $(call autoconf_bool,CONFIG_IPV6,ipv6) \
        --disable-tcp-wrapper \
        --disable-spoof-source \
index b68c6574f5bf9e6530f5d0623ed9a7ce040b4ff0..5ca2d2aa7f01a5b8c1260133c16581ce0f002d5e 100644 (file)
@@ -11,3 +11,7 @@ start_service() {
        procd_set_param command /usr/sbin/syslog-ng --foreground
        procd_close_instance
 }
+
+reload_service() {
+       /usr/sbin/syslog-ng-ctl reload
+}
index 54b48a6fdf1f0a1bf4b47346e0632ccf5c65ca09..01bff636e96aa87218a7e70ef9926b48c39392a3 100644 (file)
@@ -1,11 +1,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=meson
-PKG_VERSION:=0.54.1
+PKG_VERSION:=0.54.2
 PKG_RELEASE:=1
 
 PYPI_NAME:=meson
-PKG_HASH:=2f76fb4572762be13ee479292610091b4509af5788bcceb391fe222bcd0296dc
+PKG_HASH:=a7716eeae8f8dff002e4147642589ab6496ff839e4376a5aed761f83c1fa0455
 
 PKG_MAINTAINER:=Andre Heider <a.heider@gmail.com>
 PKG_LICENSE:=Apache-2.0
index 7ea049831eff9195a02142f9dec5e1bd84d56530..f9110b7332bf642be2156466fd43d9d0c4782aa5 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/kernel.mk
 
 PKG_NAME:=exfat-nofuse
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE_URL:=https://github.com/dorimanx/exfat-nofuse.git
 PKG_SOURCE_PROTO:=git
@@ -36,15 +36,10 @@ define KernelPackage/fs-exfat0/description
        Kernel module for ExFAT Filesytems
 endef
 
-MAKE_OPTS:= \
-       ARCH="$(LINUX_KARCH)" \
-       CROSS_COMPILE="$(TARGET_CROSS)" \
-       M="$(PKG_BUILD_DIR)"
-
 define Build/Compile
-       $(MAKE) -C "$(LINUX_DIR)" \
-               $(MAKE_OPTS) \
+       $(KERNEL_MAKE) \
                CONFIG_EXFAT_FS=m \
+               M="$(PKG_BUILD_DIR)" \
                modules
 endef
 
index 303ae0eb381772a5b6680fae9a1e9ae928938190..dc603862157c8b43b503ee3f7d6902e564f60a35 100644 (file)
@@ -89,7 +89,12 @@ include $(GO_INCLUDE_DIR)/golang-values.mk
 #
 #   Additional go tool link arguments to use when building targets.
 #
-#   e.g. GO_PKG_LDFLAGS:=-s -w
+#   Note that the OpenWrt build system has an option to strip binaries
+#   (enabled by default), so -s (Omit the symbol table and debug
+#   information) and -w (Omit the DWARF symbol table) flags are not
+#   necessary.
+#
+#   e.g. GO_PKG_LDFLAGS:=-r dir1:dir2 -u
 #
 #
 # GO_PKG_LDFLAGS_X - list of string variable definitions, default empty
@@ -147,16 +152,6 @@ ifneq ($(CONFIG_USE_SSTRIP),)
     GO_PKG_STRIP_ARGS:=--strip-all
   endif
   STRIP:=$(TARGET_CROSS)strip $(GO_PKG_STRIP_ARGS)
-  RSTRIP= \
-    export CROSS="$(TARGET_CROSS)" \
-               $(if $(PKG_BUILD_ID),KEEP_BUILD_ID=1) \
-               $(if $(CONFIG_KERNEL_KALLSYMS),NO_RENAME=1) \
-               $(if $(CONFIG_KERNEL_PROFILING),KEEP_SYMBOLS=1); \
-    NM="$(TARGET_CROSS)nm" \
-    STRIP="$(STRIP)" \
-    STRIP_KMOD="$(SCRIPT_DIR)/strip-kmod.sh" \
-    PATCHELF="$(STAGING_DIR_HOST)/bin/patchelf" \
-    $(SCRIPT_DIR)/rstrip.sh
 endif
 
 define GoPackage/GoSubMenu
@@ -165,7 +160,7 @@ define GoPackage/GoSubMenu
   CATEGORY:=Languages
 endef
 
-define GoPackage/Environment/Target
+GO_PKG_TARGET_VARS= \
        GOOS=$(GO_OS) \
        GOARCH=$(GO_ARCH) \
        GO386=$(GO_386) \
@@ -179,20 +174,57 @@ define GoPackage/Environment/Target
        CGO_CPPFLAGS="$(TARGET_CPPFLAGS)" \
        CGO_CXXFLAGS="$(filter-out $(GO_CFLAGS_TO_REMOVE),$(TARGET_CXXFLAGS))" \
        CGO_LDFLAGS="$(TARGET_LDFLAGS)"
-endef
 
-define GoPackage/Environment/Build
+GO_PKG_BUILD_VARS= \
        GOPATH=$(GO_PKG_BUILD_DIR) \
        GOCACHE=$(GO_PKG_CACHE_DIR) \
        GOENV=off
-endef
 
-define GoPackage/Environment/Default
-       $(call GoPackage/Environment/Target) \
-       $(call GoPackage/Environment/Build)
-endef
+GO_PKG_DEFAULT_VARS= \
+       $(GO_PKG_TARGET_VARS) \
+       $(GO_PKG_BUILD_VARS)
+
+GO_PKG_VARS=$(GO_PKG_DEFAULT_VARS)
+
+# do not use for new code; this will be removed after the next OpenWrt release
+GoPackage/Environment=$(GO_PKG_VARS)
+
+GO_PKG_DEFAULT_LDFLAGS= \
+       -buildid '$(SOURCE_DATE_EPOCH)' \
+       -linkmode external \
+       -extldflags '$(patsubst -z%,-Wl$(comma)-z$(comma)%,$(TARGET_LDFLAGS))'
+
+GO_PKG_INSTALL_ARGS= \
+       -v \
+       -trimpath \
+       -ldflags "all=$(GO_PKG_DEFAULT_LDFLAGS)"
+
+ifeq ($(GO_PKG_ENABLE_PIE),1)
+  GO_PKG_INSTALL_ARGS+= -buildmode pie
+endif
 
-GoPackage/Environment=$(call GoPackage/Environment/Default)
+ifeq ($(GO_ARCH),arm)
+  GO_PKG_INSTALL_ARGS+= -installsuffix "v$(GO_ARM)"
+
+else ifneq ($(filter $(GO_ARCH),mips mipsle),)
+  GO_PKG_INSTALL_ARGS+= -installsuffix "$(GO_MIPS)"
+
+else ifneq ($(filter $(GO_ARCH),mips64 mips64le),)
+  GO_PKG_INSTALL_ARGS+= -installsuffix "$(GO_MIPS64)"
+
+endif
+
+ifneq ($(strip $(GO_PKG_GCFLAGS)),)
+  GO_PKG_INSTALL_ARGS+= -gcflags "$(GO_PKG_GCFLAGS)"
+endif
+
+GO_PKG_CUSTOM_LDFLAGS= \
+       $(GO_PKG_LDFLAGS) \
+       $(patsubst %,-X %,$(GO_PKG_LDFLAGS_X))
+
+ifneq ($(strip $(GO_PKG_CUSTOM_LDFLAGS)),)
+  GO_PKG_INSTALL_ARGS+= -ldflags "$(GO_PKG_CUSTOM_LDFLAGS) $(GO_PKG_DEFAULT_LDFLAGS)"
+endif
 
 # false if directory does not exist
 GoPackage/is_dir_not_empty=$$$$($(FIND) $(1) -maxdepth 0 -type d \! -empty 2>/dev/null)
@@ -278,7 +310,7 @@ endef
 define GoPackage/Build/Compile
        ( \
                cd $(GO_PKG_BUILD_DIR) ; \
-               export $(call GoPackage/Environment) ; \
+               export $(GO_PKG_VARS) ; \
                \
                echo "Finding targets" ; \
                targets=$$$$(go list $(GO_PKG_BUILD_PKG)) ; \
@@ -295,27 +327,7 @@ define GoPackage/Build/Compile
                \
                if [ "$(strip $(GO_PKG_SOURCE_ONLY))" != 1 ]; then \
                        echo "Building targets" ; \
-                       case $(GO_ARCH) in \
-                       arm)             installsuffix="v$(GO_ARM)" ;; \
-                       mips|mipsle)     installsuffix="$(GO_MIPS)" ;; \
-                       mips64|mips64le) installsuffix="$(GO_MIPS64)" ;; \
-                       esac ; \
-                       ldflags="-linkmode external -extldflags '$(TARGET_LDFLAGS:-z%=-Wl,-z,%)'" ; \
-                       pkg_gcflags="$(strip $(GO_PKG_GCFLAGS))" ; \
-                       pkg_ldflags="$(strip $(GO_PKG_LDFLAGS))" ; \
-                       for def in $(GO_PKG_LDFLAGS_X); do \
-                               pkg_ldflags="$$$$pkg_ldflags -X $$$$def" ; \
-                       done ; \
-                       go install \
-                               $(if $(GO_PKG_ENABLE_PIE),-buildmode pie) \
-                               $$$${installsuffix:+-installsuffix $$$$installsuffix} \
-                               -trimpath \
-                               -ldflags "all=$$$$ldflags" \
-                               -v \
-                               $$$${pkg_gcflags:+-gcflags "$$$$pkg_gcflags"} \
-                               $$$${pkg_ldflags:+-ldflags "$$$$pkg_ldflags $$$$ldflags"} \
-                               $(1) \
-                               $$$$targets ; \
+                       go install $(GO_PKG_INSTALL_ARGS) $(1) $$$$targets ; \
                        retval=$$$$? ; \
                        echo ; \
                        \
index 9792cd8aa412fef61243e92e4669edc3bfdbbb55..d52ad481f1312ecc2df744ef11f2f0a112a396b5 100644 (file)
@@ -156,32 +156,15 @@ ifeq ($(GO_ARCH),386)
 else ifeq ($(GO_ARCH),arm)
   GO_TARGET_FPU:=$(word 2,$(subst +,$(space),$(call qstrip,$(CONFIG_CPU_TYPE))))
 
-  # FPU names from https://gcc.gnu.org/onlinedocs/gcc-8.3.0/gcc/ARM-Options.html#index-mfpu-1
-  # see also https://github.com/gcc-mirror/gcc/blob/gcc-8_3_0-release/gcc/config/arm/arm-cpus.in
-  #
-  # Assumptions:
-  #
-  # * -d16 variants (16 instead of 32 double-precision registers) acceptable
-  #   Go doesn't appear to check the HWCAP_VFPv3D16 flag in
-  #   https://github.com/golang/go/blob/release-branch.go1.13/src/runtime/os_linux_arm.go
-  #
-  # * Double-precision required
-  #   Based on no evidence(!)
-  #   Excludes vfpv3xd, vfpv3xd-fp16, fpv4-sp-d16, fpv5-sp-d16
-
-  GO_ARM_7_FPUS:= \
-    vfpv3 vfpv3-fp16 vfpv3-d16 vfpv3-d16-fp16 neon neon-vfpv3 neon-fp16 \
-    vfpv4 vfpv4-d16 neon-vfpv4 \
-    fpv5-d16 fp-armv8 neon-fp-armv8 crypto-neon-fp-armv8
-
-  GO_ARM_6_FPUS:=vfp vfpv2
-
-  ifneq ($(filter $(GO_TARGET_FPU),$(GO_ARM_7_FPUS)),)
-    GO_ARM:=7
-  else ifneq ($(filter $(GO_TARGET_FPU),$(GO_ARM_6_FPUS)),)
+  # FPU names from https://gcc.gnu.org/onlinedocs/gcc-8.4.0/gcc/ARM-Options.html#index-mfpu-1
+  # see also https://github.com/gcc-mirror/gcc/blob/releases/gcc-8.4.0/gcc/config/arm/arm-cpus.in
+
+  ifeq ($(GO_TARGET_FPU),)
+    GO_ARM:=5
+  else ifneq ($(filter $(GO_TARGET_FPU),vfp vfpv2),)
     GO_ARM:=6
   else
-    GO_ARM:=5
+    GO_ARM:=7
   endif
 
 else ifneq ($(filter $(GO_ARCH),mips mipsle),)
index 3df43d3de83e96cd6de1f748af8f544f94502ab9..56277675ee96657aec015afc809d46b83251bf98 100644 (file)
@@ -8,7 +8,7 @@
 include $(TOPDIR)/rules.mk
 
 GO_VERSION_MAJOR_MINOR:=1.14
-GO_VERSION_PATCH:=2
+GO_VERSION_PATCH:=3
 
 PKG_NAME:=golang
 PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
@@ -20,7 +20,7 @@ GO_SOURCE_URLS:=https://dl.google.com/go/ \
 
 PKG_SOURCE:=go$(PKG_VERSION).src.tar.gz
 PKG_SOURCE_URL:=$(GO_SOURCE_URLS)
-PKG_HASH:=98de84e69726a66da7b4e58eac41b99cbe274d7e8906eeb8a5b7eb0aadee7f7c
+PKG_HASH:=93023778d4d1797b7bc6a53e86c3a9b150c923953225f8a48a2d5fabc971af56
 
 PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
@@ -101,7 +101,7 @@ PKG_UNPACK:=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/
 HOST_UNPACK:=$(HOST_TAR) -C $(HOST_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
 BOOTSTRAP_UNPACK:=$(HOST_TAR) -C $(BOOTSTRAP_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(BOOTSTRAP_SOURCE)
 
-# don't strip ELF executables in test data (and go itself)
+# don't strip ELF executables in test data
 RSTRIP:=:
 STRIP:=:
 
@@ -154,6 +154,23 @@ This package provides an assembler, compiler, linker, and compiled
 libraries for the Go programming language.
 endef
 
+define Package/golang/config
+menu "Configuration"
+
+config GOLANG_EXTERNAL_BOOTSTRAP_ROOT
+       string "External bootstrap Go root directory"
+       help
+         Path to a working Go tree (>= Go 1.4), with bin, pkg, and src
+         subdirectories and the Go compiler at bin/go.
+
+         If specified, the existing Go installation will be used to
+         compile host (buildroot) Go.
+
+         Leave blank to compile the default bootstrap Go.
+
+endmenu
+endef
+
 define Package/golang-doc
 $(call Package/golang/Default)
   TITLE+= (documentation)
@@ -177,22 +194,53 @@ This package provides the Go programming language source files needed
 for cross-compilation.
 endef
 
+EXTERNAL_BOOTSTRAP_DIR:=$(call qstrip,$(CONFIG_GOLANG_EXTERNAL_BOOTSTRAP_ROOT))
+USE_DEFAULT_BOOTSTRAP:=$(if $(EXTERNAL_BOOTSTRAP_DIR),,1)
+
+PKG_GO_ZBOOTSTRAP_MODS:= \
+       s/defaultGO386 = `[^`]*`/defaultGO386 = `$(if $(GO_386),$(GO_386),387)`/; \
+       s/defaultGOARM = `[^`]*`/defaultGOARM = `$(if $(GO_ARM),$(GO_ARM),5)`/; \
+       s/defaultGOMIPS = `[^`]*`/defaultGOMIPS = `$(if $(GO_MIPS),$(GO_MIPS),hardfloat)`/; \
+       s/defaultGOMIPS64 = `[^`]*`/defaultGOMIPS64 = `$(if $(GO_MIPS64),$(GO_MIPS64),hardfloat)`/; \
+       s/defaultGOPPC64 = `[^`]*`/defaultGOPPC64 = `power8`/;
+
+PKG_GO_LDFLAGS= \
+       -buildid '$(SOURCE_DATE_EPOCH)'
+
+ifeq ($(CONFIG_NO_STRIP)$(CONFIG_DEBUG),)
+  PKG_GO_LDFLAGS+= -s -w
+endif
+
+# setting -trimpath is not necessary here because the paths inside the
+# compiler binary are relative to GOROOT_FINAL (PKG_GO_ROOT), which is
+# static / not dependent on the build environment
+PKG_GO_INSTALL_ARGS= \
+       -ldflags "all=$(PKG_GO_LDFLAGS)"
+
+ifeq ($(PKG_GO_ENABLE_PIE),1)
+  PKG_GO_INSTALL_ARGS+= -buildmode pie
+endif
+
 define Download/golang-bootstrap
   FILE:=$(BOOTSTRAP_SOURCE)
   URL:=$(BOOTSTRAP_SOURCE_URL)
   HASH:=$(BOOTSTRAP_HASH)
 endef
-$(eval $(call Download,golang-bootstrap))
 
-$(eval $(call GoCompiler/AddProfile,Bootstrap,$(BOOTSTRAP_BUILD_DIR),,bootstrap,$(GO_HOST_OS_ARCH)))
 $(eval $(call GoCompiler/AddProfile,Host,$(HOST_BUILD_DIR),$(HOST_GO_PREFIX),$(HOST_GO_VERSION_ID),$(GO_HOST_OS_ARCH),$(HOST_GO_INSTALL_SUFFIX)))
 $(eval $(call GoCompiler/AddProfile,Package,$(PKG_BUILD_DIR),$(PKG_GO_PREFIX),$(PKG_GO_VERSION_ID),$(GO_OS_ARCH),$(PKG_GO_INSTALL_SUFFIX)))
 
-define Host/Prepare
+ifeq ($(USE_DEFAULT_BOOTSTRAP),1)
+  $(eval $(call GoCompiler/AddProfile,Bootstrap,$(BOOTSTRAP_BUILD_DIR),,bootstrap,$(GO_HOST_OS_ARCH)))
+
+  $(eval $(call Download,golang-bootstrap))
+
+  define Host/Prepare
        $(call Host/Prepare/Default)
        mkdir -p $(BOOTSTRAP_BUILD_DIR)
        $(BOOTSTRAP_UNPACK)
-endef
+  endef
+endif
 
 # when https://github.com/golang/go/issues/31544 is fixed,
 # we should be able to set GO_LDFLAGS=-buildmode=pie for host make
@@ -212,7 +260,7 @@ define Host/Compile
        )
 
        $(call GoCompiler/Host/Make, \
-               GOROOT_BOOTSTRAP=$(BOOTSTRAP_BUILD_DIR) \
+               GOROOT_BOOTSTRAP=$(if $(USE_DEFAULT_BOOTSTRAP),$(BOOTSTRAP_BUILD_DIR),$(EXTERNAL_BOOTSTRAP_DIR)) \
                GOCACHE=$(HOST_GO_CACHE_DIR) \
                CC=$(HOSTCC_NOCACHE) \
                CXX=$(HOSTCXX_NOCACHE) \
@@ -282,11 +330,14 @@ define Build/Compile
                PATH=$(HOST_GO_ROOT)/openwrt:$$$$PATH \
        )
 
+       $(SED) '$(PKG_GO_ZBOOTSTRAP_MODS)' \
+               $(PKG_BUILD_DIR)/src/cmd/internal/objabi/zbootstrap.go
+
        @echo "Building target Go second stage"
 
        ( \
                cd $(PKG_BUILD_DIR)/bin ; \
-               export $(call GoPackage/Environment/Target) ; \
+               export $(GO_PKG_TARGET_VARS) ; \
                $(CP) go go-host ; \
                GOROOT_FINAL=$(PKG_GO_ROOT) \
                GOCACHE=$(PKG_GO_TARGET_CACHE_DIR) \
@@ -298,7 +349,7 @@ define Build/Compile
                CXX=g++ \
                PKG_CONFIG=pkg-config \
                PATH=$(HOST_GO_ROOT)/openwrt:$$$$PATH \
-               ./go-host install -a $(if $(PKG_GO_ENABLE_PIE),-buildmode=pie) std cmd ; \
+               ./go-host install -a $(PKG_GO_INSTALL_ARGS) std cmd ; \
                retval=$$$$? ; \
                rm -f go-host ; \
                exit $$$$retval ; \
index 2c9edaf16b405f0f5dcbaed93a2f3dae28b7d493..7a23f6c3a5f14397af75c3617b17a2c20e722db8 100644 (file)
@@ -8,9 +8,9 @@ include $(TOPDIR)/rules.mk
 PECL_NAME:=redis
 PECL_LONGNAME:=PHP extension for interfacing with Redis
 
-PKG_VERSION:=5.2.1
+PKG_VERSION:=5.2.2
 PKG_RELEASE:=1
-PKG_HASH:=c05af6254d704844303fbe8b13b2d54bdb4372b1a081934e67cac42ec79ecbbe
+PKG_HASH:=9965269ec8da48761873e943b770d7053e7579b2b858af97e582eadc7e6eaa11
 
 PKG_NAME:=php7-pecl-redis
 PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz
index 4ada975de9b8a9bbf3490b8f92c7d50f946902b8..8dc3d1e611910647e34a68996f88e86b13a043c2 100644 (file)
@@ -6,7 +6,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=php
-PKG_VERSION:=7.4.5
+PKG_VERSION:=7.4.6
 PKG_RELEASE:=1
 
 PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
@@ -16,7 +16,7 @@ PKG_CPE_ID:=cpe:/a:php:php
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=http://www.php.net/distributions/
-PKG_HASH:=d059fd7f55bdc4d2eada15a00a2976697010d3631ef6f83149cc5289e1f23c2c
+PKG_HASH:=d740322f84f63019622b9f369d64ea5ab676547d2bdcf12be77a5a4cffd06832
 
 PKG_BUILD_PARALLEL:=1
 PKG_USE_MIPS16:=0
index 7fed9857cca6d0a97979808eaf53b3c0a181100a..dbd900e6b7e377501a9537928fac5bb39ac7d102 100644 (file)
 7. [Building a Python package](#building-a-python-package)
     1. [Include python3-package.mk](#include-python3-packagemk)
     2. [Add Package/<PKG_NAME> OpenWrt definitions](#add-packagepkg_name-openwrt-definitions)
-    3. [Wrapping things up so that they build](#wrapping-things-up-so-that-they-build)
-    4. [Customizing things](#customizing-things)
-    5. [Host-side Python packages for build](#host-side-python-packages-for-build)
+    3. [Python package dependencies](#python-package-dependencies)
+    4. [Wrapping things up so that they build](#wrapping-things-up-so-that-they-build)
+    5. [Customizing things](#customizing-things)
+    6. [Host-side Python packages for build](#host-side-python-packages-for-build)
 
 ## Description
 
@@ -202,6 +203,40 @@ Some considerations here (based on the example above):
 * typically the package is named `Package/python3-<something>` ; this convention makes things easier to follow, though it could work without naming things this way
 * `TITLE` can be something a bit more verbose/neat ; typically the name is short as seen above
 
+### Python package dependencies
+
+Aside from other libraries and programs, every Python package will depend on at least one of these three types of packages:
+
+* The Python interpreter: All Python packages should depend on one of these three interpreter packages:
+
+  * `python3-light` is the best default for most Python packages.
+
+  * `python3-base` should only be used as a dependency if you are certain the bare interpreter is sufficient.
+
+  * `python3` is useful if many (more than three) Python standard library packages are needed.
+
+* Python standard library packages: As noted above, many parts of the Python standard library are packaged separate from the Python interpreter. These packages are defined by the files in [lang/python/python3/files](lang/python/python3/files).
+
+  To find out which of these separate standard library packages are necessary, after completing a draft Makefile (including the `$(eval ...)` lines described in the next section), run `make` with the `configure` target and `PY3=stdlib V=s` in the command line. For example:
+
+  ```
+  make package/python-lxml/configure PY3=stdlib V=s
+  ```
+
+  If the package has been built previously, include the `clean` target to trigger configure again:
+
+  ```
+  make package/python-lxml/{clean,configure} PY3=stdlib V=s
+  ```
+
+  This will search the package for module imports and generate a list of suggested dependencies. Some of the found imports may be false positives, e.g. in example or test files, so examine the matches for more information.
+
+* Other Python packages: The easiest way to find these dependencies is to look for the `install_requires` keyword inside the package's `setup.py` file (it will be a keyword argument to the `setup()` function). This will be a list of run-time dependencies for the package.
+
+  There may already be packages in the packages feed that provide these dependencies. If not, they will need to be packaged for your Python package to function correctly.
+
+  Any packages in a `setup_requires` keyword argument are build-time dependencies that may need to be installed on the host (host Python inside of OpenWrt buildroot, not system Python that is part of the outer computer system). To ensure these build-time dependencies are present, see [Host-side Python packages for build](#host-side-python-packages-for-build). (Note that Setuptools is already installed as part of host Python.)
+
 ### Wrapping things up so that they build
 
 If all the above prerequisites have been met, all that's left is:
diff --git a/lang/python/django-jsonfield2/Makefile b/lang/python/django-jsonfield2/Makefile
new file mode 100644 (file)
index 0000000..961d345
--- /dev/null
@@ -0,0 +1,49 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+# Please do not update: 3.0.3 is the last version compatible with Django 1.11
+PKG_NAME:=django-jsonfield2
+PKG_VERSION:=3.0.3
+PKG_RELEASE:=1
+
+# Source for 3.0.3 is not available from PyPI
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/rpkilby/jsonfield2/tar.gz/$(PKG_VERSION)?
+PKG_HASH:=4b79ac28738671fe27cadbd537d50130c35a286207d31d8320c7b48b6cda36ca
+
+PKG_MAINTAINER:=Jeffery To <jeffery.to@gmail.com>
+PKG_LICENSE:=MIT
+PKG_LICENSE_FILES:=LICENSE
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/jsonfield2-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include ../python3-package.mk
+
+define Package/python3-django-jsonfield2
+  SUBMENU:=Python
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=A reusable Django field to store validated JSON in models
+  URL:=https://github.com/rpkilby/jsonfield2
+  DEPENDS:=+python3-light +python3-decimal +django
+  CONFLICTS:=python3-django-jsonfield
+endef
+
+define Package/python3-django-jsonfield2/description
+  A modern fork of django-jsonfield, compatible with the latest versions
+  of Django.
+
+  jsonfield2 is a reusable model field that allows you to store
+  validated JSON, automatically handling serialization to and from the
+  database.
+endef
+
+$(eval $(call Py3Package,python3-django-jsonfield2))
+$(eval $(call BuildPackage,python3-django-jsonfield2))
+$(eval $(call BuildPackage,python3-django-jsonfield2-src))
index f617b4ecf64cc1d10d0a61f6a03b24825256e878..7e2336cb06845f391193158dd327e7b83ca37218 100644 (file)
@@ -7,13 +7,14 @@
 
 include $(TOPDIR)/rules.mk
 
+# Please do not update: 3.3.0 is the last version compatible with Django 1.11
 PKG_NAME:=django-postoffice
-PKG_VERSION:=3.2.1
-PKG_RELEASE:=2
+PKG_VERSION:=3.3.0
+PKG_RELEASE:=1
 
 PYPI_NAME:=django-post-office
 PYPI_SOURCE_NAME:=django-post_office
-PKG_HASH:=e32427822f647719575094f790ca949ef9f9827ec0e8378cb021f01f3834b2a4
+PKG_HASH:=b06514da601c22e955bd93a4ac6dd6b2218c571ca67c193e62bd1f22cec7536f
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>
 PKG_LICENSE:=MIT
@@ -32,7 +33,7 @@ define Package/python3-django-postoffice
   DEPENDS:= \
        +python3 \
        +python3-django1 \
-       +python3-django-jsonfield
+       +python3-django-jsonfield2
 endef
 
 define Package/python3-django-postoffice/description
index d035c94e48346b78597533e38039e3f3a673629b..e29d0ec7d25d681163a5d2d35a5b16430fab5610 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2019 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
+# Copyright (C) 2019-2020 CZ.NIC, z. s. p. o. (https://www.nic.cz/)
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-atomicwrites
-PKG_VERSION:=1.3.0
-PKG_RELEASE:=2
+PKG_VERSION:=1.4.0
+PKG_RELEASE:=1
 
 PYPI_NAME:=atomicwrites
-PKG_HASH:=75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6
+PKG_HASH:=ae70396ad1a434f9c7046fd2dd196fc04b12f9e91ffb859164193be8b6168a7a
 
 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
 PKG_LICENSE:=MIT
index f9c0cf0b178a4a42756d738b52d2efc6bd480314..1b71631efd8015161bfcafae3a9cec16f5fd8820 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-chardet
 PKG_VERSION:=3.0.4
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_LICENSE:=LGPL-2.1
 
 PYPI_NAME:=chardet
@@ -38,6 +38,7 @@ define Py3Package/python3-chardet/install
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
        for bin in $(1)/usr/bin/*; do \
                mv $$$$bin $$$${bin}3 ; \
+               $(LN) $$$${bin##*/}3 $$$$bin ; \
        done
 endef
 
index 48ee58d89dc8bb85d3618c72a8b1a517c8f1a877..6441b218e951acac69d31db9280615a8f5a77976 100644 (file)
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-more-itertools
-PKG_VERSION:=8.2.0
-PKG_RELEASE:=2
+PKG_VERSION:=8.3.0
+PKG_RELEASE:=1
 
 PYPI_NAME:=more-itertools
-PKG_HASH:=b1ddb932186d8a6ac451e1d95844b382f55e12686d51ca0c68b6f61f2ab7a507
+PKG_HASH:=558bb897a2232f5e4f8e2399089e35aecb746e1f9191b6584a151647e89267be
 
 PKG_MAINTAINER:=Jan Pavlinec <jan.pavlinec@nic.cz>
 PKG_LICENSE:=MIT
index 1a3946777135acd6c6a945e385cbe9634b14337e..935f34b3686020b152b313ae01d1564300a47be8 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-twisted
 PKG_VERSION:=20.3.0
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PYPI_NAME:=Twisted
 PYPI_SOURCE_EXT:=tar.bz2
@@ -59,6 +59,7 @@ define Py3Package/python3-twisted/install
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
        for bin in $(1)/usr/bin/*; do \
                mv $$$$bin $$$${bin}3 ; \
+               $(LN) $$$${bin##*/}3 $$$$bin ; \
        done
 endef
 
diff --git a/lang/python/python3-find-stdlib-depends.sh b/lang/python/python3-find-stdlib-depends.sh
new file mode 100644 (file)
index 0000000..609fac4
--- /dev/null
@@ -0,0 +1,434 @@
+#!/bin/sh
+
+# Packages data
+#
+# Notes:
+# * python3-codecs: Also contains codecs for CJK encodings but we don't
+#   have a good way to check for uses
+# * python3-openssl: Don't include hashlib as it supports several
+#   standard algorithms without requiring OpenSSL
+
+packages="
+python3-asyncio: asyncio
+python3-cgi: cgi
+python3-cgitb: cgitb
+python3-codecs: unicodedata
+python3-ctypes: ctypes
+python3-dbm: dbm
+python3-decimal: decimal
+python3-distutils: distutils
+python3-email: email
+python3-gdbm: dbm.gnu
+python3-logging: logging
+python3-lzma: lzma
+python3-multiprocessing: multiprocessing
+python3-ncurses: ncurses
+python3-openssl: ssl
+python3-pydoc: doctest pydoc
+python3-sqlite3: sqlite3
+python3-unittest: unittest
+python3-urllib: urllib
+python3-xml: xml xmlrpc
+"
+
+
+# Constants
+
+stdin_name="<stdin>"
+grep_dir_filters="
+-Ir
+--include=*.py
+--exclude=setup.py
+--exclude=test_*.py
+--exclude=*_test.py
+--exclude-dir=test
+--exclude-dir=tests
+--exclude-dir=ipkg-*
+--exclude-dir=.pkgdir
+"
+
+log_level_notice=5
+log_level_info=6
+log_level_debug=7
+
+# /usr/include/sysexits.h
+ex_usage=64
+ex_noinput=66
+ex_unavailable=69
+ex_software=70
+
+newline="
+"
+oifs="$IFS"
+
+
+# Defaults
+
+grep_output_default_max_count=3
+grep_output_default_color_when="auto"
+grep_output_default_line_prefix="-HnT --label=$stdin_name"
+grep_output_default_context_num=1
+
+log_level_default="$log_level_info"
+
+
+# Global variables
+
+log_level=
+grep=
+grep_output_options=
+grep_output_description=
+stdin=
+output_name=
+is_first_search=
+
+
+# Logging
+
+log() {
+       printf '%s\n' "$*"
+}
+
+can_log_notice() {
+       [ "$log_level" -ge "$log_level_notice" ]
+}
+
+can_log_info() {
+       [ "$log_level" -ge "$log_level_info" ]
+}
+
+can_log_debug() {
+       [ "$log_level" -ge "$log_level_debug" ]
+}
+
+log_notice() {
+       if can_log_notice; then
+               log "$@"
+       fi
+}
+
+log_info() {
+       if can_log_info; then
+               log "$@"
+       fi
+}
+
+log_debug() {
+       if can_log_debug; then
+               log "$@"
+       fi
+}
+
+log_error() {
+       printf '%s\n' "Error: $*" >&2
+}
+
+
+# Usage
+
+usage() {
+       cat <<- EOF
+       Usage: ${0##*/} [OPTION]... [FILE]...
+       Search for imports of certain Python standard libraries in each FILE,
+       generate a list of suggested package dependencies.
+
+       With no FILE, or when FILE is -, read standard input.
+
+       Options:
+         -c WHEN   use color in output;
+                   WHEN is 'always', 'never', or 'auto' (default: '$grep_output_default_color_when')
+         -h        display this help text and exit
+         -m NUM    show max NUM matches per package per file (default: $grep_output_default_max_count);
+                   use 0 to show all matches
+         -n NAME   when one or no FILE is given, use NAME instead of FILE in
+                   displayed information
+         -q        show suggested dependencies only
+         -v        show verbose output (also show all matches)
+         -x NUM    show NUM lines of context (default: $grep_output_default_context_num)
+
+       EOF
+}
+
+
+# Imports search
+
+get_package_modules() {
+       local line="$1"
+       local field_num=0
+       local IFS=:
+
+       for field in $line; do
+               # strip leading and trailing whitespace
+               field="${field#"${field%%[!     ]*}"}"
+               field="${field%"${field##*[!    ]}"}"
+
+               # set variables in search_path()
+               if [ "$field_num" -eq 0 ]; then
+                       package="$field"
+                       field_num=1
+               elif [ "$field_num" -eq 1 ]; then
+                       modules="$field"
+                       field_num=2
+               else
+                       field_num=3
+               fi
+       done
+
+       if [ "$field_num" -ne 2 ] || [ -z "$package" ] || [ -z "$modules" ]; then
+               log_error "invalid package data \"$line\""
+               exit "$ex_software"
+       fi
+}
+
+search_path_for_modules() {
+       local path="$1"
+       local path_is_dir="$2"
+       local path_is_stdin="$3"
+       local package="$4"
+       local modules="$5"
+       local modules_regex
+       local regex
+       local remove_dir_prefix
+       local grep_results
+       local IFS="$oifs"
+
+       log_debug "    Looking for modules in $package ($modules)"
+
+       modules_regex=$(printf '%s' "$modules" | sed -e 's/\./\\./g' -e 's/\s\+/|/g')
+       regex="\b(import\s+($modules_regex)|from\s+($modules_regex)\S*\s+import)\b"
+
+       if [ -n "$path_is_dir" ]; then
+               remove_dir_prefix="s|^\(\(\x1b[[0-9;]*[mK]\)*\)$path|\1|"
+               grep_results=$($grep $grep_output_options $grep_dir_filters -E "$regex" "$path")
+
+       elif [ -n "$path_is_stdin" ]; then
+               grep_results=$(printf '%s\n' "$stdin" | $grep $grep_output_options -E "$regex")
+
+       else
+               grep_results=$($grep $grep_output_options -E "$regex" "$path")
+       fi
+
+       if [ "$?" -ne 0 ]; then
+               log_debug "    No imports found"
+               log_debug ""
+               return 0
+       fi
+
+       log_info "    Found imports for: $modules"
+
+       if can_log_info; then
+               printf '%s\n' "$grep_results" | sed -e "$remove_dir_prefix" -e "s/^/        /"
+       fi
+
+       log_info ""
+
+       # set variable in search_path()
+       suggested="$suggested +$package"
+}
+
+search_path() {
+       local path="$1"
+       local name="$2"
+       local path_is_dir
+       local path_is_stdin
+       local package
+       local modules
+       local suggested
+       local IFS="$newline"
+
+       if [ "$path" = "-" ]; then
+               path_is_stdin=1
+
+       else
+               if ! [ -e "$path" ]; then
+                       log_error "$path does not exist"
+                       exit "$ex_noinput"
+               fi
+
+               if [ -d "$path" ]; then
+                       path="${path%/}/"
+                       path_is_dir=1
+               fi
+       fi
+
+       log_info ""
+       log_info "Searching $name (showing $grep_output_description):"
+       log_info ""
+
+       if [ -n "$path_is_stdin" ]; then
+               stdin="$(cat)"
+       fi
+
+       for line in $packages; do
+               # strip leading whitespace
+               line="${line#"${line%%[!        ]*}"}"
+
+               # skip blank lines or comments (beginning with #)
+               if [ -z "$line" ] ||  [ "$line" != "${line###}" ]; then
+                       continue
+               fi
+
+               package=
+               modules=
+
+               get_package_modules "$line"
+               search_path_for_modules "$path" "$path_is_dir" "$path_is_stdin" "$package" "$modules"
+       done
+
+       log_notice "Suggested dependencies for $name:"
+
+       if [ -z "$suggested" ]; then
+               suggested="(none)"
+       fi
+       IFS="$oifs"
+       for package in $suggested; do
+               log_notice "    $package"
+       done
+
+       log_notice ""
+}
+
+
+# Find GNU grep
+
+if ggrep --version 2>&1 | grep -q GNU; then
+       grep="ggrep"
+elif grep --version 2>&1 | grep -q GNU; then
+       grep="grep"
+else
+       log_error "cannot find GNU grep"
+       exit "$ex_unavailable"
+fi
+
+
+# Process environment variables
+
+case $PYTHON3_FIND_STDLIB_DEPENDS_LOG_LEVEL in
+       notice)
+               log_level="$log_level_notice"
+               ;;
+       info)
+               log_level="$log_level_info"
+               ;;
+       debug)
+               log_level="$log_level_debug"
+               ;;
+       *)
+               log_level="$log_level_default"
+               ;;
+esac
+
+grep_output_max_count="${PYTHON3_FIND_STDLIB_DEPENDS_MAX_COUNT:-$grep_output_default_max_count}"
+grep_output_color_when="${PYTHON3_FIND_STDLIB_DEPENDS_COLOR_WHEN:-$grep_output_default_color_when}"
+grep_output_line_prefix="${PYTHON3_FIND_STDLIB_DEPENDS_LINE_PREFIX:-$grep_output_default_line_prefix}"
+grep_output_context_num="${PYTHON3_FIND_STDLIB_DEPENDS_CONTEXT_NUM:-$grep_output_default_context_num}"
+
+
+# Process command line options
+
+while getopts c:hm:n:qvx: OPT; do
+       case $OPT in
+               c)
+                       grep_output_color_when="$OPTARG"
+                       ;;
+               h)
+                       usage
+                       exit 0
+                       ;;
+               m)
+                       grep_output_max_count="$OPTARG"
+                       ;;
+               n)
+                       output_name="$OPTARG"
+                       ;;
+               q)
+                       log_level="$log_level_notice"
+                       ;;
+               v)
+                       log_level="$log_level_debug"
+                       ;;
+               x)
+                       grep_output_context_num="$OPTARG"
+                       ;;
+               \?)
+                       usage
+                       exit "$ex_usage"
+                       ;;
+       esac
+done
+
+shift $((OPTIND - 1))
+
+
+# Set up grep output options
+
+if can_log_info; then
+       if [ "$grep_output_color_when" = "auto" ]; then
+               if [ -t 1 ]; then
+                       grep_output_color_when="always"
+               else
+                       grep_output_color_when="never"
+               fi
+       fi
+
+       if ! can_log_debug && [ "$grep_output_max_count" -gt 0 ]; then
+               grep_output_options="-m $grep_output_max_count"
+
+               if [ "$grep_output_max_count" -eq 1 ]; then
+                       grep_output_description="max 1 match per file"
+               else
+                       grep_output_description="max $grep_output_max_count matches per file"
+               fi
+
+       else
+               grep_output_description="all matches"
+       fi
+
+       if [ "$grep_output_context_num" -gt 0 ]; then
+               grep_output_options="$grep_output_options -C $grep_output_context_num"
+
+               if [ "$grep_output_context_num" -eq 1 ]; then
+                       grep_output_description="$grep_output_description, 1 line of context"
+               else
+                       grep_output_description="$grep_output_description, $grep_output_context_num lines of context"
+               fi
+       fi
+
+       grep_output_options="$grep_output_options --color=$grep_output_color_when $grep_output_line_prefix"
+
+else
+       grep_output_options="-q"
+fi
+
+
+# Main
+
+if [ "$#" -gt 0 ]; then
+       is_first_search=1
+
+       if [ "$#" -gt 1 ]; then
+               output_name=
+       fi
+
+       for path; do
+               if [ -z "$is_first_search" ]; then
+                       log_info "===="
+               fi
+
+               if [ -z "$output_name" ]; then
+                       if [ "$path" = "-" ]; then
+                               output_name="$stdin_name"
+                       else
+                               output_name="$path"
+                       fi
+               fi
+
+               search_path "$path" "$output_name"
+
+               is_first_search=
+               output_name=
+       done
+
+else
+       search_path "-" "${output_name:-$stdin_name}"
+fi
index b16773263f37e60fb403db030a1d66b6456950b5..fdf2cb0ae97da1ac2516db74e0c56322c1e76ebc 100644 (file)
@@ -192,6 +192,10 @@ PYTHON3_PKG_SETUP_GLOBAL_ARGS ?=
 PYTHON3_PKG_SETUP_ARGS ?= --single-version-externally-managed
 PYTHON3_PKG_SETUP_VARS ?=
 
+define Py3Build/FindStdlibDepends
+       $(SHELL) $(python3_mk_path)python3-find-stdlib-depends.sh -n "$(PKG_NAME)" "$(PKG_BUILD_DIR)"
+endef
+
 define Py3Build/Compile/Default
        $(if $(HOST_PYTHON3_PACKAGE_BUILD_DEPENDS),
                $(call HostPython3/PipInstall,$(HOST_PYTHON3_PACKAGE_BUILD_DEPENDS))
@@ -205,10 +209,14 @@ define Py3Build/Compile/Default
        )
 endef
 
+Py3Build/Configure=$(Py3Build/Configure/Default)
 Py3Build/Compile=$(Py3Build/Compile/Default)
 
 PYTHON3_PKG_BUILD ?= 1
 
 ifeq ($(strip $(PYTHON3_PKG_BUILD)),1)
+  ifeq ($(PY3),stdlib)
+    Hooks/Configure/Post+=Py3Build/FindStdlibDepends
+  endif
   Build/Compile=$(Py3Build/Compile)
 endif
index 74d6e315b126b4fb46a28c4fa6a30277ebc0c5a7..e8f8fba05221d4dc4480c60bd584fc62f5f900f9 100644 (file)
@@ -8,12 +8,12 @@
 # Note: keep in sync with setuptools & pip
 PYTHON3_VERSION_MAJOR:=3
 PYTHON3_VERSION_MINOR:=8
-PYTHON3_VERSION_MICRO:=2
+PYTHON3_VERSION_MICRO:=3
 
 PYTHON3_VERSION:=$(PYTHON3_VERSION_MAJOR).$(PYTHON3_VERSION_MINOR)
 
-PYTHON3_SETUPTOOLS_PKG_RELEASE:=1
-PYTHON3_PIP_PKG_RELEASE:=3
+PYTHON3_SETUPTOOLS_PKG_RELEASE:=3
+PYTHON3_PIP_PKG_RELEASE:=4
 
 PYTHON3_SETUPTOOLS_VERSION:=41.2.0
 PYTHON3_PIP_VERSION:=19.2.3
index 9d5206f1bf70e8a3c6e6a4a70c12ccab4f686c74..87c401842752756c7b73474f21c9723d5becaed6 100644 (file)
@@ -11,12 +11,12 @@ include $(TOPDIR)/rules.mk
 include ../python3-version.mk
 
 PKG_NAME:=python3
-PKG_RELEASE:=3
+PKG_RELEASE:=2
 PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO)
 
 PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
-PKG_HASH:=2646e7dc233362f59714c6193017bb2d6f7b38d6ab4a0cb5fbac5c36c4d845df
+PKG_HASH:=dfab5ec723c218082fe3d5d7ae17ecbdebffa9a1aea4d64aa3a2ecdd2e795864
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
 PKG_LICENSE:=Python/2.0
@@ -137,11 +137,6 @@ EXTRA_CFLAGS+= \
 EXTRA_LDFLAGS+= \
        -L$(PKG_BUILD_DIR)
 
-ENABLE_IPV6:=
-ifeq ($(CONFIG_IPV6),y)
-       ENABLE_IPV6 += --enable-ipv6
-endif
-
 PYTHON_FOR_BUILD:= \
        _PYTHON_PROJECT_BASE=$(PKG_BUILD_DIR) \
        _PYTHON_HOST_PLATFORM=linux2 \
@@ -154,18 +149,18 @@ DISABLE_BLUETOOTH:= \
        ac_cv_header_bluetooth_h=no
 
 CONFIGURE_ARGS+= \
-       --sysconfdir=/etc \
+       --enable-optimizations \
        --enable-shared \
-       --without-cxx-main \
-       --with-threads \
        --with-system-ffi \
-       --with-ensurepip=no \
+       --without-cxx-main \
+       --without-ensurepip \
        --without-pymalloc \
-       $(if $(CONFIG_PYTHON3_BLUETOOTH_SUPPORT),,$(DISABLE_BLUETOOTH)) \
-       PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)" \
-       $(ENABLE_IPV6) \
+       $(if $(CONFIG_IPV6),--enable-ipv6) \
+       $(if $(findstring mips,$(CONFIG_ARCH)),,--with-lto) \
        CONFIG_SITE="$(PKG_BUILD_DIR)/config.site" \
-       OPT="$(TARGET_CFLAGS)"
+       OPT="$(TARGET_CFLAGS)" \
+       PYTHON_FOR_BUILD="$(PYTHON_FOR_BUILD)" \
+       $(if $(CONFIG_PYTHON3_BLUETOOTH_SUPPORT),,$(DISABLE_BLUETOOTH))
 
 define Build/Prepare
        $(call Build/Prepare/Default)
@@ -311,13 +306,11 @@ HOST_CONFIGURE_VARS += \
 endif
 
 HOST_CONFIGURE_ARGS+= \
+       --enable-optimizations \
+       --with-ensurepip=upgrade \
+       --with-system-expat=$(STAGING_DIR_HOSTPKG) \
        --without-cxx-main \
        --without-pymalloc \
-       --with-threads \
-       --prefix=$(HOST_PYTHON3_DIR) \
-       --exec-prefix=$(HOST_PYTHON3_DIR) \
-       --with-system-expat=$(STAGING_DIR_HOSTPKG) \
-       --with-ensurepip=upgrade \
        CONFIG_SITE=
 
 define Host/Configure
index b23654876ca864774ae1d6d0aa53070b67cecc16..e43ba523491d48509cf4849e9e693827de831580 100644 (file)
@@ -15,6 +15,7 @@ define Py3Package/python3-dev/install
        $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/python$(PYTHON3_VERSION)-config $(1)/usr/bin
        $(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python3-config
+       $(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python-config
        $(LN) python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)/libpython$(PYTHON3_VERSION).a $(1)/usr/lib/
   # This depends on being called before filespec is processed
        $(SED) 's|$(TARGET_AR)|ar|g;s|$(TARGET_CROSS)readelf|readelf|g;s|$(TARGET_CC)|gcc|g;s|$(TARGET_CXX)|g++|g' \
index 6971993f73dca5c7780576b6ac2622de2ab4c525..4d13afd2026f1bc6069da1825e2d938757e7c8c7 100644 (file)
@@ -8,7 +8,7 @@
 define Package/python3-openssl
 $(call Package/python3/Default)
   TITLE:=Python $(PYTHON3_VERSION) SSL module
-  DEPENDS:=+python3-light +libopenssl
+  DEPENDS:=+python3-light +libopenssl +ca-certs
 endef
 
 $(eval $(call Py3BasePackage,python3-openssl, \
index 0182c99d824eb0c05df2c5ab59b59fa410eafcf4..8b547cee81f33fbfaf2ecf6cf51b745b66ae23ab 100644 (file)
@@ -19,6 +19,7 @@ define Py3Package/python3-pip/install
        $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
        $(CP) $(PKG_BUILD_DIR)/install-pip/usr/bin/pip$(PYTHON3_VERSION) $(1)/usr/bin
        $(LN) pip$(PYTHON3_VERSION) $(1)/usr/bin/pip3
+       $(LN) pip$(PYTHON3_VERSION) $(1)/usr/bin/pip
        $(CP) \
                $(PKG_BUILD_DIR)/install-pip/usr/lib/python$(PYTHON3_VERSION)/site-packages/pip \
                $(PKG_BUILD_DIR)/install-pip/usr/lib/python$(PYTHON3_VERSION)/site-packages/pip-$(PYTHON3_PIP_VERSION).dist-info \
index 64a86b81d621c9bf1b881063129babf70f56c42f..4e5a7572d99976bb17bd3dd136c38b807bd52e56 100644 (file)
@@ -19,11 +19,15 @@ define Py3Package/python3-setuptools/install
        $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
        $(CP) $(PKG_BUILD_DIR)/install-setuptools/usr/bin/easy_install-* $(1)/usr/bin
        $(LN) easy_install-$(PYTHON3_VERSION) $(1)/usr/bin/easy_install-3
+       $(LN) easy_install-$(PYTHON3_VERSION) $(1)/usr/bin/easy_install
        $(CP) \
                $(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools \
                $(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools-$(PYTHON3_SETUPTOOLS_VERSION).dist-info \
                $(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON3_VERSION)/site-packages/easy_install.py \
                $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
+       $(CP) \
+               $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools/site-patch.py \
+               $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/setuptools/site-patch.py.txt
        find $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/ -path '*/__pycache__/*' -delete
        find $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/ -type d -name __pycache__ -delete
 endef
diff --git a/lang/python/python3/patches-setuptools/004-site-patch.patch b/lang/python/python3/patches-setuptools/004-site-patch.patch
new file mode 100644 (file)
index 0000000..39b8c90
--- /dev/null
@@ -0,0 +1,14 @@
+--- a/setuptools/command/easy_install.py
++++ b/setuptools/command/easy_install.py
+@@ -1315,7 +1315,10 @@ class easy_install(Command):
+             return  # already did it, or don't need to
+         sitepy = os.path.join(self.install_dir, "site.py")
+-        source = resource_string("setuptools", "site-patch.py")
++        try:
++            source = resource_string("setuptools", "site-patch.py")
++        except FileNotFoundError:
++            source = resource_string("setuptools", "site-patch.py.txt")
+         source = source.decode('utf-8')
+         current = ""
index a67f55332abfb8bb22a2e71a3991047fac4eb971..c0d78f4b743e62083fccc64614602566019c8e47 100644 (file)
@@ -1,6 +1,6 @@
 --- a/Python/initconfig.c
 +++ b/Python/initconfig.c
-@@ -120,7 +120,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo
+@@ -152,7 +152,7 @@ int Py_NoSiteFlag = 0; /* Suppress 'impo
  int Py_BytesWarningFlag = 0; /* Warn on str(bytes) and str(buffer) */
  int Py_FrozenFlag = 0; /* Needed by getpath.c */
  int Py_IgnoreEnvironmentFlag = 0; /* e.g. PYTHONPATH, PYTHONHOME */
index cc6a8511b3ced418a92cd0d83b270f8db863ff28..aff0cec5b66442ff72f1d36ce3a3f44201fe71a9 100644 (file)
@@ -1,6 +1,6 @@
 --- a/configure
 +++ b/configure
-@@ -15142,7 +15142,7 @@ $as_echo_n "checking ABIFLAGS... " >&6;
+@@ -15174,7 +15174,7 @@ $as_echo_n "checking ABIFLAGS... " >&6;
  $as_echo "$ABIFLAGS" >&6; }
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
  $as_echo_n "checking SOABI... " >&6; }
@@ -11,7 +11,7 @@
  
 --- a/configure.ac
 +++ b/configure.ac
-@@ -4633,7 +4633,7 @@ AC_SUBST(SOABI)
+@@ -4654,7 +4654,7 @@ AC_SUBST(SOABI)
  AC_MSG_CHECKING(ABIFLAGS)
  AC_MSG_RESULT($ABIFLAGS)
  AC_MSG_CHECKING(SOABI)
index b8ea6ccfcd07f3b3fd9a616b56fbce93eb7503a3..849346dc757a2d90cc6390e43bf7296da229ac3c 100644 (file)
@@ -40,7 +40,7 @@
  # Here are a couple of targets for MacOSX again, to install a full
 --- a/configure
 +++ b/configure
-@@ -15181,7 +15181,7 @@ else
+@@ -15213,7 +15213,7 @@ else
  fi
  
  
@@ -51,7 +51,7 @@
    LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
 --- a/configure.ac
 +++ b/configure.ac
-@@ -4667,7 +4667,7 @@ fi
+@@ -4688,7 +4688,7 @@ fi
  
  dnl define LIBPL after ABIFLAGS and LDVERSION is defined.
  AC_SUBST(PY_ENABLE_SHARED)
index 1edd215d1ea0e562310afd236eb02040a4e9f909..5cd1b94df164b51144f0b3414e1aeb5ddd7092f8 100644 (file)
@@ -11,9 +11,6 @@ SSL_CTX_set_min/max_proto_version().
  2 files changed, 108 insertions(+), 30 deletions(-)
  create mode 100644 Misc/NEWS.d/next/Library/2018-02-25-20-05-51.bpo-30008.6Bmyhr.rst
 
-diff --git a/Misc/NEWS.d/next/Library/2018-02-25-20-05-51.bpo-30008.6Bmyhr.rst b/Misc/NEWS.d/next/Library/2018-02-25-20-05-51.bpo-30008.6Bmyhr.rst
-new file mode 100644
-index 000000000000..e0a08464a1e1
 --- /dev/null
 +++ b/Misc/NEWS.d/next/Library/2018-02-25-20-05-51.bpo-30008.6Bmyhr.rst
 @@ -0,0 +1,4 @@
@@ -21,11 +18,9 @@ index 000000000000..e0a08464a1e1
 +1.1.0. The version specific TLS methods are emulated with TLS_method() plus
 +SSL_CTX_set_min/max_proto_version(). Pseudo random numbers are generated
 +with RAND_bytes().
-diff --git a/Modules/_ssl.c b/Modules/_ssl.c
-index f50823e6947a..827026e3bf5c 100644
 --- a/Modules/_ssl.c
 +++ b/Modules/_ssl.c
-@@ -45,14 +45,6 @@ static PySocketModule_APIObject PySocketModule;
+@@ -45,14 +45,6 @@ static PySocketModule_APIObject PySocket
  #include <sys/poll.h>
  #endif
  
@@ -48,7 +43,7 @@ index f50823e6947a..827026e3bf5c 100644
  #define TLS_method SSLv23_method
  #define TLS_client_method SSLv23_client_method
  #define TLS_server_method SSLv23_server_method
-@@ -896,7 +889,7 @@ _ssl_configure_hostname(PySSLSocket *self, const char* server_hostname)
+@@ -896,7 +889,7 @@ _ssl_configure_hostname(PySSLSocket *sel
                  goto error;
              }
          } else {
@@ -57,7 +52,7 @@ index f50823e6947a..827026e3bf5c 100644
                                             ASN1_STRING_length(ip))) {
                  _setSSLError(NULL, 0, __FILE__, __LINE__);
                  goto error;
-@@ -1372,8 +1365,9 @@ _get_peer_alt_names (X509 *certificate) {
+@@ -1372,8 +1365,9 @@ _get_peer_alt_names (X509 *certificate)
                      goto fail;
                  }
                  PyTuple_SET_ITEM(t, 0, v);
@@ -69,7 +64,7 @@ index f50823e6947a..827026e3bf5c 100644
                  if (v == NULL) {
                      Py_DECREF(t);
                      goto fail;
-@@ -3031,44 +3025,124 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version)
+@@ -3078,44 +3072,124 @@ _ssl__SSLContext_impl(PyTypeObject *type
      long options;
      SSL_CTX *ctx = NULL;
      X509_VERIFY_PARAM *params;
@@ -212,7 +207,7 @@ index f50823e6947a..827026e3bf5c 100644
          _setSSLError(NULL, 0, __FILE__, __LINE__);
          return NULL;
      }
-@@ -5241,7 +5315,7 @@ PySSL_RAND(int len, int pseudo)
+@@ -5288,7 +5362,7 @@ PySSL_RAND(int len, int pseudo)
      if (bytes == NULL)
          return NULL;
      if (pseudo) {
index f73ce80c34c4430fd7da4fc41475f03c4df359d3..4dd33f62360e773a9292ec8886d36ca23851c819 100644 (file)
@@ -1,6 +1,6 @@
 --- a/Modules/_ssl.c
 +++ b/Modules/_ssl.c
-@@ -201,6 +202,11 @@ static void _PySSLFixErrno(void) {
+@@ -201,6 +201,11 @@ static void _PySSLFixErrno(void) {
  #define TLS_method SSLv23_method
  #define TLS_client_method SSLv23_client_method
  #define TLS_server_method SSLv23_server_method
@@ -12,7 +12,7 @@
  
  static int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne)
  {
-@@ -1677,7 +1683,7 @@ _decode_certificate(X509 *certificate) {
+@@ -1724,7 +1729,7 @@ _decode_certificate(X509 *certificate) {
      Py_DECREF(sn_obj);
  
      (void) BIO_reset(biobuf);
@@ -21,7 +21,7 @@
      ASN1_TIME_print(biobuf, notBefore);
      len = BIO_gets(biobuf, buf, sizeof(buf)-1);
      if (len < 0) {
-@@ -1694,7 +1700,7 @@ _decode_certificate(X509 *certificate) {
+@@ -1741,7 +1746,7 @@ _decode_certificate(X509 *certificate) {
      Py_DECREF(pnotBefore);
  
      (void) BIO_reset(biobuf);
@@ -30,7 +30,7 @@
      ASN1_TIME_print(biobuf, notAfter);
      len = BIO_gets(biobuf, buf, sizeof(buf)-1);
      if (len < 0) {
-@@ -3235,7 +3241,7 @@ _ssl__SSLContext_impl(PyTypeObject *type, int proto_version)
+@@ -3282,7 +3287,7 @@ _ssl__SSLContext_impl(PyTypeObject *type
         conservative and assume it wasn't fixed until release. We do this check
         at runtime to avoid problems from the dynamic linker.
         See #25672 for more on this. */
@@ -39,7 +39,7 @@
      if (!(libver >= 0x10001000UL && libver < 0x1000108fUL) &&
          !(libver >= 0x10000000UL && libver < 0x100000dfUL)) {
          SSL_CTX_set_mode(self->ctx, SSL_MODE_RELEASE_BUFFERS);
-@@ -6403,10 +6409,10 @@ PyInit__ssl(void)
+@@ -6450,10 +6455,10 @@ PyInit__ssl(void)
          return NULL;
  
      /* OpenSSL version */
@@ -52,7 +52,7 @@
      r = PyLong_FromUnsignedLong(libver);
      if (r == NULL)
          return NULL;
-@@ -6416,7 +6422,7 @@ PyInit__ssl(void)
+@@ -6463,7 +6468,7 @@ PyInit__ssl(void)
      r = Py_BuildValue("IIIII", major, minor, fix, patch, status);
      if (r == NULL || PyModule_AddObject(m, "OPENSSL_VERSION_INFO", r))
          return NULL;
index b2138461d1f8b977540de0e52a801f85c316a75d..dcc3789e2db6f0e4fb9b0d30816f155fc2805898 100644 (file)
@@ -9,14 +9,14 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=c-ares
-PKG_VERSION:=1.15.0
-PKG_RELEASE:=4
+PKG_VERSION:=1.16.1
+PKG_RELEASE:=1
 PKG_LICENSE:=MIT
 PKG_CPE_ID:=cpe:/a:c-ares_project:c-ares
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://c-ares.haxx.se/download
-PKG_HASH:=6cdb97871f2930530c97deb7cf5c8fa4be5a0b02c7cea6e7c7667672a39d6852
+PKG_HASH:=d08312d0ecc3bd48eee0a4cc0d2137c9f194e0a28de2028928c0f6cae85f86ce
 
 PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
index 51ea563e7cba9a20ac35073e9cbeb2339625114a..a4b573d58f7f4e9beb90c457af229b69877d4dd2 100644 (file)
@@ -6,13 +6,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=faad2
-PKG_VERSION:=2.9.1
+PKG_VERSION:=2.9.2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://codeload.github.com/knik0/faad2/tar.gz/2_9_1?
-PKG_HASH:=7fa33cff76abdda5a220ca5de0b2e05a77354f3b97f735193c2940224898aa9a
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2_9_1
+PKG_SOURCE_URL:=https://codeload.github.com/knik0/faad2/tar.gz/2_9_2?
+PKG_HASH:=9728b2b94f94ab49363cd229e7377fbe6ef3c311c5cd80da662d53ddb0ee091d
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2_9_2
 
 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
 PKG_LICENSE:=GPL-2.0-or-later
diff --git a/libs/faad2/patches/010-lc-decoder.patch b/libs/faad2/patches/010-lc-decoder.patch
deleted file mode 100644 (file)
index fa1ffb3..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-From 8552fd53aaf5059ed769a0564330816beacaca98 Mon Sep 17 00:00:00 2001
-From: Rosen Penev <rosenp@gmail.com>
-Date: Tue, 10 Mar 2020 17:38:29 -0700
-Subject: [PATCH] fix compilation with LC_ONLY_DECODER
-
-881b5e263f25a8a8b714e83407fc2c9dab407e40 broke compilation by always
-defining DRN and DRM_PS. Fix this and place the define where it belongs.
----
- libfaad/Makefile.am | 2 +-
- libfaad/common.h    | 7 +++++--
- 2 files changed, 6 insertions(+), 3 deletions(-)
-
-diff --git a/libfaad/Makefile.am b/libfaad/Makefile.am
-index 8ed57ae..7d9c71f 100644
---- a/libfaad/Makefile.am
-+++ b/libfaad/Makefile.am
-@@ -32,5 +32,5 @@ libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \
- libfaad_drm_la_LDFLAGS = ${libfaad_la_LDFLAGS}
- libfaad_drm_la_LIBADD = ${libfaad_la_LIBADD}
--libfaad_drm_la_CFLAGS = ${libfaad_la_CFLAGS} -DDRM -DDRM_PS
-+libfaad_drm_la_CFLAGS = ${libfaad_la_CFLAGS} -DDRM_SUPPORT
- libfaad_drm_la_SOURCES = ${libfaad_la_SOURCES}
-diff --git a/libfaad/common.h b/libfaad/common.h
-index 8b78807..76722e4 100644
---- a/libfaad/common.h
-+++ b/libfaad/common.h
-@@ -91,8 +91,10 @@ extern "C" {
- /* Allow decoding of LD profile AAC */
- #define LD_DEC
- /* Allow decoding of Digital Radio Mondiale (DRM) */
--//#define DRM
--//#define DRM_PS
-+#ifdef DRM_SUPPORT
-+#define DRM
-+#define DRM_PS
-+#endif
- /* LD can't do without LTP */
- #ifdef LD_DEC
-@@ -115,6 +117,7 @@ extern "C" {
-   #undef MAIN_DEC
-   #undef SSR_DEC
-   #undef DRM
-+  #undef DRM_PS
-   #undef ALLOW_SMALL_FRAMELENGTH
-   #undef ERROR_RESILIENCE
- #endif
diff --git a/libs/faad2/patches/020-bits.patch b/libs/faad2/patches/020-bits.patch
deleted file mode 100644 (file)
index ca53cd5..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-From 4ae9873a80ea47858d20f1d590aaf816c3aebb20 Mon Sep 17 00:00:00 2001
-From: Rosen Penev <rosenp@gmail.com>
-Date: Tue, 10 Mar 2020 20:13:57 -0700
-Subject: [PATCH] fix compilation without SBR/PS_DEC
-
-The bits.h include needs to be in mp4.h as it uses the bitfield struct.
----
- libfaad/mp4.c | 1 -
- libfaad/mp4.h | 1 +
- 2 files changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libfaad/mp4.c b/libfaad/mp4.c
-index 9f0198a..dbcff83 100644
---- a/libfaad/mp4.c
-+++ b/libfaad/mp4.c
-@@ -33,7 +33,6 @@
- #include <stdlib.h>
--#include "bits.h"
- #include "mp4.h"
- #include "syntax.h"
-diff --git a/libfaad/mp4.h b/libfaad/mp4.h
-index 5a94be4..d99a3e3 100644
---- a/libfaad/mp4.h
-+++ b/libfaad/mp4.h
-@@ -35,6 +35,7 @@
- extern "C" {
- #endif
-+#include "bits.h"
- #include "neaacdec.h"
- int8_t AudioSpecificConfig2(uint8_t *pBuffer,
diff --git a/libs/libcap-ng/Makefile b/libs/libcap-ng/Makefile
new file mode 100644 (file)
index 0000000..04d480f
--- /dev/null
@@ -0,0 +1,90 @@
+#
+# Copyright (C) 2020 Lucian Cristian
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libcap-ng
+PKG_VERSION:=0.7.10
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://people.redhat.com/sgrubb/libcap-ng
+PKG_HASH:=a84ca7b4e0444283ed269b7a29f5b6187f647c82e2b876636b49b9a744f0ffbf
+
+PKG_MAINTAINER:=Lucian CRISTIAN <lucian.cristian@gmail.com>
+PKG_LICENSE:=GPL-2.0-or-later LGPL-2.1-or-later
+PKG_LICENSE_FILES:=License
+
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+PKG_FIXUP:=autoreconf
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/libcap-ng/Default
+  TITLE:=POSIX capabilities library
+  SECTION:=libs
+  CATEGORY:=Libraries
+  URL:=https://people.redhat.com/sgrubb/libcap-ng/index.html
+endef
+
+define Package/libcap-ng/description/Default
+  POSIX capabilities library
+endef
+
+define Package/libcap-ng
+  $(call Package/libcap-ng/Default)
+  TITLE += library
+endef
+
+define Package/libcap-ng-bin
+  $(call Package/libcap-ng/Default)
+  TITLE += binaries
+  DEPENDS += libcap-ng
+endef
+
+define Package/libcap-ng-bin/description
+  $(call Package/libcap-ng/description/Default)
+  .
+  This package contains the libcap-ng utilities.
+endef
+
+TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(FPIC)
+TARGET_CFLAGS += -flto
+
+CONFIGURE_VARS += \
+    ac_cv_prog_swig_found=no
+
+CONFIGURE_ARGS += \
+    --prefix=/usr \
+    --without-python \
+    --without-python3
+
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcap-ng.{so*,a} $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libcap-ng.pc $(1)/usr/lib/pkgconfig/
+       $(INSTALL_DIR) $(1)/usr/share/aclocal
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/cap-ng.m4\
+        $(1)/usr/share/aclocal
+endef
+
+define Package/libcap-ng/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcap-ng.so* $(1)/usr/lib/
+endef
+
+define Package/libcap-ng-bin/install
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,libcap-ng))
+$(eval $(call BuildPackage,libcap-ng-bin))
diff --git a/libs/libcap-ng/patches/add_library_if_header_found.patch b/libs/libcap-ng/patches/add_library_if_header_found.patch
new file mode 100644 (file)
index 0000000..fbeee1c
--- /dev/null
@@ -0,0 +1,30 @@
+From 2c855b76362d1027abea967ac253cae8a7c160c3 Mon Sep 17 00:00:00 2001
+From: Trevor Woerner <twoerner@gmail.com>
+Date: Wed, 6 May 2020 17:38:05 -0400
+Subject: [PATCH] configure.ac: add library if header found (#10)
+
+If the pthread.h header is found, make sure library containing
+"pthread_atfork" is added to the list of libraries against which to link.
+On some hosts (e.g. openSUSE 15.1) "-lpthread" needs to be explicitly added
+in order for the code to compile correctly.
+
+Signed-off-by: Trevor Woerner <twoerner@gmail.com>
+---
+ configure.ac | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 9d6aca3..4fbe4d3 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -56,7 +56,9 @@ AC_CHECK_HEADERS(sys/xattr.h, [], [
+       AC_CHECK_HEADERS(attr/xattr.h, [], [AC_MSG_WARN(attr/xattr.h not found, disabling file system capabilities.)])
+       ])
+ AC_CHECK_HEADERS(linux/securebits.h, [], [])
+-AC_CHECK_HEADERS(pthread.h, [], [AC_MSG_WARN(pthread.h not found, disabling pthread_atfork.)])
++AC_CHECK_HEADERS(pthread.h,
++      [AC_SEARCH_LIBS(pthread_atfork, pthread)],
++      [AC_MSG_WARN(pthread.h not found, disabling pthread_atfork.)])
+ AC_C_CONST
+ AC_C_INLINE
diff --git a/libs/libcap-ng/patches/fix-includes.patch b/libs/libcap-ng/patches/fix-includes.patch
new file mode 100644 (file)
index 0000000..8fbd984
--- /dev/null
@@ -0,0 +1,11 @@
+diff -ru libcap-ng-0.7.4.orig/src/cap-ng.c libcap-ng-0.7.4/src/cap-ng.c
+--- libcap-ng-0.7.4.orig/src/cap-ng.c  2014-04-24 15:41:43.000000000 -0300
++++ libcap-ng-0.7.4/src/cap-ng.c       2015-04-15 08:45:10.783335463 -0300
+@@ -34,6 +34,7 @@
+ #include <stdarg.h>
+ #include <errno.h>
+ #include <fcntl.h>
++#include <endian.h>
+ #include <byteswap.h>
+ #ifdef HAVE_SYSCALL_H
+ #include <sys/syscall.h>
diff --git a/libs/libcap-ng/patches/fix_build_without_threads.patch b/libs/libcap-ng/patches/fix_build_without_threads.patch
new file mode 100644 (file)
index 0000000..39a2555
--- /dev/null
@@ -0,0 +1,26 @@
+From 9b5597dc780a9da292f9142899a992cfc6ca081d Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Thu, 7 May 2020 00:19:18 +0200
+Subject: [PATCH] src/cap-ng.c: fix build without threads (#13)
+
+Put pthread_atfork under #ifdef HAVE_PTHREAD_H block
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ src/cap-ng.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/cap-ng.c b/src/cap-ng.c
+index 35fcd7a..97a3dbd 100644
+--- a/src/cap-ng.c
++++ b/src/cap-ng.c
+@@ -166,7 +166,9 @@ static void deinit(void)
+ static void init_lib(void) __attribute__ ((constructor));
+ static void init_lib(void)
+ {
++#ifdef HAVE_PTHREAD_H
+       pthread_atfork(NULL, NULL, deinit);
++#endif
+ }
+ static void init(void)
diff --git a/libs/libebml/Makefile b/libs/libebml/Makefile
new file mode 100644 (file)
index 0000000..15e86aa
--- /dev/null
@@ -0,0 +1,49 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libebml
+PKG_VERSION:=1.3.10
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/Matroska-Org/libebml/tar.gz/release-$(PKG_VERSION)?
+PKG_HASH:=2562bb9bc3248e956a6ed1148eafe4d7d68759257133083c212d14faa8709d1e
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
+
+PKG_MAINTAINER:=
+PKG_LICENSE:=LGPL-2.1-or-later
+PKG_LICENSE_FILES:=LICENSE.LGPL
+
+CMAKE_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/libebml
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=a C++ libary to parse EBML files
+  URL:=https://github.com/Matroska-Org/libebml
+  DEPENDS:=+libstdcpp
+  BUILDONLY:=1
+endef
+
+define Package/libebml/description
+  a C++ libary to parse EBML files
+  Specifications may be rendered at http://matroska-org.github.io/libebml/
+endef
+
+CMAKE_OPTIONS += \
+       -DDISABLE_PKGCONFIG=OFF \
+       -DDISABLE_CMAKE_CONFIG=OFF \
+       -DENABLE_WIN32_IO=OFF
+
+TARGET_CFLAGS += -flto
+TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
+
+$(eval $(call BuildPackage,libebml))
diff --git a/libs/libfuse3/Makefile b/libs/libfuse3/Makefile
new file mode 100644 (file)
index 0000000..3caf1d7
--- /dev/null
@@ -0,0 +1,68 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=libfuse3
+PKG_VERSION:=3.9.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=fuse-$(PKG_VERSION).tar.xz
+PKG_SOURCE_URL:=https://github.com/libfuse/libfuse/releases/download/fuse-$(PKG_VERSION)
+PKG_HASH:=1bafcfd6c66ba35b7b0beb822532a9106eb8409ad6cde988888fde85f89be645
+PKG_BUILD_DIR:=$(BUILD_DIR)/fuse-$(PKG_VERSION)
+
+PKG_MAINTAINER:=
+PKG_CPE_ID:=cpe:/a:fuse_project:fuse
+
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+PKG_BUILD_DEPENDS:=meson/host
+
+include $(INCLUDE_DIR)/package.mk
+include ../../devel/meson/meson.mk
+
+define Package/libfuse3
+  TITLE:=FUSE3 library
+  URL:=https://github.com/libfuse/libfuse
+  SECTION:=libs
+  CATEGORY:=Libraries
+  DEPENDS:=+kmod-fuse +libpthread
+  SUBMENU:=Filesystem
+  ABI_VERSION:=1
+  LICENSE:=LGPL-2.1-only
+  LICENSE_FILES:=LGPL2.txt
+endef
+
+define Package/libfuse3/description
+ fuse3 (Filesystem in UserSpacE)
+ This package contains the fuse3 shared libraries, needed by other programs.
+ - libfuse3
+endef
+
+MESON_ARGS += \
+       -Ddisable-mtab=true \
+       -Dutils=false \
+       -Dexamples=false \
+       -Duseroot=false
+
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include/fuse3
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/fuse3/*.h $(1)/usr/include/fuse3
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse3.so* $(1)/usr/lib/
+       $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
+       $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse3.pc $(1)/usr/lib/pkgconfig/
+endef
+
+define Package/libfuse3/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfuse3.so.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libfuse3))
index 64c849edfc926134c8ad99f362084680ece0df5a..62ac3dc8ab82d1263d7582892d4fedd2750fcfd4 100644 (file)
@@ -8,8 +8,8 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libmariadb
-PKG_VERSION:=3.1.7
-PKG_RELEASE:=2
+PKG_VERSION:=3.1.8
+PKG_RELEASE:=1
 
 PKG_SOURCE:=mariadb-connector-c-$(PKG_VERSION)-src.tar.gz
 PKG_SOURCE_URL := \
@@ -18,7 +18,7 @@ PKG_SOURCE_URL := \
        https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/connector-c-$(PKG_VERSION) \
        https://downloads.mariadb.org/interstitial/connector-c-$(PKG_VERSION)
 
-PKG_HASH:=64f7bc8f5df3200ba6e3080f68ee4942382a33e8371baea8ca4b9242746df59a
+PKG_HASH:=431434d3926f4bcce2e5c97240609983f60d7ff50df5a72083934759bb863f7b
 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
 PKG_LICENSE:=LGPL-2.1
 PKG_LICENSE_FILES:=COPYING.LIB
diff --git a/libs/libmatroska/Makefile b/libs/libmatroska/Makefile
new file mode 100644 (file)
index 0000000..bb57203
--- /dev/null
@@ -0,0 +1,48 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libmatroska
+PKG_VERSION:=1.5.2
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/Matroska-Org/libmatroska/tar.gz/release-$(PKG_VERSION)?
+PKG_HASH:=8d03020ca3a657fe8d1ff57209b4218b6001df2ecd11ae956b428de941f2811f
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)
+
+PKG_MAINTAINER:=
+PKG_LICENSE:=LGPL-2.1-or-later
+PKG_LICENSE_FILES:=LICENSE.LGPL
+
+CMAKE_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+PKG_BUILD_DEPENDS:=libebml
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/libmatroska
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=a C++ libary to parse Matroska files (.mkv and .mka)
+  URL:=https://github.com/Matroska-Org/libmatroska
+  DEPENDS:=+libstdcpp
+  BUILDONLY:=1
+endef
+
+define Package/libmatroska/description
+  a C++ libary to parse and create Matroska files
+endef
+
+CMAKE_OPTIONS += \
+       -DDISABLE_PKGCONFIG=OFF \
+       -DDISABLE_CMAKE_CONFIG=OFF
+
+TARGET_CFLAGS += -flto
+TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
+
+$(eval $(call BuildPackage,libmatroska))
index d17dcc2e9fb5b0b3f8768089688b14bd6666c469..870971cd3370fb004416a00d97ff37df5163929f 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libmicrohttpd
 PKG_VERSION:=0.9.70
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/libmicrohttpd
@@ -28,7 +28,7 @@ define Package/libmicrohttpd/default
   SECTION:=libs
   CATEGORY:=Libraries
   TITLE:=GNU libmicrohttpd is a library that runs an HTTP server.
-  URL:=http://www.gnu.org/software/libmicrohttpd/
+  URL:=https://www.gnu.org/software/libmicrohttpd/
 endef
 
 define Package/libmicrohttpd-no-ssl
@@ -46,13 +46,19 @@ $(call Package/libmicrohttpd/default)
   PROVIDES:=libmicrohttpd
 endef
 
+define Package/libmicrohttpd/description
+  GNU libmicrohttpd is a small C library that is supposed to make it easy
+  to run an HTTP server as part of another application.
+endef
+
 CONFIGURE_ARGS += \
        --disable-curl \
        --disable-rpath \
        --disable-doc \
        --disable-examples \
        --disable-poll \
-       --enable-epoll
+       --enable-epoll \
+       --with-pic
 
 ifeq ($(BUILD_VARIANT),ssl)
 CONFIGURE_ARGS += \
@@ -64,11 +70,6 @@ CONFIGURE_ARGS += \
        --without-gnutls
 endif
 
-define Package/libmicrohttpd/description
-  GNU libmicrohttpd is a small C library that is supposed to make it easy
-  to run an HTTP server as part of another application.
-endef
-
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/
        $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/microhttpd.h $(1)/usr/include/
index ebeec335c67104ff19ff464dcea4d8edeb0259f6..5901668daad326798b41e6c9dca5d31d75edbb7b 100644 (file)
@@ -1,12 +1,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libnpupnp
-PKG_VERSION:=2.2.1
+PKG_VERSION:=4.0.3
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.lesbonscomptes.com/upmpdcli/downloads
-PKG_HASH:=da67d4c258d139d476af6b800926cd9cd09ba17d9e9fcfaebe3fb98241b32790
+PKG_HASH:=160ab9b0fa8886013811573cb28cffe0b205eadb318e9627c09b297dee1cbc23
 
 PKG_MAINTAINER:=
 PKG_LICENSE:=LGPL-2.1-or-later
index 272e31db847b71b05e632f980c411137ab808c0a..244143e99baba12f9d26e7d44fa533a165018685 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libupnpp
-PKG_VERSION:=0.18.0
+PKG_VERSION:=0.19.1
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.lesbonscomptes.com/upmpdcli/downloads
-PKG_HASH:=c9659cd36ce70c43e9889a6c3a5eeb28e4f799580727826a6c7aef9bef6b6937
+PKG_HASH:=412b38bdd07441588c11bb1d64af7d112f439a46512d53c907f9b54a6666ff58
 
 PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
 PKG_LICENSE:=LGPL-2.1-or-later
index bb0ce974bfdce5be34784e9fc27cd241552a5818..34510345b5f04aefcfd8b2c512d71ef53da9e904 100644 (file)
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libwebp
 PKG_VERSION:=1.1.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://storage.googleapis.com/downloads.webmproject.org/releases/webp
@@ -41,6 +41,12 @@ CMAKE_OPTIONS += \
        -DWEBP_BUILD_WEBPMUX=OFF \
        -DWEBP_BUILD_EXTRAS=OFF
 
+ifneq ($(findstring arm,$(CONFIG_ARCH)),)
+ifeq ($(findstring neon,$(CONFIG_CPU_TYPE)),)
+CMAKE_OPTIONS += -DWEBP_ENABLE_SIMD=OFF
+endif
+endif
+
 TARGET_CFLAGS += -flto
 
 define Package/libwebp/install
index 57db05054f04a370f57f5f24b931b4ae26a559b8..1da6b1dd8696af5ea7855bf76fd493e35fea762c 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=measurement-kit
 PKG_VERSION:=0.10.11
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/measurement-kit/measurement-kit/tar.gz/v$(PKG_VERSION)?
@@ -21,8 +21,11 @@ PKG_LICENSE_FILES:=LICENSE
 
 PKG_FIXUP:=autoreconf
 PKG_INSTALL:=1
+PKG_BUILD_DEPENDS:=curl libevent2 libmaxminddb openssl
 PKG_BUILD_PARALLEL:=1
 
+PKG_CONFIG_DEPENDS:=MEASUREMENT_KIT_BUILD_DEPENDS
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/measurement-kit
@@ -30,13 +33,25 @@ define Package/measurement-kit
   CATEGORY:=Libraries
   TITLE:=library for open network measurement
   URL:=https://measurement-kit.github.io/
-  DEPENDS:=+libstdcpp +libcurl +libevent2-pthreads +libevent2-extra +libevent2-openssl +libevent2-core +libmaxminddb +ca-bundle
+  DEPENDS:=+libstdcpp +libcurl +libevent2-pthreads +libevent2-extra +libevent2-openssl +libevent2-core +libmaxminddb +libopenssl +ca-bundle
 endef
 
 define Package/measurement-kit/description
  Measurement Kit is a C++14 library that implements open network measurement methodologies (performance, censorship, etc.)
 endef
 
+define Package/measurement-kit/config
+config MEASUREMENT_KIT_BUILD_DEPENDS
+       bool
+       default PACKAGE_measurement-kit
+
+config MEASUREMENT_KIT_BUILD_SELECT
+       tristate
+       default m if MEASUREMENT_KIT_BUILD_DEPENDS
+       select PACKAGE_libevent2-openssl
+       select PACKAGE_libevent2-pthreads
+endef
+
 CONFIGURE_ARGS+= --with-ca-bundle=/etc/ssl/cert.pem
 
 TARGET_CFLAGS += $(if $(CONFIG_USE_UCLIBC),-DCATCH_CONFIG_GLOBAL_NEXTAFTER)
index e68d7397ee9ca4ae5060e8b2bd4db9a1035482d9..8d4c42ab2096f65b1bc42481ba93ca6648cb692f 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nspr
 PKG_VERSION:=4.25
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
 PKG_LICENCE:=MPL-2.0
 
@@ -34,7 +34,8 @@ ifeq ($(LBITS),64)
 endif
 
 export MUSL=$(if $(CONFIG_LIBC_USE_GLIBC),0,1)
-TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
+TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed $(FPIC)
+TARGET_CFLAGS += -flto
 
 CONFIGURE_ARGS += \
     --build=$(GNU_HOST_NAME) \
index e1b5ba82331c3f4502c524ade7e8d926e03f088f..aea986c7987785594e73106c57743330bcaaf8b4 100644 (file)
@@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nss
 PKG_VERSION:=3.52
-PKG_RELEASE:=1
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:= \
@@ -62,37 +62,40 @@ ifeq ($(CONFIG_CPU_TYPE),"xscale")
 TARGET_CFLAGS+= -mfloat-abi=softfp
 endif
 
-TARGET_CFLAGS += -D_GNU_SOURCE
-TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
+ifneq ($(findstring arm,$(CONFIG_ARCH)),)
+ifeq ($(findstring neon,$(CONFIG_CPU_TYPE)),)
+export NSS_DISABLE_ARM32_NEON
+endif
+endif
 
-export CROSS_COMPILE=1
-export BUILD_OPT=1
 export NATIVE_CC=$(HOSTCC)
 export NATIVE_FLAGS=$(HOST_CFLAGS)
-export NSDISTMODE=copy
 export NSS_ENABLE_WERROR=0
-export NSS_DISABLE_GTESTS=1
-export NSS_USE_SYSTEM_SQLITE=1
-export OS_TARGET=Linux
-export OS_ARCH=Linux
-export OS_TEST=$(ARCH)
-export CPU_ARCH=$(ARCH)
-export fpic=$(FPIC)
-export NSPR_INCLUDE_DIR=$(STAGING_DIR)/usr/include/nspr
-export SEED_ONLY_DEV_URANDOM=1
-export OS_REL_CFLAGS=$(TARGET_CFLAGS)
-export NS_USE_GCC=1
-export FREEBL_NO_DEPEND=1
-#size optimisation, seems to not impact speed
-export NSS_DISABLE_DBM=1
-export NSS_PKIX_NO_LDAP=1
-export ALLOW_OPT_CODE_SIZE=1
-export OPT_CODE_SIZE=1
+
+MAKE_FLAGS += \
+       CROSS_COMPILE=1 \
+       BUILD_OPT=1 \
+       NSDISTMODE=copy \
+       NSS_DISABLE_GTESTS=1 \
+       NSS_USE_SYSTEM_SQLITE=1 \
+       OS_ARCH=Linux \
+       OS_TEST=$(ARCH) \
+       fpic=$(FPIC) \
+       NSPR_INCLUDE_DIR=$(STAGING_DIR)/usr/include/nspr \
+       SEED_ONLY_DEV_URANDOM=1 \
+       NS_USE_GCC=1 \
+       FREEBL_NO_DEPEND=1 \
+       NSS_DISABLE_DBM=1 \
+       NSS_PKIX_NO_LDAP=1 \
+       ALLOW_OPT_CODE_SIZE=1 \
+       OPT_CODE_SIZE=1 \
+       OS_REL_CFLAGS="$(TARGET_CFLAGS)"
 
 #native compile nsinstall
 define Build/Prepare
        $(call Build/Prepare/Default)
-       USE_NATIVE=1 OS_REL_CFLAGS="$(HOST_CFLAGS)" LDFLAGS="$(HOST_LDFLAGS)" CC="$(HOSTCC)" \
+       USE_NATIVE=1 OS_REL_CFLAGS="$(HOST_CFLAGS)" LDFLAGS="$(HOST_LDFLAGS)" \
+       CC="$(HOSTCC)" CPU_ARCH="$(HOST_ARCH)" \
            $(MAKE) -C $(PKG_BUILD_DIR)/nss/coreconf/nsinstall
 endef
 
index 747860f520ee7d147a15bc21275305c183bf9568..9f75850ff9b62b293e19fb54bf631ff9af130afe 100644 (file)
@@ -22,7 +22,7 @@
  
 --- a/nss/coreconf/arch.mk     2019-03-31 23:38:34.374931416 +0300
 +++ b/nss/coreconf/arch.mk     2019-03-31 23:38:44.667236102 +0300
-@@ -305,7 +305,7 @@
+@@ -334,7 +334,7 @@
      OBJDIR_NAME_COMPILER = $(COMPILER_TAG)
  endif
  OBJDIR_NAME_BASE = $(OS_TARGET)$(OS_RELEASE)$(CPU_TAG)$(OBJDIR_NAME_COMPILER)$(LIBC_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG)
  ifdef MOZ_DEBUG_SYMBOLS
        ifdef MOZ_DEBUG_FLAGS
                OPTIMIZER += $(MOZ_DEBUG_FLAGS)
+@@ -192,7 +192,7 @@
+ endif
+ endif
+
+-MKSHLIB         = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so) $(RPATH)
++MKSHLIB         = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so) $(RPATH) $(fpic) -Wl,--gc-sections,--as-needed
+
+ ifdef MAPFILE
+       MKSHLIB += -Wl,--version-script,$(MAPFILE)
 --- a/nss/coreconf/UNIX.mk     2019-04-06 20:34:24.284157646 +0300
 +++ b/nss/coreconf/UNIX.mk     2019-04-06 20:34:34.760485327 +0300
 @@ -10,7 +10,6 @@
index 1503d120446c1113b92870305325195462d1c0ed..960c921267b585772c2fdc232c1ab5401d0ce69c 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=p11-kit
 PKG_VERSION:=0.23.20
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/p11-glue/p11-kit/releases/download/$(PKG_VERSION)
@@ -62,9 +62,9 @@ endef
 define Package/p11-kit/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libp11-kit.so.* $(1)/usr/lib/
-       $(INSTALL_DIR) $(1)/etc/p11-kit/modules/
+       $(INSTALL_DIR) $(1)/etc/pkcs11/modules/
 ifneq ($(CONFIG_PACKAGE_libopensc),)
-       $(CP) ./files/opensc.module $(1)/etc/p11-kit/modules/
+       $(CP) ./files/opensc.module $(1)/etc/pkcs11/modules/
 endif
 endef
 
index b8a4bf6c1fa44971214230eac66fd4f8450fbae5..51cda9eaee911ed193770d6397ae9aba098b3019 100644 (file)
@@ -1,5 +1,5 @@
 #
-# Copyright (C) 2019 Yousong Zhou <yszhou4tech@gmail.com>
+# Copyright (C) 2019-2020 Yousong Zhou <yszhou4tech@gmail.com>
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,17 +8,20 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=spice-protocol
-PKG_VERSION:=0.14.1
+PKG_VERSION:=0.14.2
 PKG_RELEASE:=1
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.spice-space.org/download/releases
-PKG_HASH:=79e6da61834b080a143234c1cd4c099a8ead1a64b5039489610b72ab282c132a
+PKG_HASH:=8f3a63c8b68300dffe36f2e75eac57afa1e76d5d80af760fd138a0b3f44cf1e9
 PKG_LICENSE:=BSD-3-Clause
 PKG_LICENSE_FILES:=COPYING
-PKG_INSTALL:=1
 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
 
+PKG_INSTALL:=1
+PKG_BUILD_DEPENDS:=meson/host
+
 include $(INCLUDE_DIR)/package.mk
+include ../../devel/meson/meson.mk
 
 
 define Package/spice-protocol
diff --git a/libs/taglib/Makefile b/libs/taglib/Makefile
new file mode 100644 (file)
index 0000000..eb4f639
--- /dev/null
@@ -0,0 +1,57 @@
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=taglib
+PKG_VERSION:=1.12-beta-1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/taglib/taglib/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=d2a44be7ca8b7682b218affc9910dcfb027481f402f7c30bd2996392b2429ae4
+
+PKG_MAINTAINER:=
+PKG_LICENSE:=LGPL-2.1-or-later
+PKG_LICENSE_FILES:=COPYING.LGPL
+PKG_CPE_ID:=cpe:/a:taglib:taglib
+
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/taglib
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE:=taglib
+  URL:=https://github.com/taglib/taglib
+  DEPENDS:=+libstdcpp
+  BUILDONLY:=1
+endef
+
+define Package/taglib/description
+  TagLib is a library for reading and editing the metadata of several
+  popular audio formats. Currently it supports both ID3v1 and ID3v2 for
+  MP3 files, Ogg Vorbis comments and ID3 tags in FLAC, MPC, Speex, WavPack,
+  TrueAudio, WAV, AIFF, MP4, APE, DSF, DFF, and ASF files.
+endef
+
+CMAKE_OPTIONS += \
+       -DBUILD_TESTS=OFF \
+       -DBUILD_EXAMPLES=OFF \
+       -DBUILD_BINDINGS=OFF \
+       -DNO_ITUNES_HACKS=ON
+
+TARGET_CXXFLAGS += -flto
+
+define Build/InstallDev
+       $(call Build/InstallDev/cmake,$(1))
+       $(SED) '/^prefix=\|^exec_prefix=/s|/usr|$(STAGING_DIR)/usr|' $(1)/usr/bin/taglib-config
+       $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/taglib.pc
+       $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/taglib.pc
+endef
+
+$(eval $(call BuildPackage,taglib))
index 6e1b3770f73b7757eccf94b85369b30efbd96cb5..2933151d4a50911f57e48f9ba9171ac9a067aa5a 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=ffmpeg
 PKG_VERSION:=4.2.2
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://ffmpeg.org/releases/
diff --git a/multimedia/ffmpeg/patches/050-glibc.patch b/multimedia/ffmpeg/patches/050-glibc.patch
new file mode 100644 (file)
index 0000000..870a87a
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/libavcodec/wmv2dsp.c
++++ b/libavcodec/wmv2dsp.c
+@@ -263,6 +263,6 @@ av_cold void ff_wmv2dsp_init(WMV2DSPContext *c)
+     c->put_mspel_pixels_tab[6] = put_mspel8_mc22_c;
+     c->put_mspel_pixels_tab[7] = put_mspel8_mc32_c;
+
+-    if (ARCH_MIPS)
++    if (ARCH_MIPS64)
+         ff_wmv2dsp_init_mips(c);
+ }
index ec57f8e7241ac086b65d5dd7b1e0b7f3688908b2..54163667b150c42e0e1456cb1b79be26987b1511 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=gerbera
 PKG_VERSION:=1.5.0
-PKG_RELEASE:=4
+PKG_RELEASE:=6
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/gerbera/gerbera/tar.gz/v$(PKG_VERSION)?
@@ -19,7 +19,7 @@ PKG_MAINTAINER:=
 PKG_LICENSE:=GPL-2.0-or-later
 PKG_LICENSE_FILES:=LICENSE.md
 
-PKG_BUILD_DEPENDS:=pugixml spdlog
+PKG_BUILD_DEPENDS:=libmatroska pugixml spdlog taglib
 PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
@@ -53,12 +53,12 @@ CMAKE_OPTIONS += \
        -DWITH_CURL=OFF \
        -DWITH_INOTIFY=ON \
        -DWITH_JS=OFF \
-       -DWITH_TAGLIB=OFF \
+       -DWITH_TAGLIB=ON \
        -DWITH_AVCODEC=OFF \
        -DWITH_FFMPEGTHUMBNAILER=OFF \
        -DWITH_EXIF=ON \
        -DWITH_EXIV2=OFF \
-       -DWITH_MATROSKA=OFF \
+       -DWITH_MATROSKA=ON \
        -DWITH_SYSTEMD=OFF \
        -DWITH_LASTFM=OFF \
        -DWITH_DEBUG=OFF \
index 1a4b7f5569f1189922a8b159f48e55454cdce194..0ce108baa746fa5f64b4d23f2c544a32cfe46093 100644 (file)
@@ -6,8 +6,8 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=adblock
-PKG_VERSION:=4.0.4
-PKG_RELEASE:=4
+PKG_VERSION:=4.0.5
+PKG_RELEASE:=1
 PKG_LICENSE:=GPL-3.0-or-later
 PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>
 
@@ -17,7 +17,7 @@ define Package/adblock
        SECTION:=net
        CATEGORY:=Network
        TITLE:=Powerful adblock script to block ad/abuse domains by using DNS
-       DEPENDS:=+jshn +jsonfilter +coreutils +coreutils-sort +ca-bundle
+       DEPENDS:=+jshn +jsonfilter +coreutils +coreutils-sort +ca-bundle +opkg
        PKGARCH:=all
 endef
 
index a196e590d6b2b188041b060b22ee154a64fbd223..f399cb8e1681cbc536f5b643b253ab037054051b 100644 (file)
@@ -15,10 +15,11 @@ A lot of people already use adblocker plugins within their desktop browsers, but
 | bitcoin             |         | S    | mining           | [Link](https://github.com/hoshsadiq/adblock-nocoin-list)         |
 | disconnect          | x       | S    | general          | [Link](https://disconnect.me)                                    |
 | dshield             |         | XL   | general          | [Link](https://dshield.org)                                      |
-| energized_blugo     |         | XL   | compilation      | [Link](https://github.com/EnergizedProtection/block)             |
-| energized_blu       |         | XL   | compilation      | [Link](https://github.com/EnergizedProtection/block)             |
-| energized_porn      |         | XXL  | compilation+porn | [Link](https://github.com/EnergizedProtection/block)             |
-| energized_unified   |         | XXL  | compilation      | [Link](https://github.com/EnergizedProtection/block)             |
+| energized_blugo     |         | XL   | compilation      | [Link](https://energized.pro)                                    |
+| energized_blu       |         | XL   | compilation      | [Link](https://energized.pro)                                    |
+| energized_porn      |         | XXL  | compilation+porn | [Link](https://energized.pro)                                    |
+| energized_ultimate  |         | XXL  | compilation      | [Link](https://energized.pro)                                    |
+| energized_unified   |         | XXL  | compilation      | [Link](https://energized.pro)                                    |
 | malwaredomains      |         | M    | malware          | [Link](https://malwaredomains.com)                               |
 | malwarelist         |         | S    | malware          | [Link](https://www.malwaredomainlist.com)                        |
 | notracking          |         | XL   | tracking         | [Link](https://github.com/notracking/hosts-blocklists)           |
@@ -35,11 +36,12 @@ A lot of people already use adblocker plugins within their desktop browsers, but
 | reg_ro              |         | M    | reg_romania      | [Link](https://easylist.to)                                      |
 | reg_ru              |         | M    | reg_russia       | [Link](https://easylist.to)                                      |
 | reg_vn              |         | M    | reg_vietnam      | [Link](https://bigdargon.github.io/hostsVN)                      |
-| shallalist          |         | L    | general          | [Link](https://www.shallalist.de)                                |
-| shallalist_porn     |         | XXL  | general+porn     | [Link](https://www.shallalist.de)                                |
+| shallalist          |         | L    | general          | [Link](http://www.shallalist.de)                                 |
+| shallalist_porn     |         | XXL  | general+porn     | [Link](http://www.shallalist.de)                                 |
 | smarttv             |         | S    | smarttv          | [Link](https://github.com/Perflyst/PiHoleBlocklist)              |
 | spam404             |         | S    | general          | [Link](https://github.com/Dawsey21)                              |
-| stevenblack         |         | L    | compilation      | [Link](https://github.com/StevenBlack/hosts)                     |
+| stevenblack         |         | L    | compilation+porn | [Link](https://github.com/StevenBlack/hosts)                     |
+| stevenblack_porn    |         | L    | compilation+porn | [Link](https://github.com/StevenBlack/hosts)                     |
 | stopforumspam       |         | S    | spam             | [Link](https://www.stopforumspam.com)                            |
 | sysctl              |         | M    | general          | [Link](http://sysctl.org/cameleon)                               |
 | utcapitole          |         | L    | general          | [Link](https://dsi.ut-capitole.fr/blacklists/index_en.php)       |
index c3fd46c83b0314c422b94a926414732e08e09d58..3471cc8df56a557b3f67bf7aca223d3030fcb85a 100755 (executable)
@@ -134,8 +134,8 @@ list()
                        src_enabled="${src_enabled//\'}"
                        printf "%s\\n" "::: Available adblock sources"
                        printf "%s\\n" ":::"
-                       printf "%-25s%-10s%-7s%-20s%s\\n" "    Name" "Enabled" "Size" "Focus" "Info URL"
-                       printf "%s\\n" "    ------------------------------------------------------------------"
+                       printf "%-25s%-10s%-7s%-21s%s\\n" "    Name" "Enabled" "Size" "Focus" "Info URL"
+                       printf "%s\\n" "    -------------------------------------------------------------------"
                        json_load_file "${src_file}"
                        json_get_keys keylist
                        for key in ${keylist}
@@ -155,7 +155,7 @@ list()
                                                enabled=" "
                                        fi
                                        src_enabled="${src_enabled/${key}}"
-                                       printf "  + %-21s%-10s%-7s%-20s%s\\n" "${key}" "${enabled}" "${size}" "${focus}" "${descurl}"
+                                       printf "  + %-21s%-10s%-7s%-21s%s\\n" "${key:0:20}" "${enabled}" "${size:0:3}" "${focus:0:20}" "${descurl:0:50}"
                                else
                                        src_enabled="${src_enabled} ${key}"
                                fi
@@ -168,7 +168,7 @@ list()
                                printf "%s\\n" "    ----------------------------------------------"
                                for key in ${src_enabled}
                                do
-                                       printf "  - %s\\n" "${key}"
+                                       printf "  - %s\\n" "${key:0:20}"
                                done
                        fi
                else
index 4fa4902ca74256292e443574ec31c307d409cadd..8098f2db6103f36a3586df20eb927b7204689d72 100755 (executable)
@@ -11,7 +11,7 @@
 export LC_ALL=C
 export PATH="/usr/sbin:/usr/bin:/sbin:/bin"
 set -o pipefail
-adb_ver="4.0.4"
+adb_ver="4.0.5"
 adb_enabled=0
 adb_debug=0
 adb_forcedns=0
@@ -125,13 +125,20 @@ f_conf()
 
        if [ ! -r "/etc/config/adblock" ] || [ -n "$(uci -q show adblock.@source[0])" ]
        then
-               if [ -r "/etc/config/adblock-opkg" ] && [ -z "$(uci -q show adblock-opkg.@source[0])" ]
+               if { [ -r "/etc/config/adblock-opkg" ] && [ -z "$(uci -q show adblock-opkg.@source[0])" ]; } || \
+                       { [ -r "/rom/etc/config/adblock" ] && [ -z "$(uci -q show /rom/etc/config/adblock.@source[0])" ]; }
                then
                        if [ -r "/etc/config/adblock" ]
                        then
                                cp -pf "/etc/config/adblock" "/etc/config/adblock-backup"
                        fi
-                       cp -pf "/etc/config/adblock-opkg" "/etc/config/adblock"
+                       if [ -r "/etc/config/adblock-opkg" ]
+                       then
+                               cp -pf "/etc/config/adblock-opkg" "/etc/config/adblock"
+                       elif [ -r "/rom/etc/config/adblock" ]
+                       then
+                               cp -pf "/rom/etc/config/adblock" "/etc/config/adblock"
+                       fi
                        f_log "info" "missing or old adblock config replaced with new valid default config"
                else
                        f_log "err" "unrecoverable adblock config error, please re-install the package via opkg with the '--force-reinstall --force-maintainer' options"
@@ -242,7 +249,7 @@ f_dns()
                                adb_dnsinstance="${adb_dnsinstance:-"0"}"
                                adb_dnsuser="${adb_dnsuser:-"root"}"
                                adb_dnsdir="${adb_dnsdir:-"/etc/kresd"}"
-                               adb_dnsheader="${adb_dnsheader:-"\$TTL 2h\n@ IN SOA localhost. root.localhost. (1 6h 1h 1w 2h)\n  IN NS  localhost.\n"}"
+                               adb_dnsheader="${adb_dnsheader:-"\$TTL 2h\n@ IN SOA localhost. root.localhost. (1 6h 1h 1w 2h)\n"}"
                                adb_dnsdeny="${adb_dnsdeny:-"${adb_awk} '{print \"\"\$0\" CNAME .\\n*.\"\$0\" CNAME .\"}'"}"
                                adb_dnsallow="${adb_dnsallow:-"${adb_awk} '{print \"\"\$0\" CNAME rpz-passthru.\\n*.\"\$0\" CNAME rpz-passthru.\"}'"}"
                                adb_dnssafesearch="${adb_dnssafesearch:-"0"}"
index 425b739c287d3129f7a08b77f22cab697497f931..129835388ebd3f9c072f80846b10b5f989f47103 100644 (file)
                "descurl": "https://www.dshield.org"
        },
        "energized_blugo": {
-               "url": "https://raw.githubusercontent.com/EnergizedProtection/block/master/bluGo/formats/domains.txt",
+               "url": "https://block.energized.pro/bluGo/formats/domains.txt",
                "rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "size": "XL",
                "focus": "compilation",
-               "descurl": "https://github.com/EnergizedProtection/block"
+               "descurl": "https://energized.pro"
        },
        "energized_blu": {
-               "url": "https://raw.githubusercontent.com/EnergizedProtection/block/master/blu/formats/domains.txt",
+               "url": "https://block.energized.pro/blu/formats/domains.txt",
                "rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "size": "XL",
                "focus": "compilation",
-               "descurl": "https://github.com/EnergizedProtection/block"
+               "descurl": "https://energized.pro"
        },
        "energized_porn": {
-               "url": "https://raw.githubusercontent.com/EnergizedProtection/block/master/porn/formats/domains.txt",
+               "url": "https://block.energized.pro/porn/formats/domains.txt",
                "rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "size": "XXL",
                "focus": "compilation+porn",
-               "descurl": "https://github.com/EnergizedProtection/block"
+               "descurl": "https://energized.pro"
+       },
+       "energized_ultimate": {
+               "url": "https://block.energized.pro/ultimate/formats/domains.txt",
+               "rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
+               "size": "XXL",
+               "focus": "compilation",
+               "descurl": "https://energized.pro"
        },
        "energized_unified": {
-               "url": "https://raw.githubusercontent.com/EnergizedProtection/block/master/unified/formats/domains.txt",
+               "url": "https://block.energized.pro/unified/formats/domains.txt",
                "rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "size": "XXL",
                "focus": "compilation",
-               "descurl": "https://github.com/EnergizedProtection/block"
+               "descurl": "https://energized.pro"
        },
        "malwaredomains": {
                "url": "http://mirror.espoch.edu.ec/malwaredomains/justdomains",
                "descurl": "https://bigdargon.github.io/hostsVN"
        },
        "shallalist": {
-               "url": "https://www.shallalist.de/Downloads/shallalist.tar.gz",
+               "url": "http://www.shallalist.de/Downloads/shallalist.tar.gz",
                "rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "categories": [
                                "adv", "costtraps", "spyware", "tracker", "warez"
                ],
                "size": "L",
                "focus": "general",
-               "descurl": "https://www.shallalist.de"
+               "descurl": "http://www.shallalist.de"
        },
        "shallalist_porn": {
-               "url": "https://www.shallalist.de/Downloads/shallalist.tar.gz",
+               "url": "http://www.shallalist.de/Downloads/shallalist.tar.gz",
                "rule": "/^([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($1)}",
                "categories": [
                                "adv", "costtraps", "porn", "spyware", "tracker", "warez"
                ],
                "size": "XXL",
                "focus": "general+porn",
-               "descurl": "https://www.shallalist.de"
+               "descurl": "http://www.shallalist.de"
        },
        "smarttv": {
                "url": "https://raw.githubusercontent.com/Perflyst/PiHoleBlocklist/master/SmartTV.txt",
                "descurl": "https://github.com/Dawsey21"
        },
        "stevenblack": {
+               "url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts",
+               "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
+               "size": "L",
+               "focus": "compilation",
+               "descurl": "https://github.com/StevenBlack/hosts"
+       },
+       "stevenblack_porn": {
                "url": "https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts",
                "rule": "/^0\\.0\\.0\\.0[[:space:]]+([[:alnum:]_-]+\\.)+[[:alpha:]]+([[:space:]]|$)/{print tolower($2)}",
                "size": "L",
index 4547002a93bffd1511840ab29c8e30483ea7b664..8efcb77fac6959ef5d1575c08a2e9815245f36be 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=apache
 PKG_VERSION:=2.4.43
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_SOURCE_NAME:=httpd
 
 PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.bz2
@@ -246,12 +246,9 @@ endif
 ifneq ($(CONFIG_PACKAGE_apache-mod-suexec)$(CONFIG_PACKAGE_apache-suexec),)
 CONFIGURE_ARGS+= \
        --enable-suexec \
-       --with-suexec-bin=/usr/sbin/suexec \
+       --with-suexec-bin=/usr/lib/apache2/suexec_dir/suexec \
        --with-suexec-caller=apache \
-       --with-suexec-docroot=/var/www \
-       --with-suexec-logfile=/var/log/apache2/suexec.log \
-       --with-suexec-uidmin=99 \
-       --with-suexec-gidmin=99
+       --with-suexec-logfile=/var/log/apache2/suexec.log
 else
 CONFIGURE_ARGS+= \
        --disable-suexec
@@ -331,8 +328,9 @@ define Package/apache-icons/install
 endef
 
 define Package/apache-suexec/install
-       $(INSTALL_DIR) $(1)/usr/sbin
-       $(CP) $(PKG_INSTALL_DIR)/usr/sbin/suexec $(1)/usr/sbin
+       $(INSTALL_DIR) -m0750 $(1)/usr/lib/apache2/suexec_dir
+       $(INSTALL_SUID) $(PKG_INSTALL_DIR)/usr/sbin/suexec \
+                       $(1)/usr/lib/apache2/suexec_dir
 endef
 
 define Package/apache-utils/install
@@ -342,6 +340,22 @@ define Package/apache-utils/install
                                                                        $(1)/usr/sbin
 endef
 
+# Directory "suexec_dir" is installed with '-m0750' above and contains
+# SUID binary "suexec". Below post-install script changes the group of
+# "suexec_dir" to apache, so user apache can access the folder (and the
+# SUID binary). The script only changes the group if the directory is
+# currently owned by "root:root".
+define Package/apache-suexec/postinst
+#!/bin/sh
+if [ -z "$${IPKG_INSTROOT}" ]; then
+  dir="/usr/lib/apache2/suexec_dir"
+  if ! [ -L "$$dir" ] && [ -d "$$dir" ] && [ -O "$$dir" ] && [ -G "$$dir" ]; then
+    chown :apache "$$dir"
+  fi
+fi
+exit 0
+endef
+
 define Package/apache/Module
 define Package/apache-mod-$(1)
 $(call Package/apache/Default)
index a0136c84119177b37a144f172bdbd8d232ddc553..df2e2646e199104aa78d3ce28ce5aa5774c4e7f2 100644 (file)
@@ -11,7 +11,8 @@ restart() {
 }
 
 start() {
-       mkdir -p /var/log/apache2 /var/run/apache2
+       mkdir -p -m 0750 /var/log/apache2
+       mkdir -p /var/run/apache2
        apachectl -k start
 }
 
index ad8e7e863ee4367426a0cb8d2c142f2a22afb1f3..8726baa28810a1083e9b6a434a16c6d02136da45 100644 (file)
@@ -9,7 +9,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=bind
-PKG_VERSION:=9.16.2
+PKG_VERSION:=9.16.3
 PKG_RELEASE:=1
 USERID:=bind=57:bind=57
 
@@ -22,7 +22,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:= \
        https://www.mirrorservice.org/sites/ftp.isc.org/isc/bind9/$(PKG_VERSION) \
        https://ftp.isc.org/isc/bind9/$(PKG_VERSION)
-PKG_HASH:=d9e5b77cfca5ccad97f19cddc87128758ec15c16e6585000c6b2f84fc225993f
+PKG_HASH:=27ac6513de5f8d0db34b9f241da53baa15a14b2ad21338d0cde0826eaf564f7e
 
 PKG_FIXUP:=autoreconf
 PKG_REMOVE_FILES:=aclocal.m4 libtool.m4
index 03f5acac521afb6d6952b760cc4ba76c4713d92f..ae6a4d8ed6ae20f2f3fcd805703ce00625c93d97 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=cifs-utils
 PKG_VERSION:=6.10
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://download.samba.org/pub/linux-cifs/cifs-utils/
@@ -54,6 +54,9 @@ CONFIGURE_ARGS += \
        --disable-man \
        --without-libcap
 
+CONFIGURE_ARGS += \
+       ac_cv_lib_cap_ng_capng_clear=no
+
 TARGET_CFLAGS += $(FPIC) -ffunction-sections -flto
 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
 
index 45ff9dbd05c713b05ec8405457715389fb9aac2f..beab6220989f08d9343958715c46849e38ada78d 100644 (file)
@@ -5,13 +5,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=dawn
-PKG_SOURCE_DATE:=2020-04-17
-PKG_RELEASE:=2
+PKG_SOURCE_DATE:=2020-05-20
+PKG_RELEASE:=1
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL:=https://github.com/berlin-open-wireless-lab/DAWN.git
-PKG_SOURCE_VERSION:=2ff3b3017fc5e5477f494e6aa85d6b0b4acd68bb
-PKG_MIRROR_HASH:=b9260dad56f40a371157a6d9c54ac295bdbfc5f853915df18e4152eb8f3110f9
+PKG_SOURCE_VERSION:=73c79989676f5b89f4547f4effc4497f5aaeea44
+PKG_MIRROR_HASH:=a5bf4bf58e3352316800a1f5d4cfb750a09f4f43c1494c5560d71a22fa267c55
 
 PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
 PKG_LICENSE:=GPL-2.0-only
diff --git a/net/etesync-server/Makefile b/net/etesync-server/Makefile
new file mode 100644 (file)
index 0000000..0e05d37
--- /dev/null
@@ -0,0 +1,108 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=etesync-server
+PKG_VERSION:=0.3.0
+PKG_RELEASE:=2
+
+PKG_SOURCE:=etesync-server-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/etesync/server/archive/v$(PKG_VERSION)
+PKG_HASH:=d0728effa898a8b7afb4ce7439e0d0fd46bc819008925f21788d7e113435b579
+
+PKG_LICENSE:=AGPL-3.0-only
+PKG_LICENSE_FILES:=LICENSE
+PKG_MAINTAINER:=Peter Stadler <peter.stadler@student.uibk.ac.at>
+
+PKG_BUILD_PARALLEL:=1
+PYTHON3_PKG_BUILD:=0
+
+PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
+
+include $(INCLUDE_DIR)/package.mk
+include ../../lang/python/python3-package.mk
+
+
+define Package/etesync-server
+       SECTION:=net
+       CATEGORY:=Network
+       SUBMENU:=Web Servers/Proxies
+       TITLE:=End-to-End Encrypted Secure Data Sync
+       URL:=https://www.etesync.com/
+       DEPENDS:=+nginx-ssl +python3-light +python3-django \
+               +python3-django-restframework +python3-drf-nested-routers \
+               +python3-django-cors-headers +python3-django-etesync-journal \
+               +uwsgi +uwsgi-python3-plugin +uwsgi-syslog-plugin
+       USERID:=etesync=44312
+endef
+
+
+define Package/etesync-server/description
+       End-to-End Encrypted Secure Data Sync
+endef
+
+
+Build/Compile:=:
+
+
+define Py3Package/etesync-server/install
+       $(INSTALL_DIR) $(1)/www/etesync/static/
+
+       $(INSTALL_DIR) $(1)/etc/uci-defaults/
+       $(CP) ./files/81_setup-etesync-server $(1)/etc/uci-defaults/
+
+       $(INSTALL_DIR) $(1)/etc/nginx/conf.d/
+       $(INSTALL_CONF) ./files/etesync.locations $(1)/etc/nginx/conf.d/
+
+       $(INSTALL_DIR) $(1)/etc/config/
+       $(INSTALL_CONF) ./files/uci.cfg $(1)/etc/config/etesync_server
+
+       $(INSTALL_DIR) $(1)/usr/share/etesync-server/templates/
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/templates/* \
+               $(1)/usr/share/etesync-server/templates/
+
+       $(INSTALL_DIR) $(1)/usr/share/etesync-server/etesync_server/
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/manage.py \
+               $(1)/usr/share/etesync-server/
+
+       $(INSTALL_DATA) $(PKG_BUILD_DIR)/etesync_server/* \
+               $(1)/usr/share/etesync-server/etesync_server/
+
+       $(LN) /var/etc/etesync-server/etesync-server.ini \
+               $(1)/usr/share/etesync-server/
+       #init creates /var/etc/etesync-server/etesync-server.ini from uci.cfg
+
+       $(INSTALL_DIR) $(1)/etc/uwsgi/vassals/
+       $(INSTALL_CONF) ./files/uwsgi.ini \
+               $(1)/etc/uwsgi/vassals/etesync-server.available
+
+       $(LN) /var/etc/etesync-server/uwsgi.ini \
+               $(1)/etc/uwsgi/vassals/etesync-server.ini
+       #init links etesync-server.available /var/etc/etesync-server/uwsgi.ini
+
+       $(INSTALL_DIR) $(1)/etc/init.d/
+       $(INSTALL_BIN) ./files/uwsgi.init $(1)/etc/init.d/etesync-server
+endef
+
+Py3Package/etesync-server/filespec:=
+
+
+define Package/etesync-server/postrm
+#!/bin/sh
+[ -n "$${IPKG_INSTROOT}" ] && exit 0
+rmdir /usr/share/etesync-server/etesync_server
+[ "$${PKG_UPGRADE}" = "1" ] && exit 0
+rm -r /www/etesync/static
+rmdir /www/etesync
+exit 0
+endef
+
+
+define Package/etesync-server/conffiles
+/etc/config/etesync_server
+/etc/nginx/conf.d/etesync.locations
+/etc/uwsgi/vassals/etesync-server.available
+endef
+
+
+$(eval $(call Py3Package,etesync-server))
+$(eval $(call BuildPackage,etesync-server))
+$(eval $(call BuildPackage,etesync-server-src))
diff --git a/net/etesync-server/files/81_setup-etesync-server b/net/etesync-server/files/81_setup-etesync-server
new file mode 100644 (file)
index 0000000..b2f6911
--- /dev/null
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+[ "${PKG_UPGRADE}" = "1" ] && /etc/init.d/etesync-server stop
+
+cd /usr/share/etesync-server || exit 1
+
+python3 manage.pyc migrate --noinput || exit 1
+
+# setup minimal ini for collectstatic:
+mkdir -p /var/etc/etesync-server/ || exit 1
+printf "[global]\nSTATIC_ROOT=/www/etesync/static" >etesync-server.ini || exit 1
+python3 manage.pyc collectstatic --noinput || exit 1
+
+ETESYNC_HAS_USER_PY3CMD="import sqlite3
+c = sqlite3.connect('db.sqlite3').cursor()
+c.execute('select * from auth_user')
+if c.fetchone()==None: print('0')
+else: print('1')"
+
+echo
+
+if [ "$(python3 -c "$ETESYNC_HAS_USER_PY3CMD" || exit 1)" = "0" ]
+then
+    echo "===== First, create a superuser of the Webinterface by ====="
+    [ -t 0 ] && python3 manage.pyc createsuperuser ||
+    echo "===== python3 $(pwd)/manage.pyc createsuperuser ====="
+fi
+
+chown -Rh etesync:nogroup . /www/etesync/ || exit 1
+
+[ -x /etc/init.d/nginx ] || exit 1
+
+/etc/init.d/nginx running && /etc/init.d/nginx reload || /etc/init.d/nginx start
+
+router_ip() {
+    local ifstat="$(ifstatus "lan")"
+
+    for ip in $(echo "${ifstat}" | jsonfilter -e '@["ipv4-address"].*.address')
+    do echo "${ip}" && return
+    done
+
+    for ip in $(echo "${ifstat}" | jsonfilter -e '@["ipv6-address"].*.address')
+    do echo "[${ip}]" && return
+    done
+
+    for ip in $(echo "${ifstat}" | \
+        jsonfilter -e '@["ipv6-prefix-assignment"].*["local-address"].address')
+    do echo "[${ip}]" && return
+    done
+
+    echo '$ROUTER'
+}
+
+echo "===== You can add users by https://$(router_ip)/etesync/admin/login ====="
+
+exit 0
diff --git a/net/etesync-server/files/etesync.locations b/net/etesync-server/files/etesync.locations
new file mode 100644 (file)
index 0000000..23d9c9f
--- /dev/null
@@ -0,0 +1,13 @@
+location /etesync/static {
+       access_log off;
+       error_log /dev/null;
+       expires 1y;
+       try_files $uri $uri/ =404;
+}
+
+location /etesync {
+       access_log off;
+       error_log /dev/null;
+       include uwsgi_params;
+       uwsgi_pass unix:///var/run/etesync-server.socket;
+}
diff --git a/net/etesync-server/files/uci.cfg b/net/etesync-server/files/uci.cfg
new file mode 100644 (file)
index 0000000..12fd0f6
--- /dev/null
@@ -0,0 +1,13 @@
+
+config django 'global'
+       option static_url '/etesync/static/' # TODO for django 3.1: "static/"
+       option debug 'false'
+
+config django 'allowed_hosts'
+       list uci_allow_all_ips_of 'loopback'
+       list uci_allow_all_ips_of 'lan'
+#      list allowed_host "example.com"
+
+config django 'database'
+       option engine 'django.db.backends.sqlite3'
+       option name 'db.sqlite3'
diff --git a/net/etesync-server/files/uwsgi.ini b/net/etesync-server/files/uwsgi.ini
new file mode 100644 (file)
index 0000000..f275429
--- /dev/null
@@ -0,0 +1,48 @@
+; The script /etc/init.d/etesync-server creates the second symlink in the
+; following chain when starting (and deletes it when stopping the service):
+; /etc/uwsgi/vassals/etesync-server.ini (letting the emperor load it on-demand)
+; -> /var/etc/etesync-server/uwsgi.ini (in RAM)
+; -> /etc/uwsgi/vassals/etesync-server.available (this file)
+
+[uwsgi]
+strict = true
+
+plugin = python
+manage-script-name = true
+chdir = /usr/share/etesync-server
+mount = /etesync=etesync_server.wsgi:application
+pidfile = /var/etc/etesync-server/master.pid
+
+enable-threads = true
+thunder-lock = true
+post-buffering = 8192
+harakiri = 60
+lazy-apps = true
+master = true
+idle = 600
+
+plugin = syslog
+; disable-logging only affects req-logger:
+disable-logging = true
+log-format=%(method) %(uri) => return %(status) (%(rsize) bytes in %(msecs) ms)
+req-logger = syslog:etesync-server_req
+
+logger = etesync syslog:etesync-server_main
+ignore-sigpipe = true
+ignore-write-errors = true
+
+if-env = UWSGI_EMPEROR_FD
+; the regular expression leaves for successful de/activation only one line each:
+log-route = etesync ^(?!... Starting uWSGI |compiled with version: |os: Linux|nodename: |machine: |clock source: |pcre jit |detected number of CPU cores: |current working directory: |writing pidfile to |detected binary path: |chdir.. to |your processes number limit is |your memory page size is |detected max file descriptor number: |lock engine: |thunder lock: |uwsgi socket |setgid.. to |setuid.. to |Python version: |Python main interpreter initialized at |python threads support |your server socket listen backlog is limited to |your mercy for graceful operations on workers is |mapped |... Operational MODE: |... uWSGI is running in multiple interpreter mode ...|spawned uWSGI worker |mounting |WSGI app |announcing my loyalty to the Emperor...|workers have been inactive for more than |SIGINT/SIGQUIT received...killing workers...|worker |goodbye to uWSGI.)
+end-if =
+
+if-not-env = UWSGI_EMPEROR_FD
+log-route = etesync .*
+vacuum = true
+socket = /var/run/etesync-server.socket
+end-if =
+
+chmod-socket = 660
+chown-socket = etesync:nogroup
+uid = etesync
+gid = nogroup
diff --git a/net/etesync-server/files/uwsgi.init b/net/etesync-server/files/uwsgi.init
new file mode 100644 (file)
index 0000000..a713088
--- /dev/null
@@ -0,0 +1,136 @@
+#!/bin/sh /etc/rc.common
+
+START=82
+
+USE_PROCD=1
+
+ETESYNC_INI="/var/etc/etesync-server/etesync-server.ini"
+
+
+etesync_print_uci_allow_all_ips_of() {
+    local ifstat="$(ifstatus "$1")"
+
+    for ip in $(echo "${ifstat}" | jsonfilter -e '@["ipv4-address"].*.address')
+    do echo "allowed_host_${ip//[^0-9]/_} = ${ip}"
+    done
+
+    for ip in $(echo "${ifstat}" | jsonfilter -e '@["ipv6-address"].*.address')
+    do echo "allowed_host_${ip//[^0-9A-Fa-f]/_} = [${ip}]"
+    done
+
+    for ip in $(echo "${ifstat}" | \
+        jsonfilter -e '@["ipv6-prefix-assignment"].*["local-address"].address')
+    do echo "allowed_host_${ip//[^0-9A-Fa-f]/_} = [${ip}]"
+    done
+}
+
+
+etesync_validate_global() {
+    cd /usr/share/etesync-server/ >/dev/null || return
+
+    uci_load_validate etesync_server django "global" "$1" \
+        'secret_file:file:secret.txt' \
+        'static_url:string:/etesync/static' \
+        'language_code:string:en-us' \
+        'time_zone:string:UTC' \
+        'debug:bool:false' \
+        ;
+}
+
+
+etesync_print_global() {
+    printf "\n[global]\n"
+
+    echo "secret_file = ${secret_file}"
+    echo "static_root = /www/etesync/static" #sic!
+    echo "static_url = ${static_url}"
+    echo "language_code = ${language_code}"
+    echo "time_zone = ${time_zone}"
+    echo "debug = ${debug}"
+}
+
+
+etesync_validate_allowed_hosts() {
+    uci_load_validate etesync_server django "allowed_hosts" "$1" \
+        'uci_allow_all_ips_of:network' \
+        'allowed_host:host' \
+        ;
+}
+
+
+etesync_print_allowed_hosts() {
+    printf "\n[allowed_hosts]\n"
+
+    local iface
+    for iface in ${uci_allow_all_ips_of}
+    do etesync_print_uci_allow_all_ips_of "${iface}"
+    done
+
+    local host
+    for host in ${allowed_host}
+    do echo "allowed_host_${host//[^0-9A-Za-z]/_} = ${host}"
+    done
+}
+
+
+etesync_validate_database() {
+    cd /usr/share/etesync-server/ >/dev/null || return
+
+    uci_load_validate etesync_server django "database" "$1" \
+        'engine:hostname:django.db.backends.sqlite3' \
+        'name:file:db.sqlite3' \
+        ;
+}
+
+
+etesync_print_database() {
+    printf "\n[database]\n"
+
+    echo "engine = ${engine}"
+    echo "name = ${name}"
+}
+
+
+etesync_init() { # This must print ONLY configuration lines:
+    echo "; This file is re-created from /etc/config/etesync_server "
+    etesync_validate_global etesync_print_global
+    etesync_validate_allowed_hosts etesync_print_allowed_hosts
+    etesync_validate_database etesync_print_database
+} >"${ETESYNC_INI}"
+
+
+start_service() {
+    mkdir -p /var/etc/etesync-server/
+    etesync_init
+    logger -p 'daemon.info' -t 'etesync-server_init' 'starting ...'
+    ln -sf /etc/uwsgi/vassals/etesync-server.available \
+        /var/etc/etesync-server/uwsgi.ini
+}
+
+
+stop_service() {
+    rm -f /var/etc/etesync-server/uwsgi.ini "${ETESYNC_INI}"
+}
+
+
+reload_service() {
+    etesync_init
+    logger -p 'daemon.info' -t 'etesync-server_init' 'reloading ...'
+    kill -SIGHUP "$(cat "/var/etc/etesync-server/master.pid")" 2>/dev/null
+    #if the server is in on-demand mode, the ini files are reloaded then, too.
+}
+
+
+service_triggers() {
+    procd_open_validate
+    etesync_validate_global "$@"
+    etesync_validate_allowed_hosts "$@"
+    etesync_validate_database "$@"
+    procd_close_validate
+
+    config_load etesync_server
+    config_list_foreach "allowed_hosts" "uci_allow_all_ips_of" \
+        procd_add_reload_interface_trigger
+
+    procd_add_reload_trigger etesync_server
+}
index 3350eb3099a26c870d70373c0712a8b59881ee5c..e6440075e561093c86543943cb982d010a4ef0e0 100644 (file)
@@ -36,16 +36,6 @@ config FASTD_ENABLE_METHOD_NULL
        depends on PACKAGE_fastd
        default y
 
-config FASTD_ENABLE_METHOD_XSALSA20_POLY1305
-       bool "Enable xsalsa20-poly1305 method"
-       depends on PACKAGE_fastd
-       default n
-
-
-config FASTD_ENABLE_CIPHER_AES128_CTR
-       bool "Enable the AES128-CTR cipher"
-       depends on PACKAGE_fastd
-       default n
 
 config FASTD_ENABLE_CIPHER_NULL
        bool "Enable the null cipher"
index 44b37b6ca300ba43f15d7a116fb654ccd0a69e99..8eabc34db6f3b906ddb1b5df5c232309e85d2ffb 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fastd
-PKG_VERSION:=18
-PKG_RELEASE:=4
+PKG_VERSION:=19
+PKG_RELEASE:=1
 
 PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://github.com/NeoRaider/fastd/releases/download/v$(PKG_VERSION)
-PKG_HASH:=714ff09d7bd75f79783f744f6f8c5af2fe456c8cf876feaa704c205a73e043c9
+PKG_HASH:=6054608e2103b634c9d19ecd1ae058d4ec694747047130719db180578729783a
 
 PKG_LICENSE:=BSD-2-Clause
 PKG_LICENSE_FILES:=COPYRIGHT
@@ -27,8 +27,6 @@ PKG_CONFIG_DEPENDS:=\
        CONFIG_FASTD_ENABLE_METHOD_GENERIC_POLY1305 \
        CONFIG_FASTD_ENABLE_METHOD_GENERIC_UMAC \
        CONFIG_FASTD_ENABLE_METHOD_NULL \
-       CONFIG_FASTD_ENABLE_METHOD_XSALSA20_POLY1305 \
-       CONFIG_FASTD_ENABLE_CIPHER_AES128_CTR \
        CONFIG_FASTD_ENABLE_CIPHER_NULL \
        CONFIG_FASTD_ENABLE_CIPHER_SALSA20 \
        CONFIG_FASTD_ENABLE_CIPHER_SALSA2012 \
@@ -44,6 +42,7 @@ PKG_CONFIG_DEPENDS:=\
 
 
 PKG_BUILD_DEPENDS:=nacl
+PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/cmake.mk
@@ -73,7 +72,6 @@ CMAKE_OPTIONS += \
        -DWITH_METHOD_GENERIC_POLY1305:BOOL=FALSE \
        -DWITH_METHOD_GENERIC_UMAC:BOOL=FALSE \
        -DWITH_METHOD_NULL:BOOL=FALSE \
-       -DWITH_METHOD_XSALSA20_POLY1305:BOOL=FALSE \
        -DWITH_CIPHER_AES128_CTR:BOOL=FALSE \
        -DWITH_CIPHER_NULL:BOOL=FALSE \
        -DWITH_CIPHER_SALSA20:BOOL=FALSE \
@@ -120,14 +118,6 @@ ifeq ($(CONFIG_FASTD_ENABLE_METHOD_NULL),y)
 CMAKE_OPTIONS += -DWITH_METHOD_NULL:BOOL=TRUE
 endif
 
-ifeq ($(CONFIG_FASTD_ENABLE_METHOD_XSALSA20_POLY1305),y)
-CMAKE_OPTIONS += -DWITH_METHOD_XSALSA20_POLY1305:BOOL=TRUE
-endif
-
-
-ifeq ($(CONFIG_FASTD_ENABLE_CIPHER_AES128_CTR),y)
-CMAKE_OPTIONS += -DWITH_CIPHER_AES128_CTR:BOOL=TRUE
-endif
 
 ifeq ($(CONFIG_FASTD_ENABLE_CIPHER_NULL),y)
 CMAKE_OPTIONS += -DWITH_CIPHER_NULL:BOOL=TRUE
diff --git a/net/fastd/patches/0001-resolve-fix-segmentation-fault-with-musl-1.1.20.patch b/net/fastd/patches/0001-resolve-fix-segmentation-fault-with-musl-1.1.20.patch
deleted file mode 100644 (file)
index 52c1917..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-From 9710132c04cd378bd36f16a2a3d98d9c4c5fdbac Mon Sep 17 00:00:00 2001
-From: David Bauer <mail@david-bauer.net>
-Date: Thu, 25 Jul 2019 18:51:25 +0200
-Subject: [PATCH] resolve: fix segmentation fault with musl >1.1.20
-
-When compiled with musl >1.1.20, fastd will crash in case it can't
-resolve a peers hostname. This is due to a changed implementation of
-freeaddrinfo in musl 1.1.21 onwards.
-
-This segfault is fixed by not calling freeaddrinfo in case the supplied
-pointer is null.
-
-Signed-off-by: David Bauer <mail@david-bauer.net>
----
- src/resolve.c | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/resolve.c b/src/resolve.c
-index 9bdfa1c..bfd2a59 100644
---- a/src/resolve.c
-+++ b/src/resolve.c
-@@ -104,7 +104,9 @@ static void * resolve_peer(void *varg) {
-       fastd_async_enqueue(ASYNC_TYPE_RESOLVE_RETURN, ret, sizeof(fastd_async_resolve_return_t) + n_addr*sizeof(fastd_peer_address_t));
--      freeaddrinfo(res);
-+      if (res)
-+              freeaddrinfo(res);
-+
-       free(arg->hostname);
-       free(arg);
--- 
-2.20.1
-
diff --git a/net/fastd/patches/0002-doc-examples-openwrt-fix-init-script-wasn-t-working-.patch b/net/fastd/patches/0002-doc-examples-openwrt-fix-init-script-wasn-t-working-.patch
deleted file mode 100644 (file)
index b576a98..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-From c29b4b0e3cc5bf68129fd0f94f424950b7888deb Mon Sep 17 00:00:00 2001
-Message-Id: <c29b4b0e3cc5bf68129fd0f94f424950b7888deb.1567630068.git.mschiffer@universe-factory.net>
-From: Wilfried Klaebe <wklaebe@users.noreply.github.com>
-Date: Sat, 31 Aug 2019 21:44:13 +0200
-Subject: [PATCH] doc: examples/openwrt: fix init script, wasn't working with
- two VPNs
-
-If two VPNs were configured via uci, the init script complained about
-the peer group of its peers not matching its net.
----
- doc/examples/openwrt/fastd.init | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/doc/examples/openwrt/fastd.init b/doc/examples/openwrt/fastd.init
-index 15737b403ec2..4ba69ece9887 100644
---- a/doc/examples/openwrt/fastd.init
-+++ b/doc/examples/openwrt/fastd.init
-@@ -233,7 +233,7 @@ generate_peer_group_config() {
-       config_get group_parent "$group" parent
-       [ "$parent" = "$group_parent" ] || return 0
--      if [ "$net" != "$peer_net" ]; then
-+      if [ "$net" != "$group_net" ]; then
-               [ -z "$parent" ] || error "warning: the parent of peer group '$group' doesn't match its net, the peer group will be ignored"
-               return 0
-       fi
--- 
-2.23.0
-
index 0b09e34a51dca56ecc757d4384133603d1c944ef..79af85b75cb0a04c7fe3a6748017ccbb33976770 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=knot
 PKG_VERSION:=2.9.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://secure.nic.cz/files/knot-dns/
@@ -149,6 +149,7 @@ export KNOT_VERSION_FORMAT=release
 
 CONFIGURE_ARGS +=                      \
        --enable-recvmmsg=no            \
+       --enable-cap-ng=no              \
        --disable-fastparser            \
        --without-libidn                \
        --with-rundir=/var/run/knot     \
diff --git a/net/knot/patches/03-configure-allow-to-manually-disable-POSIX-capabiliti.patch b/net/knot/patches/03-configure-allow-to-manually-disable-POSIX-capabiliti.patch
new file mode 100644 (file)
index 0000000..047dc12
--- /dev/null
@@ -0,0 +1,39 @@
+From 442633ae37f8a4e1164a2db3ad6b55bc738ba0b2 Mon Sep 17 00:00:00 2001
+From: Daniel Salzman <daniel.salzman@nic.cz>
+Date: Fri, 22 May 2020 12:50:29 +0200
+Subject: [PATCH] configure: allow to manually disable POSIX capabilities
+
+---
+ configure.ac | 8 +++++++-
+ 1 file changed, 7 insertions(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 47772799e..a08ca8532 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -554,7 +554,13 @@ AS_IF([test "$enable_utilities" = "yes"], [
+   ])
+ ]) # Knot DNS utilities dependencies
++AC_ARG_ENABLE([cap-ng],
++    AS_HELP_STRING([--enable-cap-ng=auto|no], [enable POSIX capabilities [default=auto]]),
++    [enable_cap_ng="$enableval"], [enable_cap_ng=auto])
++
+ AS_IF([test "$enable_daemon" = "yes"], [
++
++AS_IF([test "$enable_cap_ng" != "no"],[
+   PKG_CHECK_MODULES([cap_ng], [cap-ng], [enable_cap_ng=yes], [
+     enable_cap_ng=no
+     AC_CHECK_HEADER([cap-ng.h], [
+@@ -570,7 +576,7 @@ AS_IF([test "$enable_daemon" = "yes"], [
+ ], [
+   enable_cap_ng=no
+   cap_ng_LIBS=
+-])
++])])
+ AS_IF([test "$enable_cap_ng" = yes],
+   [AC_DEFINE([ENABLE_CAP_NG], [1], [POSIX capabilities available])]
+-- 
+2.17.1
+
index ddc930431f8e755ca0b74ed7c3dc55dd0d302c32..c040039c4a5152cb928b50d3c2ca886c07d415b8 100644 (file)
@@ -7,12 +7,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libreswan
-PKG_VERSION:=3.31
-PKG_RELEASE:=1
+PKG_VERSION:=3.32
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://download.libreswan.org/
-PKG_HASH:=4ad9732b30d07a9f4b838fb5580fa11b7b65e073bf97665591ee611bc2d6b8f3
+PKG_HASH:=236b57fee8f562302c54f2b16d8a839a9039fcb5893668e61b398ec6b179432e
 
 PKG_MAINTAINER:=Lucian Cristian <lucian.cristian@gmail.com>
 PKG_LICENSE:=GPL-2.0-or-later
@@ -45,7 +45,7 @@ $(call Package/libreswan/Default)
        +kmod-crypto-aead +kmod-crypto-authenc +kmod-crypto-gcm \
        +kmod-crypto-hash +kmod-crypto-rng +kmod-ip-vti +kmod-ipsec \
        +kmod-ipsec4 +kmod-ipt-ipsec +libevent2 +libevent2-pthreads \
-       +libldns +librt +libunbound-heavy +nss-utils +nspr
+       +libldns +librt +libunbound-heavy +nss-utils +nspr +libcap-ng
   PROVIDES:=openswan
   CONFLICTS:=strongswan
   TITLE+= IPsec Server
@@ -64,21 +64,26 @@ define Package/libreswan/conffiles
 /etc/ipsec.conf
 /etc/ipsec.secrets
 endef
+TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
+TARGET_CFLAGS += -flto
 
 MAKE_FLAGS+= \
     WERROR_CFLAGS=" " \
+    NSS_REQ_AVA_COPY=false \
     USE_LINUX_AUDIT=false \
     USE_LABELED_IPSEC=false \
     USE_NM=false \
+    USE_NSS_KDF=true \
+    USE_NSS_PRF=true \
     USE_LIBCURL=false \
     USE_GLIBC_KERN_FLIP_HEADERS=true \
     USE_XAUTHPAM=false \
-    USE_FIPSCHECK=false \
-    USE_LIBCAP_NG=false \
+    USE_LIBCAP_NG=true \
     USE_SYSTEMD_WATCHDOG=false \
     USE_SECCOMP=false\
     INC_USRLOCAL="/usr" \
     FINALRUNDIR="/var/run/pluto" \
+    MODPROBEARGS="-q" \
     ARCH="$(LINUX_KARCH)" \
 
 ifdef CONFIG_LINUX_4_14
index 5b0475d30f020968209ed8441b189bf576354be8..f33d41292420a89f0e5a0e024ecbc61f6149e842 100755 (executable)
@@ -11,6 +11,7 @@ IPSEC_BIN=/usr/sbin/ipsec
 
 checkconfig() {
     ${IPSEC_BIN} addconn --checkconfig || return 1
+    mkdir -p /var/run/pluto
 }
 
 start_service() {
diff --git a/net/libreswan/patches/030-fix_nss_3.52.patch b/net/libreswan/patches/030-fix_nss_3.52.patch
new file mode 100644 (file)
index 0000000..11209b9
--- /dev/null
@@ -0,0 +1,30 @@
+From db7715407efa43cd2a66caed67c02d8f7bb90b35 Mon Sep 17 00:00:00 2001
+From: Paul Wouters <pwouters@redhat.com>
+Date: Tue, 12 May 2020 12:56:38 -0400
+Subject: [PATCH] nss: move NSS_PKCS11_2_0_COMPAT define to
+ ike_alg_encrypt_nss_gcm_ops.c
+
+It needs to go before any nss includes are done, and those includes are
+all over the place. But CK_GCM_PARAMS is only used in one file, so
+just define it there instead before the nss includes.
+---
+ lib/libswan/ike_alg_encrypt_nss_gcm_ops.c | 6 ++++++
+ 1 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git a/lib/libswan/ike_alg_encrypt_nss_gcm_ops.c b/lib/libswan/ike_alg_encrypt_nss_gcm_ops.c
+index 93a027089a..571913cc1e 100644
+--- a/lib/libswan/ike_alg_encrypt_nss_gcm_ops.c
++++ b/lib/libswan/ike_alg_encrypt_nss_gcm_ops.c
+@@ -16,6 +16,12 @@
+ #include <stdio.h>
+ #include <stdlib.h>
++/*
++ * Special advise from Bob Relyea - needs to go before any nss include
++ *
++ */
++#define NSS_PKCS11_2_0_COMPAT 1
++
+ #include "lswlog.h"
+ #include "lswnss.h"
+ #include "prmem.h"
diff --git a/net/libreswan/patches/099-continue_on_missing_ipv6.patch b/net/libreswan/patches/099-continue_on_missing_ipv6.patch
new file mode 100644 (file)
index 0000000..10fd572
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/programs/pluto/kernel_xfrm.c     2020-05-16 19:12:30.107226478 +0300
++++ b/programs/pluto/kernel_xfrm.c     2020-05-16 19:20:25.735522574 +0300
+@@ -2759,7 +2759,8 @@
+                       LOG_ERRNO(errno, "\"%s\"", proc_f);
+               }
+       } else {
+-              LOG_ERRNO(errno, "could not stat \"%s\"", proc_f);
++              DBG(DBG_KERNEL, DBG_log("starting without ipv6 support!"));
++              disable_ipv6 = 1;
+       }
+       if (disable_ipv6 == 1) {
diff --git a/net/netsniff-ng/Makefile b/net/netsniff-ng/Makefile
new file mode 100644 (file)
index 0000000..0a7a654
--- /dev/null
@@ -0,0 +1,69 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=netsniff-ng
+PKG_VERSION:=0.6.7
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://codeload.github.com/netsniff-ng/netsniff-ng/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=030b0554206b43c5883e48a63575fb65d7835e275333372f55f7d615d419da05
+
+PKG_MAINTAINER:=Toni Uhlig <matzeton@googlemail.com>
+PKG_LICENSE:=GPL-2.0-or-later
+PKG_LICENSE_FILES:=COPYING
+
+PKG_USE_MIPS16:=0
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/netsniff-ng
+  SECTION:=net
+  CATEGORY:=Network
+  DEPENDS:=+libpthread +libpcap +libncurses +zlib +liburcu +libsodium +libnetfilter-conntrack
+  TITLE:=netsniff-ng
+  URL:=https://github.com/netsniff-ng/netsniff-ng
+endef
+
+define Package/netsniff-ng/description
+       netsniff-ng is a free, performant Linux network analyzer and
+       networking toolkit. If you will, the Swiss army knife for network
+       packets.
+endef
+
+define Build/Configure
+       ( cd $(PKG_BUILD_DIR); \
+         CC="$(TARGET_CC)" \
+         LD="$(TARGET_LD)" \
+         CFLAGS="$(TARGET_CFLAGS)" \
+         LDFLAGS="$(TARGET_LDFLAGS)" \
+         CROSS_COMPILE="$(REAL_GNU_TARGET_NAME)-" \
+         ./configure --prefix=/usr --disable-geoip --disable-libnl )
+endef
+
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) Q= \
+         CC="$(TARGET_CC)" \
+         LD="$(TARGET_LD)" \
+         CFLAGS="$(TARGET_CFLAGS)" \
+         LDFLAGS="$(TARGET_LDFLAGS)" \
+         CROSS_COMPILE="$(REAL_GNU_TARGET_NAME)-"
+endef
+
+define Package/netsniff-ng/install
+       $(INSTALL_DIR) $(1)/etc/netsniff-ng
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(CP) $(PKG_BUILD_DIR)/ether.conf $(1)/etc/netsniff-ng
+       $(CP) $(PKG_BUILD_DIR)/tcp.conf $(1)/etc/netsniff-ng
+       $(CP) $(PKG_BUILD_DIR)/udp.conf $(1)/etc/netsniff-ng
+       $(CP) $(PKG_BUILD_DIR)/oui.conf $(1)/etc/netsniff-ng
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/netsniff-ng/netsniff-ng $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/trafgen/trafgen $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/astraceroute/astraceroute $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/flowtop/flowtop $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/ifpps/ifpps $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/bpfc/bpfc $(1)/usr/sbin/
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/curvetun/curvetun $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,netsniff-ng))
diff --git a/net/netsniff-ng/patches/0001-configure-script-honors-C-LD-FLAGS.patch b/net/netsniff-ng/patches/0001-configure-script-honors-C-LD-FLAGS.patch
new file mode 100644 (file)
index 0000000..b7aae87
--- /dev/null
@@ -0,0 +1,154 @@
+From 9da66f0925818ddb12127bfcb46acf79e354cabc Mon Sep 17 00:00:00 2001
+From: Toni Uhlig <matzeton@googlemail.com>
+Date: Mon, 18 May 2020 11:36:56 +0200
+Subject: [PATCH] configure script honors (C|LD)FLAGS
+
+Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
+---
+ configure | 32 ++++++++++++++++----------------
+ 1 file changed, 16 insertions(+), 16 deletions(-)
+
+diff --git a/configure b/configure
+index 510826a..ceda000 100755
+--- a/configure
++++ b/configure
+@@ -221,8 +221,8 @@ EOF
+               NACL_LIB="nacl"
+       fi
+-      LDFLAGS="-L $NACL_LIB_DIR"
+-      CFLAGS="-I $NACL_INC_DIR"
++      LDFLAGS="$LDFLAGS -L $NACL_LIB_DIR"
++      CFLAGS="$CFLAGS -I $NACL_INC_DIR"
+       $CC $CFLAGS $LDFLAGS -o $TMPDIR/nacltest $TMPDIR/nacltest.c >> config.log 2>&1
+       if [ ! -x $TMPDIR/nacltest ] ; then
+@@ -268,7 +268,7 @@ int main(void)
+ }
+ EOF
+-      $CC \
++      $CC $CFLAGS $LDFLAGS \
+               $($PKG_CONFIG --cflags libnl-3.0 2>> config.log) \
+               $($PKG_CONFIG --cflags libnl-genl-3.0 2>> config.log) \
+               -o $TMPDIR/libnltest \
+@@ -315,7 +315,7 @@ int main(void)
+ }
+ EOF
+-      $CC \
++      $CC $CFLAGS $LDFLAGS \
+               $($PKG_CONFIG --cflags libnl-route-3.0 2>> config.log) \
+               -o $TMPDIR/libnlroutetest \
+               $TMPDIR/libnlroutetest.c \
+@@ -350,7 +350,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/tpacketv3test $TMPDIR/tpacketv3test.c >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/tpacketv3test $TMPDIR/tpacketv3test.c >> config.log 2>&1
+       if [ ! -x $TMPDIR/tpacketv3test ] ; then
+               echo "[NO]"
+               MISSING_DEFS=1
+@@ -383,7 +383,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/tpacketv2test $TMPDIR/tpacketv2test.c >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/tpacketv2test $TMPDIR/tpacketv2test.c >> config.log 2>&1
+       if [ ! -x $TMPDIR/tpacketv2test ] ; then
+               echo "[NO]"
+               MISSING_DEFS=1
+@@ -410,7 +410,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/fopencookietest $TMPDIR/fopencookietest.c >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/fopencookietest $TMPDIR/fopencookietest.c >> config.log 2>&1
+       if [ ! -x $TMPDIR/fopencookietest ] ; then
+               echo "[NO]"
+               MISSING_DEFS=1
+@@ -433,7 +433,7 @@ int main(void)
+ }
+ EOF
+-      $CC \
++      $CC $CFLAGS $LDFLAGS \
+               $($PKG_CONFIG --cflags ncurses 2>> config.log) \
+               -o $TMPDIR/ncursestest $TMPDIR/ncursestest.c \
+               $($PKG_CONFIG --libs ncurses 2>> config.log \
+@@ -476,7 +476,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/geoiptest $TMPDIR/geoiptest.c -lGeoIP >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/geoiptest $TMPDIR/geoiptest.c -lGeoIP >> config.log 2>&1
+       if [ ! -x $TMPDIR/geoiptest ] ; then
+               echo "[NO]"
+               MISSING_DEFS=1
+@@ -503,7 +503,7 @@ int main(void)
+ }
+ EOF
+-      $CC \
++      $CC $CFLAGS $LDFLAGS \
+               $($PKG_CONFIG --cflags libnetfilter_conntrack 2>> config.log) \
+               -o $TMPDIR/nfcttest \
+               $TMPDIR/nfcttest.c \
+@@ -536,7 +536,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/ztest $TMPDIR/ztest.c -lz >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/ztest $TMPDIR/ztest.c -lz >> config.log 2>&1
+       if [ ! -x $TMPDIR/ztest ] ; then
+               echo "[NO]"
+               echo "CONFIG_LIBZ=0" >> Config
+@@ -564,7 +564,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/urcutest $TMPDIR/urcutest.c -lurcu >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/urcutest $TMPDIR/urcutest.c -lurcu >> config.log 2>&1
+       if [ ! -x $TMPDIR/urcutest ] ; then
+               echo "[NO]"
+               MISSING_DEFS=1
+@@ -588,7 +588,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/pcaptest $TMPDIR/pcaptest.c -lpcap >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/pcaptest $TMPDIR/pcaptest.c -lpcap >> config.log 2>&1
+       if [ ! -x $TMPDIR/pcaptest ] ; then
+               echo "[NO]"
+               echo "CONFIG_LIBPCAP=0" >> Config
+@@ -638,7 +638,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/hwtstest $TMPDIR/hwtstest.c >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/hwtstest $TMPDIR/hwtstest.c >> config.log 2>&1
+       if [ ! -x $TMPDIR/hwtstest ] ; then
+               echo "[NO]"
+               echo "CONFIG_HWTSTAMP=0" >> Config
+@@ -663,7 +663,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/clitest $TMPDIR/clitest.c -lcli >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/clitest $TMPDIR/clitest.c -lcli >> config.log 2>&1
+       if [ ! -x $TMPDIR/clitest ] ; then
+               echo "[NO]"
+               MISSING_DEFS=1
+@@ -687,7 +687,7 @@ int main(void)
+ }
+ EOF
+-      $CC -o $TMPDIR/nettest $TMPDIR/nettest.c -lnet >> config.log 2>&1
++      $CC $CFLAGS $LDFLAGS -o $TMPDIR/nettest $TMPDIR/nettest.c -lnet >> config.log 2>&1
+       if [ ! -x $TMPDIR/nettest ] ; then
+               echo "[NO]"
+               MISSING_DEFS=1
+-- 
+2.20.1
+
diff --git a/net/netsniff-ng/patches/0002-fix-ncurses-check-during-configure.patch b/net/netsniff-ng/patches/0002-fix-ncurses-check-during-configure.patch
new file mode 100644 (file)
index 0000000..382b4f5
--- /dev/null
@@ -0,0 +1,30 @@
+From 505dde6ac50689ec2ba50a1f0087eb8a9ff1f419 Mon Sep 17 00:00:00 2001
+From: Toni Uhlig <matzeton@googlemail.com>
+Date: Mon, 18 May 2020 20:12:17 +0200
+Subject: [PATCH] fix ncurses check during configure
+
+Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
+---
+ configure | 5 +----
+ 1 file changed, 1 insertion(+), 4 deletions(-)
+
+diff --git a/configure b/configure
+index ceda000..f843d64 100755
+--- a/configure
++++ b/configure
+@@ -434,11 +434,8 @@ int main(void)
+ EOF
+       $CC $CFLAGS $LDFLAGS \
+-              $($PKG_CONFIG --cflags ncurses 2>> config.log) \
+               -o $TMPDIR/ncursestest $TMPDIR/ncursestest.c \
+-              $($PKG_CONFIG --libs ncurses 2>> config.log \
+-                || echo '-lncurses' ) \
+-                      >> config.log 2>&1
++              -lncurses 2>> config.log
+       if [ ! -x $TMPDIR/ncursestest ] ; then
+               echo "[NO]"
+               MISSING_DEFS=1
+-- 
+2.20.1
+
diff --git a/net/netsniff-ng/patches/0003-removed-flowtop-pkg-config-usage-for-ncurses.patch b/net/netsniff-ng/patches/0003-removed-flowtop-pkg-config-usage-for-ncurses.patch
new file mode 100644 (file)
index 0000000..65b4b7a
--- /dev/null
@@ -0,0 +1,36 @@
+From 0f1653c82a06567ccb151e17f1fe3ff3c3b465f3 Mon Sep 17 00:00:00 2001
+From: Toni Uhlig <matzeton@googlemail.com>
+Date: Mon, 18 May 2020 20:27:32 +0200
+Subject: [PATCH] removed flowtop pkg-config usage for ncurses
+
+Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
+---
+ flowtop/Makefile | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/flowtop/Makefile b/flowtop/Makefile
+index e001ce8..aeee049 100644
+--- a/flowtop/Makefile
++++ b/flowtop/Makefile
+@@ -1,7 +1,6 @@
+ flowtop-libs =        -lurcu \
+               $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs libnetfilter_conntrack 2> /dev/null ) \
+-              $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs ncurses 2> /dev/null \
+-                      || echo '-lncurses') \
++              -lncurses \
+               $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --libs tinfo 2> /dev/null ) \
+               -lpthread
+@@ -30,8 +29,7 @@ flowtop-objs +=      geoip.o \
+               ioops.o
+ endif
+-flowtop-eflags = $(shell $(PKG_CONFIG) --cflags ncurses) \
+-                 $(shell $(PKG_CONFIG) --cflags libnetfilter_conntrack)
++flowtop-eflags = $(shell $(PKG_CONFIG) --cflags libnetfilter_conntrack)
+ flowtop-confs =       tcp.conf \
+               udp.conf \
+-- 
+2.20.1
+
index 2d5c709b575ddd0bbcabf44ba77f964d7f6f609d..82ebea0c3304613f6d2f02b895c1f2f416ced155 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=nextdns
-PKG_VERSION:=1.5.7
+PKG_VERSION:=1.5.8
 PKG_RELEASE:=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
 PKG_SOURCE_URL:=https://github.com/nextdns/nextdns.git
-PKG_MIRROR_HASH:=5fc253268483c565e6a984305b2703396046d26fb69dff4463ee8b65befd2063
+PKG_MIRROR_HASH:=c1783b577e790665d05b24dbcdd32c371965640fae5afac89098f47ab599a628
 
 PKG_MAINTAINER:=Olivier Poitrey <rs@nextdns.io>
 PKG_LICENSE:=MIT
index 8f14a6ae6c0d43d21041f06bbb80cbf63fbd23b4..eb5776b4963847b31e1c2af1905bdc9ffa28e2b8 100644 (file)
@@ -17,7 +17,7 @@ include ./openvswitch.mk
 #
 PKG_NAME:=openvswitch
 PKG_VERSION:=$(ovs_version)
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.openvswitch.org/releases/
 PKG_HASH:=dd5f727427e36cab22bdeae61529d8c8fccacc53d968cfa7658f7f935ddda531
@@ -62,7 +62,7 @@ ifeq ($(if $(call ovs_kmod_is_intree,$(1)),$(ovs_kmod_intree_not_supported)),)
      PROVIDES:=$(call ovs_kmod_package_provides,$(1))
      KCONFIG:=$(ovs_kmod_$(1)_kconfig)
      FILES:=$(ovs_kmod_$(1)_files)
-     AUTOLOAD:=$(call AutoProbe,$(foreach m,$(ovs_kmod_$(1)_files),$(patsubst %.ko,%,$(basename $(m)))))
+     AUTOLOAD:=$(call AutoProbe,$(foreach m,$(ovs_kmod_$(1)_files),$(notdir $(patsubst %.ko,%,$(basename $(m))))))
   endef
 
   ovs_kmod_packages+=$(call ovs_kmod_package_name,$(1))
index a22883d3dbf588752eca3f14e3cb2298efa8675f..c007e0bb71795afee47521f8067e7be18f136ad6 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=seafile-ccnet
-PKG_VERSION:=7.1.3
-PKG_RELEASE:=2
+PKG_VERSION:=7.1.4
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/haiwen/ccnet-server/tar.gz/v$(PKG_VERSION)-server?
-PKG_HASH:=148d9b1af9218943de310f3f2e29e542e7279dbfba307a1cdd894bf8b7faf2e8
+PKG_HASH:=b46508a686e7fe8eb9e1515e5384c7d9aca25cf596ef4b8383646e587f1032eb
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
 PKG_LICENSE:=AGPL-3.0-only
index d72a2a3bb5b7741d733f8dcacd7c1001e201d9a2..ab1888bf3759b9624fbbe512cd02ef0162f75ea5 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=seafile-seahub
-PKG_VERSION:=7.1.3
-PKG_RELEASE:=2
+PKG_VERSION:=7.1.4
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/haiwen/seahub/tar.gz/v$(PKG_VERSION)-server?
-PKG_HASH:=a2cf1ad1ff357b06c112f3f80e2e4a2ef109813496c96afc309449f6915e8797
+PKG_HASH:=921ef4373311c06c1192975a294d7d38c12ac34381a7df19542391fc1d810baf
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
 PKG_LICENSE:=Apache-2.0
index 259c32b5c5d6b9d93f947bc23e2e5c35b99b5b91..364ef0424cc8b729d84095f703c8d177a212d97a 100644 (file)
@@ -9,7 +9,7 @@
              os.path.join(PROJECT_ROOT, 'seahub/templates'),
          ],
          'APP_DIRS': True,
-@@ -630,7 +630,7 @@ CAPTCHA_IMAGE_SIZE = (90, 42)
+@@ -633,7 +633,7 @@ CAPTCHA_IMAGE_SIZE = (90, 42)
  ENABLE_THUMBNAIL = True
  
  # Absolute filesystem path to the directory that will hold thumbnail files.
@@ -18,7 +18,7 @@
  if os.path.exists(SEAHUB_DATA_ROOT):
      THUMBNAIL_ROOT = os.path.join(SEAHUB_DATA_ROOT, 'thumbnail')
  else:
-@@ -793,7 +793,7 @@ except ImportError:
+@@ -829,7 +829,7 @@ except ImportError:
      pass
  else:
      # In server release, sqlite3 db file is <topdir>/seahub.db
index 73d377ec195290bc176744a0d5ab2e69b9885d4d..94d9866a6e625a305a5c246ddcf398c02196010d 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=seafile-server
-PKG_VERSION:=7.1.3
-PKG_RELEASE:=4
+PKG_VERSION:=7.1.4
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/haiwen/seafile-server/tar.gz/v$(PKG_VERSION)-server?
-PKG_HASH:=79f7722a34c304adb78462194e64d6a610bd5ee40def37f4e4cdf5befed44fcd
+PKG_HASH:=cc5aaf76044f907758a75a43e321fef499482d7b57d9e61d0297a4bba66dcce4
 
 PKG_MAINTAINER:=Alexandru Ardelean <ardeleanalex@gmail.com>, Jeffery To <jeffery.to@gmail.com>
 PKG_LICENSE:=AGPL-3.0-only
index c902a8caa216af12459aaefd782491191de35eaf..1bcfaae8a30fc272a7143b3cc1924c626e8c859e 100644 (file)
@@ -1,23 +1,5 @@
 --- a/lib/repo.vala
 +++ b/lib/repo.vala
-@@ -34,7 +34,7 @@ public class Repo : Object {
-     // data format version
-     public int version { get; set; }
--    public int    last_modify { get; set; }
-+    public int64  last_modify { get; set; }
-     public int64  size { get; set; }
-     public int64  file_count { get; set; }
-     public string last_modifier { get; set; }
-@@ -46,7 +46,7 @@ public class Repo : Object {
-     public string repo_id { get; set; }
-     public string repo_name { get; set; }
-     public string repo_desc { get; set; }
--    public int last_modified { get; set; }
-+    public int64 last_modified { get; set; }
-     // Section 2: Encryption related
-     // Members in this section should be set for every Repo object
 @@ -70,7 +70,7 @@ public class Repo : Object {
          get { return _relay_id; }
          set { _relay_id = value; }
index 877348a4af35ca40b36d544915b6ba6efc646d27..be6304e30d70bd018ce4ad221b1b884035616337 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=shorewall-core
 PKG_MAJOR_MINOR_VERSION:=5.2
 PKG_BUGFIX_MAJOR_VERSION:=4
-PKG_BUGFIX_MINOR_VERSION:=.4
+PKG_BUGFIX_MINOR_VERSION:=.5
 PKG_VERSION:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)$(PKG_BUGFIX_MINOR_VERSION)
 PKG_DIRECTORY:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)
 PKG_RELEASE:=1
@@ -21,7 +21,7 @@ PKG_SOURCE_URL:=http://shorewall.org/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/sh
        http://www.shorewall.no/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
        http://france.shorewall.net/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_HASH:=2044014ddf2217c040c20fa1ecc1af809c5a28d1b6cbe4b9f69b5c01e5d18832
+PKG_HASH:=78f1d62d65439704896daa2439b7053934b2dd42427ccb56c4262da90183011b
 
 PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
 PKG_LICENSE:=GPL-2.0-or-later
index 747a749f26d09db1a44a312d629586e2300abd02..a32054d47984d69f29e25eb8c7988001333eca12 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=shorewall-lite
 PKG_MAJOR_MINOR_VERSION:=5.2
 PKG_BUGFIX_MAJOR_VERSION:=4
-PKG_BUGFIX_MINOR_VERSION:=.4
+PKG_BUGFIX_MINOR_VERSION:=.5
 PKG_VERSION:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)$(PKG_BUGFIX_MINOR_VERSION)
 PKG_DIRECTORY:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)
 PKG_RELEASE:=1
@@ -21,7 +21,7 @@ PKG_SOURCE_URL:=http://shorewall.org/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/sh
        http://www.shorewall.no/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
        http://france.shorewall.net/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_HASH:=fd1e059eca9f442130db9c42efb32729c728f954dd2d741bd3d854cf04e90627
+PKG_HASH:=7488f9daec34958307193fde4fff403b1c102fabab31f7d4d7e8f11d8bbfaf1a
 
 PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
 PKG_LICENSE:=GPL-2.0-or-later
index d270e2d61dbcf9a0ab3eb63a29f76c4fbd2abb23..6b56e76aec6ced247d71826ab7a252122cc46f11 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=shorewall
 PKG_MAJOR_MINOR_VERSION:=5.2
 PKG_BUGFIX_MAJOR_VERSION:=4
-PKG_BUGFIX_MINOR_VERSION:=.4
+PKG_BUGFIX_MINOR_VERSION:=.5
 PKG_VERSION:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)$(PKG_BUGFIX_MINOR_VERSION)
 PKG_DIRECTORY:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)
 PKG_RELEASE:=1
@@ -21,7 +21,7 @@ PKG_SOURCE_URL:=http://shorewall.org/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/sh
        http://www.shorewall.no/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
        http://france.shorewall.net/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_HASH:=e6f65d2fc73d04c4667ca15b218a0372b717092b2fe24c500cad8d6363af0b3a
+PKG_HASH:=df4e8639b9dab03cb4e792f7b0760c43583340e3302125f25b048fc0248b94af
 
 PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
 PKG_LICENSE:=GPL-2.0-or-later
index 193fc0c09288dc52ff31c01363be238af58ff698..d19a746f3e6b28a0c19d360dd8ad7be05bafb700 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=shorewall6-lite
 PKG_MAJOR_MINOR_VERSION:=5.2
 PKG_BUGFIX_MAJOR_VERSION:=4
-PKG_BUGFIX_MINOR_VERSION:=.4
+PKG_BUGFIX_MINOR_VERSION:=.5
 PKG_VERSION:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)$(PKG_BUGFIX_MINOR_VERSION)
 PKG_DIRECTORY:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)
 PKG_RELEASE:=1
@@ -21,7 +21,7 @@ PKG_SOURCE_URL:=http://shorewall.org/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/sh
        http://www.shorewall.no/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
        http://france.shorewall.net/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_HASH:=ff8730b4ee00fcb958bd23b66ed54f27836c0943bd90335f0a520b54730e97dc
+PKG_HASH:=aeb56cb9616bef87894f7bc06e5128fe0456dc6c7c3514725d9126085194b9b2
 
 PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
 PKG_LICENSE:=GPL-2.0-or-later
index bf2ed550ccf8b8ab1b2d78b21b4125887164a670..eaa500b6bc7c1b6e860e665bbf770490d6bcf3f6 100644 (file)
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=shorewall6
 PKG_MAJOR_MINOR_VERSION:=5.2
 PKG_BUGFIX_MAJOR_VERSION:=4
-PKG_BUGFIX_MINOR_VERSION:=.4
+PKG_BUGFIX_MINOR_VERSION:=.5
 PKG_VERSION:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)$(PKG_BUGFIX_MINOR_VERSION)
 PKG_DIRECTORY:=$(PKG_MAJOR_MINOR_VERSION).$(PKG_BUGFIX_MAJOR_VERSION)
 PKG_RELEASE:=1
@@ -21,7 +21,7 @@ PKG_SOURCE_URL:=http://shorewall.org/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/sh
        http://www.shorewall.no/pub/shorewall/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/ \
        http://france.shorewall.net/$(PKG_MAJOR_MINOR_VERSION)/shorewall-$(PKG_DIRECTORY)/
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
-PKG_HASH:=8b7dc08b1e6dc86920bb68ab7266d4945af062e2bebfc5222537003bd199774b
+PKG_HASH:=d35dc296fe9c3b815f2c8d0b07c725dc1ca55f435672cb2756e2e1614d0b0645
 
 PKG_MAINTAINER:=Willem van den Akker <wvdakker@wilsoft.nl>
 PKG_LICENSE:=GPL-2.0-or-later
index fcf5ee6e25fdfa27aa0e73bccaf9de6c31a52300..3c6e46987e9602f20b25f3beeb78a834861e3175 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=unbound
-PKG_VERSION:=1.10.0
-PKG_RELEASE:=2
+PKG_VERSION:=1.10.1
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://nlnetlabs.nl/downloads/unbound
-PKG_HASH:=152f486578242fe5c36e89995d0440b78d64c05123990aae16246b7f776ce955
+PKG_HASH:=b73677c21a71cf92f15cc8cfe76a3d875e40f65b6150081c39620b286582d536
 
 PKG_MAINTAINER:=Eric Luehrsen <ericluehrsen@gmail.com>
 PKG_LICENSE:=BSD-3-Clause
index c454330d987c3f50edbef77fe794607c5964abd0..2fb0bf6bf560def7799a2bcc69e3fcb6c7358d34 100644 (file)
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mpd
 PKG_VERSION:=0.21.23
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=https://www.musicpd.org/download/mpd/0.21/
@@ -33,7 +33,7 @@ define Package/mpd/Default
   TITLE:=Music Player Daemon
   URL:=https://www.musicpd.org/
   DEPENDS:= +zlib +libcurl +libpthread +libmpdclient +libstdcpp $(ICONV_DEPENDS) \
-           +AUDIO_SUPPORT:alsa-lib +boost +libexpat +libflac +libfaad2 +USE_UCLIBC:icu
+           +AUDIO_SUPPORT:alsa-lib +boost +libexpat +libflac +libid3tag +libfaad2 +USE_UCLIBC:icu
 endef
 
 define Package/mpd/Default/description
@@ -46,7 +46,7 @@ endef
 define Package/mpd-full
 $(call Package/mpd/Default)
   TITLE+= (full)
-  DEPENDS+= +libffmpeg +libid3tag +libvorbis +libmms +libupnp +libshout +pulseaudio-daemon +yajl
+  DEPENDS+= +libffmpeg +libvorbis +libmms +libupnp +libshout +pulseaudio-daemon +yajl
   PROVIDES:=mpd
   VARIANT:=full
 endef
@@ -128,6 +128,7 @@ MESON_ARGS += \
        -Dbzip2=disabled \
        -Diso9660=disabled \
        -Dzzip=disabled \
+       -Did3tag=enabled \
        -Dchromaprint=disabled \
        -Dadplug=disabled \
        -Daudiofile=disabled \
@@ -175,7 +176,6 @@ ifeq ($(BUILD_VARIANT),full)
        -Dupnp=enabled \
        -Dmms=enabled \
        -Dsoundcloud=enabled \
-       -Did3tag=enabled \
        -Dffmpeg=enabled \
        -Dmad=disabled \
        -Dtremor=disabled \
@@ -195,7 +195,6 @@ ifeq ($(BUILD_VARIANT),mini)
        -Dupnp=disabled \
        -Dmms=disabled \
        -Dsoundcloud=disabled \
-       -Did3tag=disabled \
        -Dffmpeg=disabled \
        -Dmad=enabled \
        -Dtremor=enabled \
index bfa216b18f3f41a5c5050e2e934a1ba74f4faee7..7edeaa59ac51fc1d3285179bb6b5beb6e75b598b 100644 (file)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=upmpdcli
-PKG_VERSION:=1.4.7
-PKG_RELEASE:=2
+PKG_VERSION:=1.4.9
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://www.lesbonscomptes.com/upmpdcli/downloads
-PKG_HASH:=55dec356c98e16f00b1e547f9f4a1c03756317102e91982f93eca8cc4eda115e
+PKG_HASH:=ace5a3166891109d2a874f21306986857ee2620230a77751ed6209f7b5cc9c58
 
 PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
 PKG_LICENSE:=LGPL-2.1-or-later
index 29aec706f8a4baa7d1514a121cfa0cc8deb363c9..e8a8bcfff8dadf7e7c6dd60e8ff2f5081defcbf2 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=collectd
 PKG_VERSION:=5.11.0
-PKG_RELEASE:=4
+PKG_RELEASE:=5
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=https://collectd.org/files/ \
index a2927854e24ff48eab433f8bab9d8a6e5c374180..66ba8df3876553f52c0b261e7caf239d901510f5 100755 (executable)
@@ -92,7 +92,7 @@ process_qdisc() {
                mq) handle_mq "$ifc"
                ;;
 
-               *) echo "Unknown qdisc type" 1>&2
+               *) echo "Unknown qdisc type '$qdisc' on interface '$ifc'" 1>&2
                ;;
        esac
        json_cleanup
index 3da8c8cb35ac95aa7f6a1a2e470d4c790707a0b0..9afce542003d965c958d76480b9ba14628aef599 100644 (file)
@@ -49,7 +49,7 @@ endef
 
 GO_PKG_INSTALL_ALL:=1
 MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
-MAKE_VARS += $(call GoPackage/Environment)
+MAKE_VARS += $(GO_PKG_VARS)
 MAKE_FLAGS += \
        DESTDIR="$(PKG_INSTALL_DIR)" \
        VERSION=$(PKG_VERSION) \
index a8735fcc7c2e388aae1c9a499625bd5a25c7be9f..0305a132f1c9b33a9fb778b28204cdd123bee783 100644 (file)
@@ -78,7 +78,7 @@ endif
 
 define Build/Compile
        ( \
-               export $(call GoPackage/Environment) \
+               export $(GO_PKG_VARS) \
                        GITCOMMIT=$(PKG_SOURCE_VERSION) \
                        DOCKER_GITCOMMIT=$(PKG_SOURCE_VERSION) \
                        DOCKER_BUILDTAGS='$(BUILDTAGS)' \
diff --git a/utils/fuse/Makefile b/utils/fuse/Makefile
new file mode 100644 (file)
index 0000000..90f1234
--- /dev/null
@@ -0,0 +1,107 @@
+#
+# Copyright (C) 2006-2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=fuse
+PKG_VERSION:=2.9.9
+PKG_RELEASE:=1
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_SOURCE_URL:=https://github.com/libfuse/libfuse/releases/download/$(PKG_NAME)-$(PKG_VERSION)
+PKG_HASH:=d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5
+
+PKG_MAINTAINER:=
+PKG_CPE_ID:=cpe:/a:fuse_project:fuse
+
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/fuse/Default
+  TITLE:=FUSE
+  URL:=https://github.com/libfuse/libfuse
+endef
+
+define Package/fuse/Default/description
+ FUSE (Filesystem in UserSpacE)
+endef
+
+define Package/fuse-utils
+$(call Package/fuse/Default)
+  SECTION:=utils
+  CATEGORY:=Utilities
+  DEPENDS:=+libfuse
+  TITLE+= (utilities)
+  SUBMENU:=Filesystem
+  LICENSE:=GPL-2.0-only
+  LICENSE_FILES:=COPYING
+endef
+
+define Package/fuse-utils/description
+$(call Package/fuse/Default/description)
+ This package contains the FUSE utilities.
+ - fusermount
+ - ulockmgr_server
+endef
+
+define Package/libfuse
+$(call Package/fuse/Default)
+  SECTION:=libs
+  CATEGORY:=Libraries
+  TITLE+= (library)
+  DEPENDS:=+kmod-fuse +libpthread
+  SUBMENU:=Filesystem
+  ABI_VERSION:=1
+  LICENSE:=LGPL-2.1-only
+  LICENSE_FILES:=COPYING.LIB
+endef
+
+define Package/libfuse/description
+$(call Package/fuse/Default/description)
+ This package contains the FUSE shared libraries, needed by other programs.
+ - libfuse
+ - libulockmgr
+endef
+
+# generic args
+CONFIGURE_ARGS += \
+       --enable-shared \
+       --enable-static \
+       --enable-lib \
+       --enable-util \
+       --disable-rpath \
+       --disable-example \
+       --disable-mtab
+
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include
+       $(CP)   $(PKG_INSTALL_DIR)/usr/include/{fuse,fuse.h,ulockmgr.h} $(1)/usr/include/
+       $(INSTALL_DIR)  $(1)/usr/lib
+       $(CP)   $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.{a,so*} $(1)/usr/lib/
+       $(INSTALL_DIR)  $(1)/usr/lib/pkgconfig
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fuse.pc $(1)/usr/lib/pkgconfig/
+       $(SED) 's,-I$$$${includedir}/fuse,,g' $(1)/usr/lib/pkgconfig/fuse.pc
+       $(SED) 's,-L$$$${libdir},,g' $(1)/usr/lib/pkgconfig/fuse.pc
+endef
+
+define Package/fuse-utils/install
+       $(INSTALL_DIR) $(1)/sbin
+       $(CP) $(PKG_INSTALL_DIR)/sbin/mount.fuse $(1)/sbin/
+       $(INSTALL_DIR) $(1)/usr/bin
+       $(CP) $(PKG_INSTALL_DIR)/usr/bin/{fusermount,ulockmgr_server} $(1)/usr/bin/
+endef
+
+define Package/libfuse/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{fuse,ulockmgr}.so.* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,fuse-utils))
+$(eval $(call BuildPackage,libfuse))
diff --git a/utils/fuse/patches/100-missing_includes.patch b/utils/fuse/patches/100-missing_includes.patch
new file mode 100644 (file)
index 0000000..e74a187
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/include/fuse.h
++++ b/include/fuse.h
+@@ -32,6 +32,7 @@
+ #include <sys/stat.h>
+ #include <sys/statvfs.h>
+ #include <sys/uio.h>
++#include <sys/file.h>
+ #ifdef __cplusplus
+ extern "C" {
diff --git a/utils/fuse/patches/112-no_break_on_mknod.patch b/utils/fuse/patches/112-no_break_on_mknod.patch
new file mode 100644 (file)
index 0000000..863af6a
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/util/Makefile.in
++++ b/util/Makefile.in
+@@ -736,7 +736,7 @@ mount_util.c: $(top_srcdir)/lib/mount_ut
+ install-exec-hook:
+       -chmod u+s $(DESTDIR)$(bindir)/fusermount
+-      @if test ! -e $(DESTDIR)/dev/fuse; then \
++      -@if test ! -e $(DESTDIR)/dev/fuse; then \
+               $(MKDIR_P) $(DESTDIR)/dev; \
+               echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true"; \
+               mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true; \
diff --git a/utils/fuse/patches/200-backport_arm64_fuse_kernel_h_clean_includes.patch b/utils/fuse/patches/200-backport_arm64_fuse_kernel_h_clean_includes.patch
new file mode 100644 (file)
index 0000000..d45da84
--- /dev/null
@@ -0,0 +1,30 @@
+From 914871b20a901e3e1e981c92bc42b1c93b7ab81b Mon Sep 17 00:00:00 2001
+From: Riku Voipio <riku.voipio@linaro.org>
+Date: Thu, 07 Feb 2013 11:04:21 +0000
+Subject: fuse_kernel.h: clean includes
+
+Use <linux/types.h> for linux and define types used for other operating systems
+using <stdint.h> types.
+---
+(limited to 'include/fuse_kernel.h')
+
+--- a/include/fuse_kernel.h
++++ b/include/fuse_kernel.h
+@@ -88,12 +88,16 @@
+ #ifndef _LINUX_FUSE_H
+ #define _LINUX_FUSE_H
+-#include <sys/types.h>
++#ifdef __linux__
++#include <linux/types.h>
++#else
++#include <stdint.h>
+ #define __u64 uint64_t
+ #define __s64 int64_t
+ #define __u32 uint32_t
+ #define __s32 int32_t
+ #define __u16 uint16_t
++#endif
+ /*
+  * Version negotiation:
index ff58ba09602d230771795b08d7a34b70f52a17ac..53d7ba5fd733cdd5b4694eb83572ed69a7d23c16 100644 (file)
@@ -32,6 +32,7 @@ config LXC_BUSYBOX_OPTIONS
        select BUSYBOX_CONFIG_XZ
        select BUSYBOX_CONFIG_GETOPT
        select BUSYBOX_CONFIG_FEATURE_GETOPT_LONG
+       select BUSYBOX_CONFIG_MOUNTPOINT
        help
          Select needed busybox options for lxc-create utility. This include XZ tar
          compression, long option support for tar and built-in getopt support.
index f22b4f315c9555299ccb6b8695904c54481e9504..0a5c37992963875e749799546452679adcacb7db 100644 (file)
@@ -1,5 +1,6 @@
 #
 # Copyright (C) 2013-2015 OpenWrt.org
+# Copyright (C) 2020 Sartura
 #
 # This is free software, licensed under the GNU General Public License v2.
 # See /LICENSE for more information.
@@ -8,21 +9,20 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lxc
-PKG_VERSION:=2.1.1
-PKG_RELEASE:=5
+PKG_VERSION:=4.0.2
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://linuxcontainers.org/downloads/lxc/
-PKG_HASH:=68663a67450a8d6734e137eac54cc7077209fb15c456eec401a2c26e6386eff6
+PKG_HASH:=ca336dcdf303fea5ff231d89a9b6278b061c4cffb14f0db0a71a15bdd95a5cb0
 
-PKG_LICENSE:=LGPL-2.1-or-later BSD-2-Clause GPL-2.0
 PKG_MAINTAINER:=Marko Ratkaj <marko.ratkaj@sartura.hr>
+PKG_LICENSE:=LGPL-2.1-or-later BSD-2-Clause GPL-2.0
 
-PKG_BUILD_DEPENDS:=lua
-PKG_BUILD_PARALLEL:=1
-
-PKG_INSTALL:=1
 PKG_FIXUP:=autoreconf
+PKG_INSTALL:=1
+PKG_BUILD_PARALLEL:=1
+PKG_USE_MIPS16:=0
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -45,24 +45,26 @@ define Package/lxc/Default
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE:=LXC userspace tools
-  URL:=http://lxc.sourceforge.net/
+  URL:=https://linuxcontainers.org/
+  DEPENDS:=lxc
 endef
 
 define Package/lxc
   $(call Package/lxc/Default)
+  DEPENDS:=@!arc
   MENU:=1
 endef
 
 define Package/lxc-auto
   $(call Package/lxc/Default)
   TITLE:= (initscript)
-  DEPENDS:=+lxc-start +lxc-stop
+  DEPENDS+=+lxc-start +lxc-stop
 endef
 
 define Package/lxc-auto/description
  LXC is the userspace control package for Linux Containers, a lightweight
  virtual system mechanism sometimes described as "chroot on steroids".
- This package adds and initscript for starting and stopping the containers
+ This package adds an initscript for starting and stopping the containers
  on boot and shutdown.
 endef
 
@@ -73,7 +75,7 @@ endef
 define Package/lxc-unprivileged
   $(call Package/lxc/Default)
   TITLE:=Helper script for unprivileged containers support
-  DEPENDS:=+shadow-utils +shadow-newuidmap +shadow-newgidmap
+  DEPENDS+=+shadow-utils +shadow-newuidmap +shadow-newgidmap
 endef
 
 define Package/lxc-unprivileged/description
@@ -98,25 +100,21 @@ endef
 define Package/lxc-common
   $(call Package/lxc/Default)
   TITLE:=LXC common files
-  DEPENDS:= lxc
 endef
 
 define Package/lxc-hooks
   $(call Package/lxc/Default)
   TITLE:=LXC virtual machine hooks
-  DEPENDS:= lxc
 endef
 
 define Package/lxc-templates
   $(call Package/lxc/Default)
   TITLE:=LXC virtual machine templates
-  DEPENDS:= lxc
 endef
 
 define Package/lxc-configs
   $(call Package/lxc/Default)
   TITLE:=LXC virtual machine common config files
-  DEPENDS:= lxc
 endef
 
 define Package/liblxc
@@ -124,42 +122,30 @@ define Package/liblxc
   SECTION:=libs
   CATEGORY:=Libraries
   TITLE:=LXC userspace library
-  DEPENDS:= lxc +libcap +libpthread +LXC_SECCOMP:libseccomp
-endef
-
-define Package/lxc-lua
-  $(call Package/lxc/Default)
-  TITLE:=LXC Lua bindings
-  DEPENDS:= lxc +liblua +liblxc
+  DEPENDS+= +libcap +libpthread +LXC_SECCOMP:libseccomp +libopenssl
 endef
 
 define Package/lxc-init
   $(call Package/lxc/Default)
   TITLE:=LXC Lua bindings
-  DEPENDS:= lxc +liblxc
+  DEPENDS+= +liblxc
 endef
 
 CONFIGURE_ARGS += \
-       --disable-apparmor \
-       --disable-cgmanager \
+       --disable-werror \
+       --disable-rpath \
        --disable-doc \
-       --disable-examples \
-       --disable-gnutls \
+       --disable-api-docs \
+       --disable-apparmor \
        --disable-selinux \
-       --disable-python \
-       --enable-lua=yes \
-       --with-lua-pc="$(STAGING_DIR)/usr/lib/pkgconfig/lua.pc"
-
-ifeq ($(CONFIG_LXC_SECCOMP),y)
-CONFIGURE_ARGS += --enable-seccomp
-else
-CONFIGURE_ARGS += --disable-seccomp
-endif
-
-MAKE_FLAGS += \
-       LUA_INSTALL_CMOD="/usr/lib/lua" \
-       LUA_INSTALL_LMOD="/usr/lib/lua"
+       --$(if $(CONFIG_LXC_SECCOMP),en,dis)able-seccomp \
+       --enable-capabilities \
+       --disable-examples
 
+ifdef CONFIG_USE_MIPS16
+  TARGET_CFLAGS += -minterlink-mips16
+endif
+TARGET_LDFLAGS += -lgcc_eh
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include/lxc/
@@ -248,17 +234,6 @@ define Package/liblxc/install
                $(1)/usr/lib/
 endef
 
-define Package/lxc-lua/install
-       $(INSTALL_DIR) $(1)/usr/lib/lua
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/share/lua/5.1/lxc.lua \
-               $(1)/usr/lib/lua/
-       $(INSTALL_DIR) $(1)/usr/lib/lua/lxc
-       $(CP) \
-               $(PKG_INSTALL_DIR)/usr/lib/lua/5.1/lxc/core.so \
-               $(1)/usr/lib/lua/lxc/
-endef
-
 define Package/lxc-init/install
        $(INSTALL_DIR) $(1)/sbin
        $(CP) \
@@ -270,7 +245,7 @@ define GenPlugin
   define Package/lxc-$(1)
     $(call Package/lxc/Default)
     TITLE:=Utility lxc-$(1) from the LXC userspace tools
-    DEPENDS:= lxc +lxc-common $(2) $(DEPENDS_$(1))
+    DEPENDS+= +lxc-common $(2) $(DEPENDS_$(1))
   endef
 
   define Package/lxc-$(1)/install
@@ -290,7 +265,6 @@ $(eval $(call BuildPackage,lxc-hooks))
 $(eval $(call BuildPackage,lxc-configs))
 $(eval $(call BuildPackage,lxc-templates))
 $(eval $(call BuildPackage,liblxc))
-$(eval $(call BuildPackage,lxc-lua))
 $(eval $(call BuildPackage,lxc-init))
 $(eval $(call BuildPackage,lxc-auto))
 $(eval $(call BuildPackage,lxc-unprivileged))
index 937f0826942aa90892d612e43d2d3aec55540d0b..53abff9f1e0f1d44d9ceb40e6e51cd96580eb2d0 100755 (executable)
@@ -58,3 +58,14 @@ stop() {
        fi
 }
 
+#Export systemd cgroups
+boot() {
+       if [ ! -d /sys/fs/cgroup/systemd ]; then
+               mkdir -p /sys/fs/cgroup/systemd
+               mount -t cgroup -o rw,nosuid,nodev,noexec,relatime,none,name=systemd cgroup /sys/fs/cgroup/systemd
+       fi
+
+       if [ ! -d /run ]; then
+               ln -s /var/run /run
+       fi
+}
diff --git a/utils/lxc/patches/001-nl-avoid-NULL-pointer-dereference.patch b/utils/lxc/patches/001-nl-avoid-NULL-pointer-dereference.patch
deleted file mode 100644 (file)
index 4c402a0..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-From c8f05589644d6b719e5a2c7fc548604f248be9be Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
-Date: Sun, 29 Jul 2018 17:44:06 +0200
-Subject: [PATCH] nl: avoid NULL pointer dereference
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-It's a valid case to call nla_put() with NULL data and 0 len. It's done e.g. in
-the nla_put_attr().
-
-There has to be a check for data in nla_put() as passing NULL to the memcpy()
-is not allowed. Even if length is 0, both pointers have to be valid.
-
-For a reference see C99 standard (7.21.1/2), it says: "pointer arguments on
-such a call shall still have valid values".
-
-Reported-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
-Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
-[christian.brauner@ubuntu.com: adapted commit message]
-Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
----
- src/lxc/nl.c | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
---- a/src/lxc/nl.c
-+++ b/src/lxc/nl.c
-@@ -61,7 +61,8 @@ static int nla_put(struct nlmsg *nlmsg,
-       rta = NLMSG_TAIL(nlmsg->nlmsghdr);
-       rta->rta_type = attr;
-       rta->rta_len = rtalen;
--      memcpy(RTA_DATA(rta), data, len);
-+      if (data && len)
-+              memcpy(RTA_DATA(rta), data, len);
-       nlmsg->nlmsghdr->nlmsg_len = tlen;
-       return 0;
- }
diff --git a/utils/lxc/patches/002-compile.patch b/utils/lxc/patches/002-compile.patch
deleted file mode 100644 (file)
index 9a98777..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/src/lxc/storage/aufs.h
-+++ b/src/lxc/storage/aufs.h
-@@ -24,7 +24,6 @@
- #ifndef __LXC_AUFS_H
- #define __LXC_AUFS_H
--#define _GNU_SOURCE
- #include <stdbool.h>
- #include <stdio.h>
- #include <stdint.h>
diff --git a/utils/lxc/patches/003-compile.patch b/utils/lxc/patches/003-compile.patch
deleted file mode 100644 (file)
index b26b78d..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/src/lxc/confile_utils.c
-+++ b/src/lxc/confile_utils.c
-@@ -677,7 +677,7 @@
-       char *endptr = NULL;
-       if (strncmp(*value, "unlimited", sizeof("unlimited") - 1) == 0) {
--              *res = RLIM_INFINITY;
-+              *res = (unsigned long)RLIM_INFINITY;
-               *value += sizeof("unlimited") - 1;
-               return true;
-       }
diff --git a/utils/lxc/patches/010-Remove-distro-check.patch b/utils/lxc/patches/010-Remove-distro-check.patch
new file mode 100644 (file)
index 0000000..5e6edfa
--- /dev/null
@@ -0,0 +1,47 @@
+From 9f550ca53801b2b9c6c1c7a4d02ad525c704b145 Mon Sep 17 00:00:00 2001
+From: Robert Marko <robert.marko@sartura.hr>
+Date: Thu, 14 May 2020 13:40:53 +0200
+Subject: [PATCH] Remove distro check
+
+Signed-off-by: Robert Marko <robert.marko@sartura.hr>
+---
+ configure.ac | 28 ----------------------------
+ 1 file changed, 28 deletions(-)
+
+--- a/configure.ac
++++ b/configure.ac
+@@ -64,34 +64,6 @@ fi
+ LT_INIT
+ AC_SUBST([LIBTOOL_DEPS])
+-# Detect the distribution. This is used for the default configuration and
+-# for some distro-specific build options.
+-AC_MSG_CHECKING([host distribution])
+-AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, redhatenterpriseserver, oracle, centos, fedora, suse, gentoo, debian, arch, slackware, plamo, paldo, openmandriva, pardus, sparclinux, altlinux.]))
+-if type lsb_release >/dev/null 2>&1 && test "z$with_distro" = "z"; then
+-      with_distro=`lsb_release -is`
+-fi
+-if test "z$with_distro" = "z"; then
+-      AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
+-      AC_CHECK_FILE(/etc/oracle-release,with_distro="oracle")
+-      AC_CHECK_FILE(/etc/sparclinux-release,with_distro="sparclinux")
+-      AC_CHECK_FILE(/etc/centos-release,with_distro="centos")
+-      AC_CHECK_FILE(/etc/fedora-release,with_distro="fedora")
+-      AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
+-      AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
+-      AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
+-      AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
+-      AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
+-      AC_CHECK_FILE(/etc/plamo-version,with_distro="plamo")
+-      AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware")
+-      AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="openmandriva")
+-      AC_CHECK_FILE(/etc/mandriva-release,with_distro="openmandriva")
+-      AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
+-      AC_CHECK_FILE(/etc/altlinux-release,with_distro="altlinux")
+-      AC_CHECK_FILE(/etc/pld-release,with_distro="pld")
+-fi
+-with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]'`
+-
+ if test "z$with_distro" = "zforsparc"; then
+       with_distro="sparclinux"
+ fi
diff --git a/utils/lxc/patches/010-compile.patch b/utils/lxc/patches/010-compile.patch
deleted file mode 100644 (file)
index 903e4cd..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
---- a/configure.ac
-+++ b/configure.ac
-@@ -47,34 +47,6 @@ AC_GNU_SOURCE
- LT_INIT
- AC_SUBST([LIBTOOL_DEPS])
--# Detect the distribution. This is used for the default configuration and
--# for some distro-specific build options.
--AC_MSG_CHECKING([host distribution])
--AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, oracle, centos, fedora, suse, gentoo, debian, arch, slackware, plamo, paldo, openmandriva, pardus, sparclinux, altlinux.]))
--if type lsb_release >/dev/null 2>&1 && test "z$with_distro" = "z"; then
--      with_distro=`lsb_release -is`
--fi
--if test "z$with_distro" = "z"; then
--      AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
--      AC_CHECK_FILE(/etc/oracle-release,with_distro="oracle")
--      AC_CHECK_FILE(/etc/sparclinux-release,with_distro="sparclinux")
--      AC_CHECK_FILE(/etc/centos-release,with_distro="centos")
--      AC_CHECK_FILE(/etc/fedora-release,with_distro="fedora")
--      AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
--      AC_CHECK_FILE(/etc/gentoo-release,with_distro="gentoo")
--      AC_CHECK_FILE(/etc/debian_version,with_distro="debian")
--      AC_CHECK_FILE(/etc/arch-release,with_distro="arch")
--      AC_CHECK_FILE(/etc/slackware-version,with_distro="slackware")
--      AC_CHECK_FILE(/etc/plamo-version,with_distro="plamo")
--      AC_CHECK_FILE(/etc/frugalware-release,with_distro="frugalware")
--      AC_CHECK_FILE(/etc/mandrakelinux-release, with_distro="openmandriva")
--      AC_CHECK_FILE(/etc/mandriva-release,with_distro="openmandriva")
--      AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
--      AC_CHECK_FILE(/etc/altlinux-release,with_distro="altlinux")
--      AC_CHECK_FILE(/etc/pld-release,with_distro="pld")
--fi
--with_distro=`echo ${with_distro} | tr '[[:upper:]]' '[[:lower:]]'`
--
- if test "z$with_distro" = "zforsparc"; then
-       with_distro="sparclinux"
- fi
index c91e010c5c58559cb6a8289fcef3781c932270df..4a35ff1d346bf04502cb9b1f78fc1e8102d8da57 100644 (file)
@@ -1,6 +1,6 @@
 --- a/src/lxc/utils.h
 +++ b/src/lxc/utils.h
-@@ -59,11 +59,7 @@ extern int mkdir_p(const char *dir, mode_t mode);
+@@ -35,11 +35,7 @@ extern int mkdir_p(const char *dir, mode
  extern char *get_rundir(void);
  
  /* Define getline() if missing from the C library */
@@ -11,5 +11,5 @@
 -#endif
 +#include "../include/getline.h"
  
- /* Define setns() if missing from the C library */
- #ifndef HAVE_SETNS
+ static inline int lxc_set_cloexec(int fd)
+ {
index 0e644ea47653b899fa7c3f185d76aaec2e13a937..b9879b644536d1ea0d78df2ddc71881dae2d5c0d 100644 (file)
@@ -1,6 +1,6 @@
---- a/src/lxc/tools/lxc-checkconfig.in
-+++ b/src/lxc/tools/lxc-checkconfig.in
-@@ -3,6 +3,17 @@
+--- a/src/lxc/cmd/lxc-checkconfig.in
++++ b/src/lxc/cmd/lxc-checkconfig.in
+@@ -4,6 +4,17 @@
  # Allow environment variables to override config
  : ${CONFIG:=/proc/config.gz}
  : ${MODNAME:=configs}
index b20870890bb1ddc81fa8eca327870890a0cade36..6f290d79987c6f6a008a64e62c7d55358b9ff4b2 100644 (file)
@@ -1,15 +1,15 @@
 --- a/templates/lxc-download.in
 +++ b/templates/lxc-download.in
-@@ -505,20 +505,7 @@ fi
+@@ -506,20 +506,7 @@ fi
  # Unpack the rootfs
  echo "Unpacking the rootfs"
  
 -EXCLUDES=""
 -excludelist=$(relevant_file excludes)
 -if [ -f "${excludelist}" ]; then
--    while read -r line; do
--        EXCLUDES="${EXCLUDES} --exclude=${line}"
--    done < "${excludelist}"
+-  while read -r line; do
+-    EXCLUDES="${EXCLUDES} --exclude=${line}"
+-  done < "${excludelist}"
 -fi
 -
 -# Do not surround ${EXCLUDES} by quotes. This does not work. The solution could
@@ -17,8 +17,8 @@
 -# is to use a function wrapper, but the latter can't be used here as the args
 -# are dynamic. We thus need to ignore the warning brought by shellcheck.
 -# shellcheck disable=SC2086
--tar  --anchored ${EXCLUDES} --numeric-owner -xpJf \
-+tar --numeric-owner -xpJf \
-     "${LXC_CACHE_PATH}/rootfs.tar.xz" -C "${LXC_ROOTFS}"
+-tar  --anchored ${EXCLUDES} --numeric-owner -xpJf "${LXC_CACHE_PATH}/rootfs.tar.xz" -C "${LXC_ROOTFS}"
++tar --numeric-owner -xpJf "${LXC_CACHE_PATH}/rootfs.tar.xz" -C "${LXC_ROOTFS}"
  
  mkdir -p "${LXC_ROOTFS}/dev/pts/"
diff --git a/utils/lxc/patches/030-prlimit.patch b/utils/lxc/patches/030-prlimit.patch
deleted file mode 100644 (file)
index 88f17aa..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-From f48b5fd8ab03c200eaf5e3a9b03bcd01b2659cf3 Mon Sep 17 00:00:00 2001
-From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
-Date: Thu, 2 Nov 2017 16:00:33 +0100
-Subject: [PATCH] Fix compilation on toolchain without prlimit
-
-Some toolchains which are not bionic like uclibc does not support
-prlimit or prlimit64. In this case, return an error.
-Moreover, if prlimit64 is available, use lxc implementation of prlimit.
-
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
----
- configure.ac        |  4 ++++
- src/lxc/Makefile.am |  6 ++++++
- src/lxc/conf.c      | 12 +++++++++---
- 3 files changed, 19 insertions(+), 3 deletions(-)
-
-diff --git a/configure.ac b/configure.ac
-index 642b78e7e1..63df7466cb 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -643,6 +643,10 @@ AC_CHECK_FUNCS([prlimit],
-       AM_CONDITIONAL(HAVE_PRLIMIT, true)
-       AC_DEFINE(HAVE_PRLIMIT,1,[Have prlimit]),
-       AM_CONDITIONAL(HAVE_PRLIMIT, false))
-+AC_CHECK_FUNCS([prlimit64],
-+      AM_CONDITIONAL(HAVE_PRLIMIT64, true)
-+      AC_DEFINE(HAVE_PRLIMIT64,1,[Have prlimit64]),
-+      AM_CONDITIONAL(HAVE_PRLIMIT64, false))
- # Check for some libraries
- AC_SEARCH_LIBS(sem_open, [rt pthread])
-diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
-index fff32ae4f3..8f0c11ecae 100644
---- a/src/lxc/Makefile.am
-+++ b/src/lxc/Makefile.am
-@@ -45,7 +45,10 @@ noinst_HEADERS += \
-       ../include/ifaddrs.h \
-       ../include/openpty.h \
-       ../include/lxcmntent.h
-+endif
-+
- if !HAVE_PRLIMIT
-+if HAVE_PRLIMIT64
- noinst_HEADERS += ../include/prlimit.h
- endif
- endif
-@@ -142,7 +145,10 @@ liblxc_la_SOURCES += \
-       ../include/ifaddrs.c ../include/ifaddrs.h \
-       ../include/openpty.c ../include/openpty.h \
-       ../include/lxcmntent.c ../include/lxcmntent.h
-+endif
-+
- if !HAVE_PRLIMIT
-+if HAVE_PRLIMIT64
- liblxc_la_SOURCES += ../include/prlimit.c ../include/prlimit.h
- endif
- endif
-diff --git a/src/lxc/conf.c b/src/lxc/conf.c
-index 44d9784303..8a66f2d02c 100644
---- a/src/lxc/conf.c
-+++ b/src/lxc/conf.c
-@@ -100,13 +100,14 @@
- #if IS_BIONIC
- #include <../include/lxcmntent.h>
--#ifndef HAVE_PRLIMIT
--#include <../include/prlimit.h>
--#endif
- #else
- #include <mntent.h>
- #endif
-+#if !defined(HAVE_PRLIMIT) && defined(HAVE_PRLIMIT64)
-+#include <../include/prlimit.h>
-+#endif
-+
- lxc_log_define(lxc_conf, lxc);
- #if HAVE_LIBCAP
-@@ -2457,10 +2458,15 @@ int setup_resource_limits(struct lxc_list *limits, pid_t pid) {
-                       return -1;
-               }
-+#if HAVE_PRLIMIT || HAVE_PRLIMIT64
-               if (prlimit(pid, resid, &lim->limit, NULL) != 0) {
-                       ERROR("failed to set limit %s: %s", lim->resource, strerror(errno));
-                       return -1;
-               }
-+#else
-+              ERROR("Cannot set limit %s as prlimit is missing", lim->resource);
-+              return -1;
-+#endif
-       }
-       return 0;
- }
index 1d54b84a52d00883660bda1f637e1a8e5afee334..f8edde6e7d16f4679669b813fb96c9625b01ccf1 100644 (file)
@@ -8,8 +8,8 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=mariadb
-PKG_VERSION:=10.4.12
-PKG_RELEASE:=3
+PKG_VERSION:=10.4.13
+PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL := \
@@ -18,7 +18,7 @@ PKG_SOURCE_URL := \
        https://ftp.yz.yamagata-u.ac.jp/pub/dbms/mariadb/$(PKG_NAME)-$(PKG_VERSION)/source \
        https://downloads.mariadb.org/interstitial/$(PKG_NAME)-$(PKG_VERSION)/source
 
-PKG_HASH:=fef1e1d38aa253dd8a51006bd15aad184912fce31c446bb69434fcde735aa208
+PKG_HASH:=45bbbb12d1de8febd9edf630e940c23cf14efd60570c743b268069516a5d91df
 PKG_MAINTAINER:=Sebastian Kemper <sebastian_ml@gmx.net>
 PKG_LICENSE:=GPL-2.0
 PKG_LICENSE_FILES:=COPYING THIRDPARTY
@@ -372,6 +372,7 @@ CMAKE_OPTIONS += \
        -DINSTALL_MANDIR=share/man \
        -DINSTALL_MYSQLSHAREDIR=share/mariadb \
        -DINSTALL_MYSQLTESTDIR="" \
+       -DINSTALL_PAMDATADIR="/etc/security" \
        -DINSTALL_PAMDIR="/lib/security" \
        -DINSTALL_PLUGINDIR=lib/mariadb/plugin \
        -DINSTALL_SBINDIR=bin \
index cb3f914937972ebd2a3533e3f3d0f5e83f2adb5e..96af22f818277eeaf7574d1db7e4d6d7b87ae2a8 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=open-vm-tools
-PKG_VERSION:=11.0.5
+PKG_VERSION:=11.1.0
 PKG_RELEASE:=1
 
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-15389592.tar.gz
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-16036546.tar.gz
 PKG_SOURCE_URL:=https://github.com/vmware/open-vm-tools/releases/download/stable-$(PKG_VERSION)
-PKG_HASH:=fc5ed2d752af33775250e0f103d622c0031d578f8394511617d2619b124dfc42
-PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-15389592
+PKG_HASH:=cb029af04357f19a899995f9e1ecfe55222b76158ab6d64fe8b56df0ccf87308
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-16036546
 PKG_INSTALL:=1
 
 PKG_BUILD_DEPENDS:=glib2/host
index 46feed5df72c84e466a5caec138972db196e3e19..6d50012ae3fc475722bc588cc7cfc7df7f6bcadc 100644 (file)
@@ -1,14 +1,14 @@
 diff -urN a/lib/hgfsServer/hgfsServerLinux.c b/lib/hgfsServer/hgfsServerLinux.c
 --- a/lib/hgfsServer/hgfsServerLinux.c
 +++ b/lib/hgfsServer/hgfsServerLinux.c
-@@ -5294,8 +5294,8 @@
+@@ -5295,8 +5295,8 @@
        goto exit;
     }
  
--   LOG(6, ("%s: File Size limits: 0x%"FMT64"x 0x%"FMT64"x\n",
--           __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max));
-+   LOG(6, ("%s: File Size limits: 0x%jx 0x%jx\n",
-+           __FUNCTION__, (uintmax_t)fileSize.rlim_cur, (uintmax_t)fileSize.rlim_max));
+-   LOG(6, "%s: File Size limits: 0x%"FMT64"x 0x%"FMT64"x\n",
+-       __FUNCTION__, fileSize.rlim_cur, fileSize.rlim_max);
++   LOG(6, "%s: File Size limits: 0x%jx 0x%jx\n",
++       __FUNCTION__, (uintmax_t)fileSize.rlim_cur, (uintmax_t)fileSize.rlim_max);
  
     /*
      * Check the offset is within the file size range.
index 7f2025cba1a0422f8d4173a547177380f732ad85..edefa5831274b02e2bb4a84abb4314a8867f4da7 100644 (file)
@@ -276,7 +276,8 @@ CONFIGURE_ARGS:=$(filter-out        \
        --program-prefix=%      \
        --program-suffix=%      \
        --exec-prefix=%         \
-       --disable-nls           \
+       $(DISABLE_NLS)          \
+       $(DISABLE_IPV6)         \
        , $(CONFIGURE_ARGS))
 
 # Tell build system of qemu to not add _FORTIFY_SOURCE options and let the base
index eef25fa8eb3a964a5dfcbed0697d4ea4a455d02d..605b852b7d0816e6cb38b51d35a6f842c7fb31ac 100644 (file)
@@ -49,7 +49,7 @@ endef
 
 GO_PKG_INSTALL_ALL:=1
 MAKE_PATH:=$(GO_PKG_WORK_DIR_NAME)/build/src/$(GO_PKG)
-MAKE_VARS += $(call GoPackage/Environment)
+MAKE_VARS += $(GO_PKG_VARS)
 MAKE_FLAGS += \
        COMMIT=$(PKG_SOURCE_VERSION)