[arch-commits] Commit in tork/repos (10 files)
Felix Yan
fyan at nymeria.archlinux.org
Fri Dec 27 05:36:23 UTC 2013
Date: Friday, December 27, 2013 @ 06:36:23
Author: fyan
Revision: 103134
archrelease: copy trunk to community-i686, community-x86_64
Added:
tork/repos/community-i686/
tork/repos/community-i686/PKGBUILD
(from rev 103133, tork/trunk/PKGBUILD)
tork/repos/community-i686/fix_getuid.patch
(from rev 103133, tork/trunk/fix_getuid.patch)
tork/repos/community-i686/fix_net_port.patch
(from rev 103133, tork/trunk/fix_net_port.patch)
tork/repos/community-i686/tork.install
(from rev 103133, tork/trunk/tork.install)
tork/repos/community-x86_64/
tork/repos/community-x86_64/PKGBUILD
(from rev 103133, tork/trunk/PKGBUILD)
tork/repos/community-x86_64/fix_getuid.patch
(from rev 103133, tork/trunk/fix_getuid.patch)
tork/repos/community-x86_64/fix_net_port.patch
(from rev 103133, tork/trunk/fix_net_port.patch)
tork/repos/community-x86_64/tork.install
(from rev 103133, tork/trunk/tork.install)
-------------------------------------+
community-i686/PKGBUILD | 63 ++++++++++++++++++++++++++++++++++
community-i686/fix_getuid.patch | 23 ++++++++++++
community-i686/fix_net_port.patch | 20 ++++++++++
community-i686/tork.install | 12 ++++++
community-x86_64/PKGBUILD | 63 ++++++++++++++++++++++++++++++++++
community-x86_64/fix_getuid.patch | 23 ++++++++++++
community-x86_64/fix_net_port.patch | 20 ++++++++++
community-x86_64/tork.install | 12 ++++++
8 files changed, 236 insertions(+)
Copied: tork/repos/community-i686/PKGBUILD (from rev 103133, tork/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD (rev 0)
+++ community-i686/PKGBUILD 2013-12-27 05:36:23 UTC (rev 103134)
@@ -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:
Copied: tork/repos/community-i686/fix_getuid.patch (from rev 103133, tork/trunk/fix_getuid.patch)
===================================================================
--- community-i686/fix_getuid.patch (rev 0)
+++ community-i686/fix_getuid.patch 2013-12-27 05:36:23 UTC (rev 103134)
@@ -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;
Copied: tork/repos/community-i686/fix_net_port.patch (from rev 103133, tork/trunk/fix_net_port.patch)
===================================================================
--- community-i686/fix_net_port.patch (rev 0)
+++ community-i686/fix_net_port.patch 2013-12-27 05:36:23 UTC (rev 103134)
@@ -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);
Copied: tork/repos/community-i686/tork.install (from rev 103133, tork/trunk/tork.install)
===================================================================
--- community-i686/tork.install (rev 0)
+++ community-i686/tork.install 2013-12-27 05:36:23 UTC (rev 103134)
@@ -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
+}
Copied: tork/repos/community-x86_64/PKGBUILD (from rev 103133, tork/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2013-12-27 05:36:23 UTC (rev 103134)
@@ -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:
Copied: tork/repos/community-x86_64/fix_getuid.patch (from rev 103133, tork/trunk/fix_getuid.patch)
===================================================================
--- community-x86_64/fix_getuid.patch (rev 0)
+++ community-x86_64/fix_getuid.patch 2013-12-27 05:36:23 UTC (rev 103134)
@@ -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;
Copied: tork/repos/community-x86_64/fix_net_port.patch (from rev 103133, tork/trunk/fix_net_port.patch)
===================================================================
--- community-x86_64/fix_net_port.patch (rev 0)
+++ community-x86_64/fix_net_port.patch 2013-12-27 05:36:23 UTC (rev 103134)
@@ -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);
Copied: tork/repos/community-x86_64/tork.install (from rev 103133, tork/trunk/tork.install)
===================================================================
--- community-x86_64/tork.install (rev 0)
+++ community-x86_64/tork.install 2013-12-27 05:36:23 UTC (rev 103134)
@@ -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