- fixes python shebang so that one does no need a python symlink

- tweak MESSAGE: no need to set ProxyRequests, remove trailing blank
line

maintainer timeout, no objection from espie@
This commit is contained in:
ajacoutot 2009-04-06 15:30:13 +00:00
parent 2bac4ae99d
commit d544f73773
3 changed files with 10 additions and 8 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.4 2009/03/24 17:55:24 jasper Exp $
# $OpenBSD: Makefile,v 1.5 2009/04/06 15:30:13 ajacoutot Exp $
COMMENT = web-based SSH client
DISTNAME = Ajaxterm-0.10
PKGNAME = ajaxterm-0.10p0
PKGNAME = ajaxterm-0.10p1
CATEGORIES = net security www
PKG_ARCH = *
@ -26,6 +26,7 @@ MODULES = lang/python
SHARE = ${PREFIX}/share/ajaxterm
do-install:
${SUBST_CMD} ${WRKDIST}/ajaxterm.py
${INSTALL_SCRIPT} ${WRKDIST}/ajaxterm.py ${PREFIX}/bin/ajaxterm
${INSTALL_DATA_DIR} ${SHARE}
${INSTALL_SCRIPT} ${WRKDIST}/qweb.py ${SHARE}

View File

@ -1,7 +1,11 @@
$OpenBSD: patch-ajaxterm_py,v 1.1.1.1 2009/02/03 10:52:36 espie Exp $
$OpenBSD: patch-ajaxterm_py,v 1.2 2009/04/06 15:30:13 ajacoutot Exp $
--- ajaxterm.py.orig Sun Oct 29 03:52:39 2006
+++ ajaxterm.py Tue Dec 9 11:31:25 2008
@@ -4,9 +4,10 @@
+++ ajaxterm.py Tue Mar 31 12:32:31 2009
@@ -1,12 +1,13 @@
-#!/usr/bin/env python
+#!${MODPY_BIN}
""" Ajaxterm """
import array,cgi,fcntl,glob,mimetypes,optparse,os,pty,random,re,signal,select,sys,threading,time,termios,struct,pwd

View File

@ -7,12 +7,9 @@ ajaxterm -d -u _ajaxterm
That is:
- activate the proxy module
LoadModule proxy_module /usr/lib/apache/modules/libproxy.so
- activate proxy requests
ProxyRequests On
- choose a secure url and redirect it to ajaxterm. In the SSL VirtualHost
section <VirtualHost _default_:443>
add something like:
ProxyPass /ajaxterm/ http://localhost:8022/
ProxyPassReverse /ajaxterm http://localhost:8022/