]> git.pld-linux.org Git - packages/dents.git/blob - dents.spec
- run chkconfig --del only on remove, not upgrade
[packages/dents.git] / dents.spec
1 Summary:        This is the DENTS nameserver
2 Summary(pl):    Serwer nazw DENTS
3 Name:           dents
4 Version:        0.3.1
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Group(de):      Netzwerkwesen/Server
9 Group(pl):      Sieciowe/Serwery
10 Source0:        http://ftp1.sourceforge.net/dents/%{name}-%{version}.tar.gz
11 URL:            http://sourceforge.net/projects/dents/
12 BuildRequires:  glib-devel
13 Prereq:         rc-scripts
14 Prereq:         /sbin/chkconfig
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Dents. It's a name server that doesn't suck.
19
20 %description -l pl
21 Dents. Jest to serwer nazw, który nie obsysa.
22
23 %prep
24 %setup -q
25
26 %build
27 %configure
28 %{__make}
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32
33 %{__make} install \
34         DESTDIR=$RPM_BUILD_ROOT
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %post
40 /sbin/chkconfig --add dents
41 if [ -f /var/lock/subsys/dents ]; then
42         /etc/rc.d/init.d/dents restart 1>&2
43 else
44         echo "Run \"/etc/rc.d/init.d/dents start\" to start dents DNS server."
45 fi
46
47 %preun
48 if [ "$1" = "0" ]; then
49         if [ -f /var/lock/subsys/dents ]; then
50                 /etc/rc.d/init.d/dents stop 1>&2
51         fi
52         /sbin/chkconfig --del dents
53 fi
54
55 %files
56 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_sbindir}/dents
58 %dir %{_libdir}/dents
59 %attr(755,root,root) %{_libdir}/dents/mod_*.so*
This page took 0.048012 seconds and 4 git commands to generate.