annotate net-misc/ike/ike-2.2.1-r3.ebuild @ 565:fb3b4edf20c9 default tip

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