mirror of
https://github.com/openwrt/packages.git
synced 2026-10-12 05:57:04 +04:00
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 <pepe.schlehofer@gmail.com>
This commit is contained in:
1 parent
91a6967643
commit
6de18286ee
3 files changed
-68
No files matched your search
@@ -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))
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user