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 11, 2023
2 parents b3a66dc + 0da9f62 commit 82a3df3
Show file tree
Hide file tree
Showing 71 changed files with 1,242 additions and 706 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
12 changes: 7 additions & 5 deletions lang/python/python-bcrypt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-bcrypt
PKG_VERSION:=3.2.2
PKG_VERSION:=4.0.1
PKG_RELEASE:=1

PYPI_NAME:=bcrypt
PKG_HASH:=433c410c2177057705da2a9f2cd01dd157493b2a7ac14c8593a16b3dab6b6bfb
PKG_HASH:=27d375903ac8261cfe4047f6709d16f7d18d39b1ec92aaf72af989552a650ebd

PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Jeffery To <[email protected]>

PKG_BUILD_DEPENDS:=libffi/host python-cffi/host # cffi>=1.1
PKG_BUILD_DEPENDS:=python-setuptools-rust/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
Expand All @@ -27,11 +28,12 @@ define Package/python3-bcrypt
SUBMENU:=Python
TITLE:=Modern password hashing
URL:=https://github.com/pyca/bcrypt/
DEPENDS:=+python3-light +python3-cffi
DEPENDS:=+python3-light $(RUST_ARCH_DEPENDS)
endef

define Package/python3-bcrypt/description
Good password hashing for your software and your servers.
Acceptable password hashing for your software and your servers (but you
should really use argon2id or scrypt)
endef

$(eval $(call Py3Package,python3-bcrypt))
Expand Down
11 changes: 11 additions & 0 deletions lang/python/python-bcrypt/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

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

python3 - << EOF
import sys
import bcrypt
password = b"super secret password"
hashed = bcrypt.hashpw(password, bcrypt.gensalt())
sys.exit(0 if bcrypt.checkpw(password, hashed) else 1)
EOF
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
16 changes: 8 additions & 8 deletions lang/python/python-cryptography/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=python-cryptography
PKG_VERSION:=3.4.8
PKG_RELEASE:=3
PKG_VERSION:=41.0.4
PKG_RELEASE:=1

PYPI_NAME:=cryptography
PKG_HASH:=94cc5ed4ceaefcbe5bf38c8fba6a21fc1d365bb8fb826ea1688e3370b2e24a1c
PKG_HASH:=7febc3094125fc126a7f6fb1f420d0da639f3f32cb15c8ff0dc3997c4549f51a

PKG_LICENSE:=Apache-2.0 BSD-3-Clause
PKG_LICENSE_FILES:=LICENSE.APACHE LICENSE.BSD
PKG_MAINTAINER:=Jeffery To <[email protected]>

PKG_BUILD_DEPENDS:=libffi/host python-cffi/host # cffi>=1.12
PKG_BUILD_DEPENDS:=libffi/host python-cffi/host python-setuptools-rust/host

include ../pypi.mk
include $(INCLUDE_DIR)/package.mk
Expand All @@ -32,18 +32,18 @@ define Package/python3-cryptography
URL:=https://github.com/pyca/cryptography
DEPENDS:= \
+libopenssl \
+libopenssl-legacy \
+python3-light \
+python3-email \
+python3-openssl \
+python3-urllib \
+python3-cffi \
+python3-six
$(RUST_ARCH_DEPENDS)
endef

define Package/python3-cryptography/description
cryptography is a package which provides cryptographic recipes and
primitives to Python developers. Our goal is for it to be your "cryptographic
standard library". It supports Python 2.6-2.7, Python 3.3+, and PyPy 2.6+.
primitives to Python developers. Our goal is for it to be your
"cryptographic standard library".
endef

$(eval $(call Py3Package,python3-cryptography))
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 82a3df3

Please sign in to comment.