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
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
65 DESTDIR=$RPM_BUILD_ROOT
67 install samples/pptpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/pptpd.conf
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
70 rm -rf html/CVS samples/CVS
73 rm -rf $RPM_BUILD_ROOT
76 /sbin/chkconfig --add pptpd
77 if [ -f /var/lock/subsys/pptpd ]; then
78 /etc/rc.d/init.d/pptpd restart 1>&2
80 echo "Type \"/etc/rc.d/init.d/pptpd start\" to start pptpd." 1>&2
84 if [ "$1" = "0" ]; then
85 if [ -f /var/lock/subsys/pptpd ]; then
86 /etc/rc.d/init.d/pptpd stop 1>&2
88 /sbin/chkconfig --del pptpd
93 %defattr(644,root,root,755)
94 %doc AUTHORS README TODO samples/*
95 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pptpd.conf
96 %attr(754,root,root) /etc/rc.d/init.d/%{name}
97 %attr(755,root,root) %{_sbindir}/*