]> git.pld-linux.org Git - SPECS.git/blob - msredird.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / msredird.spec
1 # TODO: init script and sysconfig file with necessary environment variables
2 Summary:        RFC 2217-compliant multi-threaded serial port redirector
3 Summary(pl.UTF-8):      Wielowątkowy program przekierowujący port szeregowy zgodny z RFC 2217
4 Name:           msredird
5 Version:        0.2
6 Release:        0.1
7 License:        GPL
8 Group:          Networking
9 Source0:        ftp://metalab.unc.edu/pub/Linux/system/serial/%{name}-%{version}.tgz
10 # Source0-md5:  601cd4cddd8839aecfaf0d362066577e
11 URL:            http://www.asymmetrica.com/software/msredird/
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %define         _sysconfdir     /etc/msredird
15
16 %description
17 msredird is serial port redirector, or simply, modem sharing server
18 program. The concept is very novel and already standardized by RFC
19 2217. msredird is an implementation of that standard, also known as
20 Telnet Com Port Control Option, in server mode.
21
22 %description -l pl.UTF-8
23 msredir jest programem przekierowującym porty szeregowe lub, innymi
24 słowy, programem pozwalającym na współdzielenie modemów. Jest
25 implementacją standardu RFC 2217 (Telnet Com Port Control Option
26 protocol) w trybie serwera.
27
28 %prep
29 %setup -q
30
31 %build
32 %{__make} -C src \
33         CC="%{__cc}" \
34         CFLAGS="%{rpmcflags} -I./include"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},/var/log/msredird}
39
40 install bin/msredird $RPM_BUILD_ROOT%{_sbindir}
41 install etc/msredird.conf $RPM_BUILD_ROOT%{_sysconfdir}
42 ln -sf /var/log/msredird $RPM_BUILD_ROOT%{_sysconfdir}/log
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %files
48 %defattr(644,root,root,755)
49 %doc doc/{README,INSTALL,errorcodes.txt,sample.output}
50 %attr(755,root,root) %{_sbindir}/*
51 %dir %{_sysconfdir}
52 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/msredird.conf
53 %{_sysconfdir}/log
54 /var/log/msredird
This page took 0.209601 seconds and 3 git commands to generate.