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