File pptpd.spec of Package pptpd
#
# spec file for package pptpd (Version 1.3.4)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: pptpd
License: GPL v2 or later
Group: Productivity/Networking/PPP
Version: 1.3.4
Release: 97
Url: http://www.poptop.org/
Summary: PoPToP - PPTP Daemon, Linux as Microsoft VPN Server
Source: http://poptop.lineo.com/releases/pptpd-%{version}.tar.bz2
Source1: rcpptpd
Source3: pptp-install.tar.bz2
Source4: pptpd.conf
Source5: options.ppp0
Source7: README.SuSE
Source8: LIESMICH.SuSE
Patch0: makefile.diff
Patch1: pptpd-cflags.patch
Patch2: pptpd-pptpd-logwtmp-version.patch
Patch3: pptpd-stringcompare.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %fillup_prereq %insserv_prereq
BuildRequires: ppp-devel
Requires: ppp
%description
PoPToP is a PPTP(Point-to-Point Tunneling Protocol) server solution for
Linux, it allows Linux servers to function seamlessly in the PPTP VPN
environment. This release supports Windows 95/98/NT/2000 PPTP clients
and PPTP Linux clients.
Authors:
--------
Matthew Ramsay <matthewr@moreton.com.au>
Kevin Thayer <tmk@netmagic.net>
David Luyer <luyer@ucs.uwa.edu.au>
Peter Galbavy <Peter.Galbavy@knowledge.com>
%prep
%setup -q -a 3
%patch0
%patch1 -p1
%patch2
%patch3
rm plugins/pppd.h
rm plugins/patchlevel.h
%build
autoreconf -i -f
%configure
make OPTFLAGS="$RPM_OPT_FLAGS"
%install
make install DESTDIR=%{buildroot}
install -m 0755 pptpd %{buildroot}/usr/sbin/pptpd
install -m 0755 pptpctrl %{buildroot}/usr/sbin/pptpctrl
mkdir -p %{buildroot}/etc/init.d
install -m 0644 %{S:4} %{buildroot}/etc/pptpd.conf
install -m 0744 %{S:1} %{buildroot}/etc/init.d/pptpd
ln -sf ../../etc/init.d/pptpd %{buildroot}/usr/sbin/rcpptpd
find {samples,PPTP-Installation,pptp-server} -type f -exec chmod -x {} +
chmod -x AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
%clean
rm -rf %{buildroot}
%preun
%stop_on_removal pptpd
%post
%{fillup_and_insserv pptpd}
%postun
%restart_on_update pptpd
%{insserv_cleanup}
%files
%defattr (-, root, root)
%doc $RPM_SOURCE_DIR/README.SuSE $RPM_SOURCE_DIR/LIESMICH.SuSE
%doc $RPM_SOURCE_DIR/options.ppp0
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
%doc samples PPTP-Installation pptp-server
%config /etc/pptpd.conf
%{_mandir}/*/pptp*
/usr/sbin/pptpctrl
/usr/sbin/pptpd
/usr/sbin/rcpptpd
/usr/sbin/bcrelay
/usr/lib/pptpd
/etc/init.d/pptpd
%changelog
* Fri Sep 12 2008 hvogel@suse.de
- Fixed README errors [bnc#414109]
* Fri Aug 29 2008 cthiel@suse.de
- fix init script
* Sat Aug 02 2008 crrodriguez@suse.de
- pptpd is useless without ppp [BNC#414103]
* Sat Jul 05 2008 crrodriguez@suse.de
- fix build
* Fri Feb 22 2008 crrodriguez@suse.de
- add missing remote_fs dependency to init script
- add missing calls to restart_on_update and stop_on_removal macros
* Mon Jun 18 2007 ro@suse.de
- avoid string compare with char literal
* Fri May 04 2007 hvogel@suse.de
- update to version 1.3.4
* fixes two packet reordering bugs
* turn off echo on the slave pty
* Deprecate PPP_WAIT.
* fix segfault on -C option
* Mon Oct 23 2006 hvogel@suse.de
- fix logwtmp plugin version. Use ppp devel files in the
future. [#209908]
* Thu Jul 13 2006 mskibbe@suse.de
- update to version 1.3.0 which
o disable Van Jacobson compression
o packet reordering implementation, contributed from
PPTP Client anonymously
o fix some bugs
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Nov 03 2005 arvin@suse.de
- updated to version 1.2.3 with some minor bug fixes and
performance enhancements
* Wed Sep 28 2005 meissner@suse.de
- use RPM_OPT_FLAGS.
* Tue Apr 26 2005 arvin@suse.de
- updated to version 1.2.1
* Wed Jan 26 2005 meissner@suse.de
- use RPM_OPT_FLAGS
* Sat Jan 10 2004 adrian@suse.de
- fix user build
* Wed Nov 26 2003 bk@suse.de
- rcpptpd: add the options -sq to startproc to detach(fixes #27385)
* Mon Jun 02 2003 ro@suse.de
- fix rcpptpd symlink
* Mon May 12 2003 bk@suse.de
- fix pptp daemon buffer overflow with controlpacket length(#26508)
* Tue Sep 17 2002 ro@suse.de
- replaced "network route" by "$network" in rcscript(fix bug #21312)
* Tue Aug 20 2002 mmj@suse.de
- Correct PreReq
* Thu Feb 14 2002 arvin@suse.de
- updated and fixed README
- use BuiltRoot
* Tue Jan 15 2002 egmont@suselinux.hu
- removed colons from startup/shutdown messages
* Tue Jan 15 2002 ro@suse.de
- removed START_PPTPD
* Tue Aug 07 2001 arvin@suse.de
- LSB conform init script (bug #9075)
* Tue Nov 28 2000 arvin@suse.de
- use insserv in post-install for creating init.d scripts
- changed group tag
* Thu Nov 23 2000 bk@suse.de
- Updated to version 1.1.2, needed for the firew-livecd with win2k.
- added man pages
* Wed Mar 08 2000 dipa@suse.de
- added pptp-install.tar.gz, pptpd.conf and options.ppp0
* Mon Mar 06 2000 bk@suse.de
- added README.SuSE and LIESMICH.SuSE from jnschei.
- wrote and added start script rcpptpd
* Wed Feb 23 2000 dipa@suse.de
- pptpd is a new package to include linux servers in PPTP
established VPNs. It based on release version pptp-1.0.0.tgz