summaryrefslogtreecommitdiff
path: root/app-admin/quickswitch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-admin/quickswitch
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-admin/quickswitch')
-rw-r--r--app-admin/quickswitch/Manifest4
-rw-r--r--app-admin/quickswitch/files/quickswitch-1.05-fix-paths.patch62
-rw-r--r--app-admin/quickswitch/metadata.xml10
-rw-r--r--app-admin/quickswitch/quickswitch-1.05.ebuild28
4 files changed, 104 insertions, 0 deletions
diff --git a/app-admin/quickswitch/Manifest b/app-admin/quickswitch/Manifest
new file mode 100644
index 000000000000..e350ec648feb
--- /dev/null
+++ b/app-admin/quickswitch/Manifest
@@ -0,0 +1,4 @@
+AUX quickswitch-1.05-fix-paths.patch 1924 BLAKE2B b10ea8e626248963b8acfbbd0631f7cbde6cbd6c05d429c9a28ac163389809c1d211dd9f4bdf614d3f0ca5f50779152a7737a83cbb33eb7f51f96052ba4b4c1b SHA512 1df3e97dc223be657efa17637b7bfb541b3fb116856662d06c4be97bffadfc43e8b6242791b6918ff3b7cbc02ce5e01008efc2856269ff0ed1e40216bd33d13c
+DIST quickswitch-1.05.tar.gz 20218 BLAKE2B 9a17132e07c838dd0d39eb887502ee70fd35206d38d795e5f49307eafa756cbf78b7ffdb0c7de19197560adedff902f09bf52a4c7db9359185ecc37f42abb6c7 SHA512 dfb6b952e06d03834b22ad1abe415499bc3f231dcfee0b551ceadc4c020604b2574b70fff03ffb7099913d77e49c545ee44d51f9f7651c4fba113b0503c3bd26
+EBUILD quickswitch-1.05.ebuild 628 BLAKE2B bf33cf3a209b8ad8531326c8f08497d32f0c54d619d019f1d447663a430617b40fe69eee64b7c3484b0e6b537cb52852bb567bd93cc3085bdcf2713b6bac7980 SHA512 874076e10e7dd9c94d4e96bddb0b30663f14be113c0e40db0b8ac4b1f871ba90fbedca03868a69e861b0da9381d703379ff8ad9913d5ccf659b8527d0585da78
+MISC metadata.xml 377 BLAKE2B c17495cc30293086a7a85a9a278ed134e4e7d47169e8ffb1e6d94dcd2f3f81372aa90e5e628ab322e1d3d9bb98af194445764399573231e604e3b51562d359f2 SHA512 05f90b3b4a18647e32f7c3f3029822fefb7aef4cbdbd2f6e74a8f2799e5a42f7f5546307c792aa4bf366536b4d7c1eeef6b4cc1a6b4d6f84d0ac16e5e77a8c88
diff --git a/app-admin/quickswitch/files/quickswitch-1.05-fix-paths.patch b/app-admin/quickswitch/files/quickswitch-1.05-fix-paths.patch
new file mode 100644
index 000000000000..707a355c09f9
--- /dev/null
+++ b/app-admin/quickswitch/files/quickswitch-1.05-fix-paths.patch
@@ -0,0 +1,62 @@
+--- a/switcher
++++ b/switcher
+@@ -67,7 +67,7 @@
+
+ ### load quickswitch package
+ $_SWITCHTO = '/usr/bin/switchto'; # default location
+-$CONF_FILE = '/etc/switchto.conf';
++$CONF_FILE = '/etc/quickswitch/switchto.conf';
+ $SWITCHTO = find_switchto($CONF_FILE);
+ $ENV{RUNNING_FROM_SWITCHER} = 1;
+ require $SWITCHTO;
+--- a/switchto
++++ b/switchto
+@@ -26,7 +26,7 @@
+ #
+ # Send bug-reports, comments, women to bugs@muthanna.com
+ #
+-# Also see /etc/switchto.conf for further docs.
++# Also see /etc/quickswitch/switchto.conf for further docs.
+ #
+ # Release: 0.16
+ #
+@@ -143,8 +143,8 @@
+ $AUTHOR = "Mohit Muthanna, Paul Seamons";
+ $DATE = '2002';
+
+-### I would suggest renaming this /etc/switchto.conf
+-$CONF_FILE = "/etc/switchto.conf";
++### I would suggest renaming this /etc/quickswitch/switchto.conf
++$CONF_FILE = "/etc/quickswitch/switchto.conf";
+ %DEFAULTS = (
+ autoconfig => 0,
+ device => "eth0",
+@@ -165,7 +165,7 @@
+ nfsexportall => "/usr/sbin/exportfs -a",
+ nfsexportsfile => "/etc/exports",
+ niscommand => "/bin/nisdomainname",
+- servicefilename => "/etc/switchto.last",
++ servicefilename => "/etc/quickswitch/switchto.last",
+ execpre => undef,
+ execpost => undef,
+
+--- a/switchto.conf
++++ b/switchto.conf
+@@ -43,7 +43,7 @@
+ device=eth0
+
+ # Path to save last good known configuration...
+-servicefilename=/etc/switchto.last
++servicefilename=/etc/quickswitch/switchto.last
+
+ # Path and arguments to switchto. This is for the switcher GUI
+ # switchtopath=/usr/bin/switchto -b
+@@ -52,7 +52,7 @@
+ # Uncomment theses and change them if needed.
+ # ------------------------------------------
+ # ifconfig=/sbin/ifconfig
+-# iwconfig=/usr/local/sbin/iwconfig
++# iwconfig=/sbin/iwconfig
+ # netstat=/bin/netstat
+ # route=/sbin/route
+ # hostnamecmd=/bin/hostname
diff --git a/app-admin/quickswitch/metadata.xml b/app-admin/quickswitch/metadata.xml
new file mode 100644
index 000000000000..5438d3107a0d
--- /dev/null
+++ b/app-admin/quickswitch/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <longdescription>A utility for linux laptop users to use multiple network
+ profiles, and switch effortlessly.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">quickswitch</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-admin/quickswitch/quickswitch-1.05.ebuild b/app-admin/quickswitch/quickswitch-1.05.ebuild
new file mode 100644
index 000000000000..24b21cea6b25
--- /dev/null
+++ b/app-admin/quickswitch/quickswitch-1.05.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Utility to switch network profiles on the fly"
+SRC_URI="mirror://sourceforge/quickswitch/${P}.tar.gz"
+HOMEPAGE="http://quickswitch.sf.net"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc sparc s390 amd64"
+IUSE="ncurses"
+
+DEPEND=">=dev-lang/perl-5.6.0"
+RDEPEND="ncurses? ( dev-perl/CursesWidgets )"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.05-fix-paths.patch )
+
+src_install() {
+ dobin switchto
+ use ncurses && dobin switcher
+
+ insinto /etc/quickswitch
+ newins switchto.conf switchto.conf.sample
+
+ einstalldocs
+}