mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
gnome2: remove with 2 abandoned tools
This commit is contained in:
parent
d24c1c2196
commit
327fb9f9e7
20 changed files with 6 additions and 770 deletions
|
|
@ -1,2 +0,0 @@
|
|||
DIST gnome-keyring-3.34.0.tar.xz 1333768 BLAKE2B 0237eb7ac0b7146d096c58cac4c788a92680f1a6dd321949f295935bde206263e5ee1762c9d393dfbc10322d018e835333c823d11e8af5dc01434555886626dd SHA512 09f84bdf5ea415a55baf6a57dba2889cdf592005d273335029107ea3f83152447b3263cd190810930aae41af22dd508e765e649da3c8a9afa127db1d298bb72a
|
||||
DIST gnome-keyring-3.36.0.tar.xz 1345360 BLAKE2B f37454e0e42dcc1fe7e29e95dcb8ca7bc2db10e6b262b796421b4fd38b87fe9128a4c2f129d28d14716a2f9a7d60061d4b345e9564e73a0587faf24a7d2b1194 SHA512 e5aed36ad109cbd2dcb534843f8565829366acc955cadc6e9bbe87ebbb6a8a907211aa3a42f7f26148ac69726af2f9238965707d1259319435bd20aa8c4859ed
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
From 7a8b7d2ebfbb831840e6d58dbb1109f4c31d6ba4 Mon Sep 17 00:00:00 2001
|
||||
From: Daiki Ueno <dueno@src.gnome.org>
|
||||
Date: Fri, 10 May 2019 15:47:33 +0200
|
||||
Subject: [PATCH] rpc-layer: fix build with musl-libc
|
||||
|
||||
The recent POSIX suggests to include <sys/select.h> for select().
|
||||
|
||||
Reported by Anthony G. Basile.
|
||||
---
|
||||
pkcs11/rpc-layer/gkm-rpc-daemon-standalone.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/pkcs11/rpc-layer/gkm-rpc-daemon-standalone.c b/pkcs11/rpc-layer/gkm-rpc-daemon-standalone.c
|
||||
index 5024e1e1..b3fb6707 100644
|
||||
--- a/pkcs11/rpc-layer/gkm-rpc-daemon-standalone.c
|
||||
+++ b/pkcs11/rpc-layer/gkm-rpc-daemon-standalone.c
|
||||
@@ -34,6 +34,7 @@
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <pthread.h>
|
||||
+#include <sys/select.h>
|
||||
|
||||
#define SOCKET_PATH "/tmp/gkm-rpc-daemon.sock"
|
||||
|
||||
--
|
||||
2.20.1
|
||||
|
||||
|
|
@ -1,37 +0,0 @@
|
|||
From 8a948b3ac17f7d1b0ff31b0cf22e655054eb5c6b Mon Sep 17 00:00:00 2001
|
||||
From: Benjamin Berg <bberg@redhat.com>
|
||||
Date: Tue, 14 May 2019 17:36:56 +0200
|
||||
Subject: [PATCH 1/2] dbus-environment: Log Setenv call failure after
|
||||
initialization
|
||||
|
||||
When the GNOME session is already initialized at the point that Setenv
|
||||
is called, then an error is returned. Hidding this error makes it hard
|
||||
to understand why the environment was not setup if things failed.
|
||||
---
|
||||
daemon/dbus/gkd-dbus-environment.c | 6 +-----
|
||||
1 file changed, 1 insertion(+), 5 deletions(-)
|
||||
|
||||
diff --git a/daemon/dbus/gkd-dbus-environment.c b/daemon/dbus/gkd-dbus-environment.c
|
||||
index 93e2b878..051de953 100644
|
||||
--- a/daemon/dbus/gkd-dbus-environment.c
|
||||
+++ b/daemon/dbus/gkd-dbus-environment.c
|
||||
@@ -49,15 +49,11 @@ on_setenv_reply (GObject *source,
|
||||
res = g_dbus_connection_call_finish (G_DBUS_CONNECTION (source), result, &error);
|
||||
|
||||
if (error != NULL) {
|
||||
- gchar *dbus_error;
|
||||
- dbus_error = g_dbus_error_get_remote_error (error);
|
||||
- if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN) ||
|
||||
- g_strcmp0 (dbus_error, "org.gnome.SessionManager.NotInInitialization") == 0)
|
||||
+ if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))
|
||||
g_debug ("couldn't set environment variable in session: %s", error->message);
|
||||
else
|
||||
g_message ("couldn't set environment variable in session: %s", error->message);
|
||||
g_error_free (error);
|
||||
- g_free (dbus_error);
|
||||
}
|
||||
|
||||
g_clear_pointer (&res, g_variant_unref);
|
||||
--
|
||||
2.20.1
|
||||
|
||||
|
|
@ -1,104 +0,0 @@
|
|||
From 5d088356a9473c06564bd2cef18ca370437a17bc Mon Sep 17 00:00:00 2001
|
||||
From: Benjamin Berg <bberg@redhat.com>
|
||||
Date: Tue, 14 May 2019 17:42:29 +0200
|
||||
Subject: [PATCH 2/2] dbus-environment: Make Setenv request synchronuous
|
||||
|
||||
Currently there is a potential race condition where the Setenv request
|
||||
races further session startup. i.e. the clients that are started with
|
||||
--start on login may quit before the Setenv DBus call is delivered. This
|
||||
opens a theoretical race condition where gnome-session is already past
|
||||
the initialization phase when it serves the Setenv request.
|
||||
---
|
||||
daemon/dbus/gkd-dbus-environment.c | 62 +++++++++++++++---------------
|
||||
1 file changed, 30 insertions(+), 32 deletions(-)
|
||||
|
||||
diff --git a/daemon/dbus/gkd-dbus-environment.c b/daemon/dbus/gkd-dbus-environment.c
|
||||
index 051de953..acf398b9 100644
|
||||
--- a/daemon/dbus/gkd-dbus-environment.c
|
||||
+++ b/daemon/dbus/gkd-dbus-environment.c
|
||||
@@ -38,32 +38,13 @@ gkd_dbus_environment_cleanup (GDBusConnection *conn)
|
||||
/* Nothing to do here */
|
||||
}
|
||||
|
||||
-static void
|
||||
-on_setenv_reply (GObject *source,
|
||||
- GAsyncResult *result,
|
||||
- gpointer user_data)
|
||||
-{
|
||||
- GError *error = NULL;
|
||||
- GVariant *res;
|
||||
-
|
||||
- res = g_dbus_connection_call_finish (G_DBUS_CONNECTION (source), result, &error);
|
||||
-
|
||||
- if (error != NULL) {
|
||||
- if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))
|
||||
- g_debug ("couldn't set environment variable in session: %s", error->message);
|
||||
- else
|
||||
- g_message ("couldn't set environment variable in session: %s", error->message);
|
||||
- g_error_free (error);
|
||||
- }
|
||||
-
|
||||
- g_clear_pointer (&res, g_variant_unref);
|
||||
-}
|
||||
-
|
||||
static void
|
||||
setenv_request (GDBusConnection *conn, const gchar *env)
|
||||
{
|
||||
const gchar *value;
|
||||
gchar *name;
|
||||
+ GVariant *res;
|
||||
+ GError *error = NULL;
|
||||
|
||||
/* Find the value part of the environment variable */
|
||||
value = strchr (env, '=');
|
||||
@@ -73,19 +54,36 @@ setenv_request (GDBusConnection *conn, const gchar *env)
|
||||
name = g_strndup (env, value - env);
|
||||
++value;
|
||||
|
||||
- g_dbus_connection_call (conn,
|
||||
- SERVICE_SESSION_MANAGER,
|
||||
- PATH_SESSION_MANAGER,
|
||||
- IFACE_SESSION_MANAGER,
|
||||
- "Setenv",
|
||||
- g_variant_new ("(ss)",
|
||||
- name,
|
||||
- value),
|
||||
- NULL, G_DBUS_CALL_FLAGS_NONE,
|
||||
- -1, NULL,
|
||||
- on_setenv_reply, NULL);
|
||||
+ /* Note: This call does not neccessarily need to be a sync call. However
|
||||
+ * under certain conditions the process will quit immediately
|
||||
+ * after emitting the call. This ensures that we wait long enough
|
||||
+ * for the message to be sent out (could also be done using
|
||||
+ * g_dbus_connection_flush() in the exit handler when called with
|
||||
+ * --start) and also ensures that gnome-session has processed the
|
||||
+ * DBus message before possibly thinking that the startup of
|
||||
+ * gnome-keyring has finished and continuing with forking the
|
||||
+ * shell. */
|
||||
+ res = g_dbus_connection_call_sync (conn,
|
||||
+ SERVICE_SESSION_MANAGER,
|
||||
+ PATH_SESSION_MANAGER,
|
||||
+ IFACE_SESSION_MANAGER,
|
||||
+ "Setenv",
|
||||
+ g_variant_new ("(ss)",
|
||||
+ name,
|
||||
+ value),
|
||||
+ NULL, G_DBUS_CALL_FLAGS_NONE,
|
||||
+ -1, NULL, &error);
|
||||
+
|
||||
+ if (error != NULL) {
|
||||
+ if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN))
|
||||
+ g_debug ("couldn't set environment variable in session: %s", error->message);
|
||||
+ else
|
||||
+ g_message ("couldn't set environment variable in session: %s", error->message);
|
||||
+ g_error_free (error);
|
||||
+ }
|
||||
|
||||
g_free (name);
|
||||
+ g_clear_pointer (&res, g_variant_unref);
|
||||
}
|
||||
|
||||
static void
|
||||
--
|
||||
2.20.1
|
||||
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
From 91bc9368ca2eedef0dec3f5aa81f641ced07a9b6 Mon Sep 17 00:00:00 2001
|
||||
From: Simon McVittie <smcv@debian.org>
|
||||
Date: Sat, 9 Mar 2019 17:56:55 +0000
|
||||
Subject: [PATCH] test-gkd-ssh-agent-service: Avoid race condition with server
|
||||
thread
|
||||
|
||||
These tests create a server thread in setup() and join it in teardown(),
|
||||
but there are various race conditions between them that can cause the
|
||||
test to hang. These are particularly reproducible when building on a
|
||||
single-CPU machine or VM, and particularly in the startup_shutdown
|
||||
test (which doesn't do anything, so it runs teardown() immediately
|
||||
after setup()).
|
||||
|
||||
It's possible to get this preemption pattern:
|
||||
|
||||
___ Main thread ___ ___ Server thread ___
|
||||
g_thread_new() (starts)
|
||||
g_cond_wait() (blocks)
|
||||
...
|
||||
g_cond_signal()
|
||||
(gets preempted here)
|
||||
exit setup()
|
||||
enter teardown()
|
||||
g_main_loop_quit()
|
||||
g_main_loop_run()
|
||||
|
||||
which means g_main_loop_run() will never terminate, because it wasn't
|
||||
running yet when the main thread told the GMainLoop to quit, and the
|
||||
main thread won't tell it to quit again.
|
||||
|
||||
One way to solve this would be for the server thread to signal
|
||||
test->cond from an idle callback instead of directly from
|
||||
server_thread(), to guarantee that the GMainLoop is already running.
|
||||
However, it seems easier to reason about if we avoid GMainLoop and
|
||||
iterate the main context directly.
|
||||
|
||||
Signed-off-by: Simon McVittie <smcv@debian.org>
|
||||
Bug-Debian: https://bugs.debian.org/909416
|
||||
---
|
||||
daemon/ssh-agent/test-gkd-ssh-agent-service.c | 23 +++++++++----------
|
||||
1 file changed, 11 insertions(+), 12 deletions(-)
|
||||
|
||||
diff --git a/daemon/ssh-agent/test-gkd-ssh-agent-service.c b/daemon/ssh-agent/test-gkd-ssh-agent-service.c
|
||||
index 9a9ead99..5c7a6179 100644
|
||||
--- a/daemon/ssh-agent/test-gkd-ssh-agent-service.c
|
||||
+++ b/daemon/ssh-agent/test-gkd-ssh-agent-service.c
|
||||
@@ -38,7 +38,8 @@ typedef struct {
|
||||
EggBuffer req;
|
||||
EggBuffer resp;
|
||||
GkdSshAgentService *service;
|
||||
- GMainLoop *loop;
|
||||
+ GMainContext *server_thread_context;
|
||||
+ volatile gint server_thread_stop;
|
||||
GSocketConnection *connection;
|
||||
GThread *thread;
|
||||
GMutex lock;
|
||||
@@ -49,13 +50,9 @@ static gpointer
|
||||
server_thread (gpointer data)
|
||||
{
|
||||
Test *test = data;
|
||||
- GMainContext *context;
|
||||
gboolean ret;
|
||||
|
||||
- context = g_main_context_new ();
|
||||
- test->loop = g_main_loop_new (context, FALSE);
|
||||
-
|
||||
- g_main_context_push_thread_default (context);
|
||||
+ g_main_context_push_thread_default (test->server_thread_context);
|
||||
|
||||
ret = gkd_ssh_agent_service_start (test->service);
|
||||
g_assert_true (ret);
|
||||
@@ -64,12 +61,10 @@ server_thread (gpointer data)
|
||||
g_cond_signal (&test->cond);
|
||||
g_mutex_unlock (&test->lock);
|
||||
|
||||
- g_main_loop_run (test->loop);
|
||||
+ while (g_atomic_int_get (&test->server_thread_stop) == 0)
|
||||
+ g_main_context_iteration (test->server_thread_context, TRUE);
|
||||
|
||||
- g_main_context_pop_thread_default (context);
|
||||
-
|
||||
- g_main_context_unref (context);
|
||||
- g_main_loop_unref (test->loop);
|
||||
+ g_main_context_pop_thread_default (test->server_thread_context);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
@@ -139,6 +134,7 @@ setup (Test *test, gconstpointer unused)
|
||||
|
||||
g_mutex_init (&test->lock);
|
||||
g_cond_init (&test->cond);
|
||||
+ test->server_thread_context = g_main_context_new ();
|
||||
|
||||
test->thread = g_thread_new ("ssh-agent", server_thread, test);
|
||||
|
||||
@@ -151,9 +147,12 @@ setup (Test *test, gconstpointer unused)
|
||||
static void
|
||||
teardown (Test *test, gconstpointer unused)
|
||||
{
|
||||
- g_main_loop_quit (test->loop);
|
||||
+ g_atomic_int_set (&test->server_thread_stop, 1);
|
||||
+ g_main_context_wakeup (test->server_thread_context);
|
||||
g_thread_join (test->thread);
|
||||
|
||||
+ g_main_context_unref (test->server_thread_context);
|
||||
+
|
||||
g_clear_object (&test->connection);
|
||||
|
||||
gkd_ssh_agent_service_stop (test->service);
|
||||
--
|
||||
2.20.1
|
||||
|
||||
|
|
@ -1,79 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
GNOME2_LA_PUNT="yes"
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit fcaps gnome2 pam python-any-r1 virtualx
|
||||
|
||||
DESCRIPTION="Password and keyring managing daemon"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/GnomeKeyring"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="+caps pam selinux +ssh-agent test"
|
||||
RESTRICT="!test? ( test )"
|
||||
KEYWORDS="~alpha amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
|
||||
# Replace gkd gpg-agent with pinentry[gnome-keyring] one, bug #547456
|
||||
RDEPEND="
|
||||
>=app-crypt/gcr-3.27.90:=[gtk]
|
||||
>=dev-libs/glib-2.44:2
|
||||
app-misc/ca-certificates
|
||||
>=dev-libs/libgcrypt-1.2.2:0=
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
pam? ( sys-libs/pam )
|
||||
selinux? ( sec-policy/selinux-gnome )
|
||||
>=app-crypt/gnupg-2.0.28:=
|
||||
ssh-agent? ( net-misc/openssh )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=app-eselect/eselect-pinentry-0.5
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
dev-libs/libxslt
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
test? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
#PDEPEND="app-crypt/pinentry[gnome-keyring]" #570512
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Disable stupid CFLAGS with debug enabled
|
||||
sed -e 's/CFLAGS="$CFLAGS -g"//' \
|
||||
-e 's/CFLAGS="$CFLAGS -O0"//' \
|
||||
-i configure.ac configure || die
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
$(use_with caps libcap-ng) \
|
||||
$(use_enable pam) \
|
||||
$(use_with pam pam-dir $(getpam_mod_dir)) \
|
||||
$(use_enable selinux) \
|
||||
$(use_enable ssh-agent) \
|
||||
--enable-doc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/schema" || die
|
||||
GSETTINGS_SCHEMA_DIR="${S}/schema" virtx emake check
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# cap_ipc_lock only needed if building --with-libcap-ng
|
||||
# Never install as suid root, this breaks dbus activation, see bug #513870
|
||||
use caps && fcaps -m 755 cap_ipc_lock usr/bin/gnome-keyring-daemon
|
||||
gnome2_pkg_postinst
|
||||
|
||||
if ! [[ $(eselect pinentry show | grep "pinentry-gnome3") ]] ; then
|
||||
ewarn "Please select pinentry-gnome3 as default pinentry provider:"
|
||||
ewarn " # eselect pinentry set pinentry-gnome3"
|
||||
fi
|
||||
}
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
GNOME2_LA_PUNT="yes"
|
||||
PYTHON_COMPAT=( python3_{6..9} )
|
||||
|
||||
inherit fcaps gnome2 pam python-any-r1 virtualx
|
||||
|
||||
DESCRIPTION="Password and keyring managing daemon"
|
||||
HOMEPAGE="https://wiki.gnome.org/Projects/GnomeKeyring"
|
||||
|
||||
LICENSE="GPL-2+ LGPL-2+"
|
||||
SLOT="0"
|
||||
IUSE="+caps pam selinux +ssh-agent test"
|
||||
RESTRICT="!test? ( test )"
|
||||
KEYWORDS="amd64 x86"
|
||||
|
||||
# Replace gkd gpg-agent with pinentry[gnome-keyring] one, bug #547456
|
||||
RDEPEND="
|
||||
>=app-crypt/gcr-3.27.90:=[gtk]
|
||||
>=dev-libs/glib-2.44:2
|
||||
app-misc/ca-certificates
|
||||
>=dev-libs/libgcrypt-1.2.2:0=
|
||||
caps? ( sys-libs/libcap-ng )
|
||||
pam? ( sys-libs/pam )
|
||||
selinux? ( sec-policy/selinux-gnome )
|
||||
>=app-crypt/gnupg-2.0.28:=
|
||||
ssh-agent? ( net-misc/openssh )
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=app-eselect/eselect-pinentry-0.5
|
||||
app-text/docbook-xml-dtd:4.3
|
||||
dev-libs/libxslt
|
||||
>=sys-devel/gettext-0.19.8
|
||||
virtual/pkgconfig
|
||||
test? ( ${PYTHON_DEPS} )
|
||||
"
|
||||
#PDEPEND="app-crypt/pinentry[gnome-keyring]" #570512
|
||||
|
||||
pkg_setup() {
|
||||
use test && python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
# Disable stupid CFLAGS with debug enabled
|
||||
sed -e 's/CFLAGS="$CFLAGS -g"//' \
|
||||
-e 's/CFLAGS="$CFLAGS -O0"//' \
|
||||
-i configure.ac configure || die
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
gnome2_src_configure \
|
||||
$(use_with caps libcap-ng) \
|
||||
$(use_enable pam) \
|
||||
$(use_with pam pam-dir $(getpam_mod_dir)) \
|
||||
$(use_enable selinux) \
|
||||
$(use_enable ssh-agent) \
|
||||
--enable-doc
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# Needs dbus-run-session to not get:
|
||||
# ERROR: test-dbus-search process failed: -6
|
||||
"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/schema" || die
|
||||
GSETTINGS_SCHEMA_DIR="${S}/schema" virtx dbus-run-session emake check
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
# cap_ipc_lock only needed if building --with-libcap-ng
|
||||
# Never install as suid root, this breaks dbus activation, see bug #513870
|
||||
use caps && fcaps -m 755 cap_ipc_lock usr/bin/gnome-keyring-daemon
|
||||
gnome2_pkg_postinst
|
||||
|
||||
if ! [[ $(eselect pinentry show | grep "pinentry-gnome3") ]] ; then
|
||||
ewarn "Please select pinentry-gnome3 as default pinentry provider:"
|
||||
ewarn " # eselect pinentry set pinentry-gnome3"
|
||||
fi
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="ssh-agent">Add SSH agent support</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1 +0,0 @@
|
|||
DIST libgnomeui-2.24.5.tar.bz2 1440172 SHA256 ae352f2495889e65524c979932c909f4629a58e64290fb0c95333373225d3c0f SHA512 e78fbe909179161acb6f7a1d31b8a247c9007af55c7f9c36422791be8d2681d42edfa582c19db88459d36309a18c03cb859997fe6b5918f602884607a8b6d5d5 WHIRLPOOL 0cfb10abdddd282f45b147fa3214bbaba005e75e5c73ffed962fbb6b828d2e632d3de49c876eb6127bf13b85a9985f3c9dec9571085196d0f23a762f93433f22
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
GCONF_DEBUG="no"
|
||||
GNOME2_LA_PUNT="yes"
|
||||
GNOME_TARBALL_SUFFIX="bz2"
|
||||
|
||||
inherit gnome2
|
||||
|
||||
DESCRIPTION="User Interface routines for Gnome"
|
||||
HOMEPAGE="https://library.gnome.org/devel/libgnomeui/stable/"
|
||||
|
||||
LICENSE="LGPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
|
||||
IUSE="test gnome-keyring"
|
||||
|
||||
# gtk+-2.14 dep instead of 2.12 ensures system doesn't loose VFS capabilities in GtkFilechooser
|
||||
RDEPEND="
|
||||
dev-libs/atk
|
||||
>=dev-libs/glib-2.16:2
|
||||
>=dev-libs/libxml2-2.4.20:2
|
||||
>=dev-libs/popt-1.5
|
||||
>=gnome-base/gconf-2:2
|
||||
>=gnome-base/gnome-keyring-0.4
|
||||
>=gnome-base/gnome-vfs-2.7.3:2
|
||||
>=gnome-base/libgnome-2.13.7
|
||||
>=gnome-base/libgnomecanvas-2
|
||||
gnome-keyring? ( gnome-base/libgnome-keyring )
|
||||
>=gnome-base/libbonoboui-2.13.1
|
||||
>=gnome-base/libglade-2:2.0
|
||||
media-libs/libart_lgpl
|
||||
x11-libs/gdk-pixbuf:2
|
||||
>=x11-libs/gtk+-2.14:2
|
||||
>=x11-libs/pango-1.1.2
|
||||
x11-libs/libICE
|
||||
x11-libs/libSM
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-util/gtk-doc-am
|
||||
sys-devel/gettext
|
||||
virtual/pkgconfig
|
||||
>=dev-util/intltool-0.40
|
||||
"
|
||||
PDEPEND="x11-themes/adwaita-icon-theme"
|
||||
|
||||
src_prepare() {
|
||||
if ! use test; then
|
||||
sed 's/ test-gnome//' -i Makefile.am Makefile.in || die "sed failed"
|
||||
fi
|
||||
|
||||
#keyring can be optional, it is disabled in win32 for example
|
||||
#https://bugzilla.gnome.org/show_bug.cgi?id=768754
|
||||
if ! use gnome-keyring; then
|
||||
sed -i 's|GNOME_KEYRING=\"gnome-keyring-1\"|GNOME_KEYRING=\"\"|g' configure || die "sed failed"
|
||||
sed -i 's|gnome_keyring_requirement=\"gnome-keyring-1 >= 0.4\"|gnome_keyring_requirement=\"\"|g' configure || die "sed failed"
|
||||
sed -i 's|@OS_WIN32_FALSE@am__objects_1 = gnome-authentication-manager.lo|@OS_WIN32_FALSE@am__objects_1 = |g' libgnomeui/Makefile.in || die "sed failed"
|
||||
fi
|
||||
|
||||
gnome2_src_prepare
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>unknown@pentoo.ch</email>
|
||||
<name>Author Unknown</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
|
|
@ -1 +0,0 @@
|
|||
DIST arpantispoofer-linux-1.0.1.32.tar.bz2 31181 BLAKE2B 941f9ea843012773add6e4ec2463a9ee6f880128f2958539c13c7fcf2e32f602db832126161c0411b71104c3cd80468a5a4721cd30d69740283d277888dbc526 SHA512 91723e59f3eac0095752aa5231d474c2641f069337848969296a49131768612baf2ff1692329a5aaee49c07f478b029bd9d35affa9d7db4dbcb2784dec64f33d
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit desktop toolchain-funcs xdg-utils
|
||||
|
||||
DESCRIPTION="An utility to detect and resist arp spoofing"
|
||||
HOMEPAGE="https://sourceforge.net/projects/arpantispoofer/"
|
||||
SRC_URI="mirror://sourceforge/$PN/$PN-linux-$PV.tar.bz2"
|
||||
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
|
||||
RDEPEND="
|
||||
gnome-base/libgnomeui
|
||||
gnome-base/libbonoboui
|
||||
net-libs/libpcap
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libnotify"
|
||||
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/fix_errors_while_building.patch"
|
||||
"${FILESDIR}/update_Makefile.patch"
|
||||
)
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_compile() {
|
||||
emake CPPC=$(tc-getCXX)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" install || die
|
||||
dosym ../sbin/arpas /usr/bin/arpas
|
||||
|
||||
make_desktop_entry arpas \
|
||||
"ARP AntiSpoofer" \
|
||||
"arpas" "Network"
|
||||
|
||||
newdoc readme.txt README
|
||||
dodoc ChangeLog
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
}
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
diff -ur a/antispoof/platform.h b/antispoof/platform.h
|
||||
--- a/antispoof/platform.h 2009-10-12 06:52:32.000000000 +0400
|
||||
+++ b/antispoof/platform.h 2019-10-26 22:56:23.156330627 +0300
|
||||
@@ -31,9 +31,9 @@
|
||||
typedef pthread_t Thread_h;
|
||||
typedef CALL_BACK (*StartRoutine)( void* arg );
|
||||
|
||||
-typedef int SOCKET;
|
||||
+typedef int SOCKET_LOC;
|
||||
|
||||
-#define INVALID_SOCKET (SOCKET)(~0)
|
||||
+#define INVALID_SOCKET (SOCKET_LOC)(~0)
|
||||
|
||||
#define SOCKET_ERROR (-1)
|
||||
|
||||
diff -ur a/linux-ui/entry.cpp b/linux-ui/entry.cpp
|
||||
--- a/linux-ui/entry.cpp 2009-11-20 07:28:28.000000000 +0300
|
||||
+++ b/linux-ui/entry.cpp 2019-10-26 22:57:50.596142449 +0300
|
||||
@@ -118,8 +118,7 @@
|
||||
sprintf( buff + i, "%02X-%02X-%02X-%02X-%02X-%02X is spoofing!\nStart anti-spoofing.",
|
||||
mac->addr[0], mac->addr[1], mac->addr[2], mac->addr[3], mac->addr[4], mac->addr[5] );
|
||||
|
||||
- notify = notify_notification_new_with_status_icon( "ARP spoofing detected!", buff,
|
||||
- GTK_STOCK_DIALOG_WARNING, trayicon );
|
||||
+ notify = notify_notification_new( "ARP spoofing detected!", buff, NULL );
|
||||
notify_notification_set_timeout( notify, 5000 );
|
||||
notify_notification_set_urgency( notify, NOTIFY_URGENCY_NORMAL );
|
||||
g_signal_connect( notify, "closed", G_CALLBACK(g_object_unref), NULL );
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
diff -ur a/Makefile b/Makefile
|
||||
--- a/Makefile 2009-10-24 14:01:57.000000000 +0400
|
||||
+++ b/Makefile 2019-10-26 23:14:50.410300745 +0300
|
||||
@@ -16,7 +16,7 @@
|
||||
LOGFILE = /var/log/$(APP).log
|
||||
|
||||
CPPC = g++
|
||||
-CPPARGS = -pipe -Wall `pkg-config --cflags --libs gtk+-2.0 gdk-2.0 gthread-2.0 libgnome-2.0 libgnomeui-2.0 libnotify` -lpcap -O2 -Xlinker -s
|
||||
+CXXFLAGS += `pkg-config --cflags --libs gtk+-2.0 gdk-2.0 gthread-2.0 libgnome-2.0 libgnomeui-2.0 libnotify` -lpcap
|
||||
|
||||
HDR = antispoof/arpdef.h antispoof/antispoof.h antispoof/config.h antispoof/platform.h antispoof/protector.h antispoof/arpreplier.h antispoof/reply4hosts.h antispoof/common.h linux-ui/dialogs.h linux-ui/configdlg.h linux-ui/uicommon.h
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
all: $(HDR) $(SRC)
|
||||
echo "#define APP \"$(APP)\"" > config.h;\
|
||||
echo "#define PREFIX \"$(prefix)\"" >> config.h;\
|
||||
- $(CPPC) $(CPPARGS) $(SRC) -o $(APP);\
|
||||
+ $(CPPC) $(CXXFLAGS) $(SRC) -o $(APP);\
|
||||
echo "#%PAM-1.0" > $(TPAMD);\
|
||||
echo "auth include config-util" >> $(TPAMD);\
|
||||
echo "account include config-util" >> $(TPAMD);\
|
||||
@@ -40,13 +40,6 @@
|
||||
mkdir -p $(DESTDIR)$(datadir)/pixmaps/$(APP);\
|
||||
cp pixmaps/*.svg $(DESTDIR)$(datadir)/pixmaps/$(APP);\
|
||||
ln -s $(datadir)/pixmaps/$(APP)/icon.svg $(DESTDIR)$(datadir)/pixmaps/arpas.svg;\
|
||||
- mkdir -p $(DESTDIR)$(datadir)/applications;\
|
||||
- cp arpas.desktop $(DESTDIR)$(datadir)/applications/;\
|
||||
- mkdir -p $(DESTDIR)$(DOCDIR);\
|
||||
- cp ChangeLog $(DESTDIR)$(DOCDIR);\
|
||||
- cp readme.txt $(DESTDIR)$(DOCDIR)/README;\
|
||||
- mkdir -p $(DESTDIR)$(bindir);\
|
||||
- ln -s $(CONHELP) $(DESTDIR)$(bindir)/$(APP);\
|
||||
mkdir -p $(DESTDIR)$(PAMD);\
|
||||
cp $(TPAMD) $(DESTDIR)$(PAMD)/$(APP);\
|
||||
mkdir -p $(DESTDIR)$(CONSAPP);\
|
||||
|
|
@ -1 +0,0 @@
|
|||
DIST autoscan-network-1.50.tar.gz 1025240 SHA256 7358353b71ca4d00d1e8912c9e8f97a9d14aa44dda07649c9293c29530c4da01 SHA512 80bfb47411d45050adcdbd842d84ed99d2b35454b5d9a81f2e94f88231551fd304ff88afd997e7a062c17224c58fea28bfc65d52ccb731e313a73cad69998aa6 WHIRLPOOL 714878391abce23a68ec4dcbe06c34d19ae1813620be2f9715c6a9995f19a484f13821110381333201751c1b18e090ccbb443a4987481f9f83f9b5f29148940b
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit gnome2 eutils
|
||||
|
||||
DESCRIPTION="Utility for network exploration with Samba support."
|
||||
HOMEPAGE="http://autoscan-network.com/"
|
||||
LICENSE="GPL-2"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~x86"
|
||||
IUSE="snmp samba nessus trayicon gtk gnome vnc +console sound"
|
||||
SRC_URI="http://autoscan-network.com/download_files/${P}.tar.gz"
|
||||
|
||||
RDEPEND="net-analyzer/nmap
|
||||
gnome? ( >=gnome-base/libgnomeui-2.0
|
||||
>=gnome-base/gnome-keyring-0.4.2 )
|
||||
samba? ( net-fs/samba )
|
||||
gtk? ( >=x11-libs/gtk+-2.6.0
|
||||
>=gnome-extra/gtkhtml-2.0
|
||||
>=gnome-base/gnome-vfs-2.8.4
|
||||
>=x11-libs/pango-1.8.1 )
|
||||
vnc? ( >=net-libs/gtk-vnc-0.2.0 )
|
||||
console? ( >=x11-libs/vte-0.11.12 )
|
||||
sound? ( >=media-libs/libao-0.8.5
|
||||
>=media-libs/libvorbis-1.1.0 )
|
||||
nessus? ( net-analyzer/nessus )
|
||||
snmp? ( >=net-analyzer/net-snmp-5.0 )
|
||||
>=dev-libs/glib-2.6.3
|
||||
dev-libs/libelf"
|
||||
|
||||
DEPEND="${RDEPEND}
|
||||
virtual/pkgconfig"
|
||||
|
||||
src_prepare() {
|
||||
sed -i 's| curl| libcurl|g' configure || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
if use samba; then
|
||||
sed -i -e '/MODULE_SAMBA=/ s/disable/enable/g' configure
|
||||
fi
|
||||
if ! use sound; then
|
||||
sed -i -e '/SOUND=/ s/enable/disable/g' configure
|
||||
fi
|
||||
if ! use gnome; then
|
||||
sed -i -e '/GNOME=/ s/enable/disable/g' configure
|
||||
fi
|
||||
if ! use snmp; then
|
||||
sed -i -e '/SNMP=/ s/enable/disable/g' configure
|
||||
fi
|
||||
if use nessus; then
|
||||
sed -i -e '/MODULE_NESSUS=/ s/disable/enable/g' configure
|
||||
fi
|
||||
if use vnc; then
|
||||
sed -i -e '/VNC=/ s/disable/enable/' configure
|
||||
fi
|
||||
if ! use trayicon; then
|
||||
sed -i -e '/TRAYICON=/ s/enable/disable/g' configure
|
||||
fi
|
||||
if ! use console; then
|
||||
sed -i -e '/MODULE_CONSOLE=/ s/enable/disable/g' configure
|
||||
fi
|
||||
./configure --distrib-gentoo || die "Configure failed"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
diff -Naur autoscan-network-1.42.orig/src/autoscan-network/Interface/Nessus_Message_Callbacks.c autoscan-network-1.42/src/autoscan-network/Interface/Nessus_Message_Callbacks.c
|
||||
--- autoscan-network-1.42.orig/src/autoscan-network/Interface/Nessus_Message_Callbacks.c 2009-03-09 19:24:38.000000000 +0000
|
||||
+++ autoscan-network-1.42/src/autoscan-network/Interface/Nessus_Message_Callbacks.c 2009-05-07 21:20:51.000000000 +0000
|
||||
@@ -30,23 +30,24 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
**************************************************************************************/
|
||||
-#ifdef __NESSUS_ENABLE
|
||||
-
|
||||
-#include <gtk/gtk.h>
|
||||
-
|
||||
-#include "Nessus_Message_Callbacks.h"
|
||||
-#include "Nessus_Message_Interface.h"
|
||||
-#include "Root_Interface.h"
|
||||
-#include "../Modules.h"
|
||||
-#include "../Debug.h"
|
||||
-
|
||||
-void on_button_Nessus_clicked (GtkButton * button, gpointer user_data)
|
||||
-{
|
||||
- DEBUG_ACTION_USER();
|
||||
+#ifdef __NESSUS_ENABLE
|
||||
+
|
||||
+#include <gtk/gtk.h>
|
||||
+
|
||||
+#include "Nessus_Message_Callbacks.h"
|
||||
+#include "Nessus_Message_Interface.h"
|
||||
+#include "Root_Interface.h"
|
||||
+#include "../Modules.h"
|
||||
+#include "../Debug.h"
|
||||
+#include "../Equipement.h"
|
||||
+
|
||||
+void on_button_Nessus_clicked (GtkButton * button, gpointer user_data)
|
||||
+{
|
||||
+ DEBUG_ACTION_USER();
|
||||
gtk_combo_box_set_active (GTK_COMBO_BOX (combobox_liste_Modules), 0);
|
||||
- if (Modules_Actuel != MODULES_LISTE_PORTS)
|
||||
- Initialisation_Liste_ports();
|
||||
-}
|
||||
-
|
||||
-
|
||||
+ if (Equipement_Selectionner->Modules_Actuel != MODULES_LISTE_PORTS)
|
||||
+ Initialisation_Liste_ports();
|
||||
+}
|
||||
+
|
||||
+
|
||||
#endif
|
||||
|
|
@ -1 +1 @@
|
|||
DIST morse2txt-1.0.0.tar.gz 232763 SHA256 60f831276b21eab0d500e47fa91f97c9cc09d8c4bbbc495be771d37c477a0bf3 SHA512 8c4fa5e0d16ccebb4452d1a2cb5213028ff9b11bfde438478d3a3561c6f136bda2652a62c14d48f086e5d2444ec10dd2b736678b2af19ca71530da26cb12b437 WHIRLPOOL 52f4e6aeb39cf2f14a16f7233f14d46122eae2cc0bf82f68d3b6a85a687920da37a36dd7fe2c7e7b18a7aa0c4127d29fb83ce69e04b95c05bb36e9c6945ccecf
|
||||
DIST morse2txt-1.1.0.tar.gz 213145 BLAKE2B c6c87c2673fc6a3c73bef96a0104bddee95d9026bf3dd088177aa309bf73953097516376f855f54bdaae9e4ac6e7fb501e95aba33c81fa0f4e1d2c8b05fb0064 SHA512 eb22c495b08c39b0ed0dcd4b31dddaa96e04f58c0319d4f772dcf1a04b501986d35c1e7cbd58308ff291eff0bd2f624795fc6f34ca0f7a941691ca8926c1ab0c
|
||||
|
|
|
|||
|
|
@ -1,8 +1,7 @@
|
|||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: blshkv $
|
||||
|
||||
EAPI=5
|
||||
EAPI=7
|
||||
|
||||
DESCRIPTION="Morse code decoder"
|
||||
HOMEPAGE="http://morse2txt.sourceforge.net/"
|
||||
|
|
@ -10,13 +9,14 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
|
|||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
#KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
#these were removed from Gentoo
|
||||
#gnome-base/libgnome
|
||||
#gnome-base/libgnomeui
|
||||
DEPEND="dev-libs/atk
|
||||
dev-libs/glib
|
||||
gnome-base/libgnome
|
||||
gnome-base/libgnomeui
|
||||
sci-libs/gsl
|
||||
x11-libs/gdk-pixbuf
|
||||
x11-libs/gtk+"
|
||||
Loading…
Reference in a new issue