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