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
This commit is contained in:
Conrad Kostecki
2018-06-24 14:36:35 +02:00
committed by Michał Górny
parent d904a596a5
commit ad8a3f59bc
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST NetworkManager-strongswan-1.4.4.tar.bz2 305677 BLAKE2B 24d99cd3f3844b6ffd47d076153ff8f80a92e575ca7f8da01141be2a48c39a759ee60e17ccdd4928e3c625fa9caae39d8f3cf2c76481adbcdda91fd00ee9e8a2 SHA512 e3e2dd9f5b961255f897ca1912f9deb34ac62628ff40289ff0f8f3900746482f2f32d390c64b88c10f10b8a99388e27099abedb7157d77c173524dc763a32155

View File

@@ -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>

View File

@@ -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
}