Mail archive
alpine-aports

Re: [alpine-aports] [PATCH] testing/amap

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Wed, 21 Jan 2015 13:47:11 +0100

On Sun, 18 Jan 2015 21:00:47 -0800
systmkor <systmkor_at_gmail.com> wrote:

> Next-generation tool for assisting network penetration testing.
> https://www.thc.org/thc-amap/

Not applied due to bad depends. see below.

> ---
> testing/amap/APKBUILD | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 70 insertions(+)
> create mode 100644 testing/amap/APKBUILD
>
> diff --git a/testing/amap/APKBUILD b/testing/amap/APKBUILD
> new file mode 100644
> index 0000000..b6834b0
> --- /dev/null
> +++ b/testing/amap/APKBUILD
> _at_@ -0,0 +1,70 @@
> +# Contributor: Orion <systmkor_at_gmail.com>
> +# Maintainer: Orion <systmkor_at_gmail.com>
> +# Reference
> +# https://aur.archlinux.org/packages/amap/
> +pkgname=amap
> +pkgver=5.4
> +pkgrel=0
> +pkgdesc="Next-generation tool for assisting network penetration testing."
> +url="https://www.thc.org/thc-amap/"
> +arch="all"
> +license="GPL2 custom"
> +depends="pcre openssl"

I believe both depends are wrong and probably just copied from arch linux.

They ship a bundled pcre-3.9 with the sources, which is used compile
time and linked in statically. This package will just pull in the system
pcre but never use it.

We probably want amap to use system pcre instead of bundled. You can do
that by patching the build scripts or you can run 'make LIB=-lpcre'. I
think i would prefer that it also uses the system pcre headers, just in
case they have introduced any ABI incompatible changes in headers since
3.9.

The openssl is not detected during build time:

Starting amap auto configuration ...

Checking for openssl ...
                     ... NOT found, SSL support disabled


Because you don't pull in the headers, only the openssl runtimes. So
the retulting apk will pull in openssl but never use it.

I think you probably mean to link amap with openssl. To do so you need
to remove it from depends and add openssl-dev to makedepends.

Please fix those two things and resend.


-nc


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Jan 21 2015 - 13:47:11 GMT