diff options
author | PÁLI Gábor János <pali.gabor@gmail.com> | 2024-05-17 08:32:54 +0000 |
---|---|---|
committer | Ashish SHUKLA <ashish@FreeBSD.org> | 2024-05-17 12:11:55 +0000 |
commit | d7d33e5375dddf6c6d0ebfce793ab8f14ceeeba8 (patch) | |
tree | 5e57ace46a5ea33a2e6d6aadbbd576cf2ce377c4 | |
parent | 32cd3bb8c9b925bb628b15166a23a6838528887c (diff) | |
download | ports-d7d33e5375dddf6c6d0ebfce793ab8f14ceeeba8.tar.gz ports-d7d33e5375dddf6c6d0ebfce793ab8f14ceeeba8.zip |
net/wifibox-alpine: Move away from the use of Alpine Linux mirrors
Alpine Linux packages are maintained in a rolling fashion and
periodic snapshots seem to be gone recently. Store the specific
APK versions of dependencies on the project's GitHub to unbreak the
build when optional packages (e.g. mDNSResponder) are configured to
use and which are not cached by the FreeBSD distfile mirrors.
While here, start mirroring the root file system tarball in use,
just to become completely independent from the Alpine Linux CDN.
(cherry picked from commit dd822b4dce4a8325b2b000da4682f313d73b26f6)
-rw-r--r-- | net/wifibox-alpine/Makefile | 37 |
1 files changed, 4 insertions, 33 deletions
diff --git a/net/wifibox-alpine/Makefile b/net/wifibox-alpine/Makefile index 41cdfe960d26..4a6bf957fd6e 100644 --- a/net/wifibox-alpine/Makefile +++ b/net/wifibox-alpine/Makefile @@ -95,31 +95,15 @@ GH_ACCOUNT= pgj GH_PROJECT= freebsd-wifibox-alpine:scripts GH_TAGNAME= 3ce5b1faf48ef4b9d52c38bf518aa612242fba3f:scripts -ALPINE_VERSION= 3.19.1 -ALPINE_DATE= 2024.03.23 - +ALPINE_VERSION= 3.19.1 LINUX_LTS_VERSION= 6.6.22-r1 LINUX_EDGE_VERSION= 6.8.1-r1 -_ALPINE_VER= ${ALPINE_VERSION:C@([0-9]+)\.([0-9]+).*@\1.\2@} -_ALPINE_SITE1= https://dl-cdn.alpinelinux.org/alpine/v${_ALPINE_VER} - -_ALPINE_BASE= https://mirror.fel.cvut.cz - -.if defined(ALPINE_DATE) -_SNAPSHOT= ${ALPINE_DATE:S/./-/g} -_ALPINE_SITE2= ${_ALPINE_BASE}/alpine/snapshots/${_SNAPSHOT}/v${_ALPINE_VER} -.else -_ALPINE_SITE2= ${_ALPINE_BASE}/alpine/v${_ALPINE_VER} -.endif - _LINUXFW_SITE= https://git.kernel.org/pub/scm/linux/kernel/git/firmware/ _LINUXFW_TAG= 20240312 _LINUXFW= linux-firmware-${_LINUXFW_TAG} -MASTER_SITES+= ${_ALPINE_SITE1}/releases/x86_64/:rootfs \ - ${_ALPINE_SITE2}/main/x86_64/:main_packages \ - ${_ALPINE_SITE2}/community/x86_64/:community_packages \ +MASTER_SITES+= ${_GITHUB_SITE}/upstream/:upstream \ ${_GITHUB_SITE}/packages/:custom_packages \ ${_LINUXFW_SITE}/linux-firmware.git/snapshot/:linux_firmware \ https://sources.openwrt.org/:openwrt \ @@ -287,7 +271,7 @@ PORT_OPTIONS+= FW_${flavor:tu} .endfor DIST_SUBDIR= wifibox-alpine -DISTFILES+= ${_MINIROOTFS}:rootfs +DISTFILES+= ${_MINIROOTFS}:upstream LFW_ATH10K_FILES= ath10k LFW_ATH11K_FILES= ath11k @@ -381,10 +365,8 @@ DISTFILES+= ${_LINUXFWFILE}:linux_firmware .for package in ${_PACKAGES} .if ${package:M*\:wifibox} DISTFILES+= ${package:C@^([^:]*):wifibox$@\1@}.apk:custom_packages -.elif ${package:M*\:community} -DISTFILES+= ${package:C@^([^:]*):community$@\1@}.apk:community_packages .else -DISTFILES+= ${package:C@^([^:]*):wifibox$@\1@}.apk:main_packages +DISTFILES+= ${package:C@^([^:]*):wifibox$@\1@}.apk:upstream .endif _APK_FILES+= ${_DISTDIR}/${package:C@^([^:]*):.*$@\1@}.apk .endfor @@ -492,15 +474,4 @@ MAKE_ARGS+= VERSION=${PORTVERSION} \ MAKE_ARGS+= FIRMWARE_FILES=${FIRMWARE_FILES} .endif -.if make(check-alpine-packages) -_APK_FETCH!= ${MAKE} fetch-urlall-list | ${GREP} apk | ${GREP} -v distcache -.endif - -check-alpine-packages: -.for apk in ${_APK_FETCH} - @${ECHO} -n "${apk:C@^.*/([0-9A-za-z\._-]*)@\1@} (${apk})..." - @${FETCH_CMD} -s ${apk} > /dev/null - @${ECHO} "OK" -.endfor - .include <bsd.port.mk> |