From: Josef Schlehofer Date: Thu, 6 Aug 2026 15:07:54 +0000 (+0200) Subject: checksec: remove package X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=6de18286ee5b47352cc9d49a7a6097ec7c9da9a6;p=openwrt-packages.git checksec: remove package The package ships checksec.bash, which upstream has discontinued. When asked about the version the script reports, upstream answered that the bash implementation is legacy, will be removed entirely in an upcoming release and has been rewritten in Go: https://github.com/slimm609/checksec.sh/issues/352 Signed-off-by: Josef Schlehofer --- diff --git a/utils/checksec/Makefile b/utils/checksec/Makefile deleted file mode 100644 index 6b1291ac5..000000000 --- a/utils/checksec/Makefile +++ /dev/null @@ -1,44 +0,0 @@ -# -# Copyright (C) 2020 CZ.NIC z.s.p.o. (https://www.nic.cz/) -# -# This is free software, licensed under the GNU General Public License v2. -# See /LICENSE for more information. -# -include $(TOPDIR)/rules.mk - -PKG_NAME:=checksec -PKG_VERSION:=3.2.0 -PKG_RELEASE:=1 - -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz -PKG_SOURCE_URL:=https://github.com/slimm609/checksec.sh/archive/$(PKG_VERSION) -PKG_HASH:=3ea46986821070ed06fef5215b2a83a9076115a865da70874e19f214db2c8d83 - -PKG_MAINTAINER:=Alexandru Ardelean -PKG_LICENSE:=BSD-3-Clause -PKG_LICENSE_FILES:=LICENSE - -include $(INCLUDE_DIR)/package.mk - -define Package/checksec - SECTION:=utils - CATEGORY:=Utilities - URL:=https://github.com/slimm609/checksec.sh - TITLE:=Utility to check PIE, RELRO, ASLR etc. - DEPENDS:=+bash +file +binutils +procps-ng +procps-ng-sysctl +openssl-util +coreutils +coreutils-stat -endef - -define Package/checksec/description - Checksec is a bash script to check the properties - of executables (like PIE, RELRO, PaX, Canaries, ASLR, Fortify Source). -endef - -Build/Compile:=: -Build/Install:=: - -define Package/checksec/install - $(INSTALL_DIR) $(1)/usr/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/checksec.bash $(1)/usr/bin/checksec -endef - -$(eval $(call BuildPackage,checksec)) diff --git a/utils/checksec/test-version.sh b/utils/checksec/test-version.sh deleted file mode 100755 index f566331a2..000000000 --- a/utils/checksec/test-version.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -# shellcheck shell=busybox - -# checksec reported version doesn't match package version as of 3.1.0 - -case "$PKG_NAME" in -checksec) - checksec --version 2>&1 | grep -qF "2.7.1" - ;; - -*) - echo "Untested package: $PKG_NAME" >&2 - exit 1 - ;; -esac diff --git a/utils/checksec/test.sh b/utils/checksec/test.sh deleted file mode 100644 index 2f00cb98e..000000000 --- a/utils/checksec/test.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -case "$1" in - checksec) - # Analyze a known binary; output must include the binary path - checksec --file=/usr/bin/checksec 2>&1 | grep -qF "checksec" - ;; -esac