Created
December 17, 2014 14:24
-
-
Save mzimmerman/1271623d2ced5a771ce5 to your computer and use it in GitHub Desktop.
Nessus 6.1.2 PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Daniel Micay <danielmicay@gmail.com> | |
# Contributer: Pranay Kanwar <pranay.kanwar@gmail.com> | |
# Contributer: Matt Zimmerman <mzimmerman@gmail.com> | |
pkgname=nessus | |
pkgver=6.1.2 | |
pkgrel=1 | |
_bigver=Nessus-$pkgver-fc20.x86_64.rpm | |
pkgdesc="Vulnerability scanner" | |
arch=('x86_64') | |
depends=('openssl' 'gnupg') | |
license=('custom') | |
url="http://www.nessus.org" | |
install=nessus.install | |
# Download the rpm from <http://tenable.com/products/nessus/nessus-download-agreement> | |
# 64-bit: Nessus-6.1.2-fc20.x86_64.rpm | |
source=($_bigver | |
nessus.sh | |
LICENSE.NESSUS | |
nessus.install) | |
md5sums=('a03ac19b78a59211325e486f8cbdca25' | |
'8c5772ac63f97d94475fe03e80d6ba5c' | |
'8ff98bc9488304fcb66753d3cfb5f30e' | |
'd9d25d4075acc50c0050c7a4f244c7cb') | |
package() { | |
install -Dm755 $pkgname.sh "$pkgdir/etc/profile.d/$pkgname.sh" | |
mkdir -p "$pkgdir/etc/ld.so.conf.d" "$pkgdir/usr/share" "$pkgdir/opt/nessus" \ | |
"$pkgdir/usr/lib" | |
cp -a lib "$pkgdir/usr" | |
# path to libraries | |
echo /opt/nessus/lib > "$pkgdir/etc/ld.so.conf.d/nessus.conf" | |
# main files | |
cp -a opt/nessus/{bin,com,etc,lib,sbin,var} "$pkgdir/opt/nessus" | |
# license | |
install -Dm644 LICENSE.NESSUS "$pkgdir/usr/share/licenses/nessus/LICENSE.NESSUS" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment