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