X-Original-To: alpine-aports@lists.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 9E8FCDC03C0 for ; Sun, 18 Jan 2015 23:51:45 +0000 (UTC) Received: by mail-pa0-f52.google.com with SMTP id kx10so4406978pab.11 for ; Sun, 18 Jan 2015 15:51:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=4yn9mYdHJ4r6o+I3a+Sug4divvWbtKYsgynHBWxiaX0=; b=YZ6D1oBK/+UeKqdqy1LT6/Fw1Z0+9p/ZOdZEMTfXuzktsn5eL/FfMKU3B52XfcrzFF /tdWPUfdKW/26LvdRCWNkWKWtXcu3Nz0MsyKWsddefH2EhLpk0Y94RPk7CPlCzYi+6Co nWdLWWhNL7bbTXnLJWa0RUMJhwReg/KkmA+mKlXkmN2VIYyNHutEhfR8waJIyIs5Zaw4 h35c3d2Dl0UZCs5Rrl8y46bZKSnNtIiQccCuoWtJSbVlZyyNw1Zl/RIYup9kh6avf8DO LQ/Ox9+dxAWB8+fRT8MdTtM43XJ7jSJfPWB1QbkoDn2XmQfUzJUc41h5H8PvAbObnphI Rt+w== X-Received: by 10.68.189.105 with SMTP id gh9mr39369118pbc.142.1421625104619; Sun, 18 Jan 2015 15:51:44 -0800 (PST) Received: from localhost ([74.82.134.59]) by mx.google.com with ESMTPSA id gi3sm9854520pbc.83.2015.01.18.15.51.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Jan 2015 15:51:43 -0800 (PST) From: systmkor To: alpine-aports@lists.alpinelinux.org Cc: systmkor@gmail.com Subject: [alpine-aports] [PATCH] testing/checksec: new aport Date: Sun, 18 Jan 2015 15:51:41 -0800 Message-Id: <1421625101-11123-1-git-send-email-systmkor@gmail.com> X-Mailer: git-send-email 2.2.1 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Tool designed to test which standard Linux OS and PaX security features are being used. http://www.trapkit.de/tools/checksec.html --- testing/checksec/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 testing/checksec/APKBUILD diff --git a/testing/checksec/APKBUILD b/testing/checksec/APKBUILD new file mode 100644 index 0000000..9d459f8 --- /dev/null +++ b/testing/checksec/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Orion +# Maintainer: Orion +# Reference +# https://www.archlinux.org/packages/community/any/checksec/ +pkgname=checksec +pkgver=1.5 +pkgrel=0 +pkgdesc="Tool designed to test which standard Linux OS and PaX security features are being used" +url="http://www.trapkit.de/tools/checksec.html" +arch="noarch" +license="BSD" +depends="bash" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://www.trapkit.de/tools/checksec.sh" + +_builddir=$srcdir +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" +} + +package() { + cd "$_builddir" + install -Dm755 checksec.sh "$pkgdir/usr/bin/checksec" + install -d "$pkgdir/usr/share/licenses/$pkgname" + tail -n +3 checksec.sh | head -32 | cut -c3- > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +md5sums="075996be339ab16ad7b94d6de3ee07bd checksec.sh" +sha256sums="77b8a7fd9393d10def665658a41176ee745d5c7969a4a0f43cefcc8a4cd90947 checksec.sh" +sha512sums="de72caf32c9c3b53384b34b16ea86b29dad42ce7c8db5c769166dc43bcfdde91790e99f268d30151512c89550af6e7b19701d9561081cfa92bb7aeacd2306d04 checksec.sh" -- 2.2.1 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---