Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (42 sloc) 1.79 KB
# Maintainer: ArchStrike <team@archstrike.org>
# Contributor: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
buildarch=1
pkgname=yasat
pkgver=848
pkgrel=4
pkgdesc='A simple stupid audit tool'
arch=('any')
license=('GPL3')
depends=('bash')
backup=("etc/${pkgname}/${pkgname}.conf")
groups=('archstrike')
url='http://yasat.sourceforge.net'
source=(
"http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
"${pkgname}.conf"
)
sha512sums=('0bc0e8e1068bee05242b5c7a7cdc8ca976503f696aef2889870ef872546021d0956489cf8d5b304a36be412cf8e5c8cbf4be5aa1cce5df008c5185188e5a99dc'
'5e5403dad904128782216431c8c55a59fac02a8bb0b4df92649e1dc89e679a0648cbaaf593cee91fbdb60dbfcd62ecfa020d65894b4ad45d7e541b40cf854d11')
package() {
# default/sample config file
install -Dm755 ${pkgname}.conf "${pkgdir}"/etc/${pkgname}/${pkgname}.conf
cd ${pkgname} || exit
install -Dm755 ${pkgname} "${pkgdir}/usr/bin/${pkgname}"
install -dm755 "${pkgdir}/usr/share/${pkgname}"
# plugins
cp -r plugins "${pkgdir}"/usr/share/${pkgname}/
chmod 755 "${pkgdir}"/usr/share/${pkgname}/plugins
chmod 644 "${pkgdir}"/usr/share/${pkgname}/plugins/*
chmod 755 "${pkgdir}"/usr/share/${pkgname}/plugins/*.test
# common
install -Dm644 ${pkgname}.css "${pkgdir}"/usr/share/${pkgname}/${pkgname}.css
install -m644 common "${pkgdir}"/usr/share/${pkgname}/common
install -m644 osdetection "${pkgdir}"/usr/share/${pkgname}/osdetection
# man pages
install -Dm644 man/${pkgname}.8 "${pkgdir}"/usr/share/man/man8/${pkgname}.8
# the script attempts to build this file dynamically at run time.
# this means this file needs loose permissions if you want to run
# yasat as a non-root user.
touch "${pkgdir}"/usr/share/${pkgname}/${pkgname}.advices
chmod 644 "${pkgdir}"/usr/share/${pkgname}/${pkgname}.advices
}
You can’t perform that action at this time.