]> git.pld-linux.org Git - packages/ddt.git/blob - ddt.spec
- and more
[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 Patch1:         %{name}-cgi-to-cgic.patch
11 Patch2:         %{name}-bind-includes-hack.patch
12 URL:            http://www.ddts.org/
13 Source1:        %{name}-client.init
14 Source2:        %{name}-server.init
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  bind-devel >= 9.2.1-10
18 BuildRequires:  cgilibc-devel
19 BuildRequires:  openssl-devel >= 0.9.7
20 BuildRequires:  postgresql-c++-devel
21 BuildRequires:  libgcrypt-devel
22 BuildRequires:  regexx-devel
23 BuildRequires:  macrosystem-devel
24 BuildRequires:  opt
25 BuildRequires:  sgml-tools
26 Prereq:         chkconfig
27 Buildroot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 DDT stands for Dynamic Dns Tools. The goal of the project is to
31 provide an open and free (in the GPL-sense) set of tools that will
32 permit the deployment of secure and reliable dynamic DNS services.
33
34 %description -l pl
35 DDT oznacza Dynamiczne Narzêdzia DNS. Celem projektu jest dostarczenie
36 otwartego i wolnego (w sensie GPL) zestawu narzêdzi pozwalaj±cych na
37 stworzenie bezpiecznego i niezawodnego systemu dynamicznego DNS.
38
39 %package clients
40 Summary:        Dynamic DNS Tools Client
41 Summary(pl):    Klient Dynamicznego DNSu
42 Group:          Applications/Networking
43
44 %description clients
45 Dynamic DNS Tools Client.
46
47 %description clients -l pl
48 Klient Dynamicznego DNSu.
49
50 %package cgi
51 Summary:        CGI scripts for Dynamic DNS Tools Server
52 Summary(pl):    Skrypty CGI do Serwera Dynamicznego DNSu
53 Group:          Applications/Networking
54 Requires:       webserver
55
56 %description cgi
57 CGI scripts for Dynamic DNS Tools Server.
58
59 %description cgi -l pl
60 Skrypty CGI do Serwera Dynamicznego DNSu.
61
62 %prep
63 %setup -q
64 %patch0 -p1
65 %patch1 -p1
66 %patch2 -p1
67
68 %build
69 rm -f missing
70 %{__aclocal}
71 %{__autoconf}
72 %{__automake}
73 CPPFLAGS="-I%{_includedir}/cgilibc"; export CPPFLAGS
74 %configure \
75         --enable-docs \
76         --enable-server \
77         --enable-admin \
78         --with-pgsql-incdir=%{_includedir} \
79         --with-pgsql-libdir=%{_libdir}
80 # fixme
81 echo "all install:" > docs/Makefile
82
83 %{__make}
84
85 %install
86 rm -rf $RPM_BUILD_ROOT
87 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
88 install -d $RPM_BUILD_ROOT%{_sysconfdir},/etc/rc.d/init.d
89 install -d $RPM_BUILD_ROOT/etc/logrotate.d
90 install -d $RPM_BUILD_ROOT/var/{lib/ddt-client,run/ddt}
91
92 %{__make} install \
93         DESTDIR=$RPM_BUILD_ROOT
94         
95 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client
96 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
97 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
98 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %post
104 /sbin/chkconfig --add %{name}-server
105 if [ -f /var/lock/subsys/%{name}-server ]; then
106         /etc/rc.d/init.d/%{name}-server restart >&2
107 else
108         echo "Run \"/etc/rc.d/init.d/%{name}-server start\" to start ddtd daemon."
109 fi
110
111 %preun
112 if [ "$1" = "0" ]; then
113         if [ -f /var/lock/subsys/%{name}-server ]; then
114                 /etc/rc.d/init.d/%{name}-server stop >&2
115         fi
116         /sbin/chkconfig --del %{name}-server
117 fi
118
119 %post clients
120 /sbin/chkconfig --add %{name}-client
121 if [ -f /var/lock/subsys/%{name}-client ]; then
122         /etc/rc.d/init.d/%{name}-client restart >&2
123 else
124         echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
125 fi
126
127 %preun clients
128 if [ "$1" = "0" ]; then
129         if [ -f /var/lock/subsys/%{name}-client ]; then
130                 /etc/rc.d/init.d/%{name}-client stop >&2
131         fi
132         /sbin/chkconfig --del %{name}-client
133 fi
134
135 %files
136 %defattr(644,root,root,755)
137 %doc AUTHORS BUGS NEWS README THANKS TODO
138 %doc docs/*.sgml
139 %attr(754,root,root) /etc/rc.d/init.d/%{name}-server
140 %attr(755,root,root) %{_sbindir}/ddtd
141 %{_mandir}/man8/ddtd.8*
142 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-server
143
144 %files clients
145 %defattr(644,root,root,755)
146 %doc docs/DDT*.sgml
147 %attr(754,root,root) /etc/rc.d/init.d/%{name}-client
148 %attr(755,root,root) %{_sbindir}/ddtc
149 %attr(755,root,root) %{_sbindir}/ddtcd
150 %config(noreplace) %{_sysconfdir}/ddtcd.conf
151 %{_mandir}/man8/ddtc.8*
152 %{_mandir}/man8/ddtcd.8*
153 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-client
154
155 %files cgi
156 %defattr(644,root,root,755)
This page took 0.044104 seconds and 4 git commands to generate.