SPECS: anyterm.spec - create config that works (for me) - anygetty...
glen
glen at pld-linux.org
Sat Jul 16 14:12:27 CEST 2005
Author: glen Date: Sat Jul 16 12:12:27 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- create config that works (for me)
- anygetty banner shown just once
---- Files affected:
SPECS:
anyterm.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/anyterm.spec
diff -u SPECS/anyterm.spec:1.5 SPECS/anyterm.spec:1.6
--- SPECS/anyterm.spec:1.5 Sat Jul 16 13:44:18 2005
+++ SPECS/anyterm.spec Sat Jul 16 14:12:22 2005
@@ -3,7 +3,7 @@
Summary: Terminal emulator in a web browser
Name: anyterm
Version: 1.1.4
-Release: 0.3
+Release: 0.7
Epoch: 0
License: GPL
Group: Networking/Daemons
@@ -42,15 +42,32 @@
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/httpd.conf,%{_pkglibdir},%{_mandir}/man8,%{_appdir}}
-cat > $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/70_anyterm.conf <<END
+cat > $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/70_anyterm.conf <<'END'
LoadModule anyterm modules/%{name}.so
<IfModule anyterm>
Alias /%{name} "%{_appdir}"
- anyterm_command '%{_sbindir}/anygetty --remotehost "Anyterm: %h"'
+ # hangs on login:
+# anyterm_command '%{_sbindir}/anygetty --remotehost "Anyterm: %h"'
+ # works for me:
+ anyterm_command "USER=%u; exec /usr/bin/ssh ${USER:+$USER@}localhost"
<Files anyterm-module>
SetHandler anyterm
</Files>
+
+# <Location /%{name}>
+# allow from all
+# </Location>
+
+ <Location /%{name}>
+ AuthType Basic
+ AuthUserFile /etc/httpd/user
+ AuthGroupFile /etc/httpd/group
+ AuthName "AnyTerm"
+ require group anyterm
+ satisfy any
+ order allow,deny
+ </Location>
</IfModule>
# vim: filetype=apache ts=4 sw=4 et
END
@@ -65,9 +82,11 @@
%post
%service httpd restart
-%banner %{name} <<EOF
-For full function, setuid %{_sbindir}/anygetty.
-EOF
+if [ "$1" = 1 ]; then
+ %banner %{name} <<-EOF
+ To use anygetty, you need to setuid it.
+ EOF
+fi
%preun
if [ "$1" = "0" ]; then
@@ -88,6 +107,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2005/07/16 12:12:22 glen
+- create config that works (for me)
+- anygetty banner shown just once
+
Revision 1.5 2005/07/16 11:44:18 glen
- fix %build (rm -rf BUILDROOT??)
- simplify %build
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/anyterm.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list