From 6b35676c24c526f08f1d716f1109ee9cf323212a Mon Sep 17 00:00:00 2001 From: Thomas Jepp Date: Mon, 23 Nov 2015 17:16:33 +0000 Subject: Dependency fixes for Jessie. Remove the dependency on vyatta-busybox, use the system busybox. --- debian/control | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debian/control') diff --git a/debian/control b/debian/control index cb0e0f59..05f23913 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: vyatta-cfg-system Section: contrib/net Priority: extra Maintainer: VyOS Package Maintainers -Build-Depends: debhelper (>= 5), autotools-dev +Build-Depends: debhelper (>= 5), autotools-dev, autoconf, automake, cpio Standards-Version: 3.9.1 Package: vyatta-cfg-system @@ -23,7 +23,7 @@ Depends: adduser, ntp (>= 4.2.4p6+vyatta-7), udev (>= 160-1), rsyslog | system-log-daemon, - vyatta-busybox, + busybox, sudo, snmpd (>= 5.4.2.1-vyatta11), vyatta-keepalived (>= 1.1.15-1-vyatta-5), -- cgit v1.2.3 From 3402a013358a85dd7bc04a5c4a06021ce9065b7a Mon Sep 17 00:00:00 2001 From: Thomas Jepp Date: Thu, 24 Dec 2015 16:01:28 +0000 Subject: Add missing runtime dependencies. --- debian/control | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debian/control') diff --git a/debian/control b/debian/control index 05f23913..a3c52db1 100644 --- a/debian/control +++ b/debian/control @@ -58,6 +58,8 @@ Depends: adduser, iproute, curl, parted, + libsnmp-perl, + libpam-cap, ${arch:Depends} Pre-Depends: bash-completion Suggests: util-linux (>= 2.13-5), -- cgit v1.2.3 From 507669b81b3b276455b0c47b54834a193f2208e0 Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Mon, 25 Jan 2016 03:45:26 -0500 Subject: Update dependencies --- debian/control | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debian/control') diff --git a/debian/control b/debian/control index a3c52db1..7f2f2133 100644 --- a/debian/control +++ b/debian/control @@ -44,7 +44,7 @@ Depends: adduser, tcpdump, dnsmasq (>= 2.45-1+lenny1), mdadm, - ddclient (>= 3.8.2+vyos2+lithium6), + ddclient (>= 3.8.2+vyos2+current1), dnsutils, libio-socket-ssl-perl, vyatta-biosdevname, @@ -53,7 +53,7 @@ Depends: adduser, apt-transport-https, hostapd (>= 1:0.6.9-3), libcap2-bin (>= 2.19), - vyatta-dhcp3-client (>= 4.1.8+vyos2+lithium3), + vyatta-dhcp3-client (>= 4.1.8+vyos2+current1), vlan, iproute, curl, -- cgit v1.2.3 From b39be03b11c4bc74eb3e01af4443d6e6ed3cf4d8 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Wed, 27 Jan 2016 08:24:10 -0500 Subject: Sanitize dependencies, use ISC DHCP client. --- debian/control | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'debian/control') diff --git a/debian/control b/debian/control index 7f2f2133..5edd8be0 100644 --- a/debian/control +++ b/debian/control @@ -20,17 +20,17 @@ Depends: adduser, libpam-runtime (>= 1.0.1-5), vyatta-bash | bash (>= 3.1), sysv-rc, - ntp (>= 4.2.4p6+vyatta-7), + ntp (>= 4.2), udev (>= 160-1), rsyslog | system-log-daemon, busybox, sudo, - snmpd (>= 5.4.2.1-vyatta11), - vyatta-keepalived (>= 1.1.15-1-vyatta-5), + snmpd, + keepalived, bridge-utils, ethtool, - ssh (>= 1:5.1p1-5), - openssh-server (>= 1:5.1p1-5), + ssh, + openssh-server, ed, ifupdown, tshark, @@ -42,7 +42,7 @@ Depends: adduser, tasksel, snmp, tcpdump, - dnsmasq (>= 2.45-1+lenny1), + dnsmasq, mdadm, ddclient (>= 3.8.2+vyos2+current1), dnsutils, @@ -53,9 +53,8 @@ Depends: adduser, apt-transport-https, hostapd (>= 1:0.6.9-3), libcap2-bin (>= 2.19), - vyatta-dhcp3-client (>= 4.1.8+vyos2+current1), - vlan, - iproute, + isc-dhcp-client, + iproute2, curl, parted, libsnmp-perl, -- cgit v1.2.3 From 38e2a80870cd2407377458dee2b4e08aef24b088 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 15 Apr 2018 18:18:43 +0200 Subject: T588: Remove DNS forwarder restart command in favour if XML interface definition --- Makefile.am | 1 - debian/changelog | 6 + debian/control | 1 - scripts/dns-forwarding/vyatta-dns-forwarding.pl | 274 ------------------------ 4 files changed, 6 insertions(+), 276 deletions(-) delete mode 100755 scripts/dns-forwarding/vyatta-dns-forwarding.pl (limited to 'debian/control') diff --git a/Makefile.am b/Makefile.am index 23a716b5..77088eaa 100644 --- a/Makefile.am +++ b/Makefile.am @@ -60,7 +60,6 @@ sbin_SCRIPTS += scripts/snmp/vyatta-snmp.pl sbin_SCRIPTS += scripts/snmp/vyatta-snmp-v3.pl sbin_SCRIPTS += scripts/snmp/if-mib-alias sbin_SCRIPTS += scripts/telnetd.init -sbin_SCRIPTS += scripts/dns-forwarding/vyatta-dns-forwarding.pl sbin_SCRIPTS += scripts/dynamic-dns/vyatta-dynamic-dns.pl sbin_SCRIPTS += scripts/vyatta-system-nameservers sbin_SCRIPTS += scripts/vyatta-interfaces.pl diff --git a/debian/changelog b/debian/changelog index 215f2a1e..a1ec904a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +vyatta-cfg-system (0.20.44+vyos2+current11) unstable; urgency=medium + + * T588: Remove DNS forwarder restart command in favour if XML interface definition + + -- Christian Poessinger Wed, 11 Apr 2018 20:35:32 +0200 + vyatta-cfg-system (0.20.44+vyos2+current10) unstable; urgency=medium * T157: Remove "install system" command diff --git a/debian/control b/debian/control index 5edd8be0..1b6d08a6 100644 --- a/debian/control +++ b/debian/control @@ -42,7 +42,6 @@ Depends: adduser, tasksel, snmp, tcpdump, - dnsmasq, mdadm, ddclient (>= 3.8.2+vyos2+current1), dnsutils, diff --git a/scripts/dns-forwarding/vyatta-dns-forwarding.pl b/scripts/dns-forwarding/vyatta-dns-forwarding.pl deleted file mode 100755 index 00a64b3e..00000000 --- a/scripts/dns-forwarding/vyatta-dns-forwarding.pl +++ /dev/null @@ -1,274 +0,0 @@ -#!/usr/bin/perl -# -# Module: vyatta-dns-forwarding.pl -# -# **** License **** -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# 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. -# -# This code was originally developed by Vyatta, Inc. -# Portions created by Vyatta are Copyright (C) 2008 Vyatta, Inc. -# All Rights Reserved. -# -# Author: Mohit Mehta -# Date: August 2008 -# Description: Script to glue Vyatta CLI to dnsmasq daemon -# -# **** End License **** -# - -use lib "/opt/vyatta/share/perl5/"; -use Vyatta::Config; -use Vyatta::Misc; -use Getopt::Long; - -use strict; -use warnings; - -my $dnsforwarding_conf = '/etc/dnsmasq.d/vyos.conf'; - -sub dnsforwarding_restart { - system("systemctl restart dnsmasq"); -} - -sub dnsforwarding_stop { - system("systemctl stop dnsmasq"); -} - -sub dnsforwarding_get_constants { - my $output; - - my $date = `date`; - chomp $date; - $output = "#\n# autogenerated by vyatta-dns-forwarding.pl on $date\n#\n"; - $output .= "log-facility=/var/log/dnsmasq.log\n"; - $output .= "no-poll\n"; - $output .= "edns-packet-max=4096\n"; - $output .= "bind-interfaces\n"; - system("rm -f /var/log/dnsmasq.log; touch /var/log/dnsmasq.log"); - return $output; -} - -sub dnsforwarding_get_values { - - my $outside_cli = shift; - - my $output = ''; - my $config = new Vyatta::Config; - my $use_dnsmasq_conf = 0; - my (@listen_interfaces, $cache_size, @use_nameservers, $use_system_nameservers, @use_dhcp_nameservers, @domains, $server, $ignore_hosts_file, $query_all_servers); - - $config->setLevel("service dns forwarding"); - - if ($outside_cli == 1) { - @listen_interfaces = $config->returnOrigValues("listen-on"); - $cache_size = $config->returnOrigValue("cache-size"); - @use_nameservers = $config->returnOrigValues("name-server"); - $use_system_nameservers = $config->existsOrig("system"); - @use_dhcp_nameservers = $config->returnOrigValues("dhcp"); - @domains = $config->listOrigNodes("domain"); - $ignore_hosts_file = $config->returnOrigValue("ignore-hosts-file"); - $query_all_servers = $config->returnOrigValue("query-all-servers"); - - } else { - @listen_interfaces = $config->returnValues("listen-on"); - $cache_size = $config->returnValue("cache-size"); - @use_nameservers = $config->returnValues("name-server"); - $use_system_nameservers = $config->exists("system"); - @use_dhcp_nameservers = $config->returnValues("dhcp"); - @domains = $config->listNodes("domain"); - $ignore_hosts_file = $config->exists("ignore-hosts-file"); - $query_all_servers = $config->exists("query-all-servers"); - } - - if (@listen_interfaces != 0) { - foreach my $interface (@listen_interfaces) { - $output .= "interface=$interface\n"; - } - } - - if (defined $cache_size) { - $output .= "cache-size=$cache_size\n"; - } - - if (defined $query_all_servers) { - $output .= "all-servers\n"; - } - - if (defined $ignore_hosts_file) { - $output .= "no-hosts\n"; - } - - if (@use_nameservers != 0) { - $use_dnsmasq_conf = 1; - foreach my $cli_nameserver (@use_nameservers) { - $output .= "server=$cli_nameserver\t# statically configured\n"; - } - } - - if (defined($use_system_nameservers)) { - $use_dnsmasq_conf = 1; - my $sys_config = new Vyatta::Config; - $sys_config->setLevel("system"); - my @system_nameservers; - if ($outside_cli == 1) { - @system_nameservers = $sys_config->returnOrigValues("name-server"); - } else { - @system_nameservers = $sys_config->returnValues("name-server"); - } - if (@system_nameservers > 0) { - foreach my $system_nameserver (@system_nameservers) { - $output .= "server=$system_nameserver\t# system\n"; - } - } - } - if (@domains != 0) { - foreach my $domain (@domains) { - my @domain_servers; - if ($outside_cli == 1) { - @domain_servers = $config->returnValues("domain $domain server"); - } else { - @domain_servers = $config->returnValues("domain $domain server"); - } - if (@domain_servers > 0) { - foreach my $domain_server (@domain_servers) { - $output .= "server=/$domain/$domain_server\t# domain-override\n"; - } - } - } - } - - if (@use_dhcp_nameservers != 0) { - $use_dnsmasq_conf = 1; - foreach my $interface (@use_dhcp_nameservers) { - my $dhcp_nameserver_count=`grep nameserver /etc/resolv.conf.dhclient-new-$interface 2>/dev/null | wc -l`; - if ($dhcp_nameserver_count > 0) { - my @dhcp_nameservers = `grep nameserver /etc/resolv.conf.dhclient-new-$interface`; - for my $each_nameserver (@dhcp_nameservers) { - my @nameserver = split(/ /, $each_nameserver, 2); - my $ns = $nameserver[1]; - chomp $ns; - $output .= "server=$ns\t# dhcp $interface\n"; - } - } - } - } - - if ($use_dnsmasq_conf == 1) { - $output .= "resolv-file=/etc/resolv.conf\n"; - } - - return $output; -} - -sub dnsforwarding_write_file { - my ($config) = @_; - - open(my $fh, '>', $dnsforwarding_conf) || die "Couldn't open $dnsforwarding_conf - $!"; - print $fh $config; - close $fh; -} - -sub check_nameserver { - - my $cmd = `cat /etc/resolv.conf 2>/dev/null | awk {'print \$1'} | grep \^nameserver\$ | wc -l`; - return $cmd; -} - -sub check_system_nameserver { - - my $config = new Vyatta::Config; - $config->setLevel("system"); - my @system_nameservers = $config->returnValues("name-server"); - return(@system_nameservers); - -} - -sub check_dhcp_interface { - - my $interface = shift; - - die "DNS forwarding error: $interface is not using DHCP to get an IP address\n" - unless Vyatta::Misc::is_dhcp_enabled($interface); - - if (-e "/var/run/vyatta/dhclient/dhclient_release_$interface") { - - # dhcp released for the interface - print "DNS forwarding warning: DHCP lease for $interface has been released by user\n"; - } - - return 1; -} - -# -# main -# - -my ($update_dnsforwarding, $stop_dnsforwarding, $restart_dnsforwarding, $system_nameserver, $dhcp_interface, $outside_cli); - -GetOptions( - "update-dnsforwarding!" => \$update_dnsforwarding, - "stop-dnsforwarding!" => \$stop_dnsforwarding, - "restart-dnsforwarding!" => \$restart_dnsforwarding, - "system-nameserver!" => \$system_nameserver, - "outside-cli!" => \$outside_cli, - "dhcp-interface=s" => \$dhcp_interface -); - -if (defined $system_nameserver) { - my $system_nameserver_exists = check_system_nameserver(); - if ($system_nameserver_exists < 1){ - print "DNS forwarding warning: No name-servers set under 'system name-server'\n"; - } -} - -if (defined $dhcp_interface) { - if (!check_dhcp_interface($dhcp_interface)){ - exit 1; - } -} - -if (defined $update_dnsforwarding) { - my $config; - my $vyatta_config = new Vyatta::Config; - - $vyatta_config->setLevel("service dns forwarding"); - my $use_system_nameservers = $vyatta_config->exists("system"); - my @use_dhcp_nameservers = $vyatta_config->returnValues("dhcp"); - my @use_nameservers = $vyatta_config->returnValues("name-server"); - - if (!(defined $use_system_nameservers) && (@use_dhcp_nameservers == 0) && (@use_nameservers == 0)) { - my $nameserver_exists = check_nameserver(); - if ($nameserver_exists < 1){ - print "DNS forwarding warning: Currently, no name-servers to forward DNS queries\n"; - } - } - - my $called_from_outside_cli = 0; - if (defined $outside_cli){ - $called_from_outside_cli = 1; - } - $config = dnsforwarding_get_constants(); - $config .= dnsforwarding_get_values($called_from_outside_cli); - dnsforwarding_write_file($config); - dnsforwarding_restart(); -} - -if (defined $stop_dnsforwarding) { - dnsforwarding_stop(); -} - -if (defined $restart_dnsforwarding) { - dnsforwarding_restart(); -} - -exit 0; - -# end of file - -- cgit v1.2.3 From 413d89862ad9bea7d31200eb7a29bd0dd7fca214 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Mon, 14 May 2018 23:42:01 +0200 Subject: T637: remove dependency on tshark. --- debian/control | 1 - sysconf/filecaps | 1 - sysconf/sudoers | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) (limited to 'debian/control') diff --git a/debian/control b/debian/control index 1b6d08a6..1fff96c0 100644 --- a/debian/control +++ b/debian/control @@ -33,7 +33,6 @@ Depends: adduser, openssh-server, ed, ifupdown, - tshark, iputils-arping, installation-report, laptop-detect, diff --git a/sysconf/filecaps b/sysconf/filecaps index 85e83668..96eadff4 100644 --- a/sysconf/filecaps +++ b/sysconf/filecaps @@ -12,7 +12,6 @@ cap_net_admin=pe /usr/sbin/arp cap_net_admin=pe /sbin/brctl # Raw sockets -cap_net_raw=pe /usr/bin/tshark cap_net_raw=pe /usr/sbin/tcpdump cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap diff --git a/sysconf/sudoers b/sysconf/sudoers index b6c50423..998e7083 100644 --- a/sysconf/sudoers +++ b/sysconf/sudoers @@ -36,7 +36,7 @@ Cmnd_Alias DMIDECODE = /usr/sbin/dmidecode Cmnd_Alias DISK = /usr/bin/lsof, /sbin/fdisk -l *, /sbin/sfdisk -d * Cmnd_Alias DATE = /bin/date, /usr/sbin/ntpdate Cmnd_Alias PPPOE_CMDS = /sbin/pppd, /sbin/poff, /usr/sbin/pppstats -Cmnd_Alias PCAPTURE = /usr/bin/tshark, /usr/bin/tcpdump +Cmnd_Alias PCAPTURE = /usr/bin/tcpdump Cmnd_Alias HWINFO = /usr/bin/lspci Cmnd_Alias FORCE_CLUSTER = /usr/share/heartbeat/hb_takeover, \ /usr/share/heartbeat/hb_standby -- cgit v1.2.3 From 0f19dc57ed6588c083eee8aa9aee09b92b441b08 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 15 Jun 2018 14:39:03 +0200 Subject: T697: remove dependencies no longer needed. Moving snmp, snmpd, openssh-server, ssh, ntp to vyos-1x. Moving iputils-arping to there as well, nothing in cfg-system uses it, but scripts in op do, and they will be moved to vyos-1x. --- debian/control | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'debian/control') diff --git a/debian/control b/debian/control index 1fff96c0..12b27b1b 100644 --- a/debian/control +++ b/debian/control @@ -20,30 +20,21 @@ Depends: adduser, libpam-runtime (>= 1.0.1-5), vyatta-bash | bash (>= 3.1), sysv-rc, - ntp (>= 4.2), udev (>= 160-1), rsyslog | system-log-daemon, busybox, sudo, - snmpd, - keepalived, bridge-utils, ethtool, - ssh, - openssh-server, ed, ifupdown, - iputils-arping, installation-report, laptop-detect, - usbutils, mgetty, tasksel, - snmp, tcpdump, mdadm, ddclient (>= 3.8.2+vyos2+current1), - dnsutils, libio-socket-ssl-perl, vyatta-biosdevname, ipvsadm (>= 1:1.24-2.1), @@ -55,7 +46,6 @@ Depends: adduser, iproute2, curl, parted, - libsnmp-perl, libpam-cap, ${arch:Depends} Pre-Depends: bash-completion -- cgit v1.2.3