pentoo-overlay/net-analyzer/enum4linux/enum4linux-0.9.1.ebuild
2021-08-19 09:24:05 +08:00

33 lines
819 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="A tool for enumerating information from Windows and Samba systems"
HOMEPAGE="https://labs.portcullis.co.uk/application/enum4linux/"
#SRC_URI="https://labs.portcullis.co.uk/download/${P}.tar.gz"
SRC_URI="https://github.com/CiscoCXSecurity/enum4linux/archive/refs/tags/v0.9.1.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE="+polenum ldap"
DEPEND=""
RDEPEND="
dev-lang/perl:0=
net-fs/samba
polenum? ( net-analyzer/polenum )
ldap? ( net-nds/openldap )"
src_prepare () {
sed -i -e 's/polenum.py/polenum/' ${PN}.pl || die "Sed failed!"
default
}
src_install () {
newbin ${PN}.pl ${PN}
insinto "/usr/share/${PN}"
doins share-list.txt
dodoc CHANGELOG
}