]> git.pld-linux.org Git - packages/pptpd.git/blob - pptpd.spec
664d6a4966472555f3a5e734d53ac774e56e9327
[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.4.0
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://downloads.sourceforge.net/poptop/%{name}-%{version}.tar.gz
9 # Source0-md5:  36f9f45c6ffa92bc3b6e24ae2d053505
10 Source1:        %{name}.init
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
20 Requires:       rc-scripts
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
31
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.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45 %if "%{_lib}" == "lib64"
46 %patch1 -p1
47 %endif
48
49 sed -i -e "s#/lib#/%{_lib}#g#" plugins/Makefile
50
51 %build
52 %{__aclocal}
53 %{__automake}
54 %{__autoconf}
55 %configure
56 %{__make}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
61
62 %{__make} install \
63          DESTDIR=$RPM_BUILD_ROOT
64
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}
67
68 rm -rf html/CVS samples/CVS
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %post
74 /sbin/chkconfig --add pptpd
75 if [ -f /var/lock/subsys/pptpd ]; then
76         /etc/rc.d/init.d/pptpd restart 1>&2
77 else
78         echo "Type \"/etc/rc.d/init.d/pptpd start\" to start pptpd." 1>&2
79 fi
80
81 %preun
82 if [ "$1" = "0" ]; then
83         if [ -f /var/lock/subsys/pptpd ]; then
84                 /etc/rc.d/init.d/pptpd stop 1>&2
85         fi
86         /sbin/chkconfig --del pptpd
87 fi
88
89
90 %files
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}/*
96 %{_mandir}/man?/*
97 %{_libdir}/%{name}
This page took 0.097399 seconds and 2 git commands to generate.