X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=anyterm.spec;h=1c93f6bbc30ec45b5c7e2a83b4e9b95ef9104763;hb=27d072ec4ddb01415079bc4a9c9b64605532d61a;hp=8def04cd5698643c43f6506a114273dfd9e1cc5c;hpb=3f2c16d752bfbf05fee999c05744fd17b3fadfbe;p=packages%2Fanyterm.git diff --git a/anyterm.spec b/anyterm.spec index 8def04c..1c93f6b 100644 --- a/anyterm.spec +++ b/anyterm.spec @@ -1,8 +1,13 @@ +# TODO +# - anygetty hangs due /bin/login calling vhangup() +# http://anyterm.org/1.0/config.html +# - put anygetty to separate package? %define apxs /usr/sbin/apxs Summary: Terminal emulator in a web browser +Summary(pl.UTF-8): Emulator terminala działający w przeglądarce WWW Name: anyterm Version: 1.1.4 -Release: 0.3 +Release: 0.10 Epoch: 0 License: GPL Group: Networking/Daemons @@ -10,20 +15,24 @@ Source0: http://anyterm.org/download/%{name}-%{version}.tbz2 # Source0-md5: cf841703b7438866e573f5a33137ff6f Patch0: %{name}-makefile.patch URL: http://anyterm.org/ +BuildRequires: %{apxs} BuildRequires: apache-devel >= 2.0.52-2 BuildRequires: apr-devel BuildRequires: rote-devel >= 0.2.8 BuildRequires: rpmbuild(macros) >= 1.228 -BuildRequires: %{apxs} Requires: apache >= 2.0.52-2 +Requires: apache(modules-api) = %apache_modules_api BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _appdir %{_datadir}/%{name} %define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null) -%define _sysconfdir /etc/httpd +%define _sysconfdir %(%{apxs} -q SYSCONFDIR 2>/dev/null) %description -An apache module plus scripts to make a terminal within a web browser. +An Apache module plus scripts to make a terminal within a web browser. + +%description -l pl.UTF-8 +Moduł Apache'a i skrypty tworzące terminal w przeglądarce WWW. %prep %setup -q @@ -41,22 +50,49 @@ mv -f browser/.htaccess htaccess 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 < $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/70_anyterm.conf <<'END' LoadModule anyterm modules/%{name}.so 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" SetHandler anyterm + + # for this to work you need to change CustomLog: + # CustomLog /path/to/logfile combined env=!DONTLOG + # http://anyterm.org/security.html + SetEnv DONTLOG + + + + + allow from all + + + + + + AuthType Basic + AuthUserFile /etc/httpd/user + AuthGroupFile /etc/httpd/group + AuthName "AnyTerm" + require group anyterm + satisfy any + order allow,deny + + # vim: filetype=apache ts=4 sw=4 et END install apachemod/.libs/%{name}.so $RPM_BUILD_ROOT%{_pkglibdir}/%{name}.so cp -a browser/* $RPM_BUILD_ROOT%{_appdir} -install anygetty/anygetty $RPM_BUILD_ROOT/%{_sbindir} +install anygetty/anygetty $RPM_BUILD_ROOT%{_sbindir} %clean rm -rf $RPM_BUILD_ROOT @@ -64,8 +100,9 @@ rm -rf $RPM_BUILD_ROOT %post %service httpd restart -%banner %{name} <