comparison net-misc/ike/ike-2.2.1-r2.ebuild @ 420:a298747fa05d

use openrc-run instead of runscript in the init script
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 19 Sep 2016 07:51:38 +0200
parents
children c46da1a0f7c2
comparison
equal deleted inserted replaced
419:7cc9ca777677 420:a298747fa05d
1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=2
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="http://www.shrew.net/download/${PN}/${MY_P}.tbz2"
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+=( $(cmake-utils_use ldap LDAP)
40 $(cmake-utils_use nat NATT)
41 $(cmake-utils_use qt4 QTGUI)
42 "-DMANDIR=/usr/share/man")
43
44 cmake-utils_src_configure
45 }
46
47 src_install(){
48 cmake-utils_src_install
49 doinitd ${FILESDIR}/iked.r2 iked || die
50 }