diff --git a/utils/checksec/Makefile b/utils/checksec/Makefile deleted file mode 100644 index 6b1291ac5c..0000000000 --- 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 f566331a25..0000000000 --- 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 2f00cb98e0..0000000000 --- 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