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