]> git.99rst.org Git - openwrt-packages.git/commitdiff
checksec: remove package
authorJosef Schlehofer <redacted>
Thu, 6 Aug 2026 15:07:54 +0000 (17:07 +0200)
committerAlexandru Ardelean <redacted>
Fri, 7 Aug 2026 07:12:06 +0000 (10:12 +0300)
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 <redacted>
utils/checksec/Makefile [deleted file]
utils/checksec/test-version.sh [deleted file]
utils/checksec/test.sh [deleted file]

diff --git a/utils/checksec/Makefile b/utils/checksec/Makefile
deleted file mode 100644 (file)
index 6b1291a..0000000
+++ /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 <ardeleanalex@gmail.com>
-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 (executable)
index f566331..0000000
+++ /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 (file)
index 2f00cb9..0000000
+++ /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
git clone https://git.99rst.org/PROJECT