[arch-commits] Commit in (7 files)

Felix Yan fyan at nymeria.archlinux.org
Fri Dec 27 05:34:54 UTC 2013


    Date: Friday, December 27, 2013 @ 06:34:54
  Author: fyan
Revision: 103133

addpkg: tork 0.33-5

Added:
  tork/
  tork/repos/
  tork/trunk/
  tork/trunk/PKGBUILD
  tork/trunk/fix_getuid.patch
  tork/trunk/fix_net_port.patch
  tork/trunk/tork.install

--------------------+
 PKGBUILD           |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++
 fix_getuid.patch   |   23 ++++++++++++++++++
 fix_net_port.patch |   20 ++++++++++++++++
 tork.install       |   12 +++++++++
 4 files changed, 118 insertions(+)

Added: tork/trunk/PKGBUILD
===================================================================
--- tork/trunk/PKGBUILD	                        (rev 0)
+++ tork/trunk/PKGBUILD	2013-12-27 05:34:54 UTC (rev 103133)
@@ -0,0 +1,63 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Darwin Bautista <djclue917 at gmail.com>
+# Contributor: Chris Giles <Chris.G.27 (at) Gmail.com>
+
+_libname=tor
+pkgname=${_libname}k
+pkgver=0.33
+pkgrel=5
+pkgdesc="An anonymity manager for KDE"
+arch=("i686" "x86_64")
+url="http://sourceforge.net/projects/$pkgname/"
+license=("GPL")
+depends=("geoip" "kdelibs3" "${_libname}" "torsocks" "hicolor-icon-theme" "desktop-file-utils" "xdg-utils")
+optdepends=("privoxy: For anonymous browsing with Konqueror")
+options=("!emptydirs")
+install=${pkgname}.install
+
+source=(
+  http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2
+  fix_net_port.patch
+  fix_getuid.patch
+)
+sha1sums=(
+  'cf94b9579cf24254fcb344f579088a241bbd4028'
+  '70c450031bf5e603801451fc016e5cfc22cfd19c'
+  '9fe1de823850e6a0d0a4a18c3b86955206f544bd'
+)
+
+build() {
+  cd ${pkgname}-${pkgver}
+  
+  # Source the KDE and QT profiles
+  source /etc/profile.d/kde3.sh
+  #source /etc/profile.d/qt3.sh
+
+  msg "Applying patch(es) ..."
+  
+  patch -Np1 -i ../fix_net_port.patch
+  patch -Np1 -i ../fix_getuid.patch
+
+  # Build
+  msg "Compiling tork ..."
+  ./configure --prefix=/opt/kde --mandir=/usr/share/man \
+  --sysconfdir=/etc --with-external-geoip --without-arts
+
+  # Fix --as-needed and --hash-style=gnu options not recognized error
+  find . -name Makefile -exec sed -i "s/-Wl,//g" {} \;
+  find . -name Makefile -exec sed -i "s/-Wl//g" {} \;
+  find . -name Makefile -exec sed -i "s/--hash-style=gnu,//g" {} \;
+  find . -name Makefile -exec sed -i "s/--hash-style=gnu//g" {} \;
+  find . -name Makefile -exec sed -i "s/--as-needed,//g" {} \;
+  find . -name Makefile -exec sed -i "s/--as-needed//g" {} \;
+
+  make
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: tork/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: tork/trunk/fix_getuid.patch
===================================================================
--- tork/trunk/fix_getuid.patch	                        (rev 0)
+++ tork/trunk/fix_getuid.patch	2013-12-27 05:34:54 UTC (rev 103133)
@@ -0,0 +1,23 @@
+--- A/src/tork.h	2009-08-13 03:41:23.000000000 +0800
++++ B/src/tork.h	2012-04-04 22:43:55.924940588 +0800
+@@ -45,6 +45,9 @@
+ #include <kpopupmenu.h>
+ #include <qvaluevector.h>
+ 
++#include <unistd.h>
++#include <sys/types.h>
++
+ #include "update.h"
+ #include "trayicon.h"
+ #include "upnpmanager.h"
+--- A/src/likeback.h        2006-10-01 19:58:11.000000000 +0800
++++ B/src/likeback.h    2012-04-04 22:50:38.024921928 +0800
+@@ -22,6 +22,8 @@
+ #define LIKEBACK_H
+
+ #include <qobject.h>
++#include <unistd.h>
++#include <sys/types.h>
+
+ class KConfig;
+ class KAboutData;

Added: tork/trunk/fix_net_port.patch
===================================================================
--- tork/trunk/fix_net_port.patch	                        (rev 0)
+++ tork/trunk/fix_net_port.patch	2013-12-27 05:34:54 UTC (rev 103133)
@@ -0,0 +1,20 @@
+--- A/src/upnp/upnprouter.h
++++ B/src/upnp/upnprouter.h
+@@ -242,7 +242,7 @@
+ 		 * @param port The local port to forward
+ 		 */
+ 		void forward(const net::Port & externalport,
+-                     const net::Port & internalport = net::Port::Port(),
++                     const net::Port & internalport = net::Port(),
+                      bool force = false);
+ 		
+ 		/**
+@@ -291,7 +291,7 @@
+ 		bt::HTTPRequest* sendSoapQuery(const QString & query,const QString & soapact,const QString & controlurl,bool fwd, bool at_exit = false );
+ 		bool verbose;
+ 		
+-		void forward(UPnPService* srv,const net::Port & externalport,const net::Port & internalport = net::Port::Port());
++		void forward(UPnPService* srv,const net::Port & externalport,const net::Port & internalport = net::Port());
+ 		void undoForward(UPnPService* srv,const net::Port & externalport,const net::Port &
+                         internalport,bt::WaitJob* waitjob);
+ 		void httpRequestDone(bt::HTTPRequest* r,bool erase_fwd);

Added: tork/trunk/tork.install
===================================================================
--- tork/trunk/tork.install	                        (rev 0)
+++ tork/trunk/tork.install	2013-12-27 05:34:54 UTC (rev 103133)
@@ -0,0 +1,12 @@
+post_install() {
+  xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}




More information about the arch-commits mailing list