[csw-devel] SF.net SVN: gar:[5363] csw/mgar/pkg/autossh/trunk

skayser at users.sourceforge.net skayser at users.sourceforge.net
Thu Jun 25 22:59:33 CEST 2009


Revision: 5363
          http://gar.svn.sourceforge.net/gar/?rev=5363&view=rev
Author:   skayser
Date:     2009-06-25 20:59:33 +0000 (Thu, 25 Jun 2009)

Log Message:
-----------
autossh: adopted autossh wrapper for AUTOSSH_PORT from Debian

Modified Paths:
--------------
    csw/mgar/pkg/autossh/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/autossh/trunk/files/autossh

Modified: csw/mgar/pkg/autossh/trunk/Makefile
===================================================================
--- csw/mgar/pkg/autossh/trunk/Makefile	2009-06-25 20:28:46 UTC (rev 5362)
+++ csw/mgar/pkg/autossh/trunk/Makefile	2009-06-25 20:59:33 UTC (rev 5363)
@@ -24,6 +24,9 @@
 CONFIGURE_ARGS = $(DIRPATHS)
 NORUNPATH = 1
 
+# --with-ssh=/usr/bin/ssh doesn't work -> checking for ssh... /opt/csw/bin/ssh
+BUILD_ARGS = 'SSH=/usr/bin/ssh'
+
 include gar/category.mk
 
 # Makefile doesn't honor $(DESTDIR) so we have to do it manually
@@ -31,11 +34,13 @@
 install-custom: DOCS=CHANGES README
 install-custom:
 	@ginstall -d $(DESTDIR)$(bindir)
+	@ginstall -d $(DESTDIR)$(prefix)/libexec/autossh
 	@ginstall -d $(DESTDIR)$(mandir)/man1
 	@ginstall -d $(DOCDEST)
 	@ginstall -d $(DOCDEST)/examples
 
-	@cp $(WORKSRC)/autossh $(DESTDIR)$(bindir)
+	@ginstall -m 755 $(FILEDIR)/autossh $(DESTDIR)$(bindir)
+	@cp $(WORKSRC)/autossh $(DESTDIR)$(prefix)/libexec/autossh
 	@cp $(FILEDIR)/autossh.1 $(DESTDIR)$(mandir)/man1
 	@cp $(FILEDIR)/autossh.1.txt $(DOCDEST)
 	@cp $(addprefix $(WORKSRC)/,$(DOCS)) $(DOCDEST)

Added: csw/mgar/pkg/autossh/trunk/files/autossh
===================================================================
--- csw/mgar/pkg/autossh/trunk/files/autossh	                        (rev 0)
+++ csw/mgar/pkg/autossh/trunk/files/autossh	2009-06-25 20:59:33 UTC (rev 5363)
@@ -0,0 +1,11 @@
+#!/bin/sh
+# little wrapper to choose a default port for autossh [21021]
+#
+# Adopted from Debian and adjusted for OpenCSW
+
+if [ ! $AUTOSSH_PORT ]; then export AUTOSSH_PORT="21021"; fi
+if [ -f /opt/csw/bin/ssh ]; then 
+    export AUTOSSH_PATH=/opt/csw/bin/ssh
+fi
+
+exec /opt/csw/libexec/autossh/autossh "$@"


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list