diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/kovpn |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/kovpn')
-rw-r--r-- | community/kovpn/ChangeLog | 2 | ||||
-rw-r--r-- | community/kovpn/PKGBUILD | 40 | ||||
-rw-r--r-- | community/kovpn/kovpn.install | 12 | ||||
-rw-r--r-- | community/kovpn/traywindow_x86_64.patch | 20 |
4 files changed, 74 insertions, 0 deletions
diff --git a/community/kovpn/ChangeLog b/community/kovpn/ChangeLog new file mode 100644 index 000000000..d8e35c402 --- /dev/null +++ b/community/kovpn/ChangeLog @@ -0,0 +1,2 @@ +2007-06-25 Georg Grabler (STiAT) <ggrabler@gmail.com> +* Added libtool option diff --git a/community/kovpn/PKGBUILD b/community/kovpn/PKGBUILD new file mode 100644 index 000000000..17d94f120 --- /dev/null +++ b/community/kovpn/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 9444 2010-01-25 14:13:42Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Douglas Soares de Andrade <dsandrade@gmail.com> + +pkgname=kovpn +pkgver=0.3pre7 +_pkgver=0.3.pre7 +pkgrel=4 +pkgdesc="An OpenVPN client management interface for KDE" +arch=('i686' 'x86_64') +url="http://www.kde-apps.org/content/show.php?content=37043" +license=('GPL') +depends=('openvpn' 'kdelibs3' 'xdg-utils') +makedepends=('automake' 'autoconf') +options=('libtool') +install=kovpn.install +source=("http://projects.fslab.de/projects/kovpn/chrome/site/kovpn-${_pkgver}.tar.bz2" + "kovpn-disable-dcop.patch::http://bugs.archlinux.org/task/15464?getfile=4173" + 'traywindow_x86_64.patch') +md5sums=('19b61cf9f84088baffbd5bb0a287422c' + '21171b74f76289daea1cc61eedaa4dba' + 'bf6218bf2686b6fe41874d5df4e71d63') + +build() { + cd $startdir/src/$pkgname-$_pkgver + + . /etc/profile.d/qt3.sh + export PATH=$QTDIR/bin:$PATH + export QMAKESPEC=$QTDIR/mkspecs/linux-g++ + + patch -Np1 -i ../kovpn-disable-dcop.patch + + [ "$CARCH" = "x86_64" ] && patch -Np0 -i ../traywindow_x86_64.patch + sed -i 's#automake\*1.10\*#automake*1.10* | automake*1.11*#' admin/cvs.sh + + make -f admin/Makefile.common cvs + ./configure --prefix=/opt/kde --without-arts --with-qt-dir=/opt/qt + make || return 1 + make prefix=$startdir/pkg/usr install +} diff --git a/community/kovpn/kovpn.install b/community/kovpn/kovpn.install new file mode 100644 index 000000000..b4ee8556f --- /dev/null +++ b/community/kovpn/kovpn.install @@ -0,0 +1,12 @@ +post_install() { + which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + which xdg-icon-resource 1>/dev/null 2>/dev/null && xdg-icon-resource forceupdate || true +} + diff --git a/community/kovpn/traywindow_x86_64.patch b/community/kovpn/traywindow_x86_64.patch new file mode 100644 index 000000000..8c50d425a --- /dev/null +++ b/community/kovpn/traywindow_x86_64.patch @@ -0,0 +1,20 @@ +--- src/traywindow.cpp.orig 2006-07-23 13:26:21.236380500 +0100 ++++ src/traywindow.cpp 2006-07-23 13:26:38.625467250 +0100 +@@ -107,7 +107,7 @@ + delete mDisconnectMenuItems[ manager->id() ]; + + /* I think (int) manager is unique and static enough to be used as id for the menu */ +- mContextMenu->removeItem( ( int ) manager ); ++ mContextMenu->removeItem( ( long ) manager ); + mManagerMenus.remove( manager->id() ); + mOvpnManagers.remove( manager ); + } +@@ -125,7 +125,7 @@ + + mManagerMenus[ manager->id() ] = new KPopupMenu( mContextMenu ); + /* I think (int) manager is unique and static enough to be used as id for the menu */ +- mContextMenu->insertItem( manager->id() , mManagerMenus[ manager->id() ] , ( int ) manager, 5 ); ++ mContextMenu->insertItem( manager->id() , mManagerMenus[ manager->id() ] , ( long ) manager, 5 ); + + mManagerMenus[ manager->id() ] ->insertTitle( i18n( "Status: Unavailable" ), 0 ); + |