medusa-2.3_pre.ebuild

This commit is contained in:
blshkv 2021-01-04 11:12:38 +08:00
parent 5bc39503b2
commit 9419c2086a
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 57 additions and 1 deletions

View file

@ -1 +1,2 @@
DIST medusa-2.2_p20181217.tar.gz 411303 BLAKE2B 0081d8ff66fb64e10d8f69d0b3eea4cdf8d87909943929b1ceba0d314dc17be8c5d00f66331bf6b37eadf62b01a1b708948d3b6420ac8cc9733ceeba454ca6fc SHA512 8f3b528f75b1ae7e190f07084860dede5425d791519867b6a80a36625ab630fc315f313400d6b81fe8de2333c3085dbc607b295e7a7f467bebb1b6ae9b565da5
DIST medusa-2.3_pre.tar.gz 409771 BLAKE2B 32488f6f1f1420111fd8c317826ee1461e76363a70e89b824f43bd98fc3510f5fd98535613567beb0474716bdf430fc621ae465c258b30e16c692f921ce6860d SHA512 f91ce187bb77502a65663b38778eadd75f9e77e7e7e6197f55a78f926c4ef80747d230a0fa27ee8ec946557305c4f3a2f8d0ea832bd1d728fb71415a77b6d74d

View file

@ -21,7 +21,6 @@ DOCS=( AUTHORS NEWS README.md TODO ChangeLog sample )
RDEPEND="
ssh? ( net-libs/libssh2 )
ncp? ( net-fs/ncpfs )
postgres? ( dev-db/postgresql:= )
rdp? ( net-misc/freerdp )
subversion? ( dev-vcs/subversion )

View file

@ -0,0 +1,56 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MODULES=( afp ncp postgres +rdp +ssh subversion )
inherit autotools multilib
DESCRIPTION="A modular, parallel, multiprotocol, network login auditor"
HOMEPAGE="http://foofus.net/goons/jmk/medusa/medusa.html"
COMMIT_HASH="bdaa2dda92ad3681387a60cc41d3bd9f077360a1"
SRC_URI="https://github.com/jmk-foofus/medusa/archive/${COMMIT_HASH}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"
LICENSE="GPL-2"
SLOT="0"
IUSE="${MODULES[@]} debug libressl"
DOCS=( AUTHORS NEWS README.md TODO ChangeLog sample )
RDEPEND="
ssh? ( net-libs/libssh2 )
postgres? ( dev-db/postgresql:= )
rdp? ( net-misc/freerdp )
subversion? ( dev-vcs/subversion )
!libressl? ( dev-libs/openssl:= )
libressl? ( dev-libs/libressl:= )
afp? ( net-fs/afpfs-ng )"
#FIXME: CONFIG_NCP_FS
DEPEND="${RDEPEND}"
S="${WORKDIR}/${PN}-${COMMIT_HASH}"
src_prepare() {
sed -e "s:\$_dir/libssh2.so:/usr/$(get_libdir)/libssh2.so:" \
-e "s/module-svn/module-subversion/" \
-i configure.ac || die 'sed failed!'
eautoreconf
default
}
src_configure() {
local econfargs
for x in ${MODULES[@]}; do
econfargs+=( $(use_enable ${x/[[:punct:]]} module-${x/[[:punct:]]}) )
done
econf \
--with-default-mod-path="/usr/$(get_libdir)/medusa/modules" \
$(use_enable debug) \
${econfargs[@]}
}