annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
420
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2010 Gentoo Foundation
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header: $
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 EAPI=2
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 CMAKE_IN_SOURCE_BUILD="1"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 inherit cmake-utils linux-info versionator
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10 MY_PV=$(replace_version_separator 3 '-' ${PV/rc})
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 MY_P=${PN}-${PV}-release
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 DESCRIPTION="Shrew soft VPN Client"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 HOMEPAGE="http://www.shrew.net/"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 SRC_URI="http://www.shrew.net/download/${PN}/${MY_P}.tbz2"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 LICENSE="shrew"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 SLOT="0"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 KEYWORDS="~amd64 ~x86"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 IUSE="ldap nat qt4"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 COMMON_DEPEND="dev-libs/libedit
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 dev-libs/openssl
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 qt4? ( dev-qt/qtcore )
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 ldap? ( net-nds/openldap )"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 DEPEND="${COMMON_DEPEND}
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 dev-util/cmake
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 >=sys-devel/bison-2.3
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 sys-devel/flex"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 RDEPEND="${COMMON_DEPEND}"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 DOCS="CONTRIB.TXT README.TXT TODO.TXT"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 CONFIG_CHECK="INET_XFRM_MODE_TRANSPORT INET_XFRM_MODE_TUNNEL"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 S="${WORKDIR}/${PN}"
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 src_configure(){
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 mycmakeargs+=( $(cmake-utils_use ldap LDAP)
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 $(cmake-utils_use nat NATT)
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 $(cmake-utils_use qt4 QTGUI)
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 "-DMANDIR=/usr/share/man")
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 cmake-utils_src_configure
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 }
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 src_install(){
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 cmake-utils_src_install
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 doinitd ${FILESDIR}/iked.r2 iked || die
a298747fa05d use openrc-run instead of runscript in the init script
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 }