| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/mosh/mosh-1.2.1.ebuild,v 1.3 2012/06/02 06:19:23 xmw Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
|
| 8 |
HOMEPAGE="http://mosh.mit.edu"
|
| 9 |
SRC_URI="https://github.com/downloads/keithw/${PN}/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="GPL-3"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="~amd64 ~ppc ~x86"
|
| 14 |
IUSE="bash-completion +client examples +mosh-hardening +server ufw +utempter"
|
| 15 |
REQUIRED_USE="|| ( client server )
|
| 16 |
examples? ( client )"
|
| 17 |
|
| 18 |
RDEPEND="dev-libs/protobuf
|
| 19 |
sys-libs/ncurses:5
|
| 20 |
virtual/ssh
|
| 21 |
client? ( dev-lang/perl
|
| 22 |
dev-perl/IO-Tty )
|
| 23 |
utempter? ( sys-libs/libutempter )"
|
| 24 |
DEPEND="${RDEPEND}
|
| 25 |
virtual/pkgconfig"
|
| 26 |
|
| 27 |
src_configure() {
|
| 28 |
econf \
|
| 29 |
$(use_enable test tests) \
|
| 30 |
$(use_enable bash-completion completion) \
|
| 31 |
$(use_enable client) \
|
| 32 |
$(use_enable server) \
|
| 33 |
$(use_enable examples) \
|
| 34 |
$(use_enable ufw) \
|
| 35 |
$(use_enable mosh-hardening hardening) \
|
| 36 |
$(use_with utempter)
|
| 37 |
}
|
| 38 |
|
| 39 |
src_compile() {
|
| 40 |
emake V=1
|
| 41 |
}
|
| 42 |
|
| 43 |
src_test() {
|
| 44 |
einfo "running test encrypt-decrypt"
|
| 45 |
./src/tests/encrypt-decrypt -q || die
|
| 46 |
einfo "running test ocb-aes"
|
| 47 |
./src/tests/ocb-aes -q || die
|
| 48 |
}
|
| 49 |
|
| 50 |
src_install() {
|
| 51 |
default
|
| 52 |
|
| 53 |
for myprog in $(find src/examples -type f -perm /0111) ; do
|
| 54 |
newbin ${myprog} ${PN}-$(basename ${myprog})
|
| 55 |
elog "${myprog} installed as ${PN}-$(basename ${myprog})"
|
| 56 |
done
|
| 57 |
}
|