]> git.pld-linux.org Git - packages/pptpd.git/blob - pptpd.spec
added automake invocation
[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 %{__automake}
56 %{__autoconf}
57 %configure
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
63
64 %{__make} install \
65          DESTDIR=$RPM_BUILD_ROOT
66
67 install samples/pptpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/pptpd.conf
68 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
69
70 rm -rf html/CVS samples/CVS
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post
76 /sbin/chkconfig --add pptpd
77 if [ -f /var/lock/subsys/pptpd ]; then
78         /etc/rc.d/init.d/pptpd restart 1>&2
79 else
80         echo "Type \"/etc/rc.d/init.d/pptpd start\" to start pptpd." 1>&2
81 fi
82
83 %preun
84 if [ "$1" = "0" ]; then
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
89 fi
90
91
92 %files
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}/*
98 %{_mandir}/man?/*
99 %{_libdir}/%{name}
This page took 0.069254 seconds and 3 git commands to generate.