Created
September 1, 2016 19:41
-
-
Save bvaudour/f407ce8fc1c0e1675d90d83d87c5d428 to your computer and use it in GitHub Desktop.
networkmanager-fortisslvpn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install() { | |
if ! getent passwd nm-fortisslvpn >/dev/null; then | |
useradd -r -U -d / -c 'NetworkManager FortisSSLVPN' -s /sbin/nologin nm-fortisslvpn | |
fi | |
} | |
post_upgrade() { | |
post_install $1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgname=networkmanager-fortisslvpn | |
pkgver=1.2.2 | |
_pkgver=1.2 | |
pkgrel=1 | |
pkgdesc="NetworkManager VPN plugin for vpnc" | |
arch=('x86_64') | |
license=('GPL') | |
url="http://www.gnome.org/projects/NetworkManager/" | |
depends=('networkmanager' 'openfortivpn') | |
makedepends=('intltool') | |
options=('!libtool') | |
install=$pkgname.install | |
source=("http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-fortisslvpn/${_pkgver}/NetworkManager-fortisslvpn-${pkgver}.tar.xz") | |
md5sums=('dbf98c77aa69e791505f0c2525270f7f') | |
build() { | |
cd NetworkManager-fortisslvpn-${pkgver} | |
./configure --prefix=/usr \ | |
--sysconfdir=/etc \ | |
--libexecdir=/usr/lib/networkmanager \ | |
--localstatedir=/var \ | |
--without-gnome \ | |
--disable-static \ | |
--without-libnm-glib | |
make | |
} | |
package() { | |
cd NetworkManager-fortisslvpn-${pkgver} | |
make DESTDIR=${pkgdir} install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment