[Midnightbsd-cvs] mports [16983] trunk/security: Add the autossh port

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Sep 11 21:01:49 EDT 2014


Revision: 16983
          http://svnweb.midnightbsd.org/mports/?rev=16983
Author:   laffer1
Date:     2014-09-11 21:01:48 -0400 (Thu, 11 Sep 2014)
Log Message:
-----------
Add the autossh port

Modified Paths:
--------------
    trunk/security/Makefile

Added Paths:
-----------
    trunk/security/autossh/
    trunk/security/autossh/Makefile
    trunk/security/autossh/distinfo
    trunk/security/autossh/files/
    trunk/security/autossh/files/patch-Makefile.in
    trunk/security/autossh/pkg-descr
    trunk/security/autossh/pkg-plist

Modified: trunk/security/Makefile
===================================================================
--- trunk/security/Makefile	2014-09-12 00:48:32 UTC (rev 16982)
+++ trunk/security/Makefile	2014-09-12 01:01:48 UTC (rev 16983)
@@ -3,6 +3,7 @@
 COMMENT = Security tools
 
 SUBDIR += aide
+SUBDIR += autossh
 SUBDIR += barnyard2
 SUBDIR += ca_root_nss
 SUBDIR += chroot_safe

Added: trunk/security/autossh/Makefile
===================================================================
--- trunk/security/autossh/Makefile	                        (rev 0)
+++ trunk/security/autossh/Makefile	2014-09-12 01:01:48 UTC (rev 16983)
@@ -0,0 +1,30 @@
+# $MidnightBSD$
+
+PORTNAME=	autossh
+PORTVERSION=	1.4d
+CATEGORIES=	security
+MASTER_SITES=	http://www.harding.motd.ca/autossh/
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Automatically restart SSH sessions and tunnels
+
+LICENSE=	other
+
+GNU_CONFIGURE=	yes
+
+PORTDOCS=	CHANGES README
+
+OPTIONS_DEFINE=	DOCS
+
+.include <bsd.mport.options.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,cp autossh.1 ,$$\{BSD_INSTALL_MAN\} autossh.1 ,g' ${WRKSRC}/${MAKEFILE}.in
+	@${REINPLACE_CMD} -e 's,cp autossh ,$$\{BSD_INSTALL_PROGRAM\} autossh ,g' ${WRKSRC}/${MAKEFILE}.in
+	@${REINPLACE_CMD} -e 's,cp ,$$\{BSD_INSTALL_DATA\} ,g' ${WRKSRC}/${MAKEFILE}.in
+.if empty(PORT_OPTIONS:MDOCS)
+	@${REINPLACE_CMD} -Ee '/doc/d' ${WRKSRC}/${MAKEFILE}.in
+.endif
+
+.include <bsd.port.mk>


Property changes on: trunk/security/autossh/Makefile
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: trunk/security/autossh/distinfo
===================================================================
--- trunk/security/autossh/distinfo	                        (rev 0)
+++ trunk/security/autossh/distinfo	2014-09-12 01:01:48 UTC (rev 16983)
@@ -0,0 +1,2 @@
+SHA256 (autossh-1.4d.tgz) = 00008fe458bde4c94e98bfa96e1e6e18c4107a1f9fc8a538556b82e91ddedc16
+SIZE (autossh-1.4d.tgz) = 65637

Added: trunk/security/autossh/files/patch-Makefile.in
===================================================================
--- trunk/security/autossh/files/patch-Makefile.in	                        (rev 0)
+++ trunk/security/autossh/files/patch-Makefile.in	2014-09-12 01:01:48 UTC (rev 16983)
@@ -0,0 +1,36 @@
+--- Makefile.in.orig	2014-06-06 09:42:44.484826074 +0800
++++ Makefile.in	2014-06-06 09:43:35.132824906 +0800
+@@ -45,18 +45,18 @@ distclean:	allclean
+ 		- /bin/rm -f Makefile
+ 
+ install:	$(TARGET)
+-		mkdir -p -m 755 $(bindir)
+-		mkdir -p -m 755 $(prefix)/share/doc/autossh
+-		mkdir -p -m 755 $(datadir)/examples/autossh
+-		mkdir -p -m 755 $(mandir)/man1
+-		cp $(TARGET) $(bindir)
+-		cp CHANGES README $(datadir)/doc/autossh
+-		cp autossh.host	$(datadir)/examples/autossh
+-		cp rscreen $(datadir)/examples/autossh
+-		cp autossh.1 $(mandir)/man1
+-		chmod 755 $(bindir)/$(TARGET)
+-		chmod 644 $(datadir)/doc/autossh/CHANGES
+-		chmod 644 $(datadir)/doc/autossh/README
+-		chmod 644 $(datadir)/examples/autossh/autossh.host 
+-		chmod 644 $(datadir)/examples/autossh/rscreen
+-		chmod 644 $(mandir)/man1/autossh.1 
++		mkdir -p -m 755 $(DESTDIR)$(bindir)
++		mkdir -p -m 755 $(DESTDIR)$(prefix)/share/doc/autossh
++		mkdir -p -m 755 $(DESTDIR)$(datadir)/examples/autossh
++		mkdir -p -m 755 $(DESTDIR)$(mandir)/man1
++		cp $(TARGET) $(DESTDIR)$(bindir)
++		cp CHANGES README $(DESTDIR)$(datadir)/doc/autossh
++		cp autossh.host	$(DESTDIR)$(datadir)/examples/autossh
++		cp rscreen $(DESTDIR)$(datadir)/examples/autossh
++		cp autossh.1 $(DESTDIR)$(mandir)/man1
++		chmod 755 $(DESTDIR)$(bindir)/$(TARGET)
++		chmod 644 $(DESTDIR)$(datadir)/doc/autossh/CHANGES
++		chmod 644 $(DESTDIR)$(datadir)/doc/autossh/README
++		chmod 644 $(DESTDIR)$(datadir)/examples/autossh/autossh.host 
++		chmod 644 $(DESTDIR)$(datadir)/examples/autossh/rscreen
++		chmod 644 $(DESTDIR)$(mandir)/man1/autossh.1 

Added: trunk/security/autossh/pkg-descr
===================================================================
--- trunk/security/autossh/pkg-descr	                        (rev 0)
+++ trunk/security/autossh/pkg-descr	2014-09-12 01:01:48 UTC (rev 16983)
@@ -0,0 +1,10 @@
+autossh is a program to start a copy of ssh and monitor it, restarting
+it as necessary should it die or stop passing traffic.
+
+The original idea and the mechanism were from rstunnel (Reliable SSH
+Tunnel). With this version the method changes: autossh uses ssh to
+construct a loop of ssh forwardings (one from local to remote, one
+from remote to local), and then sends test data that it expects to
+get back. (The idea is thanks to Terrence Martin.)
+
+WWW: http://www.harding.motd.ca/autossh/

Added: trunk/security/autossh/pkg-plist
===================================================================
--- trunk/security/autossh/pkg-plist	                        (rev 0)
+++ trunk/security/autossh/pkg-plist	2014-09-12 01:01:48 UTC (rev 16983)
@@ -0,0 +1,5 @@
+bin/autossh
+man/man1/autossh.1.gz
+%%EXAMPLESDIR%%/autossh.host
+%%EXAMPLESDIR%%/rscreen
+ at dirrm %%EXAMPLESDIR%%



More information about the Midnightbsd-cvs mailing list