]> git.pld-linux.org Git - packages/dcd.git/blob - dcd.spec
cc9e47eab01378f0b579cbc100eedc551da908f3
[packages/dcd.git] / dcd.spec
1 Summary:        DConnect Daemon - Hub D****ct Connect for Linux
2 Summary(pl):    DConnect Daemon - Hub D****ct Connecta dla Linuksa
3 Name:           dcd
4 Version:        0.0.5
5 Release:        1
6 License:        GPL v2
7 Group:          Networking/Daemons
8 Source0:        ftp://pollux.ds.pg.gda.pl/pub/Linux/DConnect/sources/stable/%{name}-%{version}.tar.gz
9 URL:            http://www.dc.ds.pg.gda.pl/
10 BuildRequires:  autoconf
11 BuildRequires:  automake
12 BuildRequires:  libtool
13 BuildRequires:  libwrap-devel
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 This is Linux D*** Connect Hub implementation for Linux. It works in
18 daemon mode and utilizes threads.
19
20 %description -l pl
21 Pakiet zawiera Linuksow± implementacjê huba D*** Connecta, który
22 pracuje jako demon i u¿ywa w±tków.
23
24 %prep
25 %setup -q
26
27 %build
28 rm -f missing
29 %{__libtoolize}
30 aclocal
31 %{__autoconf}
32 %{__automake}
33 %configure \
34         --sysconfdir=%{_sysconfdir}/dcd
35
36 %{__make}
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{sysconfig,rc.d/init.d}
41
42 %{__make} install DESTDIR=$RPM_BUILD_ROOT
43
44 install contrib/PLD/dcd.init $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/dcd
45 install contrib/dcd.sysconfig $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/dcd
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 /sbin/chkconfig --add dcd
52 if [ -f /var/lock/subsys/dcd ]; then
53         /etc/rc.d/init.d/dcd restart 1>&2
54 else
55         echo "Run \"/etc/rc.d/init.d/dcd start\" to start DConnect Daemon."
56 fi
57
58 %preun
59 if [ "$1" = "0" ]; then
60         if [ -f /var/lock/subsys/dcd ]; then
61                 /etc/rc.d/init.d/dcd stop 1>&2
62         fi
63         /sbin/chkconfig --del dcd
64 fi
65
66 %files
67 %defattr(644,root,root,755)
68 %doc README BUGS AUTHORS NEWS TODO doc/*.txt doc/*.html
69 %config(noreplace) %{_sysconfdir}/dcd/dchub.conf
70 %config(noreplace) %{_sysconfdir}/sysconfig/dcd
71 %attr(755,root,root) %{_sbindir}/dcd
72 %attr(754,root,root) %{_sysconfdir}/rc.d/init.d/dcd
This page took 0.048544 seconds and 3 git commands to generate.