]> git.pld-linux.org Git - SPECS.git/blob - mmtcpfwd.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / mmtcpfwd.spec
1 Summary:        Secure TCP/IP port forwarder
2 Summary(pl.UTF-8):      Bezpieczny forwarder portów TCP/IP
3 Name:           mmtcpfwd
4 Version:        0.1.0
5 Release:        4
6 Epoch:          2
7 License:        GPL
8 Group:          Networking/Daemons
9 Source0:        http://gobot.accela.net/software/stable/%{name}-%{version}.tar.gz
10 # Source0-md5:  b1d9ff2aa0059a4df9d4e54ed675be68
11 Source1:        %{name}.init
12 Source2:        %{name}.conf
13 URL:            http://gobot.accela.net/software.html
14 BuildRequires:  rpmbuild(macros) >= 1.268
15 Requires(post,preun):   /sbin/chkconfig
16 Requires:       rc-scripts
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Secure TCP/IP port forwarder, MASQ fake ident and FTP passive proxy
21 superserver intended for Linux firewalls with anti-DoS features.
22
23 %description -l pl.UTF-8
24 Bezpieczny forwarder portow TCP/IP, fałszywy serwer ident dla
25 maskarady oraz proxy dla pasywnego FTP - przeznaczony dla linuksowych
26 firewalli z możliwościami zapobiegania DoS.
27
28 %prep
29 %setup -q
30
31 %build
32 %{__make} -C src \
33         CC="%{__cc}" \
34         CFLAGS="%{rpmcflags}"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir},/etc/rc.d/init.d}
39
40 install src/mmtcpfwd    $RPM_BUILD_ROOT%{_sbindir}
41 install %{SOURCE2}      $RPM_BUILD_ROOT%{_sysconfdir}/mmtcpfwd.conf
42 install %{SOURCE1}      $RPM_BUILD_ROOT/etc/rc.d/init.d/mmtcpfwd
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 /sbin/chkconfig --add mmtcpfwd
49 %service mmtcpfwd restart "mmtcpfwd daemon"
50
51 %preun
52 if [ "$1" = "0" ]; then
53         %service mmtcpfwd stop
54         /sbin/chkconfig --del mmtcpfwd
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %doc README*
60 %attr(750,root,root) %{_sbindir}/*
61 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/mmtcpfwd.conf
62 %attr(754,root,root) /etc/rc.d/init.d/mmtcpfwd
This page took 1.085521 seconds and 3 git commands to generate.