vpnc-vl.spec 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. Name: vpnc
  2. Version: 0.5.3
  3. Release: 2%{?_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. * Fri Aug 17 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5.3-2
  90. - rebuild with VineSeed environment
  91. * Tue May 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.3-1
  92. - initial build for Vine Linux
  93. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.3-3
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  95. * Thu Nov 20 2008 Tomas Mraz <tmraz@redhat.com> - 0.5.3-2
  96. - upgrade to new version
  97. - fix race in vpnc-cleanup (#465315)
  98. * Thu Jul 24 2008 Tomas Mraz <tmraz@redhat.com> - 0.5.1-6
  99. - do not modify domain in resolv.conf (#446404)
  100. - clean up modified resolv.conf on startup (#455899)
  101. * Sat Apr 5 2008 Michal Schmidt <mschmidt@redhat.com> - 0.5.1-5
  102. - vpnc-script: fix 'ip link ...' syntax.
  103. * Thu Apr 3 2008 Tomas Mraz <tmraz@redhat.com> - 0.5.1-4
  104. - drop autogenerated perl requires (#440304)
  105. - compute MTU based on default route device (#433846)
  106. * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5.1-3
  107. - Autorebuild for GCC 4.3
  108. * Tue Nov 13 2007 Tomas Mraz <tmraz@redhat.com> - 0.5.1-2
  109. - try to make DPD less sensitive (#345281)
  110. * Thu Sep 20 2007 Tomas Mraz <tmraz@redhat.com> - 0.5.1-1
  111. - upgrade to latest upstream
  112. * Mon Sep 3 2007 Tomas Mraz <tmraz@redhat.com> - 0.4.0-4
  113. - fix long standing bug causing problems on x86_64 (#232565) now for real
  114. * Wed Aug 22 2007 Tomas Mraz <tmraz@redhat.com> - 0.4.0-3
  115. - license tag fix
  116. * Tue Mar 20 2007 Tomas Mraz <tmraz@redhat.com> - 0.4.0-2
  117. - -fstack-protector miscompilation on x86_64 is back (#232565)
  118. * Mon Feb 26 2007 Tomas Mraz <tmraz@redhat.com> - 0.4.0-1
  119. - upgrade to new upstream version
  120. * Wed Jan 17 2007 Tomas Mraz <tmraz@redhat.com> - 0.3.3-15
  121. - do not overwrite personalized vpnc scripts (#195842)
  122. - we must not allow commandline options to vpnc when run through consolehelper
  123. * Wed Jan 17 2007 Tomas Mraz <tmraz@redhat.com> - 0.3.3-14
  124. - add consoleuser subpackage (#160571)
  125. - fix permissions on manpage (#222578)
  126. * Tue Nov 7 2006 Tomas Mraz <tmraz@redhat.com> - 0.3.3-13
  127. - don't leak socket fds
  128. * Tue Sep 12 2006 Tomas Mraz <tmraz@redhat.com> - 0.3.3-12
  129. - drop hoplimit from ip route output (#205923)
  130. - let's try enabling -fstack-protector again, seems to work now
  131. * Thu Sep 7 2006 Tomas Mraz <tmraz@redhat.com> - 0.3.3-11
  132. - rebuilt for FC6
  133. * Wed Jun 7 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-9
  134. - drop the -fstack-protector not -f-stack-protector
  135. * Tue May 30 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-8
  136. - drop -fstack-protector from x86_64 build (workaround for #172145)
  137. - make rekeying a little bit better
  138. * Thu Mar 9 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-7
  139. - add basic rekeying support (the patch includes NAT keepalive support
  140. by Brian Downing)
  141. - dropped disconnect patch (solved differently)
  142. * Wed Feb 15 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-6
  143. - rebuild with new gcc
  144. * Tue Jan 24 2006 Tomas Mraz <tmraz@redhat.com> 0.3.3-5
  145. - send the disconnect packet properly (patch by Laurence Moindrot)
  146. * Thu Sep 22 2005 Tomas Mraz <tmraz@redhat.com> 0.3.3-4
  147. - improve compatibility with some Ciscos
  148. * Wed Jun 15 2005 Tomas Mraz <tmraz@redhat.com> 0.3.3-3
  149. - improve fix_ip_get_output in vpnc-script (#160364)
  150. * Mon May 30 2005 Tomas Mraz <tmraz@redhat.com> 0.3.3-2
  151. - package /var/run/vpnc and ghost files it can contain (#159015)
  152. - add /sbin /usr/sbin to the path in vpnc-script (#159099)
  153. * Mon May 16 2005 Tomas Mraz <tmraz@redhat.com> 0.3.3-1
  154. - new upstream version
  155. * Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
  156. - rebuilt
  157. * Wed Jan 05 2005 Warren Togami <wtogami@redhat.com> 0.3.2-3
  158. - Fix 64bit
  159. * Thu Dec 23 2004 Warren Togami <wtogami@redhat.com> 0.3.2-2
  160. - make PIE (davej)
  161. * Mon Dec 20 2004 Warren Togami <wtogami@redhat.com> 0.3.2-1
  162. - 0.3.2