Skip to content

Commit

Permalink
Merge Official Source
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed Oct 9, 2023
2 parents 275312a + 303f0ad commit bafdff1
Show file tree
Hide file tree
Showing 74 changed files with 1,722 additions and 551 deletions.
4 changes: 2 additions & 2 deletions admin/syslog-ng/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=syslog-ng
PKG_VERSION:=4.3.1
PKG_VERSION:=4.4.0
PKG_RELEASE:=1

PKG_MAINTAINER:=Josef Schlehofer <[email protected]>
Expand All @@ -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:=999dbab62982c3cffba02c0be22c596ee1ce81d6954689dc9b3a6afeb513cce3
PKG_HASH:=583b147f3ec17fbc2dbbf31aafb1e3966237d7541313de5b41ea885dc16d932e

PKG_BUILD_PARALLEL:=1
PKG_INSTALL:=1
Expand Down
2 changes: 1 addition & 1 deletion admin/syslog-ng/files/syslog-ng.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# More details about these settings can be found here:
# https://www.syslog-ng.com/technical-documents/list/syslog-ng-open-source-edition

@version: 4.3
@version: 4.4
@include "scl.conf"

options {
Expand Down
4 changes: 2 additions & 2 deletions lang/golang/golang/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk

GO_VERSION_MAJOR_MINOR:=1.21
GO_VERSION_PATCH:=1
GO_VERSION_PATCH:=2

PKG_NAME:=golang
PKG_VERSION:=$(GO_VERSION_MAJOR_MINOR)$(if $(GO_VERSION_PATCH),.$(GO_VERSION_PATCH))
Expand All @@ -21,7 +21,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:=bfa36bf75e9a1e9cbbdb9abcf9d1707e479bd3a07880a8ae3564caee5711cb99
PKG_HASH:=45e59de173baec39481854490d665b726cec3e5b159f6b4172e5ec7780b2c201

PKG_MAINTAINER:=Jeffery To <[email protected]>
PKG_LICENSE:=BSD-3-Clause
Expand Down
4 changes: 2 additions & 2 deletions lang/lua-eco/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=lua-eco
PKG_VERSION:=3.0.0
PKG_VERSION:=3.0.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL=https://github.com/zhaojh329/lua-eco/releases/download/v$(PKG_VERSION)
PKG_HASH:=530b179af2283b7a1983643794f3b6de936317fe3c23a9dca4f7828dec6f7e46
PKG_HASH:=96f008932e319739df2fe99dc1cba7e9a1a389015a4b96ad0f63d95bb6422b09

PKG_MAINTAINER:=Jianhui Zhao <[email protected]>
PKG_LICENSE:=MIT
Expand Down
4 changes: 2 additions & 2 deletions lang/lua-openssl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ PKG_RELEASE:=1

PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/zhaozg/lua-openssl.git
PKG_SOURCE_VERSION:=0.8.2-1
PKG_MIRROR_HASH:=3a7c8fcd76389970671bc8d07fe7a06225e537850b1ad209dda436fb3b5ea0cb
PKG_SOURCE_VERSION:=0.8.5-1
PKG_MIRROR_HASH:=d2875aa9b87a80c71d57e2b29c8e882b41aa81f995043e0fbae9a642250ab1c7

PKG_MAINTAINER:=Amnon Paz <[email protected]>
PKG_LICENSE:=MIT
Expand Down
12 changes: 8 additions & 4 deletions lang/lua-openssl/patches/010-no-luajit.patch
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,6 @@ option(BUILD_SHARED_LUA_OPENSSL "Shared
@@ -8,10 +8,7 @@ option(BUILD_SHARED_LUA_OPENSSL "Shared

include(GNUInstallDirs)

-find_package(LuaJIT)
if(NOT LUAJIT_FOUND)
find_package(Lua REQUIRED)
endif()
-if(NOT LUAJIT_FOUND)
- find_package(Lua REQUIRED)
-endif()
+find_package(Lua REQUIRED)
find_package(OpenSSL REQUIRED)

set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
4 changes: 2 additions & 2 deletions lang/php8/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=php
PKG_VERSION:=8.2.10
PKG_VERSION:=8.2.11
PKG_RELEASE:=1

PKG_MAINTAINER:=Michael Heimpold <[email protected]>
Expand All @@ -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:=561dc4acd5386e47f25be76f2c8df6ae854756469159248313bcf276e282fbb3
PKG_HASH:=29af82e4f7509831490552918aad502697453f0869a579ee1b80b08f9112c5b8

PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16
Expand Down
2 changes: 1 addition & 1 deletion lang/php8/patches/0025-php-5.4.9-fixheader.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Make generated php_config.h constant across rebuilds.

--- a/configure.ac
+++ b/configure.ac
@@ -1455,7 +1455,7 @@ PHP_REMOVE_USR_LIB(LDFLAGS)
@@ -1451,7 +1451,7 @@ PHP_REMOVE_USR_LIB(LDFLAGS)
EXTRA_LDFLAGS="$EXTRA_LDFLAGS $PHP_LDFLAGS"
EXTRA_LDFLAGS_PROGRAM="$EXTRA_LDFLAGS_PROGRAM $PHP_LDFLAGS"

Expand Down
2 changes: 1 addition & 1 deletion lang/php8/patches/1004-disable-phar-command.patch
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

--- a/configure.ac
+++ b/configure.ac
@@ -1638,13 +1638,13 @@ CFLAGS_CLEAN="$CFLAGS \$(PROF_FLAGS)"
@@ -1634,13 +1634,13 @@ CFLAGS_CLEAN="$CFLAGS \$(PROF_FLAGS)"
CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)"

Expand Down
11 changes: 0 additions & 11 deletions lang/python/pymysql/Config.in

This file was deleted.

27 changes: 22 additions & 5 deletions lang/python/pymysql/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=pymysql
PKG_VERSION:=1.1.0
PKG_RELEASE:=1
PKG_RELEASE:=2

PYPI_NAME:=PyMySQL
PKG_HASH:=4f13a7df8bf36a51e81dd9f3605fede45a4878fe02f9236349fd82a3f0612f96
Expand All @@ -24,23 +24,40 @@ include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
include ../python3-package.mk

define Package/python3-pymysql
define Package/python3-pymysql/Default
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=Pure Python MySQL Client
URL:=https://pymysql.readthedocs.io/
DEPENDS:=+python3 +PYTHON3_PYMYSQL_SHA_PASSWORD_SUPPORT:python3-cryptography
endef

define Package/python3-pymysql/config
source "$(SOURCE)/Config.in"
define Package/python3-pymysql
$(call Package/python3-pymysql/Default)
DEPENDS:=+python3
endef

define Package/python3-pymysql/description
This package contains a pure-Python MySQL client library, based on PEP 249.
endef

define Package/python3-pymysql-sha-pwd
$(call Package/python3-pymysql/Default)
TITLE+=w/ SHA256 password auth
DEPENDS:=+python3-pymysql $(RUST_ARCH_DEPENDS) +PACKAGE_python3-pymysql-sha-pwd:python3-cryptography
endef

define Package/python3-pymysql-sha-pwd/description
This is a meta-package installing python3-pymysql and python3-cryptography
packages to be able to use pymysql with “sha256_password” or
“caching_sha2_password” for authentication.
endef

define Package/python3-pymysql-sha-pwd/install
true
endef

$(eval $(call Py3Package,python3-pymysql))
$(eval $(call BuildPackage,python3-pymysql))
$(eval $(call BuildPackage,python3-pymysql-src))
$(eval $(call BuildPackage,python3-pymysql-sha-pwd))
5 changes: 3 additions & 2 deletions lang/python/python-cffi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-cffi
PKG_VERSION:=1.15.1
PKG_VERSION:=1.16.0
PKG_RELEASE:=1

PYPI_NAME:=cffi
PKG_HASH:=d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9
PKG_HASH:=bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0

PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
Expand Down Expand Up @@ -40,6 +40,7 @@ define Package/python3-cffi
DEPENDS:= \
+libffi \
+python3-light \
+python3-ctypes \
+python3-pycparser
endef

Expand Down
10 changes: 10 additions & 0 deletions lang/python/python-cffi/patches/001-unpin-setuptools.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -2,6 +2,6 @@
requires = [
# first version that supports Python 3.12; older versions may work
# with previous Python versions, but are not tested
- "setuptools >= 66.1"
+ "setuptools"
]
build-backend = "setuptools.build_meta"
8 changes: 8 additions & 0 deletions lang/python/python-cffi/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

[ "$1" = python3-cffi ] || exit 0

python3 - << EOF
from cffi import FFI
ffibuilder = FFI()
EOF
4 changes: 2 additions & 2 deletions lang/python/python-charset-normalizer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-charset-normalizer
PKG_VERSION:=3.2.0
PKG_VERSION:=3.3.0
PKG_RELEASE:=1

PYPI_NAME:=charset-normalizer
PKG_HASH:=3bb3d25a8e6c0aedd251753a79ae98a093c7e7b471faa3aa9a93a81431987ace
PKG_HASH:=63563193aec44bce707e0c5ca64ff69fa72ed7cf34ce6e11d5127555756fd2f6

PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE
Expand Down
12 changes: 12 additions & 0 deletions lang/python/python-charset-normalizer/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

[ "$1" = python3-charset-normalizer ] || exit 0

python3 - << EOF
import sys
from charset_normalizer import from_bytes
s = 'Bсеки човек има право на образование.'
byte_str = s.encode('cp1251')
result = from_bytes(byte_str).best()
sys.exit(0 if str(result) == s else 1)
EOF
6 changes: 3 additions & 3 deletions lang/python/python-packaging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-packaging
PKG_VERSION:=23.1
PKG_VERSION:=23.2
PKG_RELEASE:=1

PYPI_NAME:=packaging
PKG_HASH:=a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f
PKG_HASH:=048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5

PKG_MAINTAINER:=Jan Pavlinec <[email protected]>, Jeffery To <[email protected]>
PKG_LICENSE:=Apache-2.0 BSD-2-Clause
Expand All @@ -32,7 +32,7 @@ define Package/python3-packaging
SUBMENU:=Python
TITLE:=Core utilities for Python packages
URL:=https://github.com/pypa/packaging
DEPENDS:=+python3-light +python3-logging +python3-urllib
DEPENDS:=+python3-light +python3-email +python3-logging +python3-urllib
endef

define Package/python3-packaging/description
Expand Down
11 changes: 11 additions & 0 deletions lang/python/python-packaging/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

[ "$1" = python3-packaging ] || exit 0

python3 - << EOF
import sys
from packaging.version import Version, parse
v1 = parse("1.0a5")
v2 = Version("1.0")
sys.exit(0 if v1 < v2 else 1)
EOF
17 changes: 6 additions & 11 deletions lang/python/python-twisted/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-twisted
PKG_VERSION:=22.10.0
PKG_VERSION:=23.8.0
PKG_RELEASE:=1

PYPI_NAME:=Twisted
PKG_HASH:=32acbd40a94f5f46e7b42c109bfae2b302250945561783a8b7a059048f2d4d31
PYPI_SOURCE_NAME:=twisted
PKG_HASH:=3c73360add17336a622c0d811c2a2ce29866b6e59b1125fd6509b17252098a24

PKG_BUILD_DEPENDS:=libtirpc

Expand All @@ -22,7 +23,7 @@ PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Jeffery To <[email protected]>
PKG_CPE_ID:=cpe:/a:twistedmatrix:twisted

PKG_BUILD_DEPENDS:=python-incremental/host
PKG_BUILD_DEPENDS:=python-hatchling/host python-hatch-fancy-pypi-readme/host python-incremental/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
Expand All @@ -45,8 +46,6 @@ define Package/python3-twisted
+python3-hyperlink \
+python3-idna \
+python3-incremental \
+python3-pkg-resources \
+python3-pyasn1 \
+python3-pyopenssl \
+python3-service-identity \
+python3-typing-extensions \
Expand All @@ -55,12 +54,8 @@ endef

define Package/python3-twisted/description
Twisted is a networking engine written in Python, supporting numerous
protocols. It contains a web server, numerous chat clients, chat servers,
mail servers, and more.
endef

define Build/Configure
$(SED) 's/^version = attr: twisted.__version__$$$$/version = $(PKG_VERSION)/' $(PKG_BUILD_DIR)/setup.cfg
protocols. It contains a web server, numerous chat clients, chat
servers, mail servers, and more.
endef

define Py3Package/python3-twisted/filespec
Expand Down
20 changes: 10 additions & 10 deletions lang/python/python-twisted/patches/001-omit-tkconch.patch
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
--- a/setup.cfg
+++ b/setup.cfg
@@ -115,7 +115,6 @@ console_scripts =
conch = twisted.conch.scripts.conch:run
mailmail = twisted.mail.scripts.mailmail:run
pyhtmlizer = twisted.scripts.htmlizer:run
- tkconch = twisted.conch.scripts.tkconch:run
trial = twisted.scripts.trial:run
twist = twisted.application.twist._twist:Twist.main
twistd = twisted.scripts.twistd:run
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -150,7 +150,6 @@ ckeygen = "twisted.conch.scripts.ckeygen
conch = "twisted.conch.scripts.conch:run"
mailmail = "twisted.mail.scripts.mailmail:run"
pyhtmlizer = "twisted.scripts.htmlizer:run"
-tkconch = "twisted.conch.scripts.tkconch:run"
trial = "twisted.scripts.trial:run"
twist = "twisted.application.twist._twist:Twist.main"
twistd = "twisted.scripts.twistd:run"
--- a/src/twisted/python/twisted-completion.zsh
+++ b/src/twisted/python/twisted-completion.zsh
@@ -1,4 +1,4 @@
Expand Down
28 changes: 9 additions & 19 deletions lang/python/python-twisted/patches/002-omit-tests.patch
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
--- a/setup.cfg
+++ b/setup.cfg
@@ -107,6 +107,9 @@ mypy =
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -194,6 +194,7 @@ exclude = [
"*.pxi",
"*.pyx",
"build.bat",
+ "test",
]

[options.packages.find]
where = src
+exclude =
+ *.test
+ *.test.*

[options.entry_points]
console_scripts =
@@ -126,6 +129,7 @@ console_scripts =
*.pxi
*.pyx
build.bat
+ test/*

[flake8]
disable-noqa = True
[tool.hatch.build.targets.sdist]
Loading

0 comments on commit bafdff1

Please sign in to comment.