]> git.pld-linux.org Git - packages/pptpd.git/blame - pptpd.spec
changed URL
[packages/pptpd.git] / pptpd.spec
CommitLineData
7c7567da 1Summary: Serves out PPTP connections
cb011fdb 2Summary(pl.UTF-8): Serwer połączeń PPTP
7c7567da 3Name: pptpd
f75096bd
SS
4Version: 1.4.0
5Release: 1
7d9102d6 6License: GPL
f355427e 7Group: Networking/Daemons
2ab0a997 8Source0: http://downloads.sourceforge.net/poptop/%{name}-%{version}.tar.gz
f75096bd 9# Source0-md5: 36f9f45c6ffa92bc3b6e24ae2d053505
af454f27 10Source1: %{name}.init
55b1552b 11Patch0: %{name}-install.patch
b3abf6e0 12Patch1: %{name}-lib64.patch
aef0eab7
SS
13#URL: http://www.poptop.org/
14URL: http://poptop.sourceforge.net/
a43b9c1b 15BuildRequires: autoconf
62073d09 16BuildRequires: automake
f75096bd 17BuildRequires: ppp-plugin-devel
f03d654c 18BuildRequires: sed >= 4.0
efc15655 19Requires(post,preun): /sbin/chkconfig
c62b4693 20Requires: ppp >= 2.4.3
00f2a646 21Requires: rc-scripts
1ad104f4 22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
7c7567da 23
83f1a059 24%description
0592834e 25PPTPd, Point-to-Point Tunnelling Protocol Daemon, offers out
26connections to pptp clients to become virtual members of the IP pool
27owned by the pptp server. In effect, these clients become virtual
28members of the local subnet, regardless of what their real IP address
29is. A tunnel is built between the pptp server and client, and packets
30from the subnet are wrapped and passed between server and client
31similar to other C/S protocols.
83f1a059 32
491d73a3 33%description -l pl.UTF-8
9948ffa9 34PPTPd (Point-to-Point Tunnelling Protocol Daemon, czyli demon
491d73a3
JR
35obsługujący protokół tunelowania Point-to-Point) udostępnia połączenia
36klientom pptp, aby stały się wirtualnymi członkami puli IP
37obsługiwanej przez serwer pptp. W efekcie ci klienci stają się
38wirtualnymi członkami podsieci lokalnej, niezależnie od ich
39prawdziwego adresu IP. Tunel jest tworzony między serwerem a klientem
40pptp, a pakiety z podsieci są wyłapywane i puszczane pomiędzy serwerem
41a 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
83f1a059 49
f03d654c 50sed -i -e "s#/lib#/%{_lib}#g#" plugins/Makefile
51
83f1a059 52%build
e92fea39 53%{__aclocal}
2f0b8de3 54%{__automake}
0b408a17 55%{__autoconf}
baadad91 56%configure
22d80343 57%{__make}
83f1a059 58
59%install
7c7567da 60rm -rf $RPM_BUILD_ROOT
af454f27 61install -d $RPM_BUILD_ROOT{%{_sysconfdir},/etc/rc.d/init.d}
baadad91 62
af454f27 63%{__make} install \
64 DESTDIR=$RPM_BUILD_ROOT
baadad91 65
2ab0a997
SS
66cp -p samples/pptpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/pptpd.conf
67cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
baadad91 68
1c790d48
JB
69rm -rf html/CVS samples/CVS
70
7c7567da 71%clean
72rm -rf $RPM_BUILD_ROOT
83f1a059 73
af454f27 74%post
75/sbin/chkconfig --add pptpd
76if [ -f /var/lock/subsys/pptpd ]; then
403986cc 77 /etc/rc.d/init.d/pptpd restart 1>&2
af454f27 78else
403986cc 79 echo "Type \"/etc/rc.d/init.d/pptpd start\" to start pptpd." 1>&2
af454f27 80fi
ec65fe58 81
af454f27 82%preun
83if [ "$1" = "0" ]; then
403986cc 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
af454f27 88fi
89
90
83f1a059 91%files
baadad91 92%defattr(644,root,root,755)
55b1552b 93%doc AUTHORS README TODO samples/*
00f2a646 94%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pptpd.conf
3c7e7224 95%attr(754,root,root) /etc/rc.d/init.d/%{name}
baadad91 96%attr(755,root,root) %{_sbindir}/*
41a57f07 97%{_mandir}/man?/*
55b1552b 98%{_libdir}/%{name}
This page took 0.07136 seconds and 4 git commands to generate.