ifplugd-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. Summary: Detect and perform actions when an ethernet cable is (un)plugged.
  2. Name: ifplugd
  3. Version: 0.28
  4. Release: 2%{_dist_release}
  5. Source0: %{name}-%{version}.tar.gz
  6. Source1: ifplugd.init
  7. Patch10: ifplugd-0.28-interface.c.patch
  8. License: GPL
  9. Group: System Environment/Daemons
  10. URL: http://www.stud.uni-hamburg.de/users/lennart/projects/ifplugd/
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Prefix: %{_prefix}
  13. Requires: libdaemon >= 0.5
  14. Requires: initscripts >= 7.2.6
  15. Buildprereq: libdaemon-devel >= 0.5, pkgconfig
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. %description
  19. ifplugd is a Linux daemon which will automatically configure your
  20. ethernet device when a cable is plugged in and automatically
  21. unconfigure it if the cable is pulled. This is useful on laptops with
  22. onboard network adapters, since it will only configure the interface
  23. when a cable is really connected.
  24. %description -l ja
  25. ifplugd はケーブルの抜き差しで ethernet device を自動的に有効・無効に
  26. する Linux の daemon です。
  27. この機能は ethernet device を内蔵している laptop のマシンで有用です。
  28. %prep
  29. %setup -q
  30. %patch10 -p1
  31. # patching Makefile / man page
  32. cd man
  33. perl -p -i -e 's@/usr/local@@' *.[58]
  34. cd ..
  35. %build
  36. %configure --disable-lynx --disable-xmltoman --disable-subversion
  37. make
  38. %install
  39. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  40. make DESTDIR=$RPM_BUILD_ROOT install
  41. # replace init scirpt
  42. rm -f $RPM_BUILD_ROOT/etc/init.d/ifplugd
  43. install -d $RPM_BUILD_ROOT%{_initdir}
  44. install %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/ifplugd
  45. # Brush docs
  46. cp -r doc doc2
  47. rm doc/Makefile*
  48. rm doc/*.in
  49. rm doc/*.SuSE
  50. %clean
  51. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  52. %post
  53. /sbin/chkconfig --add %{name}
  54. %preun
  55. if [ $1 = 0 ] ; then
  56. /sbin/chkconfig --del %{name}
  57. fi
  58. %files
  59. %defattr(-,root,root)
  60. %doc LICENSE README doc/
  61. %{_sbindir}/ifplugd
  62. %{_sbindir}/ifplugstatus
  63. %{_mandir}/man8/*
  64. %{_mandir}/man5/*
  65. %{_initdir}/ifplugd
  66. %config(noreplace) /etc/ifplugd/ifplugd.conf
  67. %config(noreplace) /etc/ifplugd/ifplugd.action
  68. %changelog
  69. * Thu Mar 05 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  70. - 0.28-2
  71. - spec in UTF-8
  72. * Wed Mar 04 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  73. - 0.28-1
  74. - new versioning policy
  75. - add patch10 to fix header file compatibility issue
  76. - rebuild with libdaemon 0.13
  77. * Sun Oct 08 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  78. - 0.28-0vl5
  79. - drop Source10, Source11, Patch1 (These ware for Vine 3.2)
  80. - Require initscripts >= 7.2.6
  81. * Sat May 20 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com>
  82. - 0.28-0vl4
  83. - changed Group to Systen Environment/Daemons
  84. * Sun Feb 12 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  85. - 0.28-0vl3
  86. - rebuild for VineSeed
  87. * Fri Nov 18 2005 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  88. - 0.28-0vl2
  89. - release for VinePlus 3.x
  90. * Fri Nov 18 2005 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  91. - 0.28-0vl1
  92. - release for VinePlus 2.x
  93. - add requires initscripts >= 6.51-1vl26
  94. * Wed Sep 21 2005 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  95. - 0.28-0vl0.3
  96. - test release for Vine 3.2
  97. - add patch1, ifup.ifplugd, ifdown.ifplugd for Vine 3.2
  98. - add requires initscripts >= 6.51-1vl33.3
  99. * Wed Aug 31 2005 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  100. - 0.28-0vl0.2
  101. - upstream release for VinePlus 3.0/3.1
  102. - add configure option (--disable-subversion)
  103. - brush up doc files
  104. * Wed Aug 31 2005 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  105. - 0.28-0vl0.1
  106. - upstream release for VinePlus 2.5/2.6
  107. - add configure option (--disable-subversion)
  108. - brush up doc files
  109. * Thu Dec 02 2004 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  110. - 0.25-0vl2
  111. - upstream release for VinePlus 3.0/3.1
  112. * Thu Dec 02 2004 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  113. - 0.25-0vl1
  114. - upstream release for VinePlus 2.5/2.6
  115. * Fri Feb 27 2004 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  116. - 0.22-0vl1
  117. - upstream release
  118. - update Requires/Buildprereq tag
  119. - update files list (ifstatus -> ifplugstatus)
  120. - add japanese discription
  121. * Sun Aug 03 2003 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  122. - 0.15-0vl2
  123. - add Vendor / Distribution tag for VineLinux
  124. * Sat Aug 02 2003 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  125. - 0.15-0vl1
  126. - updated 0.15
  127. - change make/install method (./configure)
  128. - add Require libdaemon / Buildprereq libdaemon-devel
  129. - update ifplugd.init
  130. - for Vine 2.5/6
  131. * Sat Jun 06 2003 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  132. - 0.13-0vl3
  133. - Fix install location init script
  134. - Fix changelog typo
  135. * Fri Jun 05 2003 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  136. - 0.13-0vl2
  137. - Fix ifplugd init script
  138. - Fix install location man pages
  139. * Fri Jun 05 2003 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  140. - 0.13-0vl1
  141. - 1st build for VinePlus 2.5/2.6
  142. - discription from ifplugd-0.13-3mdk.src.rpm. Thanx!