1 |
vip-ire |
1.1 |
Summary: PoPToP Point to Point Tunneling Server |
2 |
|
|
Name: pptpd |
3 |
|
|
Requires: ppp >= 2.4.3 |
4 |
|
|
Version: 1.3.4 |
5 |
|
|
Release: 2%{dist} |
6 |
|
|
License: GPL |
7 |
|
|
Group: System Environment/Daemons |
8 |
|
|
Packager: ClearFoundation |
9 |
|
|
URL: http://poptop.sourceforge.net/ |
10 |
|
|
Source0: %{name}-%{version}.tar.gz |
11 |
|
|
Source1: pptpd.conf |
12 |
|
|
Source2: pptpd.options |
13 |
|
|
Source3: pptpd.sysv |
14 |
|
|
Patch0: pptpd-1.3.4-install.patch |
15 |
|
|
Patch1: pptpd-1.3.4-install64.patch |
16 |
|
|
BuildRequires: autoconf |
17 |
|
|
BuildRequires: automake |
18 |
|
|
Buildroot: %{_tmppath}/%{name}-root |
19 |
|
|
|
20 |
|
|
%description |
21 |
|
|
This implements a Virtual Private Networking Server (VPN) that is |
22 |
|
|
compatible with Microsoft VPN clients. It allows windows users to |
23 |
|
|
connect to an internal firewalled network using their dialup. |
24 |
|
|
|
25 |
|
|
%prep |
26 |
|
|
%setup -q |
27 |
|
|
%if "%{_lib}" == "lib64" |
28 |
|
|
%patch1 -p1 |
29 |
|
|
%else |
30 |
|
|
%patch0 -p1 |
31 |
|
|
%endif |
32 |
|
|
|
33 |
|
|
%build |
34 |
|
|
aclocal |
35 |
|
|
autoconf |
36 |
|
|
%configure --with-bcrelay |
37 |
|
|
make |
38 |
|
|
|
39 |
|
|
%install |
40 |
|
|
rm -rf $RPM_BUILD_ROOT |
41 |
|
|
|
42 |
|
|
make install DESTDIR=$RPM_BUILD_ROOT |
43 |
|
|
|
44 |
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d |
45 |
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ppp |
46 |
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir} |
47 |
|
|
|
48 |
|
|
install -m 0755 tools/vpnuser $RPM_BUILD_ROOT%{_bindir}/vpnuser |
49 |
|
|
install -m 0755 tools/vpnstats.pl $RPM_BUILD_ROOT%{_bindir}/vpnstats.pl |
50 |
|
|
install -m 0755 tools/pptp-portslave $RPM_BUILD_ROOT%{_sbindir}/pptp-portslave |
51 |
|
|
install -m 0644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/pptpd.conf |
52 |
|
|
install -m 0644 %SOURCE2 $RPM_BUILD_ROOT%{_sysconfdir}/ppp/options.pptpd |
53 |
|
|
install -m 0755 %SOURCE3 $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/pptpd |
54 |
|
|
|
55 |
|
|
%post |
56 |
|
|
if [ $1 -eq 1 ]; then |
57 |
|
|
/sbin/chkconfig --add pptpd |
58 |
|
|
fi |
59 |
|
|
|
60 |
|
|
%preun |
61 |
|
|
if [ $1 -eq 0 ]; then |
62 |
|
|
/sbin/service pptpd stop >/dev/null 2>&1 |
63 |
|
|
/sbin/chkconfig --del pptpd |
64 |
|
|
fi |
65 |
|
|
|
66 |
|
|
%postun |
67 |
|
|
if [ $1 -ge 1 ]; then |
68 |
|
|
/sbin/service pptpd condrestart >/dev/null 2>&1 |
69 |
|
|
fi |
70 |
|
|
|
71 |
|
|
%clean |
72 |
|
|
rm -rf $RPM_BUILD_ROOT |
73 |
|
|
|
74 |
|
|
%files |
75 |
|
|
%defattr(-,root,root) |
76 |
|
|
%doc AUTHORS COPYING INSTALL README* TODO ChangeLog* |
77 |
|
|
%{_sbindir}/pptpd |
78 |
|
|
%{_sbindir}/pptpctrl |
79 |
|
|
%{_sbindir}/pptp-portslave |
80 |
|
|
%{_sbindir}/bcrelay |
81 |
|
|
%{_bindir}/vpnuser |
82 |
|
|
%{_bindir}/vpnstats.pl |
83 |
|
|
%{_libdir}/pptpd/pptpd-logwtmp.so |
84 |
|
|
%{_mandir}/man5/pptpd.conf.5* |
85 |
|
|
%{_mandir}/man8/pptpd.8* |
86 |
|
|
%{_mandir}/man8/pptpctrl.8* |
87 |
|
|
%{_sysconfdir}/rc.d/init.d/pptpd |
88 |
|
|
%config(noreplace) %{_sysconfdir}/pptpd.conf |
89 |
|
|
%config(noreplace) %{_sysconfdir}/ppp/options.pptpd |
90 |
|
|
|
91 |
|
|
%changelog |
92 |
|
|
* Thu Nov 22 2012 ClearFoundation <developer@clearfoundation.com> - 1.3.4-2 |
93 |
|
|
- removed winbind dependency and configuration |
94 |
|
|
|
95 |
|
|
* Thu Apr 7 2011 ClearFoundation <developer@clearfoundation.com> - 1.3.4-1.1 |
96 |
|
|
- import into ClearFoundation build environment |
97 |
|
|
- added 64-bit fixes |
98 |
|
|
|
99 |
|
|
* Fri Feb 18 2005 James Cameron <james.cameron@hp.com> |
100 |
|
|
- fix to use ppp 2.4.3 for plugin |
101 |
|
|
|
102 |
|
|
* Thu Nov 11 2004 James Cameron <james.cameron@hp.com> |
103 |
|
|
- adjust for building on Red Hat Enterprise Linux, per Charlie Brady |
104 |
|
|
- remove vpnstats, superceded by vpnstats.pl |
105 |
|
|
|
106 |
|
|
* Fri May 21 2004 James Cameron <james.cameron@hp.com> |
107 |
|
|
- adjust for packaging naming and test |
108 |
|
|
|
109 |
|
|
* Fri Apr 23 2004 James Cameron <james.cameron@hp.com> |
110 |
|
|
- include vpnwho.pl |
111 |
|
|
|
112 |
|
|
* Thu Apr 22 2004 James Cameron <james.cameron@hp.com> |
113 |
|
|
- change description wording |
114 |
|
|
- change URL for upstream |
115 |
|
|
- release first candidate for 1.2.0 |
116 |
|
|
|
117 |
|
|
* Fri Jul 18 2003 R. de Vroede <richard@oip.tudelft.nl> |
118 |
|
|
- Check the ChangeLog files. |