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 Jun 27, 2023
2 parents a9d8193 + 8939b43 commit 2288404
Show file tree
Hide file tree
Showing 12 changed files with 201 additions and 135 deletions.
15 changes: 12 additions & 3 deletions devel/gitlab-runner/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=gitlab-runner
PKG_VERSION:=14.3.2
PKG_RELEASE:=2
PKG_VERSION:=16.0.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://gitlab.com/gitlab-org/gitlab-runner/-/archive/v$(PKG_VERSION)
PKG_HASH:=f67aeae05349f5c612ea5d8772407237caf4da586c0365e3c7edceec6b853d8c
PKG_HASH:=f874b9babe21ae04007abfc901e9ad4c0c1ec22095d4de3e22e176914683cb5d

PKG_MAINTAINER:=Jan Pavlinec <[email protected]>
PKG_LICENSE:=MIT
Expand All @@ -23,7 +23,9 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/gitlab-runner-v$(PKG_VERSION)
PKG_BUILD_DEPENDS:=golang/host
PKG_BUILD_PARALLEL:=1
PKG_BUILD_FLAGS:=no-mips16

GO_PKG:=gitlab.com/gitlab-org/gitlab-runner
GO_PKG_LDFLAGS_X:=$(GO_PKG)/common.VERSION=$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include ../../lang/golang/golang-package.mk
Expand All @@ -41,5 +43,12 @@ define Package/gitlab-runner/description
GitLab CI/CD to run jobs in a pipeline.
endef

define Package/gitlab-runner/install
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gitlab-runner $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gitlab-runner-helper $(1)/usr/bin/
endef

$(eval $(call GoBinPackage,gitlab-runner))
$(eval $(call BuildPackage,gitlab-runner))
2 changes: 1 addition & 1 deletion devel/gitlab-runner/patches/010-test.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- a/common/buildtest/masking.go
+++ b/common/buildtest/masking.go
@@ -45,7 +45,7 @@ func RunBuildWithMasking(t *testing.T, c
@@ -55,7 +55,7 @@ func RunBuildWithMasking(t *testing.T, c

buf.Finish()

Expand Down
3 changes: 3 additions & 0 deletions devel/gitlab-runner/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

gitlab-runner --version | grep "$PKG_VERSION"
4 changes: 3 additions & 1 deletion lang/python/python-ble2mqtt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=python-ble2mqtt
PKG_VERSION:=0.1.7
PKG_RELEASE:=1
PKG_RELEASE:=2

PYPI_NAME:=ble2mqtt
PKG_HASH:=c57d6823f1133ce0b5e0e3d9f7d2b3fd58d2ad64c0cc86cb3fa180b178999fa6
Expand Down Expand Up @@ -38,6 +38,8 @@ endef
define Py3Package/python3-ble2mqtt/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/ble2mqtt.init $(1)/etc/init.d/ble2mqtt
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
endef

$(eval $(call Py3Package,python3-ble2mqtt))
Expand Down
11 changes: 9 additions & 2 deletions libs/c-ares/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=c-ares
PKG_VERSION:=1.18.1
PKG_VERSION:=1.19.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://c-ares.org/download
PKG_HASH:=1a7d52a8a84a9fbffb1be9133c0f6e17217d91ea5a6fa61f6b4729cda78ebbcf
PKG_HASH:=321700399b72ed0e037d0074c629e7741f6b2ec2dda92956abe3e9671d3e268e

PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE.md
Expand Down Expand Up @@ -48,6 +48,13 @@ CMAKE_OPTIONS += \
-DCARES_BUILD_TESTS=OFF \
-DCARES_BUILD_TOOLS=OFF

define Build/InstallDev
$(call Build/InstallDev/cmake,$(1))
$(SED) 's,/usr/bin,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libcares.pc
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/libcares.pc
$(SED) 's,/usr/lib,$$$${prefix}/lib,g' $(1)/usr/lib/pkgconfig/libcares.pc
endef

define Package/libcares/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcares.so.* $(1)/usr/lib/
Expand Down
2 changes: 1 addition & 1 deletion net/banip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=banip
PKG_VERSION:=0.8.6
PKG_VERSION:=0.8.8
PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0-or-later
PKG_MAINTAINER:=Dirk Brenken <[email protected]>
Expand Down
113 changes: 65 additions & 48 deletions net/banip/files/README.md

Large diffs are not rendered by default.

151 changes: 94 additions & 57 deletions net/banip/files/banip-functions.sh

Large diffs are not rendered by default.

23 changes: 7 additions & 16 deletions net/banip/files/banip-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ fi

# init nft namespace
#
if [ "${ban_action}" != "reload" ] || ! "${ban_nftcmd}" -t list set inet banIP allowlistvMAC >/dev/null 2>&1; then
if [ "${ban_action}" != "reload" ] || ! "${ban_nftcmd}" -t list set inet banIP allowlistv4MAC >/dev/null 2>&1; then
if f_nftinit "${ban_tmpfile}".init.nft; then
f_log "info" "initialize nft namespace"
else
Expand All @@ -56,31 +56,22 @@ fi
# handle downloads
#
f_log "info" "start banIP download processes"
if [ "${ban_allowlistonly}" = "1" ]; then
ban_feed=""
else
f_getfeed
[ "${ban_deduplicate}" = "1" ] && printf "\n" >"${ban_tmpfile}.deduplicate"
fi
[ "${ban_allowlistonly}" = "1" ] && ban_feed="" || f_getfeed
[ "${ban_deduplicate}" = "1" ] && printf "\n" >"${ban_tmpfile}.deduplicate"

cnt="1"
for feed in allowlist ${ban_feed} blocklist; do
# local feeds
# local feeds (sequential processing)
#
if [ "${feed}" = "allowlist" ] || [ "${feed}" = "blocklist" ]; then
for proto in MAC 4 6; do
for proto in 4MAC 6MAC 4 6; do
[ "${feed}" = "blocklist" ] && wait
(f_down "${feed}" "${proto}") &
[ "${feed}" = "blocklist" ] || { [ "${feed}" = "allowlist" ] && [ "${proto}" = "MAC" ]; } && wait
hold="$((cnt % ban_cores))"
[ "${hold}" = "0" ] && wait
cnt="$((cnt + 1))"
f_down "${feed}" "${proto}"
done
wait
continue
fi

# external feeds
# external feeds (parallel processing on multicore hardware)
#
if ! json_select "${feed}" >/dev/null 2>&1; then
f_log "info" "remove unknown feed '${feed}'"
Expand Down
6 changes: 3 additions & 3 deletions net/haproxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
include $(TOPDIR)/rules.mk

PKG_NAME:=haproxy
PKG_VERSION:=2.6.13
PKG_VERSION:=2.8.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://www.haproxy.org/download/2.6/src
PKG_HASH:=d69ff5233dbca657132ef280d111222ec1e33f5be1c1937d4e9ff516f63f5243
PKG_SOURCE_URL:=https://www.haproxy.org/download/2.8/src
PKG_HASH:=61cdafb5db7e9174d0757b8e4bcde938352306fb7cc8ff2b5f55c26dd48a6cf7

PKG_MAINTAINER:=Thomas Heil <[email protected]>, \
Christian Lachner <[email protected]>
Expand Down
4 changes: 2 additions & 2 deletions net/haproxy/get-latest-patches.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

CLONEURL=https://git.haproxy.org/git/haproxy-2.6.git
BASE_TAG=v2.6.13
CLONEURL=https://git.haproxy.org/git/haproxy-2.8.git
BASE_TAG=v2.8.0
TMP_REPODIR=tmprepo
PATCHESDIR=patches

Expand Down
2 changes: 1 addition & 1 deletion net/vsftpd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=vsftpd
PKG_VERSION:=3.0.5
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://security.appspot.com/downloads/
Expand Down

0 comments on commit 2288404

Please sign in to comment.