]>
Commit | Line | Data |
---|---|---|
c2f75cea | 1 | Summary: ClusterNFS server |
0614f267 | 2 | Summary(pl.UTF-8): Serwer ClusterNFS |
c2f75cea | 3 | Name: clusternfs |
fc170d04 | 4 | Version: 3.0 |
9027ddea | 5 | Release: 0.rc2.2 |
11f2f52a | 6 | License: GPL v2 |
c2f75cea | 7 | Group: Networking/Daemons |
4f731575 | 8 | URL: http://clusternfs.sourceforge.net/ |
874832cc | 9 | Source0: http://dl.sourceforge.net/clusternfs/%{name}-%{version}rc2.tar.bz2 |
776217b5 | 10 | # Source0-md5: b25b578b2dd3222b554c4953a32efc8f |
fc170d04 | 11 | Source1: %{name}.init |
dafabcd4 | 12 | Source2: %{name}.sysconfig |
04e0c9e2 | 13 | Patch0: %{name}-types.patch |
cb4c3d33 JB |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
700ea3b6 | 16 | BuildRequires: libwrap-devel |
ac2c9277 | 17 | BuildRequires: rpmbuild(macros) >= 1.268 |
cb4c3d33 | 18 | Requires(post,preun): /sbin/chkconfig |
c2f75cea | 19 | Requires: portmap >= 4.0 |
9027ddea | 20 | Requires: rc-scripts >= 0.4.1.5 |
c2f75cea | 21 | Provides: nfscluster |
ac2c9277 ER |
22 | Conflicts: nfs-server |
23 | Conflicts: nfs-utils | |
fc170d04 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
c2f75cea TO |
25 | |
26 | %description | |
27 | ClusterNFS allows diskless clients to share a single root filesystem | |
fc170d04 | 28 | by matching "tagged" filenames of the form "filename$$TAG=value$$" |
c2f75cea TO |
29 | with fallback to the original filename. |
30 | ||
0df10bf6 JR |
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. | |
c2f75cea TO |
35 | |
36 | %prep | |
fc170d04 | 37 | %setup -q -n ClusterNFS |
04e0c9e2 | 38 | %patch0 -p1 |
c2f75cea TO |
39 | |
40 | %build | |
fc170d04 TO |
41 | mv -f aclocal.m4 acinclude.m4 |
42 | %{__aclocal} | |
43 | %{__autoconf} | |
c2f75cea TO |
44 | ./BUILD --batch \ |
45 | --rquotad=no \ | |
46 | --ugidd=no --nis=yes \ | |
fc170d04 | 47 | --hosts-access=yes \ |
ac2c9277 | 48 | --libwrap-directory=%{_prefix}/lib \ |
c2f75cea TO |
49 | --exports-uid=0 --exports-gid=0 \ |
50 | --log-mounts=yes --multi=yes \ | |
51 | --devtab=yes --trnames=yes \ | |
fc170d04 | 52 | --path_devtab=/var/lib/clusternfs/devtab |
c2f75cea | 53 | |
fc170d04 TO |
54 | %configure |
55 | ||
56 | %{__make} | |
c2f75cea TO |
57 | |
58 | %install | |
fc170d04 | 59 | rm -rf $RPM_BUILD_ROOT |
dafabcd4 | 60 | install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig} |
c2f75cea | 61 | |
fc170d04 TO |
62 | %{__make} install \ |
63 | DESTDIR=$RPM_BUILD_ROOT | |
c2f75cea | 64 | |
fc170d04 | 65 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/clusternfs |
dafabcd4 | 66 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/clusternfs |
67 | > $RPM_BUILD_ROOT%{_sysconfdir}/exports | |
c2f75cea | 68 | |
cb4c3d33 JB |
69 | %clean |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
fc170d04 | 72 | %post |
c2f75cea | 73 | /sbin/chkconfig --add clusternfs |
ac2c9277 | 74 | %service clusternfs restart "NFS daemon" |
c2f75cea TO |
75 | |
76 | %preun | |
77 | if [ "$1" = "0" ]; then | |
ac2c9277 | 78 | %service clusternfs stop |
20dcbf32 | 79 | /sbin/chkconfig --del clusternfs |
c2f75cea | 80 | fi |
fc170d04 | 81 | |
c2f75cea | 82 | %files |
fc170d04 TO |
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 | |
2542da47 | 86 | %attr(755,root,root) %{_sbindir}/rpc.* |
c2f75cea | 87 | %{_mandir}/man5/* |
2542da47 | 88 | %{_mandir}/man8/[mn]* |
874832cc ER |
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 | |
fc170d04 | 91 | /var/lib/clusternfs |