]> git.pld-linux.org Git - packages/daemontools.git/blob - daemontools.spec
- use new %%doc
[packages/daemontools.git] / daemontools.spec
1 Summary:        D. J. Bernstein daemontools
2 Summary(pl):    daemontools D. J. Bernstein
3 Name:           daemontools
4 Version:        0.70
5 Release:        6
6 License:        D. J. Bernstein
7 Group:          Networking/Admin
8 Source0:        http://cr.yp.to/%{name}/%{name}-%{version}.tar.gz
9 Source1:        ftp://ftp.innominate.org/pub/pape/djb/%{name}-%{version}-man.tar.gz
10 Source2:        %{name}.sysconfig
11 Source3:        %{name}.init
12 Patch0:         %{name}-time.patch
13 Prereq:         /sbin/chkconfig
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 daemontools is a collection of tools for managing UNIX services.
18
19 supervise monitors a service. It starts the service and restarts the
20 service if it dies. Setting up a new service is easy: all supervise
21 needs is a directory with a run script that runs the service.
22
23 multilog saves error messages to one or more logs. It optionally
24 timestamps each line and, for each log, includes or excludes lines
25 matching specified patterns. It automatically rotates logs to limit
26 the amount of disk space used. If the disk fills up, it pauses and
27 tries again, without losing any data.
28
29 %description -l pl
30 daemontools jest zestawem narzêdzi do zarz±dzania servisami UNIX'owymi
31
32 supervise monitoruje servisy. Startuje servisy i restartuje je, gdy
33 "umr±". Ustawienie nowego servisu jest proste: wszystko czego
34 supervise potrzebuje to katalog ze skryptami startowymi, które
35 startuj± servisy.
36
37 multilog zapisuje komunikaty o b³êdach do jednego lub wiêcej log'u.
38 Opcjonalnie stempluje ka¿d± liniê dat± oraz, w ka¿dym logu, do³±cza
39 lub wy³±cza linie pasuj±ce do okre¶lonych wzorców. Automatycznie robi
40 rotating logów do limitu miejsca na dysku. Je¿eli dysk jest
41 zape³niony, robi pauzê i próbuje ponownie, bez strat danych.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 tar zxf %{SOURCE1}
47
48 %build
49 echo %{_bindir} >conf-home
50
51 %{__make}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} \
56         $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \
57         $RPM_BUILD_ROOT/var/lib/service $RPM_BUILD_ROOT/service
58
59 install envdir envuidgid fghack multilog setlock setuidgid softlimit \
60         supervise svc svok svscan svstat tai64n tai64nlocal \
61         $RPM_BUILD_ROOT%{_sbindir}
62 install %{name}-%{version}-man/*.8* $RPM_BUILD_ROOT%{_mandir}/man8
63 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/svscan
64 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/svscan
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post
70 /sbin/chkconfig --add svscan
71 if [ -f /var/lock/subsys/svscan ]; then
72         /etc/rc.d/init.d/svscan restart >&2
73 else
74         echo "Execute \"/etc/rc.d/init.d/svscan\" to start svscan daemon."
75 fi
76
77 %preun
78 if [ "$1" = "0" ]; then
79         if [ -f /var/lock/subsys/svscan ]; then
80                 /etc/rc.d/init.d/svscan stop >&2
81         fi
82         /sbin/chkconfig --del svscan
83 fi
84
85 %files
86 %defattr(644,root,root,755)
87 %doc CHANGES README TODO
88 %attr(755,root,root) %{_sbindir}/*
89 %attr(700,root,root) /service
90 %attr(700,root,root) /var/lib/service
91 %attr(754,root,root) /etc/rc.d/init.d/svscan
92 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/svscan
93 %{_mandir}/man8/*
This page took 0.102008 seconds and 4 git commands to generate.