1 |
%define name ypserv |
%define name ypserv |
2 |
%define version 2.27 |
%define version 2.28 |
3 |
%define release %mkrel 1 |
%define release %mkrel 1 |
4 |
|
|
5 |
Summary: The NIS (Network Information Service) server |
Summary: The NIS (Network Information Service) server |
58 |
%make |
%make |
59 |
|
|
60 |
%install |
%install |
61 |
%makeinstall libexecdir=%buildroot%{_libdir}/yp |
%makeinstall libexecdir=%{buildroot}%{_libdir}/yp |
62 |
|
|
63 |
install -m644 etc/ypserv.conf -D %buildroot%{_sysconfdir}/ypserv.conf |
install -m644 etc/ypserv.conf -D %{buildroot}%{_sysconfdir}/ypserv.conf |
64 |
install -m755 %{SOURCE1} -D %buildroot%{_initrddir}/ypserv |
install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/ypserv |
65 |
install -m755 %{SOURCE2} -D %buildroot%{_initrddir}/yppasswdd |
install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/yppasswdd |
66 |
install -m755 %{SOURCE3} -D %buildroot%{_initrddir}/ypxfrd |
install -m755 %{SOURCE3} -D %{buildroot}%{_initrddir}/ypxfrd |
67 |
|
|
68 |
perl -pi -e "s|/etc/rc.d/init.d|%{_initrddir}|" %buildroot%{_initrddir}/* |
perl -pi -e "s|/etc/rc.d/init.d|%{_initrddir}|" %{buildroot}%{_initrddir}/* |
69 |
|
|
70 |
%post |
%post |
71 |
%_post_service ypserv |
%_post_service ypserv |