aboutsummaryrefslogtreecommitdiffstats
path: root/community/recon-ng/APKBUILD
blob: 507f90dd05ea1616035e9c6769e7f63c396f4fa1 (plain) (blame)
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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=recon-ng
_commit="63acef781344"
pkgver=4.8.2
pkgrel=0
pkgdesc="Full-featured Web Reconnaissance framework written in Python"
url="https://bitbucket.org/LaNMaSteR53/recon-ng"
arch="noarch"
license="GPL3"
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
}

md5sums="41db04f2bcd65ee3991996ec4688b57f  recon-ng-4.8.2.tar.gz"
sha256sums="30d836a93443be2eb0261dab720a9badc18218d2afed40bc965fdf14bd49af7f  recon-ng-4.8.2.tar.gz"
sha512sums="9158cb3ab70ee399c0f331fbebf5b095c89cdf6caec148abe4eefc6616bc34103a56575f6a1dfd53a2d65f396ee667a508a79c08a7de7b3267e1dcf814dc564f  recon-ng-4.8.2.tar.gz"