1 Summary: Serves out PPTP connections
2 Summary(pl.UTF-8): Serwer połączeń PPTP
7 Group: Networking/Daemons
8 Vendor: Matthew Ramsay http://www.moretonbay.com/vpn/pptp.html
9 Source0: http://dl.sourceforge.net/poptop/%{name}-%{version}.tar.gz
10 # Source0-md5: b38df9c431041922c997c1148bedf591
12 Patch0: %{name}-install.patch
13 Patch1: %{name}-lib64.patch
14 Patch2: %{name}-1.3.4-more-reodering-fixes.patch
15 URL: http://www.poptop.org/
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: sed >= 4.0
19 Requires(post,preun): /sbin/chkconfig
20 Requires: ppp >= 2.4.3
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
33 %description -l pl.UTF-8
34 PPTPd (Point-to-Point Tunnelling Protocol Daemon, czyli demon
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.
46 %if "%{_lib}" == "lib64"
51 sed -i -e "s#/lib#/%{_lib}#g#" plugins/Makefile
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
64 DESTDIR=$RPM_BUILD_ROOT
66 install samples/pptpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/pptpd.conf
67 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
69 rm -rf html/CVS samples/CVS
72 rm -rf $RPM_BUILD_ROOT
75 /sbin/chkconfig --add pptpd
76 if [ -f /var/lock/subsys/pptpd ]; then
77 /etc/rc.d/init.d/pptpd restart 1>&2
79 echo "Type \"/etc/rc.d/init.d/pptpd start\" to start pptpd." 1>&2
83 if [ "$1" = "0" ]; then
84 if [ -f /var/lock/subsys/pptpd ]; then
85 /etc/rc.d/init.d/pptpd stop 1>&2
87 /sbin/chkconfig --del pptpd
92 %defattr(644,root,root,755)
93 %doc AUTHORS README TODO samples/*
94 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pptpd.conf
95 %attr(754,root,root) /etc/rc.d/init.d/%{name}
96 %attr(755,root,root) %{_sbindir}/*