initng-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. %define name initng
  2. %define version 0.3.3
  3. %define release 1%{?_dist_release}
  4. Summary: A next generation init replacement
  5. Summary(ja): 高速起動の可能な次世代 init
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: http://initng.thinktux.net/download/%{name}-%{version}.tar.bz2
  10. Source1: keymaps.i
  11. Source2: unicon.i
  12. Source3: mingetty.i
  13. Source4: prefdm.i
  14. Source5: initial.i
  15. Patch0: initng_see_vine-release.pl.patch
  16. License: GPL
  17. Group: System Environment/Base
  18. URL: http://initng.thinktux.net/
  19. BuildRequires: perl
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. %description
  22. Initng is a full replacement of the old and in many ways deprecated
  23. SysVinit tool. It is designed with speed in mind, doing as much as
  24. possible asynchronously. In other words: It will boot your unix-system
  25. much faster, and give you more control and statistics over your
  26. system.
  27. %description -l ja
  28. Initng は古くて時代遅れになってきている SysVinit を完全に置き換える
  29. ものです。Initng はスピードを考慮して設計されており、可能な限り非同
  30. 期的に処理を行います。要するに、これはシステムをより速く起動し、
  31. システムをよりきめ細かく制御できるようにします。
  32. %prep
  33. %setup -q
  34. %patch0 -p1
  35. %build
  36. %configure --libdir=/%{_lib} --sbindir=%{_syssbindir}
  37. %__make
  38. %install
  39. %__rm -rf ${RPM_BUILD_ROOT}
  40. %__make install DESTDIR=${RPM_BUILD_ROOT}
  41. %__install -m644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_sysconfdir}/initng/system
  42. %__install -m644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_sysconfdir}/initng/system
  43. %__install -m644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_sysconfdir}/initng/daemon
  44. %__install -m644 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_sysconfdir}/initng/daemon
  45. %__install -m644 %{SOURCE5} ${RPM_BUILD_ROOT}/%{_sysconfdir}/initng/system
  46. ## remove unuse files
  47. rm -f $RPM_BUILD_ROOT/%{_lib}/*.la
  48. rm -f $RPM_BUILD_ROOT/%{_lib}/%{name}/*.la
  49. %post
  50. if [ $1 = 1 ]; then
  51. /sbin/ng-update del coldplug system
  52. /sbin/ng-update del static-modules system
  53. /sbin/ng-update del agetty system
  54. /sbin/ng-update del acpid default
  55. /sbin/ng-update del alsasound default
  56. /sbin/ng-update add unicon system
  57. /sbin/ng-update add mingetty system
  58. echo 'daemon/mingetty/tty1' > ${RPM_BUILD_ROOT}/%{_sysconfdir}/initng/up.runlevel
  59. fi
  60. %clean
  61. %__rm -rf ${RPM_BUILD_ROOT}
  62. %files
  63. %defattr(-,root,root)
  64. %doc AUTHORS CODING_STANDARDS COPYING ChangeLog FAQ INSTALL
  65. %doc NEWS README TEMPLATE_HEADER TODO
  66. %doc doc/*.txt doc/*.conf doc/*.png
  67. %{_sysconfdir}/hotplug/net.agent
  68. %{_sysconfdir}/ifplugd/action.d/ngcupdown
  69. %{_sysconfdir}/initng
  70. #%{_sysconfdir}/pcmcia/network
  71. /%{_lib}/initng
  72. /%{_lib}/libinitng*
  73. %{_syssbindir}/gen_system_runlevel
  74. %{_syssbindir}/initng
  75. %{_syssbindir}/initng-segfault
  76. %{_syssbindir}/install_service
  77. %{_syssbindir}/ng-update
  78. %{_syssbindir}/ngc
  79. %{_syssbindir}/ngdc
  80. %{_syssbindir}/system_off
  81. %{_sbindir}/ifplugd.action
  82. %{_sbindir}/ngcupdown
  83. %{_sbindir}/wpa_cli.action
  84. %{_syssbindir}/shutdown_script
  85. #%{_datadir}/doc/initng*
  86. %{_mandir}/man8/*
  87. %changelog
  88. * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 0.3.3-1vl5
  89. - applied new versioning policy, spec in utf-8
  90. - removed *.la
  91. * Sun Dec 18 2005 Ryoichi INIAGAKI <ryo1@bc.wakwak.com> 0.3.3-0vl2
  92. - changed Group:
  93. * Mon Oct 17 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.3-0vl1
  94. - source update.
  95. - add initng-segfault in %%files section.
  96. - add prefdm.i(Source4) and initial.i(Source5) for run X Window System.
  97. * Wed Oct 05 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.1-0vl1
  98. - source update.
  99. - update mingetty.i.
  100. * Tue Oct 04 2005 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3.0-0vl1
  101. - initial build for VineSeed.