summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO24
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD39
-rw-r--r--networkmanager-openconnect.install9
4 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..dc8f3aaa4c5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = networkmanager-openconnect-multiprotocol-git
+ pkgdesc = NetworkManager VPN plugin for OpenConnect - multiprotocol version
+ pkgver = r805.e86c9b3
+ pkgrel = 1
+ url = https://github.com/dlenski/network-manager-openconnect
+ install = networkmanager-openconnect.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = libnm-gtk
+ makedepends = intltool
+ makedepends = python
+ makedepends = git
+ depends = gcr
+ depends = libnm-glib
+ depends = libsecret
+ depends = openconnect-palo-git
+ provides = networkmanager-openconnect
+ conflicts = networkmanager-openconnect
+ source = networkmanager-openconnect-multiprotocol-git::git+https://github.com/dlenski/network-manager-openconnect.git
+ sha256sums = SKIP
+
+pkgname = networkmanager-openconnect-multiprotocol-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3750a9428e5
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+networkmanager-openconnect-multiprotocol-git/*
+*.tar.xz
+*.log
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..eb9af78526f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
+
+pkgname=networkmanager-openconnect-multiprotocol-git
+pkgver=r805.e86c9b3
+pkgrel=1
+pkgdesc="NetworkManager VPN plugin for OpenConnect - multiprotocol version"
+url="https://github.com/dlenski/network-manager-openconnect"
+arch=(i686 x86_64)
+license=(GPL)
+depends=(gcr libnm-glib libsecret openconnect-palo-git)
+makedepends=(libnm-gtk intltool python git)
+provides=(networkmanager-openconnect)
+conflicts=(networkmanager-openconnect)
+install=networkmanager-openconnect.install
+source=("$pkgname::git+https://github.com/dlenski/network-manager-openconnect.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --libexecdir=/usr/lib/NetworkManager --disable-static
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir" install
+}
diff --git a/networkmanager-openconnect.install b/networkmanager-openconnect.install
new file mode 100644
index 00000000000..34f7a1d99b2
--- /dev/null
+++ b/networkmanager-openconnect.install
@@ -0,0 +1,9 @@
+post_install() {
+ if ! getent passwd nm-openconnect >/dev/null; then
+ useradd -r -U -d / -c 'NetworkManager OpenConnect' -s /usr/bin/nologin nm-openconnect
+ fi
+}
+
+post_upgrade() {
+ post_install $1
+}