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