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