diff options
author | Peter Volkov <pva@gentoo.org> | 2008-01-30 11:11:07 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-01-30 11:11:07 +0000 |
commit | d4260cae701c6af9373cd83b3509101b439a1081 (patch) | |
tree | 7eab508d81453a331afe71a63c929042540da8c8 /net-analyzer | |
parent | stable x86, bug 207634 (diff) | |
download | gentoo-2-d4260cae701c6af9373cd83b3509101b439a1081.tar.gz gentoo-2-d4260cae701c6af9373cd83b3509101b439a1081.tar.bz2 gentoo-2-d4260cae701c6af9373cd83b3509101b439a1081.zip |
Fixed broken online update, bug 207839, thank you Anton Bolshakov <anton.bugs AT gmail.com> for report and fix.
(Portage version: 2.1.4_rc14)
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/amap/ChangeLog | 10 | ||||
-rw-r--r-- | net-analyzer/amap/amap-5.2-r1.ebuild | 62 | ||||
-rw-r--r-- | net-analyzer/amap/files/digest-amap-5.2-r1 | 3 |
3 files changed, 73 insertions, 2 deletions
diff --git a/net-analyzer/amap/ChangeLog b/net-analyzer/amap/ChangeLog index 4c25210906b3..625bc0b377ca 100644 --- a/net-analyzer/amap/ChangeLog +++ b/net-analyzer/amap/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-analyzer/amap -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/amap/ChangeLog,v 1.37 2007/12/29 11:50:59 welp Exp $ +# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/amap/ChangeLog,v 1.38 2008/01/30 11:11:06 pva Exp $ + +*amap-5.2-r1 (30 Jan 2008) + + 30 Jan 2008; <pva@gentoo.org> +amap-5.2-r1.ebuild: + Fixed broken online update, bug 207839, thank you Anton Bolshakov <anton.bugs + AT gmail.com> for report and fix. 29 Dec 2007; <welp@gentoo.org> amap-5.2.ebuild: Keyworded ~x86-fbsd; bug 203149 diff --git a/net-analyzer/amap/amap-5.2-r1.ebuild b/net-analyzer/amap/amap-5.2-r1.ebuild new file mode 100644 index 000000000000..e7e28c32f15e --- /dev/null +++ b/net-analyzer/amap/amap-5.2-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/amap/amap-5.2-r1.ebuild,v 1.1 2008/01/30 11:11:06 pva Exp $ + +inherit eutils toolchain-funcs + +DESCRIPTION="A network scanning tool for pentesters" +HOMEPAGE="http://www.thc.org/thc-amap/" +SRC_URI="http://www.thc.org/releases/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +IUSE="ssl" + +DEPEND="dev-libs/libpcre + ssl? ( >=dev-libs/openssl-0.9.6j )" + +src_unpack() { + unpack ${A} + cd "${S}" + + rm -rf pcre-3.9 + sed -i -e "s:etc/:share/amap/:g" amap-lib.c || die "sed amap-lib.c failed" + # Above change requires below change. See sources... + sed -i '/strlen(AMAP_PREFIX/s: 5 : 12 :' amap-lib.c || die "sed amap-lib.c failed" + sed -i 's:/usr/local:/usr:' amap.h || die "sed amap.h failed" + # Files to be updated are at different location, bug 207839. + sed -i '/AMAP_RESOURCE/s:www:freeworld:' amap.h || die "sed amap.h failed" + + sed -i '/DATADIR/s:/etc:/share/amap:' Makefile.am || die "sed Makefile.am failed" + + epatch "${FILESDIR}"/4.8-system-pcre.patch +} + +src_compile() { + # has it's own stupid custom configure script + ./configure || die "configure failed" + sed -i \ + -e '/^XDEFINES=/s:=.*:=:' \ + -e '/^XLIBS=/s:=.*:=:' \ + -e '/^XLIBPATHS/s:=.*:=:' \ + -e '/^XIPATHS=/s:=.*:=:' \ + -e "/^CC=/s:=.*:=$(tc-getCC):" \ + Makefile || die "pruning vars" + if use ssl ; then + sed -i \ + -e '/^XDEFINES=/s:=:=-DOPENSSL:' \ + -e '/^XLIBS=/s:=:=-lcrypto -lssl:' \ + Makefile || die "adding ssl" + fi + emake OPT="${CFLAGS}" || die "emake failed" +} + +src_install() { + dobin amap amapcrap || die "dobin failed" + insinto /usr/share/amap + doins appdefs.* || die "doins failed" + + doman ${PN}.1 + dodoc README TODO CHANGES +} diff --git a/net-analyzer/amap/files/digest-amap-5.2-r1 b/net-analyzer/amap/files/digest-amap-5.2-r1 new file mode 100644 index 000000000000..6f7b48996620 --- /dev/null +++ b/net-analyzer/amap/files/digest-amap-5.2-r1 @@ -0,0 +1,3 @@ +MD5 e3b1f5ebd24aac03aacb38ec183eb426 amap-5.2.tar.gz 262875 +RMD160 4ea604ecb086f8e3cac84b45caac93b4a04eba26 amap-5.2.tar.gz 262875 +SHA256 0ca1d5e9feab7d44af39dc058a688a0636f8e798315ee742847c4057e4467fb6 amap-5.2.tar.gz 262875 |