]> git.pld-linux.org Git - packages/anyterm.git/blame - anyterm.spec
- adapterized, fixed %banner usage
[packages/anyterm.git] / anyterm.spec
CommitLineData
57ac7731 1#
2%define apxs /usr/sbin/apxs
3Summary: Terminal emulator in a web browser
4Name: anyterm
5Version: 1.1.4
6Release: 1
7Epoch: 1
8License: GPL
9Group: Networking/Daemons
10Source0: http://anyterm.org/download/%{name}-%{version}.tbz2
11# Source0-md5: cf841703b7438866e573f5a33137ff6f
8785aef2 12Patch0: %{name}-makefile.patch
57ac7731 13URL: http://anyterm.org/
14BuildRequires: apache-devel >= 2.0.52-2
15BuildRequires: apr-devel
16BuildRequires: rote-devel >= 0.2.8
8785aef2 17BuildRequires: rpmbuild(macros) >= 1.194
57ac7731 18BuildRequires: %{apxs}
19Requires: apache >= 2.0.52-2
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%define _httpdir /home/services/httpd
8785aef2
ER
23%define _pkglibdir %(%{apxs} -q LIBEXECDIR 2>/dev/null)
24%define _sysconfdir /etc/httpd
57ac7731 25
26%description
27An apache module plus scripts to make a terminal within a web browser.
28
29%prep
30%setup -q
31%patch0 -p1
32
33%build
34rm -rf $RPM_BUILD_ROOT
35cd apachemod
36%{__make} \
8785aef2 37 INCLUDES='-I%{_includedir}/apr-util' \
57ac7731 38 APXS2=apxs \
39 APR_CONFIG=apr-1-config
40cd ..
41cd anygetty
42%{__make}
43cd ..
44
45%install
46rm -rf $RPM_BUILD_ROOT
47install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/httpd.conf,%{_pkglibdir},%{_mandir}/man8,%{_httpdir}}
48
49cat > $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf/70_anyterm.conf <<END
50LoadModule anyterm modules/%{name}.so
51Alias /%{name} "%{_httpdir}/%{name}"
8785aef2 52anyterm_command '%{_sbindir}/anygetty --remotehost "Anyterm: %h"'
57ac7731 53END
54
55install apachemod/.libs/%{name}.so $RPM_BUILD_ROOT%{_pkglibdir}/%{name}.so
56cp -a browser $RPM_BUILD_ROOT/%{_httpdir}/%{name}
57install anygetty/anygetty $RPM_BUILD_ROOT/%{_sbindir}
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%files
63%defattr(644,root,root,755)
57ac7731 64%doc README
8785aef2 65%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf/*
57ac7731 66%attr(755,root,root) %{_pkglibdir}/%{name}.so
67%attr(755,root,root) %{_sbindir}/anygetty
68%{_httpdir}/%{name}
69
70%post
8785aef2
ER
71%banner %{name} <<EOF
72For full function, setuid %{_sbindir}/anygetty.
73EOF
This page took 0.081078 seconds and 4 git commands to generate.