[arch-commits] Commit in networkmanager-openconnect/trunk (2 files)
Ionut Biru
ibiru at archlinux.org
Tue Jan 12 13:54:59 UTC 2010
Date: Tuesday, January 12, 2010 @ 08:54:59
Author: ibiru
Revision: 62808
upgpkg: networkmanager-openconnect 0.7.997-2
added nm-openconnect user and group. the policy needs it. FS#17777
Added:
networkmanager-openconnect/trunk/networkmanager-openconnect.install
Modified:
networkmanager-openconnect/trunk/PKGBUILD
------------------------------------+
PKGBUILD | 5 +++--
networkmanager-openconnect.install | 16 ++++++++++++++++
2 files changed, 19 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-01-12 13:54:19 UTC (rev 62807)
+++ PKGBUILD 2010-01-12 13:54:59 UTC (rev 62808)
@@ -3,15 +3,16 @@
pkgname=networkmanager-openconnect
pkgver=0.7.997
-pkgrel=1
+pkgrel=2
pkgdesc="NetworkManager VPN integration for openconnect"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.gnome.org/projects/NetworkManager/"
-depends=('networkmanager>=0.7.998' 'openconnect')
+depends=('networkmanager>=0.7.998' 'openconnect>=2.21' 'dbus-glib')
makedepends=('intltool' 'gtk2' 'libglade' 'gconf' 'gnome-keyring')
optdepends=('network-manager-applet: GNOME frontends to NetWorkmanager')
options=('!libtool')
+install=$pkgname.install
source=(ftp://ftp.archlinux.org/other/NetworkManager-openconnect/NetworkManager-openconnect-${pkgver}.tar.bz2)
#source=(http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-openconnect/0.7/NetworkManager-openconnect-${pkgver}.tar.bz2)
sha256sums=('ce06a4cf25fb57b7a99c63267e4f69e5bcbf8c3199cd191dc9b8842042597efd')
Added: networkmanager-openconnect.install
===================================================================
--- networkmanager-openconnect.install (rev 0)
+++ networkmanager-openconnect.install 2010-01-12 13:54:59 UTC (rev 62808)
@@ -0,0 +1,16 @@
+pkgname=networkmanager-openconnect
+
+post_install() {
+ getent group nm-openconnect >/dev/null 2>&1 || groupadd -g 104 nm-openconnect
+ getent passwd nm-openconnect > /dev/null 2>&1 || useradd -u 104 -g nm-openconnect -s /sbin/nologin -d / -M -c 'NetworkManager user for OpenConnect' -g nm-openconnect nm-openconnect
+ passwd -l nm-openconnect > /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ getent passwd nm-openconnect >/dev/null 2>&1 && userdel nm-openconnect
+ getent group nm-openconnect >/dev/null 2>&1 && groupdel nm-openconnect
+}
More information about the arch-commits
mailing list