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