blob: ff43ff25028d69d74e2b9cee653e44aae2525960 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=rats
pkgver=2.3
pkgrel=0
pkgdesc="A tool to find security related programming errors"
url="https://www.fortify.com/ssa-elements/threat-intelligence/rats.html"
arch="all"
license="GPL2+"
depends=""
depends_dev=""
makedepends="expat-dev wget flex"
install=""
subpackages="$pkgname-doc"
source="https://www.fortify.com/downloads2/public/$pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--prefix=/usr \
--datadir=/usr/share/ \
--mandir=/usr/share/man
make || return 1
}
package() {
cd "$_builddir"
##make DESTDIR="$pkgdir" install || return 1
install -Dpm 0755 "$pkgname" "$pkgdir"/usr/bin/$pkgname || return 1
mkdir -p "$pkgdir"/usr/share/$pkgname || return 1
install -Dm 0644 *.xml "$pkgdir"/usr/share/$pkgname/ || return 1
}
doc() {
# The man page is not picked-up automatically
mkdir -p "$subpkgdir"/usr/share/man/man1 || return 1
mv "$_builddir"/*.1 "$subpkgdir"/usr/share/man/man1/ || return 1
}
md5sums="339ebe60fc61789808a457f6f967d226 rats-2.3.tar.gz"
|