[pacrunner] import
David Woodhouse
dwmw2 at fedoraproject.org
Fri Jun 7 19:16:19 UTC 2013
commit 48f733f57e72e503a5dc8ab716c7b6c0e14b5de6
Author: David Woodhouse <David.Woodhouse at intel.com>
Date: Fri Jun 7 20:15:48 2013 +0100
import
.gitignore | 1 +
pacrunner-0.6-gmutex.patch | 31 +++++++++++++++++++++++++++++++
pacrunner.spec | 42 ++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
4 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..8dc54b8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pacrunner-0.6.tar.xz
diff --git a/pacrunner-0.6-gmutex.patch b/pacrunner-0.6-gmutex.patch
new file mode 100644
index 0000000..42729f3
--- /dev/null
+++ b/pacrunner-0.6-gmutex.patch
@@ -0,0 +1,31 @@
+diff --git a/plugins/mozjs.c b/plugins/mozjs.c
+index f96bc94..6294c57 100644
+--- a/plugins/mozjs.c
++++ b/plugins/mozjs.c
+@@ -41,7 +41,7 @@
+ #include "pacrunner.h"
+ #include "js.h"
+
+-static GStaticMutex mozjs_mutex = G_STATIC_MUTEX_INIT;
++static GMutex mozjs_mutex;
+
+ static struct pacrunner_proxy *current_proxy = NULL;
+
+@@ -221,7 +221,7 @@ static char * mozjs_execute(const char *url, const char *host)
+ if (jsctx == NULL)
+ return NULL;
+
+- g_static_mutex_lock(&mozjs_mutex);
++ g_mutex_lock(&mozjs_mutex);
+
+ JS_BeginRequest(jsctx);
+
+@@ -235,7 +235,7 @@ static char * mozjs_execute(const char *url, const char *host)
+
+ JS_MaybeGC(jsctx);
+
+- g_static_mutex_unlock(&mozjs_mutex);
++ g_mutex_unlock(&mozjs_mutex);
+
+ if (result) {
+ answer = JS_EncodeString(jsctx, JS_ValueToString(jsctx, rval));
diff --git a/pacrunner.spec b/pacrunner.spec
new file mode 100644
index 0000000..004d94a
--- /dev/null
+++ b/pacrunner.spec
@@ -0,0 +1,42 @@
+Name: pacrunner
+Version: 0.6
+Release: 1%{?dist}
+Summary: Proxy configuration dæmon
+
+Group: System Environment/Base
+License: GPLv2
+URL: http://connman.net/
+Source0: http://www.kernel.org/pub/linux/network/connman/pacrunner-%{version}.tar.xz
+Patch1: pacrunner-0.6-gmutex.patch
+BuildRequires: python pkgconfig(mozjs185)
+BuildRequires: pkgconfig(glib-2.0) pkgconfig(dbus-1)
+BuildRequires: pkgconfig(libcurl) pkgconfig(cunit)
+
+%description
+PacRunner provides a dæmon for processing proxy configuration
+and providing information to clients over D-Bus.
+
+%prep
+%setup -q
+%patch1 -p1 -b .gmutex
+
+%build
+%configure --disable-libproxy --enable-mozjs --enable-debug \
+ --enable-curl --enable-datafiles --enable-test
+make %{?_smp_mflags}
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/pacrunner
+make install DESTDIR=$RPM_BUILD_ROOT testdir=%{_libexecdir}/pacrunner
+mv $RPM_BUILD_ROOT/%{_datadir}/dbus-1/system-services/{,org.}pacrunner.service
+
+%files
+%doc COPYING README AUTHORS ChangeLog
+%{_sbindir}/pacrunner
+%{_libexecdir}/pacrunner
+%{_datadir}/dbus-1/system-services/org.pacrunner.service
+%{_sysconfdir}/dbus-1/system.d/pacrunner.conf
+
+%changelog
+* Fri Jun 07 2013 David Woodhouse <David.Woodhouse at intel.com> - 0.6-1
+- Initial package
diff --git a/sources b/sources
index e69de29..1f30643 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+56a39480eb8d01598bef04eb5f09c56d pacrunner-0.6.tar.xz
More information about the scm-commits
mailing list