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