sysklogd-vl.spec 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. Summary: System logging and kernel message trapping daemons.
  2. Summary(ja): システムとカーネルのログをログ記録するデーモン
  3. Name: sysklogd
  4. Version: 1.5
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: System Environment/Daemons
  8. URL: http://www.infodrom.org/projects/sysklogd/
  9. Source: sysklogd-%{version}.tar.gz
  10. Source1: sysklogd-%{version}.conf
  11. Source2: sysklogd-%{version}.init
  12. Source3: sysklogd-%{version}.logrotate
  13. Source4: sysklogd-%{version}.sysconfig
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. PreReq: coreutils /sbin/chkconfig /etc/init.d
  16. Requires: logrotate bash >= 2.0
  17. Provides: syslog
  18. Conflicts: rsyslog, syslog-ng
  19. %description
  20. The sysklogd package contains two system utilities (syslogd and klogd)
  21. which provide support for system logging. Syslogd and klogd run as
  22. daemons (background processes) and log system messages to different
  23. places, like mail logs, security logs, error logs, etc.
  24. %description -l ja
  25. sysklogd パッケージには syslogd と klogd の 2つのシステムユーティリティが
  26. 収められており,システムロギングの機能を提供します.syslogd と klogd は
  27. 共にデーモン (バックグラウンドプロセス) として動作し,メイル/セキュリティ/
  28. エラー といった,様々なシステムメッセージを個別のログファイルに出力します.
  29. %prep
  30. %setup -q
  31. %build
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. mkdir -p $RPM_BUILD_ROOT{/etc,%{_mandir}/man{5,8},/sbin}
  36. make install prefix=$RPM_BUILD_ROOT \
  37. TOPDIR=$RPM_BUILD_ROOT \
  38. MANDIR=$RPM_BUILD_ROOT%{_mandir} \
  39. BINDIR=$RPM_BUILD_ROOT/sbin \
  40. MAN_USER=`id -nu` MAN_GROUP=`id -ng`
  41. mkdir -p $RPM_BUILD_ROOT/etc/{rc.d/init.d,logrotate.d,sysconfig}
  42. install -p -m644 %SOURCE1 $RPM_BUILD_ROOT/%{_sysconfdir}/syslog.conf
  43. install -p -m755 %SOURCE2 $RPM_BUILD_ROOT/etc/rc.d/init.d/syslog
  44. install -p -m644 %SOURCE3 $RPM_BUILD_ROOT/etc/logrotate.d/sysklogd
  45. install -p -m644 %SOURCE4 $RPM_BUILD_ROOT/etc/sysconfig/sysklogd
  46. chmod 755 $RPM_BUILD_ROOT/sbin/syslogd
  47. chmod 755 $RPM_BUILD_ROOT/sbin/klogd
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %post
  51. /sbin/chkconfig --add syslog
  52. for n in /var/log/{messages,secure,maillog,spooler}
  53. do
  54. [ -f $n ] && continue
  55. umask 066 && touch $n
  56. done
  57. exit 0
  58. %preun
  59. if [ $1 = 0 ]; then
  60. [ -f /var/lock/subsys/syslog ] &&
  61. /sbin/service syslog stop >/dev/null 2>&1 || :
  62. /sbin/chkconfig --del syslog
  63. fi
  64. exit 0
  65. %postun
  66. if [ "$1" -ge "1" ]; then
  67. /sbin/service syslog condrestart > /dev/null 2>&1 || :
  68. fi
  69. exit 0
  70. %triggerpostun -- sysklogd < 1.3.31-17
  71. /sbin/chkconfig --add syslog || :
  72. %triggerpostun -- sysklogd < 1.3.33-5
  73. /sbin/chkconfig syslog reset || :
  74. %files
  75. %defattr(-,root,root)
  76. %doc ANNOUNCE CHANGES README* NEWS INSTALL COPYING
  77. %config(noreplace) %{_sysconfdir}/syslog.conf
  78. %config(noreplace) %{_sysconfdir}/sysconfig/sysklogd
  79. %config(noreplace) %{_sysconfdir}/logrotate.d/sysklogd
  80. %{_sysconfdir}/rc.d/init.d/syslog
  81. /sbin/*
  82. %{_mandir}/*/*
  83. %changelog
  84. * Sat Mar 28 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-1
  85. - new upstream release
  86. - drop patch2 (merged in upstream)
  87. - add Provides: syslog
  88. - add Conflicts: rsyslog, syslog-ng
  89. * Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.1-13vl5
  90. - applied new versioning policy, spec in utf-8
  91. * Thu Apr 05 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.1-13vl3
  92. - rebuilt with current environment
  93. - explicitly PreReq: coreutils instead of fileutils
  94. * Sat Jun 05 2004 NISHIMURA Daisuke <nishi@graco.c.u-tokyo.ac.jp> 1.4.1-13vl2
  95. - bug fix (Patch2) from Mandrake MDKSA-2004:038
  96. - add URL tag
  97. - %%description =~ s/sendmail/mail/
  98. * Sat Sep 20 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.1-13vl1
  99. - based on Redhat Rawhide 1.4.1-13
  100. - rebuild with new toolchains
  101. - s/Copyright/License/
  102. * Mon Sep 03 2001 Toru Sagami <sagami@vinelinux.org>
  103. - 1.4-7vl3: put cron logs in /var/log/cron by disabling the patch
  104. * Sat Jun 16 2001 <sagami@vinelinux.org>
  105. - 1.4-7vl2: added patch for duplicate log entry for /var/log/cron
  106. * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  107. - 1.4-7vl1
  108. - added Japanese summary and description
  109. - removed Requires: /etc/init.d for better compatibility with apt
  110. * Wed Feb 7 2001 Bill Nottingham <notting@redhat.com>
  111. - i18n tweaks
  112. * Tue Jan 23 2001 Bill Nottingham <notting@redhat.com>
  113. - new translation stuff
  114. * Fri Jan 19 2001 Bill Nottingham <notting@redhat.com>
  115. - adapt /etc/sysconfig/syslog for specification of arbitrary options (#23171)
  116. - fix translation string slightly (#24088)
  117. * Mon Dec 18 2000 Bill Nottingham <notting@redhat.com>
  118. - don't set owner/group on manpages on install
  119. - read /etc/sysconfig/syslog if present for some configuration paramters
  120. - fix build with new kernel headers
  121. * Tue Dec 12 2000 Bill Nottingham <notting@redhat.com>
  122. - start klogd with '-2'
  123. * Mon Dec 11 2000 Bill Nottingham <notting@redhat.com>
  124. - update to 1.4
  125. * Fri Dec 01 2000 Bill Nottingham <notting@redhat.com>
  126. - rebuild because of broken fileutils
  127. * Mon Oct 13 2000 Bill Nottingham <notting@redhat.com>
  128. - don't log cron in two separate places (#18122)
  129. * Thu Sep 14 2000 Bill Nottingham <notting@redhat.com>
  130. - more fixes from solar@false.com, dan@debian.org; fix the security fix
  131. * Tue Sep 12 2000 Jakub Jelinek <jakub@redhat.com>
  132. - never ever call syslog with a user supplied string as second argument
  133. * Mon Aug 7 2000 Bill Nottingham <notting@redhat.com>
  134. - put cron logs in /var/log/cron; rotate them
  135. * Wed Aug 2 2000 Bill Nottingham <notting@redhat.com>
  136. - start at position 12, not 30 (we *need* to be before nfslock now)
  137. * Fri Jul 28 2000 Bill Nottingham <notting@redhat.com>
  138. - um, how did %preun get tacked onto %post?
  139. - fix condrestart stuff
  140. * Fri Jul 21 2000 Bill Nottingham <notting@redhat.com>
  141. - add a umask call to the initscript
  142. * Fri Jul 14 2000 Bill Nottingham <notting@redhat.com>
  143. - move initscript back
  144. * Fri Jul 14 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  145. - update to 1.3.33
  146. * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
  147. - automatic rebuild
  148. * Tue Jul 11 2000 Bill Nottingham <notting@redhat.com>
  149. - fix logrotate script (#13698)
  150. * Thu Jul 6 2000 Bill Nottingham <notting@redhat.com>
  151. - prereq /etc/init.d
  152. * Thu Jun 29 2000 Bill Nottingham <notting@redhat.com>
  153. - fix init script
  154. * Tue Jun 27 2000 Bill Nottingham <notting@redhat.com>
  155. - require, not prereq new initscripts
  156. * Mon Jun 26 2000 Bill Nottingham <notting@redhat.com>
  157. - initscript munging
  158. * Wed Jun 14 2000 Nalin Dahyabhai <nalin@redhat.com>
  159. - modify logrotate configuration to use the PID file
  160. * Sun Jun 11 2000 Bill Nottingham <notting@redhat.com>
  161. - rebuild in new environment, FHS fixes
  162. * Mon Mar 27 2000 Bill Nottingham <notting@redhat.com>
  163. - handle bad directories passed to '-a' without behaving strangely (#10363)
  164. - remove compatibility chkconfig links
  165. * Thu Feb 3 2000 Bill Nottingham <notting@redhat.com>
  166. - handle compressed man pages
  167. * Wed Dec 1 1999 Bill Nottingham <notting@redhat.com>
  168. - add patch to fix segfaults in ksym-less cases from HP
  169. * Mon Nov 15 1999 Bill Nottingham <notting@redhat.com>
  170. - fix ECONNRESETs from security patch (olaf)
  171. * Fri Sep 25 1999 Bill Nottingham <notting@redhat.com>
  172. - eek. The security patch broke *two* things...
  173. * Wed Sep 22 1999 Bill Nottingham <notting@redhat.com>
  174. - make klogd actually work.
  175. * Wed Sep 8 1999 Bill Nottingham <notting@redhat.com>
  176. - rotate boot.log
  177. * Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com>
  178. - add patch to fix a possible DoS (thanks Olaf Kirch)
  179. * Mon Aug 16 1999 Bill Nottingham <notting@redhat.com>
  180. - initscript munging
  181. * Mon Aug 9 1999 Bill Nottingham <notting@redhat.com>
  182. - patch to fix non-null terminated stuff in klogd
  183. * Mon Jun 21 1999 Bill Nottingham <notting@redhat.com>
  184. - move (sys|k)logd to /sbin
  185. * Tue Apr 13 1999 Bill Nottingham <notting@redhat.com>
  186. - log boot messages to boot.log
  187. - actually put the sysklogd links in the new place
  188. * Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com>
  189. - disable mark ticks by default
  190. * Thu Apr 1 1999 Bill Nottingham <notting@redhat.com>
  191. - stop klogd/syslogd as late as possible.
  192. * Fri Mar 26 1999 Bill Nottingham <notting@redhat.com>
  193. - twiddle initscript to avoid confusion
  194. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  195. - auto rebuild in the new build environment (release 2)
  196. * Wed Feb 24 1999 Bill Nottingham <notting@redhat.com>
  197. - update to sysklogd-1.3-31
  198. - stop klogd *before* syslogd
  199. * Tue Feb 9 1999 Jeff Johnson <jbj@redhat.com>
  200. - escape naked percent chars in kernel messages (#1088).
  201. * Thu Dec 17 1998 Jeff Johnson <jbj@redhat.com>
  202. - rework last-gasp address-in-module oops trace for both 2.0.x/2.1.x modules.
  203. * Mon Dec 7 1998 Jakub Jelinek <jj@ultra.linux.cz>
  204. - make klogd translate SPARC register dumps and oopses.
  205. * Tue Aug 11 1998 Jeff Johnson <jbj@redhat.com>
  206. - add %clean
  207. * Tue Aug 4 1998 Chris Adams <cadams@ro.com>
  208. - only log to entries that are USER_PROCESS (fix #822)
  209. * Mon Jul 27 1998 Jeff Johnson <jbj@redhat.com>
  210. - remove RPM_BUILD_ROOT from %post
  211. * Wed Apr 29 1998 Cristian Gafton <gafton@redhat.com>
  212. - patch to support Buildroot
  213. - package is now buildrooted
  214. * Wed Apr 29 1998 Michael K. Johnson <johnsonm@redhat.com>
  215. - Added exit patch so that a normal daemon exit is not flagged as an error.
  216. * Mon Apr 27 1998 Prospector System <bugs@redhat.com>
  217. - translations modified for de, fr, tr
  218. * Wed Oct 29 1997 Donnie Barnes <djb@redhat.com>
  219. - added (missingok) to init symlinks
  220. * Thu Oct 23 1997 Donnie Barnes <djb@redhat.com>
  221. - added status|restart support to syslog.init
  222. - added chkconfig support
  223. - various spec file cleanups
  224. * Tue Jun 17 1997 Erik Troan <ewt@redhat.com>
  225. - built against glibc