[arch-commits] Commit in checksec/trunk (PKGBUILD)
Levente Polyak
anthraxx at archlinux.org
Tue Dec 20 17:04:27 UTC 2016
Date: Tuesday, December 20, 2016 @ 17:04:26
Author: anthraxx
Revision: 200507
upgpkg: checksec 1.7.5-1
Modified:
checksec/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-12-20 14:08:36 UTC (rev 200506)
+++ PKGBUILD 2016-12-20 17:04:26 UTC (rev 200507)
@@ -1,20 +1,31 @@
-# $Id$
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Daniel Micay <danielmicay at gmail.com>
# Contributor: Lubomir Krajcovic <lubomir.krajcovic(AT)gmail(DOT)com>
pkgname=checksec
-pkgver=1.5
-pkgrel=4
+_pkgname=checksec.sh
+pkgver=1.7.5
+pkgrel=1
pkgdesc='Tool designed to test which standard Linux OS and PaX security features are being used'
-url='http://www.trapkit.de/tools/checksec.html'
+url='https://github.com/slimm609/checksec.sh'
arch=('any')
license=('BSD')
-depends=(bash)
-source=('http://www.trapkit.de/tools/checksec.sh')
-md5sums=('075996be339ab16ad7b94d6de3ee07bd')
+depends=('bash' 'binutils' 'procps-ng')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/slimm609/checksec.sh/archive/${pkgver}.tar.gz)
+sha512sums=('7269fb3628907f6fe4e8b720d2dcbd5bf8586e1821bd758533dff6255c6a52be9146b58f60abea798ee92471c3d5ad9e867fa7ad4b8e5ea2d8aa03d5a3b83098')
+prepare() {
+ cd ${_pkgname}-${pkgver}
+ sed -r 's|(pkg_release=)false|\1true|' -i checksec
+}
+
package() {
- 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"
+ cd ${_pkgname}-${pkgver}
+ install -Dm 755 checksec "${pkgdir}/usr/bin/checksec"
+ install -Dm 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 ChangeLog README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 extras/man/checksec.7 -t "${pkgdir}/usr/share/man/man7"
+ install -Dm 644 extras/zsh/_checksec -t "${pkgdir}/usr/share/zsh/site-functions"
}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list