]>
Commit | Line | Data |
---|---|---|
1 | Summary: ClusterNFS server | |
2 | Summary(pl.UTF-8): Serwer ClusterNFS | |
3 | Name: clusternfs | |
4 | Version: 3.0 | |
5 | Release: 0.rc2.3 | |
6 | License: GPL v2 | |
7 | Group: Networking/Daemons | |
8 | URL: http://clusternfs.sourceforge.net/ | |
9 | Source0: http://dl.sourceforge.net/clusternfs/%{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 | BuildRequires: rpmbuild(macros) >= 1.268 | |
18 | Requires(post,preun): /sbin/chkconfig | |
19 | Requires: portmap >= 4.0 | |
20 | Requires: rc-scripts >= 0.4.1.5 | |
21 | Provides: nfscluster | |
22 | Conflicts: nfs-server | |
23 | Conflicts: nfs-utils | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | ClusterNFS allows diskless clients to share a single root filesystem | |
28 | by matching "tagged" filenames of the form "filename$$TAG=value$$" | |
29 | with fallback to the original filename. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | ClusterNFS pozwala bezdyskowym klientom współdzielić pojedynczy system | |
33 | plików wybierając odpowiednio "oznakowane" nazwy plików postaci | |
34 | "plik$$TAG=wartość$$" z podmianą do oryginalnej nazwy. | |
35 | ||
36 | %prep | |
37 | %setup -q -n ClusterNFS | |
38 | %patch0 -p1 | |
39 | ||
40 | %build | |
41 | mv -f aclocal.m4 acinclude.m4 | |
42 | %{__aclocal} | |
43 | %{__autoconf} | |
44 | ./BUILD --batch \ | |
45 | --rquotad=no \ | |
46 | --ugidd=no --nis=yes \ | |
47 | --hosts-access=yes \ | |
48 | --libwrap-directory=%{_prefix}/lib \ | |
49 | --exports-uid=0 --exports-gid=0 \ | |
50 | --log-mounts=yes --multi=yes \ | |
51 | --devtab=yes --trnames=yes \ | |
52 | --path_devtab=/var/lib/clusternfs/devtab | |
53 | ||
54 | %configure | |
55 | ||
56 | %{__make} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} | |
61 | ||
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clusternfs | |
66 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/clusternfs | |
67 | > $RPM_BUILD_ROOT%{_sysconfdir}/exports | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %post | |
73 | /sbin/chkconfig --add clusternfs | |
74 | %service clusternfs restart "NFS daemon" | |
75 | ||
76 | %preun | |
77 | if [ "$1" = "0" ]; then | |
78 | %service clusternfs stop | |
79 | /sbin/chkconfig --del clusternfs | |
80 | fi | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
84 | %doc BUGS ChangeLog* EXAMPLE.ClusterNFS HALL_OF_FAME NEWS README* TODO* | |
85 | %attr(754,root,root) /etc/rc.d/init.d/clusternfs | |
86 | %attr(755,root,root) %{_sbindir}/rpc.* | |
87 | %{_mandir}/man5/* | |
88 | %{_mandir}/man8/[mn]* | |
89 | %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/exports | |
90 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/clusternfs | |
91 | /var/lib/clusternfs |