You are not logged in.

#1 2016-10-31 14:40:36

osnat
Member
Registered: 2016-10-31
Posts: 1

[Solved] Modifying checksec package

Hi, I found a proposition to modify checksec package. As arch maintainer doesn't decided about it yet I wanted to do it myself. The whole point is to change upstream repo to new one. My problem is that in the old repo there is only one file to install and in the new one there are several more and I don't know where I should put them exactly. The original pkgbuild is here . I modified first part as this:

pkgname=checksec
pkgver=1.7.5
pkgrel=1
pkgdesc='Tool designed to test which standard Linux OS and PaX security features are being used'
url='https://github.com/slimm609/checksec.sh'
arch=('any')
license=('BSD')
depends=(bash)
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/slimm609/checksec.sh/archive/$pkgver.tar.gz)
md5sums=('fd722cc34fa59402719b305d3c6d2bd2')

I need help for package() part. Thx for help.

EDIT:

In case of anyone is interested here is working PKGBUILD:

pkgname=checksec
_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='https://github.com/slimm609/checksec.sh'
arch=('any')
license=('BSD')
depends=(bash)
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/slimm609/checksec.sh/archive/$pkgver.tar.gz)
sha256sums=('7f863279edade48418adf1a4ed1899ff46c45aa7e148229369f15f8f5ca54e9e')

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  
  install -Dm755 checksec "${pkgdir}/usr/bin/checksec"
  install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -Dm644 extras/zsh/_checksec "${pkgdir}/usr/share/zsh/site-functions/_checksec"
  install -Dm644 extras/man/checksec.7 "${pkgdir}/usr/share/man/man7/checksec.7"
}

Last edited by osnat (2016-11-10 17:00:49)

Offline

Board footer

Powered by FluxBB