antiright-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Antiright-devel] antiright/ACE-desktop Makefile hacks/host_monit...


From: Jeffrey Bedard
Subject: [Antiright-devel] antiright/ACE-desktop Makefile hacks/host_monit...
Date: Sun, 22 Jul 2007 06:56:46 +0000

CVSROOT:        /sources/antiright
Module name:    antiright
Changes by:     Jeffrey Bedard <jefbed> 07/07/22 06:56:46

Modified files:
        ACE-desktop    : Makefile 
Added files:
        ACE-desktop/hacks: host_monitor.sh 
Removed files:
        ACE-desktop    : ACE_host_monitor.sh 

Log message:
        Added hacks infrastructure, for a more extensive collection of
        gtkshell applications.  

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/ACE-desktop/Makefile?cvsroot=antiright&r1=1.17&r2=1.18
http://cvs.savannah.gnu.org/viewcvs/antiright/ACE-desktop/ACE_host_monitor.sh?cvsroot=antiright&r1=1.1&r2=0
http://cvs.savannah.gnu.org/viewcvs/antiright/ACE-desktop/hacks/host_monitor.sh?cvsroot=antiright&rev=1.1

Patches:
Index: Makefile
===================================================================
RCS file: /sources/antiright/antiright/ACE-desktop/Makefile,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- Makefile    22 Jul 2007 06:41:11 -0000      1.17
+++ Makefile    22 Jul 2007 06:56:46 -0000      1.18
@@ -25,7 +25,7 @@
 
 include ../config.mk
 
-all: ACE.install
+all: ACE.install hacks
 
 ACE.install: ACE
        echo '#!/bin/sh' > ACE.install
@@ -33,6 +33,9 @@
        cat ACE >> ACE.install
        chmod +x ACE.install
        
+hacks: hacks/*.sh
+       chmod +x hacks/*.sh
+       
 clean:
        rm -f ACE.install
 
@@ -46,6 +49,7 @@
 man1dir=$(mandir)/man1
 man5dir=$(mandir)/man5
 datadir=$(PREFIX)/share/ACE-desktop
+hackdir=$(datadir)/hacks
 icondir=$(datadir)/icons
 
 install: all
@@ -54,6 +58,8 @@
        $(INSTALL_DIR) $(man5dir)
        ${INSTALL_DIR} $(datadir)
        ${INSTALL_DIR} $(icondir)
+       $(INSTALL_DIR) $(hackdir)
+       $(INSTALL_SCRIPT) hacks/*.sh $(hackdir)
        $(INSTALL_DATA) system.antiright $(datadir)
        $(INSTALL_DATA) guidl/*.gdl $(datadir)
        $(INSTALL_SCRIPT) ACE.install $(bindir)/ACE

Index: hacks/host_monitor.sh
===================================================================
RCS file: hacks/host_monitor.sh
diff -N hacks/host_monitor.sh
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ hacks/host_monitor.sh       22 Jul 2007 06:56:46 -0000      1.1
@@ -0,0 +1,43 @@
+#!/bin/sh
+#    AntiRight (c) 2007 Jeffrey Bedard address@hidden
+
+#    This file is part of AntiRight.
+
+#     AntiRight 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.  AntiRight
+#     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
+#     AntiRight; if not, write to the Free Software Foundation, Inc.,
+#     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+Main()
+{
+       local HOSTS="$(ACE hosts_to_monitor)"
+       local COMMAND="gtkshell -or 8 -og +0+0 -ou 15000"
+       local LOG_LINES=4
+       local LOG_FILE=/var/log/messages
+
+       if [ "$SSH_AGENT_PID" = "" ]; then
+               eval `ssh-agent`
+               ssh-add
+       fi
+       if [ "$1" = "--auth" ]; then
+               ssh-add
+       fi
+
+       for HOST in $HOSTS; do
+               local SSH_CMD="ssh $HOST /usr/bin/uptime && ssh $HOST\
+                       /usr/bin/tail -n $LOG_LINES $LOG_FILE" 
+               COMMAND="$COMMAND -al $HOST -aul \"$SSH_CMD\""
+       done
+       nice -n 20 sh -c "$COMMAND" &
+}
+#----
+
+Main $@
+

Index: ACE_host_monitor.sh
===================================================================
RCS file: ACE_host_monitor.sh
diff -N ACE_host_monitor.sh
--- ACE_host_monitor.sh 22 Jul 2007 06:39:35 -0000      1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,43 +0,0 @@
-#!/bin/sh
-#    AntiRight (c) 2007 Jeffrey Bedard address@hidden
-
-#    This file is part of AntiRight.
-
-#     AntiRight 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.  AntiRight
-#     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
-#     AntiRight; if not, write to the Free Software Foundation, Inc.,
-#     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-
-Main()
-{
-       local HOSTS="$(ACE hosts_to_monitor)"
-       local COMMAND="gtkshell -or 8 -og +0+0 -ou 15000"
-       local LOG_LINES=4
-       local LOG_FILE=/var/log/messages
-
-       if [ "$SSH_AGENT_PID" = "" ]; then
-               eval `ssh-agent`
-               ssh-add
-       fi
-       if [ "$1" = "--auth" ]; then
-               ssh-add
-       fi
-
-       for HOST in $HOSTS; do
-               local SSH_CMD="ssh $HOST /usr/bin/uptime && ssh $HOST\
-                       /usr/bin/tail -n $LOG_LINES $LOG_FILE" 
-               COMMAND="$COMMAND -al $HOST -aul \"$SSH_CMD\""
-       done
-       nice -n 20 sh -c "$COMMAND" &
-}
-#----
-
-Main $@
-




reply via email to

[Prev in Thread] Current Thread [Next in Thread]