%define pppd_version 2.4.5 Name: accel-pptp Version: 0.8.5 Release: 1%{?dist} Summary: PPTP VPN plugin for pppd License: GPLv2+ URL: http://sourceforge.net/projects/accel-pptp/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 # patches from http://wl500g.googlecode.com/svn/trunk/accel-pptp Patch100: 100-plugin-version.patch Patch150: 150-kernel-header.patch Patch200: 200-configure-pppd.patch Patch300: 300-disable-sonames.patch Patch400: 400-route.patch Patch410: 410-logging.patch Patch420: 420-peer-address.patch Patch440: 440-ppp-availiable-init.patch Patch450: 450-exit-status.patch Patch460: 460-disable-nagle.patch Patch470: 470-callmgr-socket-leak.patch Patch480: 480-callmgr-process-name.patch Patch490: 490-callmgr-dead-state.patch BuildRequires: kernel-devel BuildRequires: ppp = %{pppd_version} Requires: ppp = %{pppd_version} %description The PPTP plugin for pppd performs interaction with pptp kernel module and has built-in call manager (client part of PPTP). It pasees necessary paremeters from options into kernel module to configure ppp-pptp channel. If it runs in client mode, then additionally call manager starts up. %prep %setup -q %patch100 -p1 -b .plugin-version %patch150 -p1 -b .kernel-header %patch200 -p1 -b .configure-pppd %patch300 -p1 -b .disable-sonames %patch400 -p1 -b .route %patch410 -p1 -b .logging %patch420 -p1 -b .peer-address %patch440 -p1 -b .ppp-availiable-init %patch450 -p1 -b .exit-status %patch460 -p1 -b .disable-nagle %patch470 -p1 -b .callmgr-socket-leak %patch480 -p1 -b .callmgr-process-name %patch490 -p1 -b .callmgr-dead-state rm example/etc/ppp/options.pptpd %build export KDIR=/usr/src/kernels/$(rpm -q --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}\n' kernel-headers) pushd pppd_plugin %configure --disable-static make %{?_smp_mflags} popd %install rm -rf %{buildroot} install -D -p -m 0755 pppd_plugin/src/.libs/pptp.so %{buildroot}%{_libdir}/pppd/%{pppd_version}/pptp.so install -D -p -m 0644 pppd_plugin/src/pppd-pptp.8 %{buildroot}%{_mandir}/man8/pppd-pptp.8 install -D -p -m 0644 example/etc/modprobe.conf %{buildroot}%{_sysconfdir}/modprobe.d/pptp.conf %files %doc README pppd_plugin/AUTHORS pppd_plugin/COPYING example/etc/ppp %{_sysconfdir}/modprobe.d/pptp.conf %{_libdir}/pppd/%{pppd_version}/pptp.so %{_mandir}/man8/pppd-pptp.8* %changelog * Mon Oct 24 2011 Alexey Kurov - 0.8.5-1 - Initial RPM release