aboutsummaryrefslogtreecommitdiffstats
path: root/community/recon-ng/APKBUILD
blob: 5b867ebc123dc942eb540621f82cbc7e93aee0af (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=recon-ng
_commit="e5fccd49681a"
pkgver=4.8.4
pkgrel=0
pkgdesc="Full-featured Web Reconnaissance framework written in Python"
url="https://bitbucket.org/LaNMaSteR53/recon-ng"
arch="noarch"
license="GPL-3.0"
depends="python2 py-dicttoxml py-dnspython py-jsonrpclib py-lxml
py-mechanize py-slowaes py-xlsxwriter py-olefile py-pypdf2"
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/LaNMaSteR53/$pkgname/get/v$pkgver.tar.gz"

builddir="$srcdir"/LaNMaSteR53-$pkgname-$_commit
build() {
	cd "$builddir"
	sed -i recon-ng -i recon-cli -i recon-rpc -e "s:sys.path.append('./core/'):import os\nos.chdir(os.path.dirname(os.path.realpath(__file__)))\nsys.path.append('./core/'):g"
}

package() {
	cd "$builddir"
	mkdir -p "$pkgdir"/usr/share/$pkgname
	mkdir -p "$pkgdir"/usr/bin
	cp -R * "$pkgdir"/usr/share/$pkgname
	for pkg in recon-rpc recon-cli recon-ng; do
		ln -s /usr/share/$pkgname/$pkg "$pkgdir"/usr/bin/$pkg || return 1
	done
}

sha512sums="9547e3708fd4eb923c1c95ba35ce6afe705a02f6b127061c917af489b38f6042f22b62a3df7d444a3feb183f4a8f5b3065760992d116dae2c73ca5895a38d4c5  recon-ng-4.8.4.tar.gz"