dist_pkgdata_DATA =
dist_pkgdata_SCRIPTS =
dist_sbin_SCRIPTS =
+dist_scripts_SCRIPTS =
+INSTALL_DATA_LOCAL =
man_MANS =
noinst_DATA =
noinst_HEADERS =
noinst_SCRIPTS =
OVSIDL_BUILT =
pkgdata_DATA =
+sbin_SCRIPTS =
scripts_SCRIPTS =
SUFFIXES =
check_DATA =
dist-hook: $(DIST_HOOKS)
all-local: $(ALL_LOCAL)
clean-local: $(CLEAN_LOCAL)
-.PHONY: $(DIST_HOOKS) $(CLEAN_LOCAL)
+install-data-local: $(INSTALL_DATA_LOCAL)
+.PHONY: $(DIST_HOOKS) $(CLEAN_LOCAL) $(INSTALL_DATA_LOCAL)
include lib/automake.mk
include ofproto/automake.mk
AC_CONFIG_COMMANDS([include/openflow/openflow.h.stamp])
AC_CONFIG_COMMANDS([ovsdb/ovsdbmonitor/dummy], [:])
+AC_CONFIG_COMMANDS([utilities/bugtool/dummy], [:])
AC_OUTPUT
* The following components are licensed under the
GNU Lesser General Public Licence version 2.1.
- utilities/ovs-bugtool
- xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml [*]
- xenserver/etc_xensource_bugtool_network-status_openvswitch.xml [*]
- xenserver/etc_xensource_bugtool_system-configuration.xml [*]
- xenserver/etc_xensource_bugtool_system-configuration_openvswitch.xml [*]
- xenserver/usr_share_openvswitch_scripts_xen-bugtool-tc-class-show [*]
-
- * These components are only distributed in the source package.
- They do not appear in any binary packages.
+ utilities/bugtool/ovs-bugtool
+ utilities/bugtool/ovs-bugtool-tc-class-show
+ utilities/bugtool/plugins/kernel-info/openvswitch.xml
+ utilities/bugtool/plugins/network-status/openvswitch.xml
+ utilities/bugtool/plugins/system-configuration.xml
+ utilities/bugtool/plugins/system-configuration/openvswitch.xml
On Debian systems, the complete text of the
GNU Lesser General Public Licence version 2.1 can be found in
_debian/utilities/ovs-ofctl usr/sbin
_debian/utilities/ovs-parse-leaks usr/bin
_debian/utilities/ovs-pki usr/sbin
-utilities/ovs-bugtool usr/sbin
+debian/openvswitch/etc/openvswitch/bugtool-plugins etc/openvswitch
+debian/openvswitch/usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show
+_debian/utilities/bugtool/ovs-bugtool usr/sbin
vswitchd/vswitch.ovsschema usr/share/openvswitch
_debian/utilities/ovs-appctl.8
_debian/utilities/ovs-ofctl.8
_debian/utilities/ovs-pki.8
-utilities/ovs-bugtool.8
+utilities/bugtool/ovs-bugtool.8
utilities/ovs-parse-leaks.8
openflow/openflow.h openflow/nicira-ext.h > ../lib/ofp-errors.c
EXTRA_DIST += build-aux/extract-ofp-errors
-install-data-local: lib-install-data-local
+INSTALL_DATA_LOCAL += lib-install-data-local
lib-install-data-local:
$(MKDIR_P) $(DESTDIR)$(RUNDIR)
$(MKDIR_P) $(DESTDIR)$(PKIDIR)
%defattr(-,root,root)
/etc/init.d/openvswitch
/etc/logrotate.d/openvswitch
+/etc/openvswitch/bugtool-plugins/*
/usr/bin/ovs-appctl
/usr/bin/ovs-dpctl
/usr/bin/ovs-ofctl
/usr/share/man/man8/ovs-vsctl.8.gz
/usr/share/man/man8/ovs-vswitchd.8.gz
/usr/share/openvswitch/python/
+/usr/share/openvswitch/scripts/ovs-bugtool-*
/usr/share/openvswitch/scripts/ovs-ctl
/usr/share/openvswitch/scripts/ovs-lib.sh
/usr/share/openvswitch/scripts/ovs-save
bin_SCRIPTS += utilities/ovs-pki utilities/ovs-vsctl
if HAVE_PYTHON
bin_SCRIPTS += \
- utilities/ovs-bugtool \
utilities/ovs-pcap \
utilities/ovs-tcpundump \
utilities/ovs-vlan-test
-man_MANS += utilities/ovs-bugtool.8
endif
noinst_SCRIPTS += utilities/ovs-pki-cgi utilities/ovs-parse-leaks
scripts_SCRIPTS += utilities/ovs-ctl utilities/ovs-lib.sh utilities/ovs-save
EXTRA_DIST += \
utilities/ovs-appctl.8.in \
- utilities/ovs-bugtool \
- utilities/ovs-bugtool.8 \
utilities/ovs-controller.8.in \
utilities/ovs-ctl.in \
utilities/ovs-dpctl.8.in \
utilities_nlmon_SOURCES = utilities/nlmon.c
utilities_nlmon_LDADD = lib/libopenvswitch.a
endif
+
+include utilities/bugtool/automake.mk
--- /dev/null
+if HAVE_PYTHON
+sbin_SCRIPTS += utilities/bugtool/ovs-bugtool
+man_MANS += utilities/bugtool/ovs-bugtool.8
+
+bugtool_plugins = \
+ utilities/bugtool/plugins/kernel-info/openvswitch.xml \
+ utilities/bugtool/plugins/network-status/openvswitch.xml \
+ utilities/bugtool/plugins/system-configuration.xml \
+ utilities/bugtool/plugins/system-configuration/openvswitch.xml
+
+bugtool_scripts = utilities/bugtool/ovs-bugtool-tc-class-show
+scripts_SCRIPTS += $(bugtool_scripts)
+
+bugtoolpluginsdir = $(sysconfdir)/openvswitch/bugtool-plugins
+INSTALL_DATA_LOCAL += bugtool-install-data-local
+bugtool-install-data-local:
+ for plugin in $(bugtool_plugins); do \
+ stem=`echo "$$plugin" | sed 's,utilities/bugtool/plugins/,,'`; \
+ dir=`expr "$$stem" : '\(.*\)/[^/]*$$'`; \
+ $(MKDIR_P) "$(DESTDIR)$(bugtoolpluginsdir)/$$dir"; \
+ $(INSTALL_DATA) "$(srcdir)/$$plugin" "$(DESTDIR)$(bugtoolpluginsdir)/$$stem"; \
+ done
+endif
+
+EXTRA_DIST += \
+ $(bugtool_plugins) \
+ $(bugtool_scripts) \
+ utilities/bugtool/ovs-bugtool.8 \
+ utilities/bugtool/ovs-bugtool.in
-#!/usr/bin/env python
+#! @PYTHON@
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
import socket
import base64
-sys.path.append('/usr/lib/python')
-sys.path.append('/usr/lib64/python')
-
OS_RELEASE = platform.release()
#
APT_SOURCES_LIST = "/etc/apt/sources.list"
APT_SOURCES_LIST_D = "/etc/apt/sources.list.d"
BUG_DIR = "/var/log/ovs-bugtool"
-PLUGIN_DIR = "/etc/openvswitch/bugtool"
+PLUGIN_DIR = "@sysconfdir@/openvswitch/bugtool-plugins"
GRUB_CONFIG = '/boot/grub/menu.lst'
BOOT_KERNEL = '/boot/vmlinuz-' + OS_RELEASE
BOOT_INITRD = '/boot/initrd-' + OS_RELEASE + '.img'
HOSTS_ALLOW = '/etc/hosts.allow'
HOSTS_DENY = '/etc/hosts.deny'
DHCP_LEASE_DIR = ['/var/lib/dhclient', '/var/lib/dhcp3']
-OPENVSWITCH_LOG_DIR = '/var/log/openvswitch'
+OPENVSWITCH_LOG_DIR = '@LOGDIR@'
OPENVSWITCH_DEFAULT_SWITCH = '/etc/default/openvswitch-switch' # Debian
OPENVSWITCH_SYSCONFIG_SWITCH = '/etc/sysconfig/openvswitch' # RHEL
OPENVSWITCH_DEFAULT_CONTROLLER = '/etc/default/openvswitch-controller'
-OPENVSWITCH_CONF_DB = '/etc/openvswitch/conf.db'
-OPENVSWITCH_VSWITCHD_PID = '/var/run/openvswitch/ovs-vswitchd.pid'
+OPENVSWITCH_CONF_DB = '@sysconfdir@/openvswitch/conf.db'
+OPENVSWITCH_VSWITCHD_PID = '@RUNDIR@/ovs-vswitchd.pid'
COLLECTD_LOGS_DIR = '/var/lib/collectd/rrd'
VAR_LOG_DIR = '/var/log/'
VAR_LOG_CORE_DIR = '/var/log/core'
# External programs
#
-os.environ['PATH'] = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
+os.environ['PATH'] = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:@pkgdatadir@/scripts'
ARP = 'arp'
BRCTL = 'brctl'
CAT = 'cat'
-->
<collect>
- <command label="tc-class-show">/usr/share/openvswitch/scripts/xen-bugtool-tc-class-show</command>
+ <command label="tc-class-show">/usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show</command>
</collect>
-# Copyright (C) 2009, 2010 Nicira Networks, Inc.
+# Copyright (C) 2009, 2010, 2011 Nicira Networks, Inc.
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
xenserver/etc_logrotate.d_openvswitch \
xenserver/etc_profile.d_openvswitch.sh \
xenserver/etc_xapi.d_plugins_openvswitch-cfg-update \
- xenserver/etc_xensource_bugtool_network-status_openvswitch.xml \
- xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml \
- xenserver/etc_xensource_bugtool_system-configuration.xml \
- xenserver/etc_xensource_bugtool_system-configuration_openvswitch.xml \
xenserver/etc_xensource_scripts_vif \
xenserver/openvswitch-xen.spec \
xenserver/opt_xensource_libexec_InterfaceReconfigure.py \
xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py \
xenserver/usr_share_openvswitch_scripts_ovs-xapi-sync \
xenserver/usr_share_openvswitch_scripts_sysconfig.template \
- xenserver/usr_share_openvswitch_scripts_xen-bugtool-tc-class-show \
xenserver/uuid.py
install -d -m 755 $RPM_BUILD_ROOT/etc/xapi.d/plugins
install -m 755 xenserver/etc_xapi.d_plugins_openvswitch-cfg-update \
$RPM_BUILD_ROOT/etc/xapi.d/plugins/openvswitch-cfg-update
-install -d -m 755 $RPM_BUILD_ROOT/etc/xensource/bugtool/network-status
-install -m 644 xenserver/etc_xensource_bugtool_network-status_openvswitch.xml \
- $RPM_BUILD_ROOT/etc/xensource/bugtool/network-status/openvswitch.xml
-install -d -m 755 $RPM_BUILD_ROOT/etc/xensource/bugtool/kernel-info
-install -m 644 xenserver/etc_xensource_bugtool_kernel-info_openvswitch.xml \
- $RPM_BUILD_ROOT/etc/xensource/bugtool/kernel-info/openvswitch.xml
-install -m 644 xenserver/etc_xensource_bugtool_system-configuration.xml \
- $RPM_BUILD_ROOT/etc/xensource/bugtool/system-configuration.xml
-install -d -m 755 $RPM_BUILD_ROOT/etc/xensource/bugtool/system-configuration
-install -m 644 xenserver/etc_xensource_bugtool_system-configuration_openvswitch.xml \
- $RPM_BUILD_ROOT/etc/xensource/bugtool/system-configuration/openvswitch.xml
install -d -m 755 $RPM_BUILD_ROOT/usr/share/openvswitch/scripts
install -m 755 xenserver/opt_xensource_libexec_interface-reconfigure \
$RPM_BUILD_ROOT/usr/share/openvswitch/scripts/interface-reconfigure
$RPM_BUILD_ROOT/usr/share/openvswitch/scripts/ovs-xapi-sync
install -m 755 xenserver/usr_share_openvswitch_scripts_sysconfig.template \
$RPM_BUILD_ROOT/usr/share/openvswitch/scripts/sysconfig.template
-install -m 755 xenserver/usr_share_openvswitch_scripts_xen-bugtool-tc-class-show \
- $RPM_BUILD_ROOT/usr/share/openvswitch/scripts/xen-bugtool-tc-class-show
install -d -m 755 $RPM_BUILD_ROOT/usr/lib/xsconsole/plugins-base
install -m 644 \
xenserver/usr_lib_xsconsole_plugins-base_XSFeatureVSwitch.py \
find datapath/linux -name *.ko -exec install -m 755 \{\} $RPM_BUILD_ROOT/lib/modules/%{xen_version}/extra/openvswitch \;
install xenserver/uuid.py $RPM_BUILD_ROOT/usr/share/openvswitch/python
+install -d -m 755 $RPM_BUILD_ROOT/etc/xensource/bugtool
+mv $RPM_BUILD_ROOT/etc/openvswitch/bugtool-plugins $RPM_BUILD_ROOT/etc/xensource/bugtool
+
# Get rid of stuff we don't want to make RPM happy.
rm \
- $RPM_BUILD_ROOT/usr/bin/ovs-bugtool \
+ $RPM_BUILD_ROOT/usr/sbin/ovs-bugtool \
$RPM_BUILD_ROOT/usr/bin/ovs-controller \
$RPM_BUILD_ROOT/usr/bin/ovs-pki \
$RPM_BUILD_ROOT/usr/share/man/man8/ovs-bugtool.8 \
/etc/init.d/openvswitch
/etc/init.d/openvswitch-xapi-update
/etc/xapi.d/plugins/openvswitch-cfg-update
-/etc/xensource/bugtool/network-status/openvswitch.xml
-/etc/xensource/bugtool/kernel-info/openvswitch.xml
-/etc/xensource/bugtool/system-configuration.xml
-/etc/xensource/bugtool/system-configuration/openvswitch.xml
+/etc/xensource/bugtool/*
/etc/logrotate.d/openvswitch
/etc/profile.d/openvswitch.sh
/usr/share/openvswitch/python/ovs/__init__.py
/usr/share/openvswitch/scripts/InterfaceReconfigureVswitch.py
/usr/share/openvswitch/scripts/vif
/usr/share/openvswitch/scripts/sysconfig.template
-/usr/share/openvswitch/scripts/xen-bugtool-tc-class-show
+/usr/share/openvswitch/scripts/ovs-bugtool-tc-class-show
/usr/share/openvswitch/scripts/ovs-save
/usr/share/openvswitch/scripts/ovs-ctl
/usr/share/openvswitch/scripts/ovs-lib.sh