- massive attack: adding Source-md5
[packages/clusternfs.git] / clusternfs.spec
1 Summary:        ClusterNFS server
2 Summary(pl):    Serwer ClusterNFS
3 Name:           clusternfs
4 Version:        3.0
5 Release:        0.rc2.1
6 License:        GPL v2
7 Group:          Networking/Daemons
8 URL:            http://clusternfs.sourceforge.net
9 Source0:        http://dl.sourceforge.net/%{name}/%{name}-%{version}rc2.tar.bz2
10 # Source0-md5:  b25b578b2dd3222b554c4953a32efc8f
11 Source1:        %{name}.init
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 PreReq:         rc-scripts
15 Requires(post,preun):   /sbin/chkconfig
16 Requires:       portmap >= 4.0
17 Provides:       nfscluster
18 Conflicts:      nfs-utils nfs-server
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 ClusterNFS allows diskless clients to share a single root filesystem
23 by matching "tagged" filenames of the form "filename$$TAG=value$$"
24 with fallback to the original filename.
25
26 %description -l pl
27 ClusterNFS pozwala bezdyskowym klientom wspó³dzieliæ pojedynczy system
28 plików wybieraj±c odpowiednio "oznakowane" nazwy plików postaci
29 "plik$$TAG=warto¶æ$$" z podmian± do oryginalnej nazwy.
30
31 %prep
32 %setup -q -n ClusterNFS
33
34 %build
35 mv -f aclocal.m4 acinclude.m4
36 %{__aclocal}
37 %{__autoconf}
38 ./BUILD --batch \
39         --rquotad=no \
40         --ugidd=no --nis=yes \
41         --hosts-access=yes \
42         --libwrap-directory=/usr/lib \
43         --exports-uid=0 --exports-gid=0 \
44         --log-mounts=yes --multi=yes \
45         --devtab=yes --trnames=yes \
46         --path_devtab=/var/lib/clusternfs/devtab
47
48 %configure
49
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clusternfs
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 /sbin/chkconfig --add clusternfs
66 if [ -r /var/lock/subsys/clusternfs ]; then
67         /etc/rc.d/init.d/clusternfs restart >&2
68 else
69         echo "Run \"/etc/rc.d/init.d/clusternfs start\" to start nfs daemon."
70 fi
71
72 %preun
73 if [ "$1" = "0" ]; then
74         if [ -r /var/lock/subsys/clusternfs ]; then
75                 /etc/rc.d/init.d/clusternfs stop >&2
76         fi
77         /sbin/chkconfig --del clusternfs
78 fi
79
80 %files
81 %defattr(644,root,root,755)
82 %doc BUGS ChangeLog* EXAMPLE.ClusterNFS HALL_OF_FAME NEWS README* TODO*
83 %attr(754,root,root) /etc/rc.d/init.d/clusternfs
84 %attr(755,root,root) %{_sbindir}/rpc.*
85 %{_mandir}/man5/*
86 %{_mandir}/man8/[mn]*
87 /var/lib/clusternfs
This page took 0.061361 seconds and 3 git commands to generate.