mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
added community/hardening-wrapper
This commit is contained in:
parent
ee9d46af23
commit
73b26f2565
7 changed files with 65 additions and 0 deletions
34
community/hardening-wrapper/PKGBUILD
Normal file
34
community/hardening-wrapper/PKGBUILD
Normal file
|
@ -0,0 +1,34 @@
|
|||
# $Id$
|
||||
# Maintainer: Daniel Micay <danielmicay@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - added ARM conf files
|
||||
|
||||
pkgname=hardening-wrapper
|
||||
pkgver=8
|
||||
pkgrel=1
|
||||
pkgdesc='Wrapper scripts for building hardened executables by default'
|
||||
arch=(i686 x86_64)
|
||||
url='https://github.com/thestinger/hardening-wrapper'
|
||||
license=('MIT')
|
||||
depends=(bash)
|
||||
backup=(etc/hardening-wrapper.conf)
|
||||
source=("https://github.com/thestinger/hardening-wrapper/archive/$pkgver.tar.gz"
|
||||
path.sh hardening-wrapper-i686.conf hardening-wrapper-x86_64.conf
|
||||
hardening-wrapper-arm{,v6h,v7h}.conf)
|
||||
sha1sums=('6ed61cb69f5f756cb45e5b894fce8abdfa35f99c'
|
||||
'1e5f6d9931f01b26bb4b6fbb839e21d34d534cdc'
|
||||
'4d7a8f4818c531ce7002e860e0654b42b6147037'
|
||||
'50db33c08439393b673c23d542e274beef44fbdd'
|
||||
'50db33c08439393b673c23d542e274beef44fbdd'
|
||||
'50db33c08439393b673c23d542e274beef44fbdd'
|
||||
'50db33c08439393b673c23d542e274beef44fbdd')
|
||||
|
||||
package() {
|
||||
install -Dm644 hardening-wrapper-${CARCH}.conf "$pkgdir/etc/hardening-wrapper.conf"
|
||||
install -Dm644 path.sh "$pkgdir/etc/profile.d/hardening-wrapper.sh"
|
||||
|
||||
cd $pkgname-$pkgver
|
||||
make install DESTDIR="$pkgdir" PREFIX=/usr
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
6
community/hardening-wrapper/hardening-wrapper-arm.conf
Normal file
6
community/hardening-wrapper/hardening-wrapper-arm.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
HARDENING_BINDNOW=0
|
||||
HARDENING_PIE=1
|
||||
HARDENING_FORTIFY=2
|
||||
HARDENING_RELRO=1
|
||||
HARDENING_STACK_CHECK=0
|
||||
HARDENING_STACK_PROTECTOR=2
|
|
@ -0,0 +1,6 @@
|
|||
HARDENING_BINDNOW=0
|
||||
HARDENING_PIE=1
|
||||
HARDENING_FORTIFY=2
|
||||
HARDENING_RELRO=1
|
||||
HARDENING_STACK_CHECK=0
|
||||
HARDENING_STACK_PROTECTOR=2
|
|
@ -0,0 +1,6 @@
|
|||
HARDENING_BINDNOW=0
|
||||
HARDENING_PIE=1
|
||||
HARDENING_FORTIFY=2
|
||||
HARDENING_RELRO=1
|
||||
HARDENING_STACK_CHECK=0
|
||||
HARDENING_STACK_PROTECTOR=2
|
6
community/hardening-wrapper/hardening-wrapper-i686.conf
Normal file
6
community/hardening-wrapper/hardening-wrapper-i686.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
HARDENING_BINDNOW=0
|
||||
HARDENING_PIE=0
|
||||
HARDENING_FORTIFY=2
|
||||
HARDENING_RELRO=1
|
||||
HARDENING_STACK_CHECK=0
|
||||
HARDENING_STACK_PROTECTOR=2
|
|
@ -0,0 +1,6 @@
|
|||
HARDENING_BINDNOW=0
|
||||
HARDENING_PIE=1
|
||||
HARDENING_FORTIFY=2
|
||||
HARDENING_RELRO=1
|
||||
HARDENING_STACK_CHECK=0
|
||||
HARDENING_STACK_PROTECTOR=2
|
1
community/hardening-wrapper/path.sh
Normal file
1
community/hardening-wrapper/path.sh
Normal file
|
@ -0,0 +1 @@
|
|||
export PATH="/usr/lib/hardening-wrapper/bin:$PATH"
|
Loading…
Reference in a new issue