vpnc-vl.spec 7.1 KB

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