1 Summary: Serves out PPTP connections
2 Summary(pl.UTF-8): Serwer połączeń PPTP
7 Group: Networking/Daemons
8 Source0: http://downloads.sourceforge.net/poptop/%{name}-%{version}.tar.gz
9 # Source0-md5: 36f9f45c6ffa92bc3b6e24ae2d053505
11 Patch0: %{name}-install.patch
12 Patch1: %{name}-lib64.patch
13 URL: http://www.poptop.org/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: ppp-plugin-devel
17 BuildRequires: sed >= 4.0
18 Requires(post,preun): /sbin/chkconfig
19 Requires: ppp >= 2.4.3
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 PPTPd, Point-to-Point Tunnelling Protocol Daemon, offers out
25 connections to pptp clients to become virtual members of the IP pool
26 owned by the pptp server. In effect, these clients become virtual
27 members of the local subnet, regardless of what their real IP address
28 is. A tunnel is built between the pptp server and client, and packets
29 from the subnet are wrapped and passed between server and client
30 similar to other C/S protocols.
32 %description -l pl.UTF-8
33 PPTPd (Point-to-Point Tunnelling Protocol Daemon, czyli demon
34 obsługujący protokół tunelowania Point-to-Point) udostępnia połączenia
35 klientom pptp, aby stały się wirtualnymi członkami puli IP
36 obsługiwanej przez serwer pptp. W efekcie ci klienci stają się
37 wirtualnymi członkami podsieci lokalnej, niezależnie od ich
38 prawdziwego adresu IP. Tunel jest tworzony między serwerem a klientem
39 pptp, a pakiety z podsieci są wyłapywane i puszczane pomiędzy serwerem
40 a klientem podobnie do innych protokołów klient-serwer.
45 %if "%{_lib}" == "lib64"
49 sed -i -e "s#/lib#/%{_lib}#g#" plugins/Makefile
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
63 DESTDIR=$RPM_BUILD_ROOT
65 cp -p samples/pptpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/pptpd.conf
66 cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
68 rm -rf html/CVS samples/CVS
71 rm -rf $RPM_BUILD_ROOT
74 /sbin/chkconfig --add pptpd
75 if [ -f /var/lock/subsys/pptpd ]; then
76 /etc/rc.d/init.d/pptpd restart 1>&2
78 echo "Type \"/etc/rc.d/init.d/pptpd start\" to start pptpd." 1>&2
82 if [ "$1" = "0" ]; then
83 if [ -f /var/lock/subsys/pptpd ]; then
84 /etc/rc.d/init.d/pptpd stop 1>&2
86 /sbin/chkconfig --del pptpd
91 %defattr(644,root,root,755)
92 %doc AUTHORS README TODO samples/*
93 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pptpd.conf
94 %attr(754,root,root) /etc/rc.d/init.d/%{name}
95 %attr(755,root,root) %{_sbindir}/*