# HG changeset patch # User Dirk Olmes # Date 1474264298 -7200 # Node ID a298747fa05dc8d24a0718e5b118e8a8cfcee598 # Parent 7cc9ca7776771eb4564b80231179f99f696180d3 use openrc-run instead of runscript in the init script diff -r 7cc9ca777677 -r a298747fa05d net-misc/ike/Manifest --- a/net-misc/ike/Manifest Tue Sep 06 09:05:12 2016 +0200 +++ b/net-misc/ike/Manifest Mon Sep 19 07:51:38 2016 +0200 @@ -1,3 +1,5 @@ AUX iked 242 SHA256 934f80cc9ef6692f93d7d5f4c9bda9a5082456aac64374c6cf32d1eead00d6e4 SHA512 42cd551ac91dab27e960ec1e8d60db64cb8fdadb019a0c34572ac0a7d3058cb44c400d0c718d1b1d377741cb76e7b163256ab844519cdc429ea6f592468ffbef WHIRLPOOL 5d4988bf9b041aa684232048b55e3a37811c47918c0e12a6c6ea723a6eb2e775e80f1aa629e594c62fc2b861498b58ad8c624323867e187b870293f6fe340a95 +AUX iked.r2 243 SHA256 008727eb538e9737db4de415443e7dbb89cf35197ad56525e2dc3595e2022f37 SHA512 3bd066ca386f2f956b7d11d551e1f071e9c90d107511b4ab6012470bd1f460e325dc5ea86f896558fc662b99bee31e61b21139d641418f5e6cc77a7cc3135021 WHIRLPOOL a8bb27eee3f457795cd3f2a6ac45fd1fa50d93e49748bbcf03aac0b5b9e6889e63123e4b9e7a1600e402a68a5de4480222c44bac9786bf5bda315a303a0eeb72 DIST ike-2.2.1-release.tbz2 670872 SHA256 05c72f1ef1547818f5af367afa3f116f4b511a4a19ce723a22f8357a98ab7b57 SHA512 44c0127c581eff684a3d618ca98a790f93d3e0c189a225d658ade0d3d0c7d1253a974c160dcf6c6bce6ad04cfb2aeb6d3dc5b6c6059a9f8e30ab4f7d7697aac1 WHIRLPOOL e479d5b62d06e19c9a90b05dd57d0e48218133091a4db1bee4b72504fdfa7c32c7b74d17f757ad5d017db943740a1809380dfea0fe75ae7c3b8f304a45edb8e7 EBUILD ike-2.2.1-r1.ebuild 1068 SHA256 3fd03962eb1abb03a18b997baff9d087aa58aad04a9e9b9a099cb3177fd48fc3 SHA512 d9d8e32f9e3741da9808dfb7580539b82c4f5a09396c577fcde58e20b62f39ae5a684b6f3258df21c5ad8e2c8e770b70e2b442980e571b6212f558a39318bfab WHIRLPOOL 6e746d3cedb2d20d4fe73d0d2d1bd717e2176f68ebc58555d8a37b175040bb31ae3f405594c04e90536c7d18e4b395e977cc4a65f1310f4b8fb39b0f4034b0b2 +EBUILD ike-2.2.1-r2.ebuild 1076 SHA256 fcc2a991d281d426943b5ecb4220fb78eb305a0180861c916313083d1d248794 SHA512 7f264dca859a03abbb2143bd38baecaaafd41245e95dff93f515364e18dd96bf334ecbb80e895bd95e2ad0306d885c41c3bb710b1fea6b2dcfa349172f7694e3 WHIRLPOOL 8e8ee1bfbf01e0b9513d711d990dd568d5983be29bf1a209d23173e77d1cdb57435253151452d1d98caf2958dee9b6410c072294d724f0b28fc29bf7ac5c2f22 diff -r 7cc9ca777677 -r a298747fa05d net-misc/ike/files/iked.r2 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-misc/ike/files/iked.r2 Mon Sep 19 07:51:38 2016 +0200 @@ -0,0 +1,17 @@ +#!/sbin/openrc-run + +depend() { + need net +} + +start() { + ebegin "Starting ike daemon" + start-stop-daemon --start --exec /usr/sbin/iked + eend $? +} + +stop() { + ebegin "Stopping ike daemon" + start-stop-daemon --stop --exec /usr/sbin/iked + eend $? +} diff -r 7cc9ca777677 -r a298747fa05d net-misc/ike/ike-2.2.1-r2.ebuild --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-misc/ike/ike-2.2.1-r2.ebuild Mon Sep 19 07:51:38 2016 +0200 @@ -0,0 +1,50 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=2 + +CMAKE_IN_SOURCE_BUILD="1" +inherit cmake-utils linux-info versionator + +MY_PV=$(replace_version_separator 3 '-' ${PV/rc}) +MY_P=${PN}-${PV}-release + +DESCRIPTION="Shrew soft VPN Client" +HOMEPAGE="http://www.shrew.net/" +SRC_URI="http://www.shrew.net/download/${PN}/${MY_P}.tbz2" + +LICENSE="shrew" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ldap nat qt4" + +COMMON_DEPEND="dev-libs/libedit + dev-libs/openssl + qt4? ( dev-qt/qtcore ) + ldap? ( net-nds/openldap )" +DEPEND="${COMMON_DEPEND} + dev-util/cmake + >=sys-devel/bison-2.3 + sys-devel/flex" +RDEPEND="${COMMON_DEPEND}" + +DOCS="CONTRIB.TXT README.TXT TODO.TXT" + +CONFIG_CHECK="INET_XFRM_MODE_TRANSPORT INET_XFRM_MODE_TUNNEL" + +S="${WORKDIR}/${PN}" + +src_configure(){ + mycmakeargs+=( $(cmake-utils_use ldap LDAP) + $(cmake-utils_use nat NATT) + $(cmake-utils_use qt4 QTGUI) + "-DMANDIR=/usr/share/man") + + cmake-utils_src_configure +} + +src_install(){ + cmake-utils_src_install + doinitd ${FILESDIR}/iked.r2 iked || die +}