Skip to content

Commit a7d3809

Browse files
committed
Init OpenWRT 23.05
1 parent a76de95 commit a7d3809

File tree

12 files changed

+411
-204
lines changed

12 files changed

+411
-204
lines changed

backports/python-certifi/Makefile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#
2+
# This is free software, licensed under the GNU General Public License v2.
3+
# See /LICENSE for more information.
4+
#
5+
6+
include $(TOPDIR)/rules.mk
7+
8+
PKG_NAME:=python-certifi
9+
PKG_VERSION:=2023.7.22
10+
PKG_RELEASE:=2
11+
12+
PKG_MAINTAINER:=Eneas U de Queiroz <[email protected]>
13+
PKG_LICENSE:=MPL-2.0
14+
PKG_LICENSE_FILES:=LICENSE
15+
16+
PYPI_NAME:=certifi
17+
PKG_HASH:=539cc1d13202e33ca466e88b2807e29f4c13049d6d87031a3c110744495cb082
18+
19+
HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host
20+
21+
include $(TOPDIR)/feeds/packages/lang/python/pypi.mk
22+
include $(INCLUDE_DIR)/package.mk
23+
include $(INCLUDE_DIR)/host-build.mk
24+
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
25+
include $(TOPDIR)/feeds/packages/lang/python/python3-host-build.mk
26+
27+
define Package/python3-certifi
28+
SUBMENU:=Python
29+
SECTION:=lang
30+
CATEGORY:=Languages
31+
TITLE:=Python package for Mozilla's CA Bundle
32+
URL:=https://github.com/certifi/python-certifi
33+
DEPENDS:=+python3-light +python3-urllib
34+
endef
35+
36+
define Package/python3-certifi/description
37+
Certifi provides Mozilla's carefully curated collection of Root
38+
Certificates for validating the trustworthiness of SSL certificates
39+
while verifying the identity of TLS hosts.
40+
endef
41+
42+
$(eval $(call Py3Package,python3-certifi))
43+
$(eval $(call BuildPackage,python3-certifi))
44+
$(eval $(call BuildPackage,python3-certifi-src))
45+
$(eval $(call HostBuild))

backports/python-certifi/test.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
case "$1" in
4+
*-src)
5+
;;
6+
python3-certifi)
7+
BUNDLE=$(python3 -m certifi) || {
8+
echo "Failed to run the certfi module script. Exit status=$?." >&2
9+
echo "Output='$BUNDLE'" >&2
10+
exit 1
11+
}
12+
ls -l "$BUNDLE"
13+
;;
14+
*)
15+
echo "Unexpected package '$1'" >&2
16+
exit 1
17+
;;
18+
esac

backports/python-chardet/Makefile

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
#
2+
# Copyright (C) 2007-2017 OpenWrt.org
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
#
7+
8+
include $(TOPDIR)/rules.mk
9+
10+
PKG_NAME:=python-chardet
11+
PKG_VERSION:=5.1.0
12+
PKG_RELEASE:=2
13+
PKG_LICENSE:=LGPL-2.1
14+
15+
PYPI_NAME:=chardet
16+
PKG_HASH:=0d62712b956bc154f85fb0a266e2a3c5913c2967e00348701b32411d6def31e5
17+
18+
HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host
19+
20+
include $(TOPDIR)/feeds/packages/lang/python/pypi.mk
21+
include $(INCLUDE_DIR)/package.mk
22+
include $(INCLUDE_DIR)/host-build.mk
23+
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
24+
include $(TOPDIR)/feeds/packages/lang/python/python3-host-build.mk
25+
26+
define Package/python3-chardet
27+
SUBMENU:=Python
28+
SECTION:=lang
29+
CATEGORY:=Languages
30+
MAINTAINER:=Alexandru Ardelean <[email protected]>
31+
URL:=https://github.com/chardet/chardet
32+
TITLE:=Universal encoding detector
33+
DEPENDS:=+python3-light +python3-logging
34+
endef
35+
36+
define Package/python3-chardet/description
37+
Universal encoding detector for Python 2 and 3
38+
endef
39+
40+
define Py3Package/python3-chardet/install
41+
$(INSTALL_DIR) $(1)/usr/bin
42+
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
43+
for bin in $(1)/usr/bin/*; do \
44+
mv $$$$bin $$$${bin}3 ; \
45+
$(LN) $$$${bin##*/}3 $$$$bin ; \
46+
done
47+
endef
48+
49+
$(eval $(call Py3Package,python3-chardet))
50+
$(eval $(call BuildPackage,python3-chardet))
51+
$(eval $(call BuildPackage,python3-chardet-src))
52+
$(eval $(call HostBuild))

backports/python-idna/Makefile

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#
2+
# Copyright (C) 2015-2016, 2018-2020, 2023 Jeffery To
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
#
7+
8+
include $(TOPDIR)/rules.mk
9+
10+
PKG_NAME:=python-idna
11+
PKG_VERSION:=3.4
12+
PKG_RELEASE:=2
13+
14+
PYPI_NAME:=idna
15+
PKG_HASH:=814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4
16+
17+
PKG_LICENSE:=BSD-3-Clause
18+
PKG_LICENSE_FILES:=LICENSE.rst
19+
PKG_MAINTAINER:=Jeffery To <[email protected]>
20+
21+
PKG_BUILD_DEPENDS:=python-flit-core/host
22+
HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-flit-core/host
23+
24+
include $(TOPDIR)/feeds/packages/lang/python/pypi.mk
25+
include $(INCLUDE_DIR)/package.mk
26+
include $(INCLUDE_DIR)/host-build.mk
27+
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
28+
include $(TOPDIR)/feeds/packages/lang/python/python3-host-build.mk
29+
30+
define Package/python3-idna
31+
SECTION:=lang
32+
CATEGORY:=Languages
33+
SUBMENU:=Python
34+
TITLE:=IDNA library
35+
URL:=https://github.com/kjd/idna
36+
DEPENDS:= \
37+
+python3-light \
38+
+python3-codecs
39+
endef
40+
41+
define Package/python3-idna/description
42+
A library to support the Internationalised Domain Names in Applications
43+
(IDNA) protocol as specified in RFC 5891. This version of the protocol
44+
is often referred to as "IDNA2008" and can produce different results
45+
from the earlier standard from 2003.
46+
endef
47+
48+
$(eval $(call Py3Package,python3-idna))
49+
$(eval $(call BuildPackage,python3-idna))
50+
$(eval $(call BuildPackage,python3-idna-src))
51+
$(eval $(call HostBuild))

backports/python-pyserial/Makefile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#
2+
# Copyright (C) 2015 OpenWrt.org
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
#
7+
8+
include $(TOPDIR)/rules.mk
9+
10+
PKG_NAME:=python-pyserial
11+
PKG_VERSION:=3.5
12+
PKG_RELEASE:=2
13+
14+
PYPI_NAME:=pyserial
15+
PKG_HASH:=3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb
16+
17+
PKG_LICENSE:=BSD-3-Clause
18+
PKG_LICENSE_FILES:=LICENSE.txt
19+
PKG_MAINTAINER:=Micke Prag <[email protected]>
20+
21+
HOST_BUILD_DEPENDS:=python3/host python-build/host python-installer/host python-wheel/host
22+
23+
include $(TOPDIR)/feeds/packages/lang/python/pypi.mk
24+
include $(INCLUDE_DIR)/package.mk
25+
include $(INCLUDE_DIR)/host-build.mk
26+
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
27+
include $(TOPDIR)/feeds/packages/lang/python/python3-host-build.mk
28+
29+
define Package/python3-pyserial
30+
SECTION:=lang
31+
CATEGORY:=Languages
32+
SUBMENU:=Python
33+
TITLE:=Serial Port Extension
34+
URL:=https://github.com/pyserial/pyserial
35+
DEPENDS:=+python3-light +python3-logging +python3-urllib
36+
endef
37+
38+
define Package/python3-pyserial/description
39+
This module encapsulates the access for the serial port. It provides
40+
backends for Python running on Windows, OSX, Linux, BSD (possibly any
41+
POSIX compliant system) and IronPython. The module named "serial"
42+
automatically selects the appropriate backend.
43+
endef
44+
45+
$(eval $(call Py3Package,python3-pyserial))
46+
$(eval $(call BuildPackage,python3-pyserial))
47+
$(eval $(call BuildPackage,python3-pyserial-src))
48+
$(eval $(call HostBuild))

backports/python-requests/Makefile

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#
2+
# Copyright (C) 2007-2019 OpenWrt.org
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
#
7+
8+
include $(TOPDIR)/rules.mk
9+
10+
PKG_NAME:=python-requests
11+
PKG_VERSION:=2.30.0
12+
PKG_RELEASE:=2
13+
14+
PKG_MAINTAINER:=Josef Schlehofer <[email protected]>, Alexandru Ardelean <[email protected]>
15+
PKG_LICENSE:=Apache-2.0
16+
PKG_LICENSE_FILES:=LICENSE
17+
PKG_CPE_ID:=cpe:/a:python:requests
18+
19+
PYPI_NAME:=requests
20+
PKG_HASH:=239d7d4458afcb28a692cdd298d87542235f4ca8d36d03a15bfc128a6559a2f4
21+
22+
HOST_BUILD_DEPENDS:= \
23+
python-chardet/host \
24+
python-idna/host \
25+
python-urllib3/host \
26+
python-certifi/host
27+
28+
include $(TOPDIR)/feeds/packages/lang/python/pypi.mk
29+
include $(INCLUDE_DIR)/package.mk
30+
include $(INCLUDE_DIR)/host-build.mk
31+
include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk
32+
include $(TOPDIR)/feeds/packages/lang/python/python3-host-build.mk
33+
34+
define Package/python3-requests
35+
SUBMENU:=Python
36+
SECTION:=lang
37+
CATEGORY:=Languages
38+
TITLE:=HTTP library for Python
39+
URL:=https://requests.readthedocs.io
40+
DEPENDS:= \
41+
+python3-light \
42+
+python3-chardet \
43+
+python3-idna \
44+
+python3-urllib3 \
45+
+python3-certifi
46+
endef
47+
48+
define Package/python3-requests/description
49+
Requests is the only Non-GMO HTTP library for Python, safe for human consumption
50+
endef
51+
52+
$(eval $(call Py3Package,python3-requests))
53+
$(eval $(call BuildPackage,python3-requests))
54+
$(eval $(call BuildPackage,python3-requests-src))
55+
$(eval $(call HostBuild))

depends/libyder/Makefile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#
2+
# This is free software, licensed under the GNU General Public License v2.
3+
# See /LICENSE for more information.
4+
#
5+
6+
include $(TOPDIR)/rules.mk
7+
8+
PKG_NAME:=libyder
9+
PKG_VERSION:=1.4.17
10+
PKG_RELEASE:=1
11+
12+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13+
PKG_SOURCE_URL:=https://codeload.github.com/babelouest/yder/tar.gz/v$(PKG_VERSION)?
14+
PKG_HASH:=fb006e4e2a3e2f992985776808da92cbd87ed386dd3125984025036fdc10bfdf
15+
16+
PKG_MAINTAINER:=Austin Lane <[email protected]>
17+
PKG_LICENSE:=LGPL-2.1-or-later
18+
PKG_LICENSE_FILES:=LICENSE
19+
20+
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/yder-$(PKG_VERSION)
21+
CMAKE_INSTALL:=1
22+
23+
include $(INCLUDE_DIR)/package.mk
24+
include $(INCLUDE_DIR)/cmake.mk
25+
26+
define Package/libyder
27+
SECTION:=libs
28+
CATEGORY:=Libraries
29+
TITLE:=Logging library written in C.
30+
URL:=https://github.com/babelouest/yder
31+
DEPENDS:=+liborcania
32+
endef
33+
34+
CMAKE_OPTIONS += \
35+
-DWITH_JOURNALD=off \
36+
-DCMAKE_BUILD_TYPE=Release
37+
38+
define Package/libyder/description
39+
Simple and easy to use logging library.
40+
You can log messages to the console, a file, Syslog, journald or a callback function.
41+
endef
42+
43+
define Package/libyder/install
44+
$(INSTALL_DIR) $(1)/usr/lib
45+
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libyder.so* $(1)/usr/lib/
46+
endef
47+
48+
$(eval $(call BuildPackage,libyder))

0 commit comments

Comments
 (0)