]> git.pld-linux.org Git - packages/pptpd.git/blob - pptpd.spec
41ceb12254a6f5bae580d89374055b8c5f154cde
[packages/pptpd.git] / pptpd.spec
1 Summary:        Serves out PPTP connections
2 Summary(pl.UTF-8):      Serwer połączeń PPTP
3 Name:           pptpd
4 Version:        1.3.4
5 Release:        2
6 License:        GPL
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
11 Source1:        %{name}.init
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
21 Requires:       rc-scripts
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
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.
32
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.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 %if "%{_lib}" == "lib64"
47 %patch1 -p1
48 %endif
49 %patch2 -p1
50
51 sed -i -e "s#/lib#/%{_lib}#g#" plugins/Makefile
52
53 %build
54 %{__aclocal}
55 %{__autoconf}
56 %configure
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
62
63 %{__make} install \
64          DESTDIR=$RPM_BUILD_ROOT
65
66 install samples/pptpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/pptpd.conf
67 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
68
69 rm -rf html/CVS samples/CVS
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post
75 /sbin/chkconfig --add pptpd
76 if [ -f /var/lock/subsys/pptpd ]; then
77         /etc/rc.d/init.d/pptpd restart 1>&2
78 else
79         echo "Type \"/etc/rc.d/init.d/pptpd start\" to start pptpd." 1>&2
80 fi
81
82 %preun
83 if [ "$1" = "0" ]; then
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
88 fi
89
90
91 %files
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}/*
97 %{_mandir}/man?/*
98 %{_libdir}/%{name}
This page took 0.061829 seconds and 2 git commands to generate.