Skip to content

Commit 7a991c8

Browse files
committed
treewide: use HTTPS for PKG_SOURCE_URL where possible
Switch http:// (and redundant ftp://) PKG_SOURCE_URL entries to https:// across tools/ and package/. PKG_HASH alone does not protect against an attacker tampering with insecure downloads when a maintainer regenerates the hash via `make ... FIXUP=1`: HTTPS authenticates the upstream so the captured hash reflects real upstream content. In-place http -> https (HTTPS reachability verified per host): - tools/elftosb, tools/lzop, tools/liblzo, tools/mpfr, tools/dosfstools, tools/libressl, tools/xz - package/libs/mpfr, package/libs/libmnl, package/libs/libnfnetlink Replaced with @openwrt (HTTPS-only mirror) where the upstream HTTPS host is dead or has a broken certificate: - package/libs/popt (ftp.rpm.org cert mismatch) - package/firmware/ixp4xx-microcode (was http://downloads.openwrt.org) - package/boot/imx-bootlets (trabant.uid0.hu cert mismatch) - package/boot/kobs-ng (freescale.com URL is dead, redirects to nxp.com root) Dropped redundant ftp://ftp.denx.de fallback (https://ftp.denx.de is already listed): - package/boot/uboot-tools, tools/mkimage Signed-off-by: Paul Spooren <mail@aparcar.org>
1 parent e591ba4 commit 7a991c8

16 files changed

Lines changed: 18 additions & 20 deletions

File tree

package/boot/imx-bootlets/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PKG_NAME:=imx-bootlets
1010
PKG_VERSION:=10.12.01
1111

1212
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13-
PKG_SOURCE_URL:=http://trabant.uid0.hu/openwrt/
13+
PKG_SOURCE_URL:=@OPENWRT
1414
PKG_HASH:=f7c98cbc41e15184cad61c56115e840e34ac3ebb4a162fadeea905e5038fd65b
1515

1616
PKG_FLAGS:=nonshared

package/boot/kobs-ng/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PKG_VERSION:=5.4
1212
PKG_RELEASE:=1
1313

1414
PKG_SOURCE:=imx-kobs-$(PKG_VERSION).tar.gz
15-
PKG_SOURCE_URL:=http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/
15+
PKG_SOURCE_URL:=@OPENWRT
1616
PKG_HASH:=85171b46068ac47c42fedb8104167bf9afd33dd9527ed127e1ca2eb29d7a86bf
1717
PKG_BUILD_DIR:=$(BUILD_DIR)/imx-kobs-$(PKG_VERSION)
1818

package/boot/uboot-tools/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ PKG_RELEASE:=1
77
PKG_SOURCE:=$(PKG_DISTNAME)-$(PKG_VERSION).tar.bz2
88
PKG_SOURCE_URL:= \
99
https://ftp.denx.de/pub/u-boot \
10-
https://mirror.cyberbits.eu/u-boot \
11-
ftp://ftp.denx.de/pub/u-boot
10+
https://mirror.cyberbits.eu/u-boot
1211
PKG_URL:=https://docs.u-boot.org/en/latest/
1312
PKG_HASH:=ac7c04b8b7004923b00a4e5d6699c5df4d21233bac9fda690d8cfbc209fff2fd
1413
PKG_SOURCE_SUBDIR:=$(PKG_DISTNAME)-$(PKG_VERSION)

package/firmware/ixp4xx-microcode/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ PKG_VERSION:=2.4
99
PKG_RELEASE:=1
1010

1111
PKG_SOURCE:=IPL_ixp400NpeLibraryWithCrypto-2_4.zip
12-
PKG_SOURCE_URL:=http://downloads.openwrt.org/sources
12+
PKG_SOURCE_URL:=@OPENWRT
1313
PKG_HASH:=1b1170d0657847248589d946048c0aeaa9cd671966fc5bec5933283309485eaa
1414

1515
PKG_FLAGS:=nonshared

package/libs/libmnl/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ PKG_RELEASE:=1
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
1515
PKG_SOURCE_URL:= \
16-
http://www.netfilter.org/projects/libmnl/files \
17-
ftp://ftp.netfilter.org/pub/libmnl
16+
https://www.netfilter.org/projects/libmnl/files \
17+
https://ftp.netfilter.org/pub/libmnl
1818
PKG_HASH:=274b9b919ef3152bfb3da3a13c950dd60d6e2bcd54230ffeca298d03b40d0525
1919

2020
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>

package/libs/libnfnetlink/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ PKG_RELEASE:=1
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
1515
PKG_SOURCE_URL:= \
16-
http://www.netfilter.org/projects/libnfnetlink/files/ \
17-
ftp://ftp.netfilter.org/pub/libnfnetlink/
16+
https://www.netfilter.org/projects/libnfnetlink/files/ \
17+
https://ftp.netfilter.org/pub/libnfnetlink/
1818
PKG_HASH:=b064c7c3d426efb4786e60a8e6859b82ee2f2c5e49ffeea640cfe4fe33cbc376
1919
PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
2020
PKG_LICENSE:=GPL-2.0+

package/libs/mpfr/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PKG_NAME:=mpfr
1111
PKG_VERSION:=4.2.2
1212
PKG_RELEASE:=1
1313

14-
PKG_SOURCE_URL:=@GNU/mpfr http://www.mpfr.org/mpfr-$(PKG_VERSION)
14+
PKG_SOURCE_URL:=@GNU/mpfr https://www.mpfr.org/mpfr-$(PKG_VERSION)
1515
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
1616
PKG_HASH:=b67ba0383ef7e8a8563734e2e889ef5ec3c3b898a01d00fa0a6869ad81c6ce01
1717

package/libs/popt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ PKG_VERSION:=1.19
1212
PKG_RELEASE:=1
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15-
PKG_SOURCE_URL:=http://ftp.rpm.org/popt/releases/popt-1.x/
15+
PKG_SOURCE_URL:=@OPENWRT
1616
PKG_HASH:=c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9
1717
PKG_LICENSE:=MIT
1818
PKG_CPE_ID:=cpe:/a:popt_project:popt

tools/dosfstools/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ PKG_VERSION:=4.2
1313

1414
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1515
PKG_SOURCE_URL:=https://github.com/dosfstools/dosfstools/releases/download/v$(PKG_VERSION)/ \
16-
http://fossies.org/linux/misc
16+
https://fossies.org/linux/misc
1717
PKG_HASH:=64926eebf90092dca21b14259a5301b7b98e7b1943e8a201c7d726084809b527
1818

1919
HOST_FIXUP:=autoreconf

tools/elftosb/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PKG_NAME:=elftosb
1010
PKG_VERSION:=10.12.01
1111

1212
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13-
PKG_SOURCE_URL:=http://repository.timesys.com/buildsources/e/elftosb/elftosb-10.12.01/
13+
PKG_SOURCE_URL:=https://repository.timesys.com/buildsources/e/elftosb/elftosb-10.12.01/
1414
PKG_HASH:=77bb6981620f7575b87d136d94c7daa88dd09195959cc75fc18b138369ecd42b
1515

1616
include $(INCLUDE_DIR)/host-build.mk

0 commit comments

Comments
 (0)