]>
Commit | Line | Data |
---|---|---|
7c7567da | 1 | Summary: Serves out PPTP connections |
cb011fdb | 2 | Summary(pl.UTF-8): Serwer połączeń PPTP |
7c7567da | 3 | Name: pptpd |
f75096bd SS |
4 | Version: 1.4.0 |
5 | Release: 1 | |
7d9102d6 | 6 | License: GPL |
f355427e | 7 | Group: Networking/Daemons |
2ab0a997 | 8 | Source0: http://downloads.sourceforge.net/poptop/%{name}-%{version}.tar.gz |
f75096bd | 9 | # Source0-md5: 36f9f45c6ffa92bc3b6e24ae2d053505 |
af454f27 | 10 | Source1: %{name}.init |
55b1552b | 11 | Patch0: %{name}-install.patch |
b3abf6e0 | 12 | Patch1: %{name}-lib64.patch |
aef0eab7 SS |
13 | #URL: http://www.poptop.org/ |
14 | URL: http://poptop.sourceforge.net/ | |
a43b9c1b | 15 | BuildRequires: autoconf |
62073d09 | 16 | BuildRequires: automake |
f75096bd | 17 | BuildRequires: ppp-plugin-devel |
f03d654c | 18 | BuildRequires: sed >= 4.0 |
efc15655 | 19 | Requires(post,preun): /sbin/chkconfig |
c62b4693 | 20 | Requires: ppp >= 2.4.3 |
00f2a646 | 21 | Requires: rc-scripts |
1ad104f4 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7c7567da | 23 | |
83f1a059 | 24 | %description |
0592834e | 25 | PPTPd, Point-to-Point Tunnelling Protocol Daemon, offers out |
26 | connections to pptp clients to become virtual members of the IP pool | |
27 | owned by the pptp server. In effect, these clients become virtual | |
28 | members of the local subnet, regardless of what their real IP address | |
29 | is. A tunnel is built between the pptp server and client, and packets | |
30 | from the subnet are wrapped and passed between server and client | |
31 | similar to other C/S protocols. | |
83f1a059 | 32 | |
491d73a3 | 33 | %description -l pl.UTF-8 |
9948ffa9 | 34 | PPTPd (Point-to-Point Tunnelling Protocol Daemon, czyli demon |
491d73a3 JR |
35 | obsługujący protokół tunelowania Point-to-Point) udostępnia połączenia |
36 | klientom pptp, aby stały się wirtualnymi członkami puli IP | |
37 | obsługiwanej przez serwer pptp. W efekcie ci klienci stają się | |
38 | wirtualnymi członkami podsieci lokalnej, niezależnie od ich | |
39 | prawdziwego adresu IP. Tunel jest tworzony między serwerem a klientem | |
40 | pptp, a pakiety z podsieci są wyłapywane i puszczane pomiędzy serwerem | |
41 | a klientem podobnie do innych protokołów klient-serwer. | |
9948ffa9 | 42 | |
83f1a059 | 43 | %prep |
00f2a646 | 44 | %setup -q |
55b1552b | 45 | %patch0 -p1 |
535d07b1 | 46 | %if "%{_lib}" == "lib64" |
b3abf6e0 | 47 | %patch1 -p1 |
48 | %endif | |
83f1a059 | 49 | |
f03d654c | 50 | sed -i -e "s#/lib#/%{_lib}#g#" plugins/Makefile |
51 | ||
83f1a059 | 52 | %build |
e92fea39 | 53 | %{__aclocal} |
2f0b8de3 | 54 | %{__automake} |
0b408a17 | 55 | %{__autoconf} |
baadad91 | 56 | %configure |
22d80343 | 57 | %{__make} |
83f1a059 | 58 | |
59 | %install | |
7c7567da | 60 | rm -rf $RPM_BUILD_ROOT |
af454f27 | 61 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d} |
baadad91 | 62 | |
af454f27 | 63 | %{__make} install \ |
64 | DESTDIR=$RPM_BUILD_ROOT | |
baadad91 | 65 | |
2ab0a997 SS |
66 | cp -p samples/pptpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/pptpd.conf |
67 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
baadad91 | 68 | |
1c790d48 JB |
69 | rm -rf html/CVS samples/CVS |
70 | ||
7c7567da | 71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
83f1a059 | 73 | |
af454f27 | 74 | %post |
75 | /sbin/chkconfig --add pptpd | |
76 | if [ -f /var/lock/subsys/pptpd ]; then | |
403986cc | 77 | /etc/rc.d/init.d/pptpd restart 1>&2 |
af454f27 | 78 | else |
403986cc | 79 | echo "Type \"/etc/rc.d/init.d/pptpd start\" to start pptpd." 1>&2 |
af454f27 | 80 | fi |
ec65fe58 | 81 | |
af454f27 | 82 | %preun |
83 | if [ "$1" = "0" ]; then | |
403986cc | 84 | if [ -f /var/lock/subsys/pptpd ]; then |
85 | /etc/rc.d/init.d/pptpd stop 1>&2 | |
86 | fi | |
87 | /sbin/chkconfig --del pptpd | |
af454f27 | 88 | fi |
89 | ||
90 | ||
83f1a059 | 91 | %files |
baadad91 | 92 | %defattr(644,root,root,755) |
55b1552b | 93 | %doc AUTHORS README TODO samples/* |
00f2a646 | 94 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pptpd.conf |
3c7e7224 | 95 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
baadad91 | 96 | %attr(755,root,root) %{_sbindir}/* |
41a57f07 | 97 | %{_mandir}/man?/* |
55b1552b | 98 | %{_libdir}/%{name} |