pptp-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. Summary: Point-to-Point Tunneling Protocol (PPTP) Client
  2. Summary(ja): Point-to-Point トンネリングプロトコル(PPTP)クライアント
  3. Name: pptp
  4. Version: 1.7.2
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Internet
  7. License: GPLv2+
  8. URL: http://pptpclient.sourceforge.net/
  9. Source0: http://downloads.sf.net/pptpclient/pptp-%{version}.tar.gz
  10. Patch0: pptp-1.7.2-compat.patch
  11. Patch1: pptp-1.7.2-ip-path.patch
  12. Patch2: pptp-1.7.2-pptpsetup.patch
  13. Patch3: pptp-1.7.2-makedeps.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. Requires: ppp
  16. %description
  17. Client for the proprietary Microsoft Point-to-Point Tunneling
  18. Protocol, PPTP. Allows connection to a PPTP based VPN as used
  19. by employers and some cable and ADSL service providers.
  20. %prep
  21. %setup -q
  22. # Remove reference to stropts.h, not shipped in F9 onwards (applied upstream)
  23. %patch0 -p0 -b .compat
  24. # Make location of "ip" binary build-time configurable (applied upstream)
  25. %patch1 -p0 -b .ip-path
  26. # Retain permissions on /etc/ppp/chap-secrets (#492090, applied upstream)
  27. %patch2 -p0 -b .bz492090
  28. # Fix Makefile dependencies to support parallel make (applied upstream)
  29. %patch3 -p0 -b .makedeps
  30. %{__perl} -pi -e 's/install -o root -m 555 pptp/install -m 755 pptp/;' Makefile
  31. %build
  32. %{__make} %{?_smp_mflags} CFLAGS="-Wall %{optflags}" IP=/sbin/ip
  33. %install
  34. %{__rm} -rf %{buildroot}
  35. %{__make} DESTDIR=%{buildroot} install
  36. %{__install} -d -m 750 %{buildroot}%{_localstatedir}/run/pptp
  37. %clean
  38. %{__rm} -rf %{buildroot}
  39. %files
  40. %defattr(-,root,root,-)
  41. %doc AUTHORS COPYING DEVELOPERS NEWS README TODO USING
  42. %doc ChangeLog Documentation/DESIGN.PPTP PROTOCOL-SECURITY
  43. %{_sbindir}/pptp
  44. %{_sbindir}/pptpsetup
  45. %{_mandir}/man8/pptp.8*
  46. %{_mandir}/man8/pptpsetup.8*
  47. %dir %attr(750,root,root) %{_localstatedir}/run/pptp/
  48. # /etc/ppp is hardcoded instead of using %{_sysconfdir}/ppp because the
  49. # Fedora ppp package hardcodes the directory name
  50. %config(noreplace) /etc/ppp/options.pptp
  51. %changelog
  52. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.2-1
  53. - initial build for Vine Linux
  54. * Wed Mar 25 2009 Paul Howarth <paul@city-fan.org> 1.7.2-5
  55. - Retain permissions on /etc/ppp/chap-secrets when using pptpsetup (#492090)
  56. - Use upstream versions of patches
  57. - Re-enable parallel build; Makefile dependencies now fixed
  58. - Use perl rather than sed to edit Makefile, for spec compatibility with
  59. ancient distro releases
  60. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-4
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  62. * Mon May 19 2008 Paul Howarth <paul@city-fan.org> 1.7.2-3
  63. - Add dependency on /sbin/ip
  64. - Disable parallel make - object files are missing dependency on config.h
  65. * Mon May 19 2008 Paul Howarth <paul@city-fan.org> 1.7.2-2
  66. - Use /sbin/ip, not /bin/ip for routing
  67. * Wed May 14 2008 Paul Howarth <paul@city-fan.org> 1.7.2-1
  68. - Update to 1.7.2
  69. - New script and manpage: pptpsetup
  70. - Add patch to remove reference to stropts.h, not shipped in F9 onwards
  71. * Wed Feb 13 2008 Paul Howarth <paul@city-fan.org> 1.7.1-4
  72. - Rebuild with gcc 4.3.0 for Fedora 9
  73. * Fri Aug 24 2007 Paul Howarth <paul@city-fan.org> 1.7.1-3
  74. - Change download URL from df.sf.net to downloads.sf.net
  75. - Expand tabs in spec
  76. - Clarify license as GPL version 2 or later
  77. * Wed Aug 30 2006 Paul Howarth <paul@city-fan.org> 1.7.1-2
  78. - FE6 mass rebuild
  79. * Mon Feb 13 2006 Paul Howarth <paul@city-fan.org> 1.7.1-1
  80. - new upstream version 1.7.1 (fixes #166394)
  81. - include new document PROTOCOL-SECURITY
  82. - cosmetic change: replace variables with macros
  83. * Wed Aug 10 2005 Paul Howarth <paul@city-fan.org> 1.7.0-2
  84. - own directory %%{_localstatedir}/run/pptp
  85. * Thu Jul 28 2005 Paul Howarth <paul@city-fan.org> 1.7.0-1
  86. - new upstream version 1.7.0
  87. - remove patch, included upstream
  88. - edit Makefile to prevent attempted chown in %%install
  89. - remove redundant %%attr tag in %%files
  90. - honour $RPM_OPT_FLAGS
  91. - ensure directories have correct permissions
  92. * Fri May 27 2005 Paul Howarth <paul@city-fan.org> 1.6.0-5
  93. - bump and rebuild
  94. * Tue May 17 2005 Paul Howarth <paul@city-fan.org> 1.6.0-4
  95. - rebuild with dist tags
  96. * Tue May 10 2005 Paul Howarth <paul@city-fan.org> 1.6.0-3
  97. - fix URL for SOURCE0 not to point to a specific sf.net mirror
  98. * Tue May 10 2005 Paul Howarth <paul@city-fan.org> 1.6.0-2
  99. - Weed out documentation useful only to developers
  100. - Add dist tag
  101. - Use full URL for SOURCE0
  102. - Fix permissions on %%{_sbindir}/pptp
  103. * Fri May 6 2005 Paul Howarth <paul@city-fan.org> 1.6.0-1
  104. - First build for Fedora Extras, based on upstream spec file