473
|
1 # Copyright 1999-2010 Gentoo Foundation
|
|
2 # Distributed under the terms of the GNU General Public License v2
|
|
3 # $Header: $
|
|
4
|
|
5 EAPI=6
|
|
6
|
|
7 CMAKE_IN_SOURCE_BUILD="1"
|
|
8 inherit cmake-utils linux-info versionator
|
|
9
|
|
10 MY_PV=$(replace_version_separator 3 '-' ${PV/rc})
|
|
11 MY_P=${PN}-${PV}-release
|
|
12
|
|
13 DESCRIPTION="Shrew soft VPN Client"
|
|
14 HOMEPAGE="http://www.shrew.net/"
|
|
15 SRC_URI="https://www.shrew.net/download/${PN}/${MY_P}.tgz"
|
|
16
|
|
17 LICENSE="shrew"
|
|
18 SLOT="0"
|
|
19 KEYWORDS="~amd64 ~x86"
|
|
20 IUSE="ldap nat qt4"
|
|
21
|
|
22 COMMON_DEPEND="dev-libs/libedit
|
|
23 dev-libs/openssl
|
|
24 qt4? ( dev-qt/qtcore )
|
|
25 ldap? ( net-nds/openldap )"
|
|
26 DEPEND="${COMMON_DEPEND}
|
|
27 dev-util/cmake
|
|
28 >=sys-devel/bison-2.3
|
|
29 sys-devel/flex"
|
|
30 RDEPEND="${COMMON_DEPEND}"
|
|
31
|
|
32 DOCS="CONTRIB.TXT README.TXT TODO.TXT"
|
|
33
|
|
34 CONFIG_CHECK="INET_XFRM_MODE_TRANSPORT INET_XFRM_MODE_TUNNEL"
|
|
35
|
|
36 S="${WORKDIR}/${PN}"
|
|
37
|
|
38 src_configure(){
|
|
39 mycmakeargs+=( -DLDAP=$(usex ldap)
|
|
40 -DNATT=$(usex nat)
|
|
41 -DQTGUI=$(usex qt4)
|
|
42 "-DMANDIR=/usr/share/man")
|
|
43
|
|
44 cmake-utils_src_configure
|
|
45 }
|
|
46
|
|
47 src_install(){
|
|
48 cmake-utils_src_install
|
|
49 # multilib strict fix
|
|
50 mv "${ED}/usr/lib" "${ED}/usr/$(get_libdir)" || die "mv failed"
|
|
51 doinitd ${FILESDIR}/iked || die
|
|
52 }
|