pentoo-overlay/net-analyzer/medusa/medusa-2.2-r1.ebuild
2016-05-16 10:57:48 +08:00

43 lines
1.1 KiB
Bash

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="A Modular,Parallel,Multiprotocol, Network Login Auditor"
HOMEPAGE="http://www.foofus.net/jmk/medusa/medusa.html"
SRC_URI="https://github.com/jmk-foofus/medusa/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="afp debug ncp postgres rdp +ssh2 subversion"
RDEPEND="ssh2? ( net-libs/libssh2 )
ncp? ( net-fs/ncpfs )
postgres? ( dev-db/postgresql:= )
rdp? ( net-misc/freerdp )
subversion? ( dev-vcs/subversion )
dev-libs/openssl:=
afp? ( net-fs/afpfs-ng )"
DEPEND="${RDEPEND}
sys-devel/autoconf
sys-devel/automake"
src_configure() {
econf \
--with-default-mod-path="/usr/lib/medusa/modules" \
`use_enable afp module-afp` \
`use_enable debug` \
`use_enable ncp module-ncp` \
`use_enable postgres module-postgres` \
`use_enable rdp module-rdp` \
`use_enable ssh2 module-ssh` \
`use_enable subversion module-svn`
}
src_install() {
emake DESTDIR="${D}" install
dodoc README.md TODO ChangeLog
dohtml doc/*.html
}