Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/networkmanager-fortisslvpn/files/, net-misc/networkmanager-fortisslvpn/
Date: Tue, 11 Oct 2016 07:49:20
Message-Id: 1476172131.f2241a5f2cba5bd0f7a178f2226708d7b04614ef.soap@gentoo
1 commit: f2241a5f2cba5bd0f7a178f2226708d7b04614ef
2 Author: Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be>
3 AuthorDate: Tue Sep 27 21:37:05 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 11 07:48:51 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2241a5f
7
8 net-misc/networkmanager-fortisslvpn: New package
9
10 Fortinet SSLVPN support for NetworkManager
11 This requires the openfortivpn client installed
12
13 The patch included is from upstream commit
14 377ba9ca7fb33f3fb2ba5258a5af666869947597
15
16 It makes sure that the temporary file that the plugin
17 creates on connection is written in the correct place
18 in /var/lib, it will fail on systemd systems otherwise.
19
20 Package-Manager: portage-2.2.28
21 Closes: https://github.com/gentoo/gentoo/pull/2424
22
23 Signed-off-by: David Seifert <soap <AT> gentoo.org>
24
25 net-misc/networkmanager-fortisslvpn/Manifest | 1 +
26 ...workmanager-fortisslvpn-1.2.2-location-fix.diff | 26 +++++++++++
27 net-misc/networkmanager-fortisslvpn/metadata.xml | 12 +++++
28 .../networkmanager-fortisslvpn-1.2.2.ebuild | 52 ++++++++++++++++++++++
29 4 files changed, 91 insertions(+)
30
31 diff --git a/net-misc/networkmanager-fortisslvpn/Manifest b/net-misc/networkmanager-fortisslvpn/Manifest
32 new file mode 100644
33 index 00000000..9a9d207
34 --- /dev/null
35 +++ b/net-misc/networkmanager-fortisslvpn/Manifest
36 @@ -0,0 +1 @@
37 +DIST NetworkManager-fortisslvpn-1.2.2.tar.xz 294576 SHA256 d7d9e396bee90df73ecaa3e49ef55308cab2666771ee1dd72060701eeb11a04f SHA512 db9660107e3ce9dec436ad0aeaba922b1a883a016ad19bb1946b310f2b97168451c72803f5f6fceec68ca766fd30720dc8b6d5fcdcd8f52543bc707341c30737 WHIRLPOOL 77355c2cc0af80e7e4974e82ebdda91b2daa787f8dbd8375eda5760d26d9ca1ccf45b6d24fb95af8642569e252a503e1e63ad444e5fc8d695395c8cdc7e1b606
38
39 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
40 new file mode 100644
41 index 00000000..39beeb1
42 --- /dev/null
43 +++ b/net-misc/networkmanager-fortisslvpn/files/networkmanager-fortisslvpn-1.2.2-location-fix.diff
44 @@ -0,0 +1,26 @@
45 +From 377ba9ca7fb33f3fb2ba5258a5af666869947597 Mon Sep 17 00:00:00 2001
46 +From: Lubomir Rintel <lkundrak@××.sk>
47 +Date: Wed, 18 May 2016 10:16:35 +0200
48 +Subject: [PATCH] service: don't use sharedstatedir
49 +
50 +GNU CS and thus autoconf default to a location that doesn't make any
51 +sense on Linux:
52 +
53 +http://www.redhat.com/archives/fedora-extras-list/2006-March/msg01546.html
54 +---
55 + src/Makefile.am | 2 +-
56 + 1 file changed, 1 insertion(+), 1 deletion(-)
57 +
58 +diff --git a/src/Makefile.am b/src/Makefile.am
59 +index 2725b48..7c0f811 100644
60 +--- a/src/Makefile.am
61 ++++ b/src/Makefile.am
62 +@@ -1,4 +1,4 @@
63 +-fortisslvpn_statedir = $(sharedstatedir)/$(PACKAGE)
64 ++fortisslvpn_statedir = $(localstatedir)/lib/$(PACKAGE)
65 +
66 + install-data-hook:
67 + $(mkinstalldirs) -m 0700 $(DESTDIR)$(fortisslvpn_statedir)
68 +--
69 +2.7.3
70 +
71
72 diff --git a/net-misc/networkmanager-fortisslvpn/metadata.xml b/net-misc/networkmanager-fortisslvpn/metadata.xml
73 new file mode 100644
74 index 00000000..b7fa921
75 --- /dev/null
76 +++ b/net-misc/networkmanager-fortisslvpn/metadata.xml
77 @@ -0,0 +1,12 @@
78 +<?xml version="1.0" encoding="UTF-8"?>
79 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
80 +<pkgmetadata>
81 + <maintainer type="person">
82 + <email>mathy@××××××××××.be</email>
83 + <name>Mathy Vanvoorden</name>
84 + </maintainer>
85 + <maintainer type="project">
86 + <email>proxy-maint@g.o</email>
87 + <name>Proxy Maintainers</name>
88 + </maintainer>
89 +</pkgmetadata>
90
91 diff --git a/net-misc/networkmanager-fortisslvpn/networkmanager-fortisslvpn-1.2.2.ebuild b/net-misc/networkmanager-fortisslvpn/networkmanager-fortisslvpn-1.2.2.ebuild
92 new file mode 100644
93 index 00000000..c3a27d7
94 --- /dev/null
95 +++ b/net-misc/networkmanager-fortisslvpn/networkmanager-fortisslvpn-1.2.2.ebuild
96 @@ -0,0 +1,52 @@
97 +# Copyright 1999-2016 Gentoo Foundation
98 +# Distributed under the terms of the GNU General Public License v2
99 +# $Id$
100 +
101 +EAPI=6
102 +GNOME_ORG_MODULE="NetworkManager-${PN##*-}"
103 +
104 +inherit gnome2 autotools
105 +
106 +DESCRIPTION="NetworkManager Fortinet SSLVPN compatible plugin"
107 +HOMEPAGE="https://wiki.gnome.org/Projects/NetworkManager"
108 +
109 +LICENSE="GPL-2+"
110 +SLOT="0"
111 +KEYWORDS="~amd64"
112 +IUSE="gtk"
113 +
114 +RDEPEND="
115 + >=net-misc/networkmanager-1.1:=
116 + >=dev-libs/glib-2.32:2
117 + net-dialup/ppp:=
118 + >=net-misc/openfortivpn-1.2.0
119 + gtk? (
120 + >=app-crypt/libsecret-0.18
121 + >=gnome-extra/nm-applet-1.2.0
122 + >=x11-libs/gtk+-3.4:3
123 + )
124 +"
125 +DEPEND="${RDEPEND}
126 + sys-devel/gettext
127 + >=dev-util/intltool-0.35
128 + virtual/pkgconfig
129 +"
130 +
131 +src_prepare() {
132 + # Upstream patch 377ba9ca7fb33f3fb2ba5258a5af666869947597
133 + eapply "${FILESDIR}/${P}-location-fix.diff"
134 +
135 + eapply_user
136 +
137 + eautoreconf
138 +
139 + gnome2_src_prepare
140 +}
141 +
142 +src_configure() {
143 + gnome2_src_configure \
144 + --disable-static \
145 + --with-dist-version=Gentoo \
146 + --localstatedir=/var \
147 + $(use_with gtk gnome)
148 +}