]> git.pld-linux.org Git - packages/ddt.git/blob - ddt.spec
- not ready at all
[packages/ddt.git] / ddt.spec
1 Summary:        Dynamic DNS Tools Server
2 Summary(pl):    Serwer dynamicznego DNSu
3 Name:           ddt
4 Version:        0.5
5 Release:        1
6 Group:          Networking/Daemons
7 License:        GPL
8 URL:            http://www.ddt.org/
9 Source0:        http://download.sourceforge.net/ddt/ddt-0.5.tar.gz
10 Patch0:         %{name}-am_ac.patch
11 Source1:        %{name}.init
12 BuildRequires:  opt
13 BuildRequires:  openssl-devel
14 BuildRequires:  bind-devel >= 9.2.1-10
15 BuildRequires:  cgilib-devel
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 DDT stands for Dynamic Dns Tools. The goal of the project is to
22 provide an open and free (in the GPL-sense) set of tools that will
23 permit the deployment of secure and reliable dynamic DNS services.
24
25 %description -l pl
26 DDT oznacza Dynamiczne Narzêdzia DNS. Celem projektu jest dostarczenie
27 otwartego i wolnego (w sensie GPL) zestawu narzêdzi pozwalaj±cych
28 na stworzenie bezpiecznego i niezawodnego systemu dynamicznego DNS.
29
30 %package clients
31 Summary:        Dynamic DNS Tools Client
32 Summary(pl):    Klient Dynamicznego DNSu
33 Group:          Applications/Networking
34
35 %description clients
36 Dynamic DNS Tools Client.
37
38 %description -l pl clients
39 Klient Dynamicznego DNSu.
40
41 %prep
42 %setup -q
43 %patch0 -p1
44
45 %build
46 %{__aclocal}
47 %{__autoconf}
48 %{__automake}
49 %configure \
50         --enable-docs \
51         --enable-server \
52         --enable-admin \
53         --with-pgsql-lib=%{_libdir} \
54         --with-pgsql-include=%{_includedir}/postgresql/server
55 %{__make}
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d ${RPM_BUILD_ROOT}%{_sbindir}
60 install -d ${RPM_BUILD_ROOT}%{_mandir}/man8
61 install -d ${RPM_BUILD_ROOT}%{_sysconfdir}
62 install -d ${RPM_BUILD_ROOT}/etc/rc.d/init.d
63 install -m640 client/ddtcd.conf $RPM_BUILD_ROOT/%{_sysconfdir}
64 install -m755 $RPM_SOURCE_DIR/ddtcd.init $RPM_BUILD_ROOT/etc/rc.d/init.d/ddtcd
65 install -m755 client/ddtc $RPM_BUILD_ROOT/%{_sbindir}
66 install -m755 client/ddtcd $RPM_BUILD_ROOT/%{_sbindir}
67 gzip client/ddtc.8
68 gzip client/ddtcd.8
69 install -m755 client/ddtc*[.]8.gz $RPM_BUILD_ROOT/%{_mandir}/man8
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %post
75 /sbin/chkconfig --add ddtcd
76
77 %preun
78 if [ $1 = 0 ]; then
79    /sbin/chkconfig --del ddtcd
80 fi
81
82 %files
83 %defattr(644,root,root,755)
84 %config %{_sysconfdir}/ddtcd.conf
85 %doc AUTHORS README INSTALL COPYING THANKS ddt.lsm
86 %{_mandir}/man8/ddtc.8*
87 %{_mandir}/man8/ddtcd.8*
88 %attr(755,root,root) %{_sbindir}/ddtc
89 %attr(755,root,root) %{_sbindir}/ddtcd
90 /etc/rc.d/init.d/ddtcd
This page took 0.085473 seconds and 4 git commands to generate.