diff options
author | Mathy Vanvoorden <mathy@vanvoorden.be> | 2016-09-27 23:37:05 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-10-11 09:48:51 +0200 |
commit | f2241a5f2cba5bd0f7a178f2226708d7b04614ef (patch) | |
tree | 851c7fd62cb746030ac3c8a360bd597dc88c2c53 /net-misc/networkmanager-fortisslvpn | |
parent | net-misc/openfortivpn: New package (diff) | |
download | gentoo-f2241a5f2cba5bd0f7a178f2226708d7b04614ef.tar.gz gentoo-f2241a5f2cba5bd0f7a178f2226708d7b04614ef.tar.bz2 gentoo-f2241a5f2cba5bd0f7a178f2226708d7b04614ef.zip |
net-misc/networkmanager-fortisslvpn: New package
Fortinet SSLVPN support for NetworkManager
This requires the openfortivpn client installed
The patch included is from upstream commit
377ba9ca7fb33f3fb2ba5258a5af666869947597
It makes sure that the temporary file that the plugin
creates on connection is written in the correct place
in /var/lib, it will fail on systemd systems otherwise.
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/2424
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'net-misc/networkmanager-fortisslvpn')
4 files changed, 91 insertions, 0 deletions
diff --git a/net-misc/networkmanager-fortisslvpn/Manifest b/net-misc/networkmanager-fortisslvpn/Manifest new file mode 100644 index 000000000000..9a9d2070e972 --- /dev/null +++ b/net-misc/networkmanager-fortisslvpn/Manifest @@ -0,0 +1 @@ +DIST NetworkManager-fortisslvpn-1.2.2.tar.xz 294576 SHA256 d7d9e396bee90df73ecaa3e49ef55308cab2666771ee1dd72060701eeb11a04f SHA512 db9660107e3ce9dec436ad0aeaba922b1a883a016ad19bb1946b310f2b97168451c72803f5f6fceec68ca766fd30720dc8b6d5fcdcd8f52543bc707341c30737 WHIRLPOOL 77355c2cc0af80e7e4974e82ebdda91b2daa787f8dbd8375eda5760d26d9ca1ccf45b6d24fb95af8642569e252a503e1e63ad444e5fc8d695395c8cdc7e1b606 diff --git a/net-misc/networkmanager-fortisslvpn/files/networkmanager-fortisslvpn-1.2.2-location-fix.diff b/net-misc/networkmanager-fortisslvpn/files/networkmanager-fortisslvpn-1.2.2-location-fix.diff new file mode 100644 index 000000000000..39beeb1e37fc --- /dev/null +++ b/net-misc/networkmanager-fortisslvpn/files/networkmanager-fortisslvpn-1.2.2-location-fix.diff @@ -0,0 +1,26 @@ +From 377ba9ca7fb33f3fb2ba5258a5af666869947597 Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel <lkundrak@v3.sk> +Date: Wed, 18 May 2016 10:16:35 +0200 +Subject: [PATCH] service: don't use sharedstatedir + +GNU CS and thus autoconf default to a location that doesn't make any +sense on Linux: + +http://www.redhat.com/archives/fedora-extras-list/2006-March/msg01546.html +--- + src/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/Makefile.am b/src/Makefile.am +index 2725b48..7c0f811 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -1,4 +1,4 @@ +-fortisslvpn_statedir = $(sharedstatedir)/$(PACKAGE) ++fortisslvpn_statedir = $(localstatedir)/lib/$(PACKAGE) + + install-data-hook: + $(mkinstalldirs) -m 0700 $(DESTDIR)$(fortisslvpn_statedir) +-- +2.7.3 + diff --git a/net-misc/networkmanager-fortisslvpn/metadata.xml b/net-misc/networkmanager-fortisslvpn/metadata.xml new file mode 100644 index 000000000000..b7fa921dff8f --- /dev/null +++ b/net-misc/networkmanager-fortisslvpn/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mathy@vanvoorden.be</email> + <name>Mathy Vanvoorden</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> +</pkgmetadata> diff --git a/net-misc/networkmanager-fortisslvpn/networkmanager-fortisslvpn-1.2.2.ebuild b/net-misc/networkmanager-fortisslvpn/networkmanager-fortisslvpn-1.2.2.ebuild new file mode 100644 index 000000000000..c3a27d78abec --- /dev/null +++ b/net-misc/networkmanager-fortisslvpn/networkmanager-fortisslvpn-1.2.2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +GNOME_ORG_MODULE="NetworkManager-${PN##*-}" + +inherit gnome2 autotools + +DESCRIPTION="NetworkManager Fortinet SSLVPN compatible plugin" +HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gtk" + +RDEPEND=" + >=net-misc/networkmanager-1.1:= + >=dev-libs/glib-2.32:2 + net-dialup/ppp:= + >=net-misc/openfortivpn-1.2.0 + gtk? ( + >=app-crypt/libsecret-0.18 + >=gnome-extra/nm-applet-1.2.0 + >=x11-libs/gtk+-3.4:3 + ) +" +DEPEND="${RDEPEND} + sys-devel/gettext + >=dev-util/intltool-0.35 + virtual/pkgconfig +" + +src_prepare() { + # Upstream patch 377ba9ca7fb33f3fb2ba5258a5af666869947597 + eapply "${FILESDIR}/${P}-location-fix.diff" + + eapply_user + + eautoreconf + + gnome2_src_prepare +} + +src_configure() { + gnome2_src_configure \ + --disable-static \ + --with-dist-version=Gentoo \ + --localstatedir=/var \ + $(use_with gtk gnome) +} |