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