mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-05-05 01:46:11 +02:00
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>
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
#
|
|
# Copyright (C) 2022 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=lzo
|
|
PKG_VERSION:=2.10
|
|
PKG_RELEASE:=4
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://www.oberhumer.com/opensource/lzo/download/
|
|
PKG_HASH:=c0f892943208266f9b6543b3ae308fab6284c5c90e627931446fb49b4221a072
|
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
PKG_CPE_ID:=cpe:/a:lzo_project:lzo
|
|
|
|
CMAKE_BINARY_SUBDIR:=openwrt-build
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
CMAKE_HOST_OPTIONS += \
|
|
-DENABLE_SHARED=ON \
|
|
-DENABLE_TESTS=OFF \
|
|
-DENABLE_EXAMPLES=OFF \
|
|
-DENABLE_DOCS=ON \
|
|
-DBUILD_TESTING=OFF
|
|
|
|
define Host/Uninstall
|
|
rm -rf $(HOST_BUILD_PREFIX)/include/lzo
|
|
rm -f $(HOST_BUILD_PREFIX)/lib/liblzo2.a
|
|
rm -f $(HOST_BUILD_PREFIX)/lib/liblzo2.so.2.0.0
|
|
rm -f $(HOST_BUILD_PREFIX)/lib/liblzo2.so.2
|
|
rm -f $(HOST_BUILD_PREFIX)/lib/liblzo2.so
|
|
rm -f $(HOST_BUILD_PREFIX)/lib/pkgconfig/lzo2.pc
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|