]> git.pld-linux.org Git - packages/ddt.git/blob - ddt.spec
- more updates
[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 %prep
51 %setup -q
52 %patch0 -p1
53 %patch1 -p1
54 %patch2 -p1
55
56 %build
57 rm -f missing
58 %{__aclocal}
59 %{__autoconf}
60 %{__automake}
61 CPPFLAGS="-I%{_includedir}/cgilibc"; export CPPFLAGS
62 %configure \
63         --enable-docs \
64         --enable-server \
65         --enable-admin \
66         --with-pgsql-incdir=%{_includedir} \
67         --with-pgsql-libdir=%{_libdir}
68 # fixme
69 echo "all install:" > docs/Makefile
70
71 %{__make}
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
76 install -d $RPM_BUILD_ROOT%{_sysconfdir},/etc/rc.d/init.d
77 install -d $RPM_BUILD_ROOT/etc/logrotate.d
78 install -d $RPM_BUILD_ROOT/var/{lib/ddt-client,run/ddt}
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82         
83 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-client
84 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-server
85 install debian/ddt-client.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-client
86 install debian/ddt-server.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/%{name}-server
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 /sbin/chkconfig --add %{name}-server
93 if [ -f /var/lock/subsys/%{name}-server ]; then
94         /etc/rc.d/init.d/%{name}-server restart >&2
95 else
96         echo "Run \"/etc/rc.d/init.d/%{name}-server start\" to start ddtd daemon."
97 fi
98
99 %preun
100 if [ "$1" = "0" ]; then
101         if [ -f /var/lock/subsys/%{name}-server ]; then
102                 /etc/rc.d/init.d/%{name}-server stop >&2
103         fi
104         /sbin/chkconfig --del %{name}-server
105 fi
106
107 %post client
108 /sbin/chkconfig --add %{name}-client
109 if [ -f /var/lock/subsys/%{name}-client ]; then
110         /etc/rc.d/init.d/%{name}-client restart >&2
111 else
112         echo "Run \"/etc/rc.d/init.d/%{name}-client start\" to start ddtcd daemon."
113 fi
114
115 %preun client
116 if [ "$1" = "0" ]; then
117         if [ -f /var/lock/subsys/%{name}-client ]; then
118                 /etc/rc.d/init.d/%{name}-client stop >&2
119         fi
120         /sbin/chkconfig --del %{name}-client
121 fi
122
123 %files
124 %defattr(644,root,root,755)
125 %doc AUTHORS BUGS NEWS README THANKS TODO
126 %doc docs/*.sgml
127 %attr(754,root,root) /etc/rc.d/init.d/%{name}-server
128 %attr(755,root,root) %{_sbindir}/ddtd
129 %{_mandir}/man8/ddtd.8*
130 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-server
131
132 %files client
133 %defattr(644,root,root,755)
134 %doc docs/DDT*.sgml
135 %attr(754,root,root) /etc/rc.d/init.d/%{name}-client
136 %attr(755,root,root) %{_sbindir}/ddtc
137 %attr(755,root,root) %{_sbindir}/ddtcd
138 %config(noreplace) %{_sysconfdir}/ddtcd.conf
139 %{_mandir}/man8/ddtc.8*
140 %{_mandir}/man8/ddtcd.8*
141 %attr(644,root,root) %config(noreplace) %verify(not size mtime md5) /etc/logrotate.d/%{name}-client
142
143 %files cgi
144 %defattr(644,root,root,755)
This page took 0.084115 seconds and 4 git commands to generate.