From bd133f6bd4df1480479cd7fae298963520eaca8f Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 7 Aug 2013 12:32:51 -0400 Subject: [PATCH] Rename /usr/local/share/humbug/ to /usr/local/share/zulip/. (imported from commit 6b5d13b36f96c7174e70ce1391f1d66724c45a62) --- demos/rss-bot | 6 +++--- demos/twitter-search-bot | 4 ++-- integrations/nagios/zulip_nagios.cfg | 4 ++-- setup.py | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/demos/rss-bot b/demos/rss-bot index a2a6cfa..3814727 100755 --- a/demos/rss-bot +++ b/demos/rss-bot @@ -28,17 +28,17 @@ To use this script: 3. create a ~/.zuliprc, or specify user and api-key with command line arguments 4. Test the script by running it manually, like this: -/usr/local/share/humbug/demos/rss-bot +/usr/local/share/zulip/demos/rss-bot You can customize the location on the feed file and recipient stream, e.g.: -/usr/local/share/humbug/demos/rss-bot --feed-file=/path/to/my-feeds --stream=my-rss-stream +/usr/local/share/zulip/demos/rss-bot --feed-file=/path/to/my-feeds --stream=my-rss-stream 4. Configure a crontab entry for this script. A sample crontab entry for processing feeds stored in the default location and sending to the default stream every 5 minutes is: -*/5 * * * * /usr/local/share/humbug/demos/rss-bot""" +*/5 * * * * /usr/local/share/zulip/demos/rss-bot""" parser = optparse.OptionParser(usage) parser.add_option('--stream', diff --git a/demos/twitter-search-bot b/demos/twitter-search-bot index c4e9281..c8f81c7 100755 --- a/demos/twitter-search-bot +++ b/demos/twitter-search-bot @@ -29,12 +29,12 @@ To use this script: 2. Subscribe to the stream that will receive Twitter updates (default stream: twitter) 3. Test the script by running it manually, like this: -/usr/local/share/humbug/demos/twitter-search-bot --search="@nprnews,quantum physics" +/usr/local/share/zulip/demos/twitter-search-bot --search="@nprnews,quantum physics" 4. Configure a crontab entry for this script. A sample crontab entry that will process tweets every 5 minutes is: -*/5 * * * * /usr/local/share/humbug/demos/twitter-search-bot --search="@nprnews,quantum physics" +*/5 * * * * /usr/local/share/zulip/demos/twitter-search-bot --search="@nprnews,quantum physics" == Setting up Twitter authentications == diff --git a/integrations/nagios/zulip_nagios.cfg b/integrations/nagios/zulip_nagios.cfg index 7fc51bb..5f49762 100644 --- a/integrations/nagios/zulip_nagios.cfg +++ b/integrations/nagios/zulip_nagios.cfg @@ -12,10 +12,10 @@ define contact{ # Zulip commands define command { command_name notify-host-by-zulip - command_line /usr/local/share/humbug/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --state="$HOSTSTATE$" --output="$HOSTOUTPUT$" --long-output="$LONGHOSTOUTPUT$" + command_line /usr/local/share/zulip/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --state="$HOSTSTATE$" --output="$HOSTOUTPUT$" --long-output="$LONGHOSTOUTPUT$" } define command { command_name notify-service-by-zulip - command_line /usr/local/share/humbug/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --service="$SERVICEDESC$" --state="$SERVICESTATE$" --output="$SERVICEOUTPUT$" --long-output="$LONGSERVICEOUTPUT$" + command_line /usr/local/share/zulip/integrations/nagios/nagios-notify-zulip --stream=nagios --type="$NOTIFICATIONTYPE$" --host="$HOSTADDRESS$" --service="$SERVICEDESC$" --state="$SERVICESTATE$" --output="$SERVICEOUTPUT$" --long-output="$LONGSERVICEOUTPUT$" } diff --git a/setup.py b/setup.py index 996d3bf..9722902 100644 --- a/setup.py +++ b/setup.py @@ -26,12 +26,12 @@ setup(name='zulip', ], url='https://www.zulip.com/dist/api/', packages=['zulip'], - data_files=[('share/humbug/examples', ["examples/zuliprc", "examples/send-message", "examples/subscribe", + data_files=[('share/zulip/examples', ["examples/zuliprc", "examples/send-message", "examples/subscribe", "examples/get-public-streams", "examples/unsubscribe", "examples/list-members", "examples/list-subscriptions", "examples/print-messages"])] + \ - list(recur_expand('share/humbug', 'integrations/')) + \ - [('share/humbug/demos', + list(recur_expand('share/zulip', 'integrations/')) + \ + [('share/zulip/demos', [os.path.join("demos", relpath) for relpath in os.listdir("demos")])], scripts=["bin/zulip-send"],