sysutils/webmin: update to version 2.013

This commit is contained in:
Jimmy Olgeni 2023-02-16 23:16:44 +01:00
parent 638749523b
commit 5edad1860c
6 changed files with 1577 additions and 33029 deletions

View file

@ -1,5 +1,5 @@
PORTNAME= webmin
PORTVERSION= 2.000
PORTVERSION= 2.013
PORTREVISION= 0
CATEGORIES= sysutils
MASTER_SITES= http://download.webmin.com/updates/:up \
@ -23,9 +23,7 @@ USE_PYTHON= py3kplist
USE_RC_SUBR= webmin
SUB_LIST= PERL=${PERL}
SUB_FILES= pkg-message
SHEBANG_FILES= ${WRKSRC}/ajaxterm/ajaxterm/ajaxterm.py \
${WRKSRC}/ajaxterm/ajaxterm/configure \
${WRKSRC}/webmin/acme_tiny.py
SHEBANG_FILES= ${WRKSRC}/webmin/acme_tiny.py
WEBMIN_MODULES=

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1664549814
SHA256 (webmin-2.000.tar.gz) = b7394544543262ab9c614266cf85cc634fd083e2a32b4fb981bcbf0fc53f2aab
SIZE (webmin-2.000.tar.gz) = 44822732
TIMESTAMP = 1676577205
SHA256 (webmin-2.013.tar.gz) = 799b6d7516e4895c8ae03463abcdd2431abc86f6cd88de603ebd573d84fc6bb6
SIZE (webmin-2.013.tar.gz) = 47100822

View file

@ -1,31 +0,0 @@
--- ajaxterm/ajaxterm/ajaxterm.py.orig 2015-03-13 23:52:34 UTC
+++ ajaxterm/ajaxterm/ajaxterm.py
@@ -394,7 +394,7 @@
if self.cmd:
cmd=['/bin/sh','-c',self.cmd]
elif os.getuid()==0:
- cmd=['/bin/login']
+ cmd=['/usr/bin/login']
else:
sys.stdout.write("Login: ")
login=sys.stdin.readline().strip()
@@ -549,16 +549,16 @@
file(o.pidfile,'w+').write(str(pid)+'\n')
except:
pass
- print 'AjaxTerm at http://localhost:%s/ pid: %d' % (o.port,pid)
+ print ('AjaxTerm at http://localhost:%s/ pid: %d' % (o.port,pid))
sys.exit(0)
else:
- print 'AjaxTerm at http://localhost:%s/' % o.port
+ print ('AjaxTerm at http://localhost:%s/' % o.port)
at=AjaxTerm(o.cmd,o.index_file)
# f=lambda:os.system('firefox http://localhost:%s/&'%o.port)
# qweb.qweb_wsgi_autorun(at,ip='localhost',port=int(o.port),threaded=0,log=o.log,callback_ready=None)
try:
qweb.QWebWSGIServer(at,ip='localhost',port=int(o.port),threaded=0,log=o.log).serve_forever()
- except KeyboardInterrupt,e:
+ except KeyboardInterrupt as e:
sys.excepthook(*sys.exc_info())
at.multi.die()

View file

@ -1,81 +0,0 @@
--- ajaxterm/ajaxterm/qweb.py.orig 2015-03-13 23:52:34 UTC
+++ ajaxterm/ajaxterm/qweb.py
@@ -128,12 +128,12 @@
r=None
try:
r=eval(expr,self.data)
- except NameError,e:
+ except NameError as e:
pass
- except AttributeError,e:
+ except AttributeError as e:
pass
- except Exception,e:
- print "qweb: expression error '%s' "%expr,e
+ except Exception as e:
+ print ("qweb: expression error '%s' "%expr,e)
if self.data.has_key("__builtins__"):
del self.data["__builtins__"]
return r
@@ -846,7 +846,7 @@
fname=os.path.join(self.session_path,'qweb_sess_%s'%self.session_id)
try:
oldtime=os.path.getmtime(fname)
- except OSError,IOError:
+ except (OSError,IOError):
oldtime=0
dump=pickle.dumps(self.copy())
if (dump != self.session_orig) or (time.time() > oldtime+self.session_maxlifetime/4):
@@ -863,7 +863,7 @@
for i in [os.path.join(self.session_path,i) for i in os.listdir(self.session_path) if i.startswith('qweb_sess_')]:
if (t > os.path.getmtime(i)+self.session_maxlifetime):
os.unlink(i)
- except OSError,IOError:
+ except (OSError,IOError):
pass
class QWebSessionMem(QWebSession):
def session_load(self,sid):
@@ -1237,8 +1237,8 @@
def write(self,data):
try:
self.wfile.write(data)
- except (socket.error, socket.timeout),e:
- print e
+ except (socket.error, socket.timeout) as e:
+ print (e)
def bufferon(self):
if not getattr(self,'wfile_buf',0):
self.wfile_buf=1
@@ -1323,7 +1323,7 @@
sock = socket.fromfd(0, socket.AF_INET, socket.SOCK_STREAM)
try:
sock.getpeername()
- except socket.error, e:
+ except socket.error as e:
if e[0] == errno.ENOTSOCK:
fcgi=0
if fcgi or os.environ.has_key('REQUEST_METHOD'):
@@ -1331,13 +1331,13 @@
fcgi.WSGIServer(wsgiapp,multithreaded=False).run()
else:
if log:
- print 'Serving on %s:%d'%(ip,port)
+ print ('Serving on %s:%d'%(ip,port))
s=QWebWSGIServer(wsgiapp,ip=ip,port=port,threaded=threaded,log=log)
if callback_ready:
callback_ready()
try:
s.serve_forever()
- except KeyboardInterrupt,e:
+ except KeyboardInterrupt as e:
sys.excepthook(*sys.exc_info())
#----------------------------------------------------------
@@ -1351,6 +1351,6 @@
body+='\n\n%s\n%s\n\n%s'%(n,'-'*len(n),d)
return body
- print qweb_doc()
+ print (qweb_doc())
#

View file

@ -1,11 +0,0 @@
--- ajaxterm/index.cgi.orig
+++ ajaxterm/index.cgi
@@ -16,7 +16,7 @@
&ui_print_header(undef, $text{'index_title'}, "", undef, 1, 1);
# Check for python
-my $python = &has_command("python2") || &has_command("python");
+my $python = &has_command("python2.7") || &has_command("python");
if (!$python) {
&ui_print_endpage(&text('index_epython', "<tt>python</tt>"));
}

File diff suppressed because it is too large Load diff