]>
Commit | Line | Data |
---|---|---|
7c7567da | 1 | Summary: Serves out PPTP connections |
cb011fdb | 2 | Summary(pl.UTF-8): Serwer połączeń PPTP |
7c7567da | 3 | Name: pptpd |
577edc17 | 4 | Version: 1.3.4 |
580f5e2f | 5 | Release: 2 |
7d9102d6 | 6 | License: GPL |
f355427e | 7 | Group: Networking/Daemons |
7c7567da | 8 | Vendor: Matthew Ramsay http://www.moretonbay.com/vpn/pptp.html |
55b1552b | 9 | Source0: http://dl.sourceforge.net/poptop/%{name}-%{version}.tar.gz |
577edc17 | 10 | # Source0-md5: b38df9c431041922c997c1148bedf591 |
af454f27 | 11 | Source1: %{name}.init |
55b1552b | 12 | Patch0: %{name}-install.patch |
b3abf6e0 | 13 | Patch1: %{name}-lib64.patch |
580f5e2f | 14 | Patch2: %{name}-1.3.4-more-reodering-fixes.patch |
f231c8a2 | 15 | URL: http://www.poptop.org/ |
a43b9c1b | 16 | BuildRequires: autoconf |
62073d09 | 17 | BuildRequires: automake |
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 | |
580f5e2f | 49 | %patch2 -p1 |
83f1a059 | 50 | |
f03d654c | 51 | sed -i -e "s#/lib#/%{_lib}#g#" plugins/Makefile |
52 | ||
83f1a059 | 53 | %build |
e92fea39 | 54 | %{__aclocal} |
2f0b8de3 | 55 | %{__automake} |
0b408a17 | 56 | %{__autoconf} |
baadad91 | 57 | %configure |
22d80343 | 58 | %{__make} |
83f1a059 | 59 | |
60 | %install | |
7c7567da | 61 | rm -rf $RPM_BUILD_ROOT |
af454f27 | 62 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d} |
baadad91 | 63 | |
af454f27 | 64 | %{__make} install \ |
65 | DESTDIR=$RPM_BUILD_ROOT | |
baadad91 | 66 | |
67 | install samples/pptpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/pptpd.conf | |
af454f27 | 68 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
baadad91 | 69 | |
1c790d48 JB |
70 | rm -rf html/CVS samples/CVS |
71 | ||
7c7567da | 72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
83f1a059 | 74 | |
af454f27 | 75 | %post |
76 | /sbin/chkconfig --add pptpd | |
77 | if [ -f /var/lock/subsys/pptpd ]; then | |
403986cc | 78 | /etc/rc.d/init.d/pptpd restart 1>&2 |
af454f27 | 79 | else |
403986cc | 80 | echo "Type \"/etc/rc.d/init.d/pptpd start\" to start pptpd." 1>&2 |
af454f27 | 81 | fi |
ec65fe58 | 82 | |
af454f27 | 83 | %preun |
84 | if [ "$1" = "0" ]; then | |
403986cc | 85 | if [ -f /var/lock/subsys/pptpd ]; then |
86 | /etc/rc.d/init.d/pptpd stop 1>&2 | |
87 | fi | |
88 | /sbin/chkconfig --del pptpd | |
af454f27 | 89 | fi |
90 | ||
91 | ||
83f1a059 | 92 | %files |
baadad91 | 93 | %defattr(644,root,root,755) |
55b1552b | 94 | %doc AUTHORS README TODO samples/* |
00f2a646 | 95 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pptpd.conf |
3c7e7224 | 96 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
baadad91 | 97 | %attr(755,root,root) %{_sbindir}/* |
41a57f07 | 98 | %{_mandir}/man?/* |
55b1552b | 99 | %{_libdir}/%{name} |