summaryrefslogtreecommitdiffstats
path: root/networkmanager/NuTyX.patch
diff options
context:
space:
mode:
Diffstat (limited to 'networkmanager/NuTyX.patch')
-rw-r--r--networkmanager/NuTyX.patch132
1 files changed, 0 insertions, 132 deletions
diff --git a/networkmanager/NuTyX.patch b/networkmanager/NuTyX.patch
deleted file mode 100644
index e280da4..0000000
--- a/networkmanager/NuTyX.patch
+++ /dev/null
@@ -1,132 +0,0 @@
---- b/config.h.in 2011-05-07 13:34:44.000000000 +1000
-+++ a/config.h.in 2011-05-07 13:34:44.000000000 +1000
-@@ -171,6 +171,9 @@
- /* Define if you have Gentoo */
- #undef TARGET_GENTOO
-
-+/* Define if you have NuTyX */
-+#undef TARGET_NUTYX
-+
- /* Define if you have linexa */
- #undef TARGET_LINEXA
-
---- b/configure.ac 2011-05-07 13:34:44.000000000 +1000
-+++ a/configure.ac 2011-05-07 13:34:44.000000000 +1000
-@@ -107,7 +107,7 @@
- dnl
- AC_C_BIGENDIAN
-
--AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, suse, gentoo, debian, arch, slackware, paldo, mandriva, pardus, linexa or exherbo]))
-+AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO], [Specify the Linux distribution to target: One of redhat, suse, gentoo, debian, arch, slackware, paldo, mandriva, pardus, linexa, exherbo or nutyx]))
- if test "z$with_distro" = "z"; then
- AC_CHECK_FILE(/etc/redhat-release,with_distro="redhat")
- AC_CHECK_FILE(/etc/SuSE-release,with_distro="suse")
-@@ -121,6 +121,7 @@
- AC_CHECK_FILE(/etc/pardus-release,with_distro="pardus")
- AC_CHECK_FILE(/etc/linexa-release,with_distro="linexa")
- AC_CHECK_FILE(/etc/exherbo-release,with_distro="exherbo")
-+ AC_CHECK_FILE(/etc/nutyx-version,with_distro="nutyx")
- if test "z$with_distro" = "z"; then
- with_distro=`lsb_release -is`
- fi
-@@ -132,7 +133,7 @@
- exit 1
- else
- case $with_distro in
-- redhat|suse|gentoo|debian|slackware|arch|paldo|frugalware|mandriva|pardus|linexa|exherbo) ;;
-+ redhat|suse|gentoo|debian|slackware|arch|paldo|frugalware|mandriva|pardus|linexa|exherbo|nutyx) ;;
- *)
- echo "Your distribution (${with_distro}) is not yet supported! (patches welcome)"
- exit 1
-@@ -200,6 +201,11 @@
- AC_DEFINE(TARGET_EXHERBO, 1, [Define if you have Exherbo])
- fi
-
-+AM_CONDITIONAL(TARGET_NUTYX, test x"$with_distro" = xnutyx)
-+if test x"$with_distro" = xnutyx; then
-+ AC_DEFINE(TARGET_NUTYX, 1, [Define if you have NuTyX])
-+fi
-+
- dnl
- dnl Distribution version string
- dnl
---- b/src/backends/Makefile.am 2011-05-07 13:34:44.000000000 +1000
-+++ a/src/backends/Makefile.am 2011-05-07 13:34:44.000000000 +1000
-@@ -61,6 +61,10 @@
- libnmbackend_la_SOURCES += NetworkManagerExherbo.c
- endif
-
-+if TARGET_NUTYX
-+libnmbackend_la_SOURCES += NetworkManagerNuTyX.c
-+endif
-+
- libnmbackend_la_LIBADD += \
- $(top_builddir)/src/logging/libnm-logging.la \
- $(LIBNL_LIBS) \
---- b/src/backends/NetworkManagerNuTyX.c 1970-01-01 10:00:00.000000000 +1000
-+++ a/src/backends/NetworkManagerNuTyX.c 2011-05-07 13:34:44.000000000 +1000
-@@ -0,0 +1,63 @@
-+/* NetworkManager -- Network link manager
-+ *
-+ * Jürg Billeter <juerg@paldo.org>
-+ *
-+ * Adapted for NuTyX by piernov <piernov@piernov.org>
-+ * Heavily based on NetworkManagerRedhat.c by Dan Williams <dcbw@redhat.com>
-+ *
-+ * This program is free software; you can redistribute it and/or modify
-+ * it under the terms of the GNU General Public License as published by
-+ * the Free Software Foundation; either version 2 of the License, or
-+ * (at your option) any later version.
-+ *
-+ * This program is distributed in the hope that it will be useful,
-+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
-+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-+ * GNU General Public License for more details.
-+ *
-+ * You should have received a copy of the GNU General Public License along
-+ * with this program; if not, write to the Free Software Foundation, Inc.,
-+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-+ *
-+ * (C) Copyright 2004 Red Hat, Inc.
-+ * (C) Copyright 2006 Jürg Billeter
-+ */
-+
-+#ifdef HAVE_CONFIG_H
-+#include <config.h>
-+#endif
-+
-+#include <stdio.h>
-+#include <string.h>
-+#include <stdlib.h>
-+
-+#include "NetworkManagerGeneric.h"
-+#include "nm-system.h"
-+#include "NetworkManagerUtils.h"
-+#include "nm-logging.h"
-+
-+/*
-+ * nm_system_enable_loopback
-+ *
-+ * Bring up the loopback interface
-+ *
-+ */
-+void nm_system_enable_loopback (void)
-+{
-+ nm_spawn_process ("/etc/rc.d/init.d/localnet restart");
-+}
-+
-+/*
-+ * nm_system_update_dns
-+ *
-+ * Invalidate the nscd host cache, if it exists, since
-+ * we changed resolv.conf.
-+ *
-+ */
-+void nm_system_update_dns (void)
-+{
-+ if (g_file_test("/var/run/nscd/nscd.pid", G_FILE_TEST_EXISTS))
-+ nm_log_info (LOGD_DNS, "Clearing nscd hosts cache.");
-+ nm_spawn_process ("/usr/sbin/nscd -i hosts");
-+}
-+
-+