File: vtgrab.spec.in

package info (click to toggle)
vtgrab 0.1.8-3.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 348 kB
  • sloc: ansic: 2,524; sh: 330; makefile: 14
file content (72 lines) | stat: -rw-r--r-- 1,520 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Summary: A remote console viewer.
Name: vtgrab
Version: @VERSION@
Release: 1
License: GPL
Group: Applications/System
URL: http://people.redhat.com/twaugh/%{name}/
Source0: ftp://people.redhat.com/twaugh/%{name}/devel/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot

%description
Using vtgrab you can observe and control the console of a remote machine.

%package server
Summary: A console server for vtgrab.
Group: Applications/System
PreReq: ed, initscripts

%description server
This is the RVC server for vtgrab.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
make CFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/sbin
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 755 twiglet %{buildroot}/%{_bindir}/twiglet
install -m 755 rvc %{buildroot}/%{_bindir}/rvc
install -m 644 twiglet.1 %{buildroot}/%{_mandir}/man1/twiglet.1
install -m 755 rvcd %{buildroot}/sbin/rvcd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README COPYING BUGS NEWS
%{_bindir}/twiglet
%{_mandir}/*/*

%files server
/sbin/rvcd

%post server
# This is specific to Red Hat Linux 7.
# /bin/ed -s /etc/rc.d/rc.sysinit << EOF
# 566,570m182
# 187a
# [ -x /sbin/rvcd ] && ( /sbin/rvcd /dev/ttyS0 > /dev/null 2>&1 & )
# 
# .
# wq
# EOF

%postun server
# This is specific to Red Hat Linux 7.
# /bin/ed -s /etc/rc.d/rc.sysinit << EOF
# 183,187m573
# 183,184d
# wq
# EOF

%changelog
* Mon Sep 25 2000 Tim Waugh <twaugh@redhat.com>
- Created