updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / gadmin-openvpn-server / PKGBUILD
blob96fa5e209aa1cd41d4baac5a46688aea2eac5bc0
1 # Maintainer: Jose Riha <jose1711 at gmail dot com>
3 pkgname=gadmin-openvpn-server
4 pkgver=0.1.5
5 pkgrel=3
6 pkgdesc='A GTK+ graphical user interface for OpenVPN (server)'
7 arch=('i686' 'x86_64')
8 license=('GPL3')
9 depends=('gtk2' 'openvpn' 'bridge-utils' 'gksu')
10 makedepends=('pkgconfig')
11 options=(!libtool)
12 url='http://mange.dynalias.org/linux.html'
13 source=(http://mange.dynalias.org/linux/gadmin-openvpn/server/$pkgname-$pkgver.tar.gz gadmin-openvpn-server.desktop)
14 md5sums=('4fcc8a08b0924fc4ff3a2c59cd6ace5d'
15          'ff53aac86b1dc11486ba119f91366a01')
17 build() {
18         cd $srcdir/$pkgname-$pkgver
19         # some "patching" needed
20         find . -type f -exec sed -i 's%/etc/init.d%/etc/rc.d%g;s%/usr/lib/openvpn/plugin/lib/openvpn-auth-pam.so%/usr/lib/openvpn/openvpn-auth-pam.so%g' '{}' \;
21         ./configure --prefix=/usr
22         make
25 package() {
26         cd $srcdir/$pkgname-$pkgver
27         make DESTDIR=$pkgdir install
28         install -m644 -D $srcdir/gadmin-openvpn-server.desktop $pkgdir/usr/share/applications/gadmin-openvpn-server.desktop