vpnc-vl.spec 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. Name: vpnc
  2. Version: 0.5.3
  3. Release: 1%{?_dist_release}
  4. Summary: IPSec VPN client compatible with Cisco equipment
  5. Summary(ja): Cisco 機器互換の IPSec VPN クライアント
  6. Group: Applications/Internet
  7. License: GPLv2+
  8. URL: http://www.unix-ag.uni-kl.de/~massar/vpnc/
  9. Source0: http://www.unix-ag.uni-kl.de/~massar/vpnc/%{name}-%{version}.tar.gz
  10. Source1: generic-vpnc.conf
  11. Source2: vpnc.consolehelper
  12. Source3: vpnc-disconnect.consolehelper
  13. Source4: vpnc.pam
  14. Source5: vpnc-helper
  15. Patch2: vpnc-0.5.3-cloexec.patch
  16. Patch3: vpnc-0.5.1-dpd.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  18. BuildRequires: libgcrypt-devel > 1.1.90
  19. Requires: iproute
  20. %description
  21. A VPN client compatible with Cisco's EasyVPN equipment.
  22. Supports IPSec (ESP) with Mode Configuration and Xauth. Supports only
  23. shared-secret IPSec authentication, 3DES, MD5, and IP tunneling.
  24. %package consoleuser
  25. Summary: Allows console user to run the VPN client directly
  26. Summary(ja): コンソールユーザに直接VPNクライアントの実行許可を与える
  27. Group: Applications/Internet
  28. Requires: vpnc = %{version}-%{release}
  29. Requires: usermode
  30. %description consoleuser
  31. Allows the console user to run the IPSec VPN client directly without
  32. switching to the root account.
  33. %prep
  34. %setup -q
  35. %patch2 -p1 -b .cloexec
  36. %patch3 -p1 -b .dpd
  37. %build
  38. CFLAGS="$RPM_OPT_FLAGS -fPIE" LDFLAGS="$RPM_OPT_FLAGS -pie" make PREFIX=/usr
  39. %install
  40. rm -rf $RPM_BUILD_ROOT
  41. make install DESTDIR="$RPM_BUILD_ROOT" PREFIX=/usr
  42. rm -f $RPM_BUILD_ROOT%{_bindir}/pcf2vpnc
  43. chmod 0644 pcf2vpnc
  44. rm -f $RPM_BUILD_ROOT%{_mandir}/man1/pcf2vpnc.1
  45. chmod 0644 $RPM_BUILD_ROOT%{_mandir}/man8/vpnc.8
  46. install -m 0600 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/vpnc/default.conf
  47. mkdir -p $RPM_BUILD_ROOT%{_var}/run/vpnc
  48. touch $RPM_BUILD_ROOT%{_var}/run/vpnc/pid \
  49. $RPM_BUILD_ROOT%{_var}/run/vpnc/defaultroute \
  50. $RPM_BUILD_ROOT%{_var}/run/vpnc/resolv.conf-backup
  51. install -Dp -m 0644 %{SOURCE2} \
  52. $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/vpnc
  53. install -Dp -m 0644 %{SOURCE3} \
  54. $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps/vpnc-disconnect
  55. install -Dp -m 0644 %{SOURCE4} \
  56. $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/vpnc
  57. install -Dp -m 0644 %{SOURCE4} \
  58. $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/vpnc-disconnect
  59. install -m 0755 %{SOURCE5} \
  60. $RPM_BUILD_ROOT%{_sbindir}/vpnc-helper
  61. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  62. ln -sf consolehelper $RPM_BUILD_ROOT%{_bindir}/vpnc
  63. ln -sf consolehelper $RPM_BUILD_ROOT%{_bindir}/vpnc-disconnect
  64. rm -f $RPM_BUILD_ROOT%{_datadir}/doc/vpnc/COPYING
  65. %clean
  66. rm -rf $RPM_BUILD_ROOT
  67. %files
  68. %defattr(-,root,root)
  69. %doc README COPYING pcf2vpnc pcf2vpnc.1
  70. %dir %{_sysconfdir}/vpnc
  71. %config(noreplace) %{_sysconfdir}/vpnc/vpnc-script
  72. %config(noreplace) %{_sysconfdir}/vpnc/default.conf
  73. %{_sbindir}/vpnc
  74. %{_bindir}/cisco-decrypt
  75. %{_sbindir}/vpnc-disconnect
  76. %{_mandir}/man8/vpnc.*
  77. %{_mandir}/man1/cisco-decrypt.*
  78. %dir %{_var}/run/vpnc
  79. %ghost %verify(not md5 size mtime) %{_var}/run/vpnc/pid
  80. %ghost %verify(not md5 size mtime) %{_var}/run/vpnc/defaultroute
  81. %ghost %verify(not md5 size mtime) %{_var}/run/vpnc/resolv.conf-backup
  82. %files consoleuser
  83. %defattr(-,root,root)
  84. %config(noreplace) %{_sysconfdir}/security/console.apps/vpnc*
  85. %config(noreplace) %{_sysconfdir}/pam.d/vpnc*
  86. %{_bindir}/vpnc*
  87. %{_sbindir}/vpnc-helper
  88. %changelog
  89. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.3-1
  90. - initial build for Vine Linux
  91. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-3
  92. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  93. * Thu Nov 20 2008 Tomas Mraz <tmraz@redhat.com> - 0.5.3-2
  94. - upgrade to new version
  95. - fix race in vpnc-cleanup (#465315)
  96. * Thu Jul 24 2008 Tomas Mraz <tmraz@redhat.com> - 0.5.1-6
  97. - do not modify domain in resolv.conf (#446404)
  98. - clean up modified resolv.conf on startup (#455899)
  99. * Sat Apr 5 2008 Michal Schmidt <mschmidt@redhat.com> - 0.5.1-5
  100. - vpnc-script: fix 'ip link ...' syntax.
  101. * Thu Apr 3 2008 Tomas Mraz <tmraz@redhat.com> - 0.5.1-4
  102. - drop autogenerated perl requires (#440304)
  103. - compute MTU based on default route device (#433846)
  104. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5.1-3
  105. - Autorebuild for GCC 4.3
  106. * Tue Nov 13 2007 Tomas Mraz <tmraz@redhat.com> - 0.5.1-2
  107. - try to make DPD less sensitive (#345281)
  108. * Thu Sep 20 2007 Tomas Mraz <tmraz@redhat.com> - 0.5.1-1
  109. - upgrade to latest upstream
  110. * Mon Sep 3 2007 Tomas Mraz <tmraz@redhat.com> - 0.4.0-4
  111. - fix long standing bug causing problems on x86_64 (#232565) now for real
  112. * Wed Aug 22 2007 Tomas Mraz <tmraz@redhat.com> - 0.4.0-3
  113. - license tag fix
  114. * Tue Mar 20 2007 Tomas Mraz <tmraz@redhat.com> - 0.4.0-2
  115. - -fstack-protector miscompilation on x86_64 is back (#232565)
  116. * Mon Feb 26 2007 Tomas Mraz <tmraz@redhat.com> - 0.4.0-1
  117. - upgrade to new upstream version
  118. * Wed Jan 17 2007 Tomas Mraz <tmraz@redhat.com> - 0.3.3-15
  119. - do not overwrite personalized vpnc scripts (#195842)
  120. - we must not allow commandline options to vpnc when run through consolehelper
  121. * Wed Jan 17 2007 Tomas Mraz <tmraz@redhat.com> - 0.3.3-14
  122. - add consoleuser subpackage (#160571)
  123. - fix permissions on manpage (#222578)
  124. * Tue Nov 7 2006 Tomas Mraz <tmraz@redhat.com> - 0.3.3-13
  125. - don't leak socket fds
  126. * Tue Sep 12 2006 Tomas Mraz <tmraz@redhat.com> - 0.3.3-12
  127. - drop hoplimit from ip route output (#205923)
  128. - let's try enabling -fstack-protector again, seems to work now
  129. * Thu Sep 7 2006 Tomas Mraz <tmraz@redhat.com> - 0.3.3-11
  130. - rebuilt for FC6
  131. * Wed Jun 7 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-9
  132. - drop the -fstack-protector not -f-stack-protector
  133. * Tue May 30 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-8
  134. - drop -fstack-protector from x86_64 build (workaround for #172145)
  135. - make rekeying a little bit better
  136. * Thu Mar 9 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-7
  137. - add basic rekeying support (the patch includes NAT keepalive support
  138. by Brian Downing)
  139. - dropped disconnect patch (solved differently)
  140. * Wed Feb 15 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-6
  141. - rebuild with new gcc
  142. * Tue Jan 24 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-5
  143. - send the disconnect packet properly (patch by Laurence Moindrot)
  144. * Thu Sep 22 2005 Tomas Mraz <tmraz@redhat.com> 0.3.3-4
  145. - improve compatibility with some Ciscos
  146. * Wed Jun 15 2005 Tomas Mraz <tmraz@redhat.com> 0.3.3-3
  147. - improve fix_ip_get_output in vpnc-script (#160364)
  148. * Mon May 30 2005 Tomas Mraz <tmraz@redhat.com> 0.3.3-2
  149. - package /var/run/vpnc and ghost files it can contain (#159015)
  150. - add /sbin /usr/sbin to the path in vpnc-script (#159099)
  151. * Mon May 16 2005 Tomas Mraz <tmraz@redhat.com> 0.3.3-1
  152. - new upstream version
  153. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  154. - rebuilt
  155. * Wed Jan 05 2005 Warren Togami <wtogami@redhat.com> 0.3.2-3
  156. - Fix 64bit
  157. * Thu Dec 23 2004 Warren Togami <wtogami@redhat.com> 0.3.2-2
  158. - make PIE (davej)
  159. * Mon Dec 20 2004 Warren Togami <wtogami@redhat.com> 0.3.2-1
  160. - 0.3.2