ike-scan-1.9.4_p20201223.ebuild

This commit is contained in:
blshkv 2021-01-29 11:21:59 +08:00
parent ce31f38f3b
commit 65b6e65212
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 22 additions and 55 deletions

View file

@ -1,2 +1 @@
DIST ike-scan-1.9.4.tar.gz 1360202 BLAKE2B abe206b22a23a6d4eaa2218204657d6c47f22ac8009df1f1e7918fbb55575033f237462ed57ba89aee8bed28e47a4dacf69e443dac5cd3b506842e26e71f97e9 SHA512 d7dde6d3d76a2e3ddeb9ed1f0dee3e2c3a13d4afa57ebb8ff19f6af094f7334b464509cee6ffc385d2703bcf9bc1c503bc604506279518f692f82c8f12f146be
DIST ike-scan-1.9.4_p20170805.zip 1395358 BLAKE2B 807f947e82c62be21a0faf3dde0043c171fcbda806893678c27daffb16ad2473d5dce912c5060a0857d6aa5b24bfc9e17f7cd44c6efc98550272031a3fe39e8a SHA512 d18c21de181320d5b94cdaa512570305c2fccb2eb8bbfb4a8c73bf077a065af253434af4eac9e4199945407ed8e4e2acf7c3e870474cfb5f9c1ab2cb04d7a892
DIST ike-scan-1.9.4_p20201223.zip 1575048 BLAKE2B c81cbc332df98e53435a9e6c8730660fc7ea4348d26609b9553edf1b0f206a38912956d1199a8fcc1ff4748d7780b75140552b80b6426dd65714f8d59a6f5df8 SHA512 41c3ef3bc91d585f7b002bb34aa9081fac79adf1f60d7f8a7f327cc79e8a53e2f9aeb80d453a05c6d4d5c40e828b3245d7a185fb57f10c6f824b3d899385ddab

View file

@ -1,41 +0,0 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit autotools
DESCRIPTION="A utility for finding, fingerprinting and testing IKE VPN servers"
HOMEPAGE="http://www.nta-monitor.com/wiki/index.php/Ike-scan_Documentation"
MY_COMMIT="692163bd7e3de4bf5e802b1e30ade38134033c44"
SRC_URI="https://github.com/royhills/ike-scan/archive/${MY_COMMIT}.zip -> ${P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ssl"
DEPEND="ssl? ( dev-libs/openssl:0 )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}-${MY_COMMIT}"
src_prepare() {
# Fix buffer overflow, bug #277556
sed \
-e "/MAXLINE/s:255:511:g" \
-i ike-scan.h || die
eautoreconf
eapply_user
}
src_configure() {
# --disable-lookup prevents ike-scan from phoning home
# for more information, please see bug 157507
econf $(use_with ssl openssl) --disable-lookup
}
src_install() {
default
dodoc udp-backoff-fingerprinting-paper.txt
}

View file

@ -1,35 +1,44 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
EAPI=7
inherit autotools
DESCRIPTION="A utility for finding, fingerprinting and testing IKE VPN servers"
HOMEPAGE="http://www.nta-monitor.com/wiki/index.php/Ike-scan_Documentation"
SRC_URI="https://github.com/royhills/ike-scan/archive/${PV}.tar.gz -> ${P}.tar.gz"
HASH_COMMIT="b85ea4cf0f0b850ca2eba4397ae985e0ab0a874b"
SRC_URI="https://github.com/royhills/ike-scan/archive/${HASH_COMMIT}.zip -> ${P}.zip"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="ssl"
KEYWORDS="~amd64 ~ppc x86"
IUSE="libressl ssl"
DEPEND="ssl? ( dev-libs/openssl:0 )"
RDEPEND="${DEPEND}"
DEPEND="
ssl? (
!libressl? ( dev-libs/openssl:0= )
libressl? ( dev-libs/libressl:0= )
)
"
RDEPEND="
${DEPEND}
"
S=${WORKDIR}/${PN}-${HASH_COMMIT}
src_prepare() {
# Fix buffer overflow, bug #277556
sed \
-e "/MAXLINE/s:255:511:g" \
-i ike-scan.h || die
default
eautoreconf
eapply_user
}
src_configure() {
# --disable-lookup prevents ike-scan from phoning home
# for more information, please see bug 157507
econf $(use_with ssl openssl) --disable-lookup
econf $(use_with ssl openssl)
}
src_install() {