summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conrad@kostecki.com>2018-06-24 14:36:35 +0200
committerMichał Górny <mgorny@gentoo.org>2018-06-24 23:12:40 +0200
commitad8a3f59bc0ee32420c2335f49208de5cf38d467 (patch)
tree78a4dc8a3c74d456de42880a59e3dc0616d6f271 /net-misc/networkmanager-strongswan
parentx11-themes/qtcurve: Drop old Qt4-based (diff)
downloadgentoo-ad8a3f59bc0ee32420c2335f49208de5cf38d467.tar.gz
gentoo-ad8a3f59bc0ee32420c2335f49208de5cf38d467.tar.bz2
gentoo-ad8a3f59bc0ee32420c2335f49208de5cf38d467.zip
net-misc/networkmanager-strongswan: New package
Closes: https://bugs.gentoo.org/571234 Closes: https://github.com/gentoo/gentoo/pull/7663 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-misc/networkmanager-strongswan')
-rw-r--r--net-misc/networkmanager-strongswan/Manifest1
-rw-r--r--net-misc/networkmanager-strongswan/metadata.xml15
-rw-r--r--net-misc/networkmanager-strongswan/networkmanager-strongswan-1.4.4.ebuild45
3 files changed, 61 insertions, 0 deletions
diff --git a/net-misc/networkmanager-strongswan/Manifest b/net-misc/networkmanager-strongswan/Manifest
new file mode 100644
index 000000000000..9f2382af30d6
--- /dev/null
+++ b/net-misc/networkmanager-strongswan/Manifest
@@ -0,0 +1 @@
+DIST NetworkManager-strongswan-1.4.4.tar.bz2 305677 BLAKE2B 24d99cd3f3844b6ffd47d076153ff8f80a92e575ca7f8da01141be2a48c39a759ee60e17ccdd4928e3c625fa9caae39d8f3cf2c76481adbcdda91fd00ee9e8a2 SHA512 e3e2dd9f5b961255f897ca1912f9deb34ac62628ff40289ff0f8f3900746482f2f32d390c64b88c10f10b8a99388e27099abedb7157d77c173524dc763a32155
diff --git a/net-misc/networkmanager-strongswan/metadata.xml b/net-misc/networkmanager-strongswan/metadata.xml
new file mode 100644
index 000000000000..0afa017bfd09
--- /dev/null
+++ b/net-misc/networkmanager-strongswan/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ck+gentoo@bl4ckb0x.de</email>
+ <name>Conrad Kostecki</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <flag name="glib">Enable libnm-glib compatibility.</flag>
+ </use>
+</pkgmetadata>
diff --git a/net-misc/networkmanager-strongswan/networkmanager-strongswan-1.4.4.ebuild b/net-misc/networkmanager-strongswan/networkmanager-strongswan-1.4.4.ebuild
new file mode 100644
index 000000000000..738be2c105f5
--- /dev/null
+++ b/net-misc/networkmanager-strongswan/networkmanager-strongswan-1.4.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="NetworkManager"
+MY_P="${P/networkmanager/${MY_PN}}"
+
+DESCRIPTION="NetworkManager StrongSwan plugin"
+HOMEPAGE="https://www.strongswan.org/"
+SRC_URI="https://download.strongswan.org/${MY_PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+glib"
+
+RDEPEND="app-crypt/libsecret
+ gnome-extra/nm-applet
+ net-misc/networkmanager
+ net-vpn/strongswan[networkmanager]
+ x11-libs/gtk+:3"
+
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig"
+
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ local myeconfargs=(
+ # Don't enable all warnings, as some are treated as errors and the compilation will fail
+ --disable-more-warnings
+ --disable-static
+ $(usex glib '' --without-libnm-glib)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ find "${D}" -name '*.la' -delete || die
+}