vpnc-vl.spec 7.2 KB

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