3
3
4
4
pkgname=cve-search
5
5
pkgver=v5.2.0.r2.g0396abf
6
- pkgrel=1
6
+ pkgrel=2
7
7
pkgdesc=' A tool to perform local searches for known vulnerabilities.'
8
8
groups=(' blackarch' ' blackarch-exploitation' )
9
9
arch=(' any' )
10
10
url=' http://cve-search.github.io/cve-search'
11
11
license=(' AGPL' )
12
- depends=(' mongodb' ' python' ' python-click' ' python-dateutil' ' python-flask'
13
- ' python-flask-login' ' python-itsdangerous' ' python-jinja' ' redis'
14
- ' python-lxml' ' python-passlib' ' python-pymongo' ' python-pytz'
15
- ' python-redis' ' python-requests' ' python-six' ' python-tornado'
16
- ' python-werkzeug' ' python-whoosh' ' python-xlrd' ' python-feedformater'
17
- ' python-flask-pymongo' ' python-requirements-parser' )
12
+ depends=(' python' ' python-virtualenv' )
18
13
makedepends=(' git' )
19
14
source=(" git+https://github.com/$pkgname /$pkgname .git" )
20
15
sha512sums=(' SKIP' )
16
+ install=" $pkgname .install"
21
17
22
18
pkgver () {
23
19
cd $pkgname
@@ -39,15 +35,27 @@ package() {
39
35
cd bin/
40
36
for script in * ; do
41
37
final_script_name=" ${pkgname} -${script% .* } "
42
- ln -sf " /usr/share/$pkgname /bin/$script " \
43
- " $pkgdir /usr/bin/$final_script_name "
38
+ cat > " $pkgdir /usr/bin/$final_script_name " << EOF
39
+ #!/bin/sh
40
+ cd /usr/share/$pkgname /
41
+ source venv/bin/activate
42
+ exec python bin/$script "\$ @"
43
+ EOF
44
+ chmod +x " $pkgdir /usr/bin/$final_script_name "
44
45
done
45
46
46
47
cd ../sbin/
47
48
for script in * ; do
48
49
final_script_name=" ${pkgname} -${script% .* } "
49
- ln -sf " /usr/share/$pkgname /sbin/$script " \
50
- " $pkgdir /usr/bin/$final_script_name "
50
+ cat > " $pkgdir /usr/bin/$final_script_name " << EOF
51
+ #!/bin/sh
52
+ cd /usr/share/$pkgname /
53
+ source venv/bin/activate
54
+ exec python sbin/$script "\$ @"
55
+ EOF
56
+ chmod +x " $pkgdir /usr/bin/$final_script_name "
51
57
done
58
+
59
+ rm " $pkgdir /usr/bin/" * __init*
52
60
}
53
61
0 commit comments