0ce24e
Name:		pptp
0ce24e
Version:	1.10.0
0ce24e
Release:	4%{?dist}
0ce24e
Summary:	Point-to-Point Tunneling Protocol (PPTP) Client
0ce24e
Group:		Applications/Internet
0ce24e
License:	GPLv2+
0ce24e
URL:		http://pptpclient.sourceforge.net/
0ce24e
Source0:	http://downloads.sf.net/pptpclient/pptp-%{version}.tar.gz
0ce24e
Source1:	pptp-tmpfs.conf
0ce24e
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
0ce24e
BuildRequires:	/usr/bin/pod2man
0ce24e
BuildRequires:	perl-generators
0ce24e
Requires:	ppp >= 2.4.2, /sbin/ip
0ce24e
Requires:	systemd-units
0ce24e
0ce24e
%description
0ce24e
Client for the proprietary Microsoft Point-to-Point Tunneling
0ce24e
Protocol, PPTP. Allows connection to a PPTP based VPN as used
0ce24e
by employers and some cable and ADSL service providers.
0ce24e
0ce24e
%package setup
0ce24e
Summary:	PPTP Tunnel Configuration Script
0ce24e
Group:		Applications/Internet
0ce24e
Requires:	%{name} = %{version}-%{release}
0ce24e
0ce24e
%description setup
0ce24e
This package provides a simple configuration script for setting up PPTP
0ce24e
tunnels.
0ce24e
0ce24e
%prep
0ce24e
%setup -q
0ce24e
0ce24e
# Pacify rpmlint
0ce24e
perl -pi -e 's/install -o root -m 555 pptp/install -m 755 pptp/;' Makefile
0ce24e
0ce24e
%build
0ce24e
OUR_CFLAGS="-Wall %{optflags} -Wextra -Wstrict-aliasing=2 -Wnested-externs -Wstrict-prototypes"
0ce24e
make %{?_smp_mflags} CFLAGS="$OUR_CFLAGS" LDFLAGS="$RPM_LD_FLAGS" IP=/sbin/ip
0ce24e
0ce24e
%install
0ce24e
rm -rf %{buildroot}
0ce24e
make DESTDIR=%{buildroot} install
0ce24e
install -d -m 750 %{buildroot}%{_localstatedir}/run/pptp
0ce24e
0ce24e
0ce24e
install -d -m 755 %{buildroot}%{_prefix}/lib/tmpfiles.d
0ce24e
install -p -m 644 %{SOURCE1} %{buildroot}%{_prefix}/lib/tmpfiles.d/pptp.conf
0ce24e
0ce24e
%clean
0ce24e
rm -rf %{buildroot}
0ce24e
0ce24e
%files
0ce24e
%defattr(-,root,root,-)
0ce24e
%doc AUTHORS COPYING DEVELOPERS NEWS README TODO USING
0ce24e
%doc ChangeLog Documentation/DESIGN.PPTP PROTOCOL-SECURITY
0ce24e
%{_prefix}/lib/tmpfiles.d/pptp.conf
0ce24e
%{_sbindir}/pptp
0ce24e
%{_mandir}/man8/pptp.8*
0ce24e
%dir %attr(750,root,root) %{_localstatedir}/run/pptp/
0ce24e
%config(noreplace) %{_sysconfdir}/ppp/options.pptp
0ce24e
0ce24e
%files setup
0ce24e
%defattr(-,root,root,-)
0ce24e
%{_sbindir}/pptpsetup
0ce24e
%{_mandir}/man8/pptpsetup.8*
0ce24e
0ce24e
%changelog
0ce24e
* Wed May  6 2020 Jaroslav Škarvada <jskarvad@redhat.com> - 1.10.0-4
0ce24e
- Changed run directory location from /var/run to /run
0ce24e
  Resolves: rhbz#1805972
0ce24e
0ce24e
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.10.0-3
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0ce24e
0ce24e
* Thu Feb  1 2018 Florian Weimer <fweimer@redhat.com> - 1.10.0-2
0ce24e
- Build with linker flags from redhat-rpm-config
0ce24e
0ce24e
* Thu Jan 18 2018 Jaroslav Škarvada <jskarvad@redhat.com> - 1.10.0-1
0ce24e
- New version
0ce24e
0ce24e
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-4
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
0ce24e
0ce24e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-3
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0ce24e
0ce24e
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.0-2
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0ce24e
0ce24e
* Fri Dec  2 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.9.0-1
0ce24e
- New version
0ce24e
- Dropped pptpsetup-mppe, vector-remove-fix, and call-use-after-free-fix
0ce24e
  patches (all upstreamed)
0ce24e
- Dropped loading of nf_conntrack_pptp kernel module which was workaround and
0ce24e
  according to upstream only hides real problems
0ce24e
0ce24e
* Mon Nov 21 2016 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-9
0ce24e
- Autoloaded nf_conntrack_pptp kernel module
0ce24e
  Resolves: rhbz#1373689
0ce24e
- Removed some f14 artifacts
0ce24e
0ce24e
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-8
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0ce24e
0ce24e
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-7
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0ce24e
0ce24e
* Fri Jan 23 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-6
0ce24e
- Replaced call-init-fix patch by vector-remove-fix patch from upstream
0ce24e
  Related: rhbz#1183627
0ce24e
- Fixed one deref_after_free (by call-use-after-free-fix patch)
0ce24e
0ce24e
* Tue Jan 20 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-5
0ce24e
- Fixed initialization of the call structure
0ce24e
  Resolves: rhbz#1183627
0ce24e
0ce24e
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-4
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
0ce24e
0ce24e
* Tue Aug 12 2014 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-3
0ce24e
- Rebuild for new ppp
0ce24e
0ce24e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-2
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
0ce24e
0ce24e
* Fri Oct 25 2013 Jaroslav Škarvada <jskarvad@redhat.com> - 1.8.0-1
0ce24e
- New version
0ce24e
  Resolves: rhbz#1022685
0ce24e
- Dropped compat, ip-path, pptpsetup, makedeps, parallel-build,
0ce24e
  pptpsetup-encrypt, waitpid, conn-free, conn-free2,
0ce24e
  call-disconnect-notify, nohostroute-option, fsf-update
0ce24e
  sign-compare, unused, prototype, nested-externs, aliasing
0ce24e
  options.pptp, so_mark, const, field-init patches (all upstreamed)
0ce24e
0ce24e
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-22
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0ce24e
0ce24e
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.7.2-21
0ce24e
- Perl 5.18 rebuild
0ce24e
0ce24e
* Thu Feb 14 2013 Paul Howarth <paul@city-fan.org> 1.7.2-20.0.cf
0ce24e
- BR: /usr/bin/pod2man for generation of pptpsetup man page
0ce24e
0ce24e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-19
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0ce24e
0ce24e
* Tue Nov 27 2012 Paul Howarth <paul@city-fan.org> 1.7.2-18
0ce24e
- Don't hard-code /etc (#880574)
0ce24e
0ce24e
* Fri Aug 31 2012 Paul Howarth <paul@city-fan.org> 1.7.2-17
0ce24e
- Add note in options.pptp about MPPE not being available in FIPS mode
0ce24e
  (#845112)
0ce24e
- Add note in options.pptp about PPTP with MSCHAP-V2 being insecure
0ce24e
0ce24e
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.7.2-16
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0ce24e
0ce24e
* Wed Jul  4 2012 Paul Howarth <paul@city-fan.org> 1.7.2-15
0ce24e
- Move tmpfiles.d config from %%{_sysconfdir} to %%{_prefix}/lib
0ce24e
0ce24e
* Wed Jan  4 2012 Paul Howarth <paul@city-fan.org> 1.7.2-14
0ce24e
- Build with warning-fix patches to address occasional segfaults (#749455)
0ce24e
- Patches have all now been merged upstream
0ce24e
0ce24e
* Wed Nov 30 2011 Paul Howarth <paul@city-fan.org> 1.7.2-13.2
0ce24e
- Add patch to fix highly-parallel build (e.g. -j16)
0ce24e
- Add additional compiler warning flags to highlight questionable code
0ce24e
- Add patch to fix comparisons between signed and unsigned integers
0ce24e
- Add patch to fix const usage
0ce24e
- Add patch to fix missing field initializers
0ce24e
- Add patch to suppress warnings about possibly unused variables
0ce24e
- Add patch to fix declarations that are not prototypes
0ce24e
- Add patch to fix warnings about nested externs
0ce24e
- Add patch to fix dubious typecasts that violate strict-aliasing rules
0ce24e
- Update the FSF address references and GPLv2 license text
0ce24e
- Use default optimization level (-O2) again
0ce24e
0ce24e
* Fri Nov 11 2011 Paul Howarth <paul@city-fan.org> 1.7.2-13.1
0ce24e
- Drop compiler optimization level to -O0 as per upstream in attempt to
0ce24e
  resolve occasional segfault in pptpcm (#749455)
0ce24e
- Add patch to fix highly-parallel build (e.g. -j16)
0ce24e
0ce24e
* Tue Nov  8 2011 Paul Howarth <paul@city-fan.org> 1.7.2-13
0ce24e
- Patch to fix broken Call-Disconnect-Notify code accepted upstream
0ce24e
- Add upstream patch to support setting SO_MARK for the PPTP TCP control
0ce24e
  connection as well as on the GRE packets
0ce24e
- Add upstream patch to implement the --nohostroute option
0ce24e
- Nobody else likes macros for commands
0ce24e
0ce24e
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.7.2-12
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0ce24e
0ce24e
* Tue Nov 30 2010 Paul Howarth <paul@city-fan.org> 1.7.2-11
0ce24e
- Require systemd-units for ownership of /etc/tmpfiles.d directory
0ce24e
- Fix Call-Disconnect-Notify operation
0ce24e
0ce24e
* Thu Nov 25 2010 Paul Howarth <paul@city-fan.org> 1.7.2-10
0ce24e
- Add /etc/tmpfiles.d/pptp.conf to create /var/run/pptp at boot time for
0ce24e
  systems with /var/run on tmpfs (#656672)
0ce24e
0ce24e
* Wed Jun 16 2010 Paul Howarth <paul@city-fan.org> 1.7.2-9
0ce24e
- Add some fixes from CVS:
0ce24e
  - Fix waitpid usage
0ce24e
  - Move free of connection struct out of main loop
0ce24e
  - Avoid using connection struct after it is freed
0ce24e
0ce24e
* Thu Sep 24 2009 Paul Howarth <paul@city-fan.org> 1.7.2-8
0ce24e
- Split pptpsetup into subpackage to avoid perl dependency (#524972)
0ce24e
0ce24e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-7
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0ce24e
0ce24e
* Mon Jun  1 2009 Paul Howarth <paul@city-fan.org> 1.7.2-6
0ce24e
- Don't check for MPPE capability in kernel and pppd unless we're creating a
0ce24e
  tunnel that requires encryption
0ce24e
- Don't check for MPPE capability in kernel and pppd at all because current
0ce24e
  Fedora releases and EL >= 5 include MPPE support out of the box (#502967)
0ce24e
0ce24e
* Wed Mar 25 2009 Paul Howarth <paul@city-fan.org> 1.7.2-5
0ce24e
- Retain permissions on /etc/ppp/chap-secrets when using pptpsetup (#492090)
0ce24e
- Use upstream versions of patches
0ce24e
- Re-enable parallel build; Makefile dependencies now fixed
0ce24e
- Use perl rather than sed to edit Makefile, for spec compatibility with
0ce24e
  ancient distro releases
0ce24e
0ce24e
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-4
0ce24e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0ce24e
0ce24e
* Mon May 19 2008 Paul Howarth <paul@city-fan.org> 1.7.2-3
0ce24e
- Add dependency on /sbin/ip
0ce24e
- Disable parallel make - object files are missing dependency on config.h
0ce24e
0ce24e
* Mon May 19 2008 Paul Howarth <paul@city-fan.org> 1.7.2-2
0ce24e
- Use /sbin/ip, not /bin/ip for routing
0ce24e
0ce24e
* Wed May 14 2008 Paul Howarth <paul@city-fan.org> 1.7.2-1
0ce24e
- Update to 1.7.2
0ce24e
- New script and manpage: pptpsetup
0ce24e
- Add patch to remove reference to stropts.h, not shipped in F9 onwards
0ce24e
0ce24e
* Wed Feb 13 2008 Paul Howarth <paul@city-fan.org> 1.7.1-4
0ce24e
- Rebuild with gcc 4.3.0 for Fedora 9
0ce24e
0ce24e
* Fri Aug 24 2007 Paul Howarth <paul@city-fan.org> 1.7.1-3
0ce24e
- Change download URL from df.sf.net to downloads.sf.net
0ce24e
- Expand tabs in spec
0ce24e
- Clarify license as GPL version 2 or later
0ce24e
0ce24e
* Wed Aug 30 2006 Paul Howarth <paul@city-fan.org> 1.7.1-2
0ce24e
- FE6 mass rebuild
0ce24e
0ce24e
* Mon Feb 13 2006 Paul Howarth <paul@city-fan.org> 1.7.1-1
0ce24e
- new upstream version 1.7.1 (fixes #166394)
0ce24e
- include new document PROTOCOL-SECURITY
0ce24e
- cosmetic change: replace variables with macros
0ce24e
0ce24e
* Wed Aug 10 2005 Paul Howarth <paul@city-fan.org> 1.7.0-2
0ce24e
- own directory %%{_localstatedir}/run/pptp
0ce24e
0ce24e
* Thu Jul 28 2005 Paul Howarth <paul@city-fan.org> 1.7.0-1
0ce24e
- new upstream version 1.7.0
0ce24e
- remove patch, included upstream
0ce24e
- edit Makefile to prevent attempted chown in %%install
0ce24e
- remove redundant %%attr tag in %%files
0ce24e
- honour $RPM_OPT_FLAGS
0ce24e
- ensure directories have correct permissions
0ce24e
0ce24e
* Fri May 27 2005 Paul Howarth <paul@city-fan.org> 1.6.0-5
0ce24e
- bump and rebuild
0ce24e
0ce24e
* Tue May 17 2005 Paul Howarth <paul@city-fan.org> 1.6.0-4
0ce24e
- rebuild with dist tags
0ce24e
0ce24e
* Tue May 10 2005 Paul Howarth <paul@city-fan.org> 1.6.0-3
0ce24e
- fix URL for SOURCE0 not to point to a specific sf.net mirror
0ce24e
0ce24e
* Tue May 10 2005 Paul Howarth <paul@city-fan.org> 1.6.0-2
0ce24e
- Weed out documentation useful only to developers
0ce24e
- Add dist tag
0ce24e
- Use full URL for SOURCE0
0ce24e
- Fix permissions on %%{_sbindir}/pptp
0ce24e
0ce24e
* Fri May  6 2005 Paul Howarth <paul@city-fan.org> 1.6.0-1
0ce24e
- First build for Fedora Extras, based on upstream spec file