File linux_pcnfsd2.spec of Package linux_pcnfsd2
#
# spec file for package linux_pcnfsd2 (Version 1.6)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: linux_pcnfsd2
#!BuildIgnore: nkitb
License: Any permissive
Group: Productivity/Networking/NFS
PreReq: %insserv_prereq %fillup_prereq
Requires: net-tools netcfg
AutoReqProv: on
Version: 1.6
Release: 630
Summary: RPC Server That Supports ONC Clients
Source: linux_pcnfsd2.tar.gz
Source1: pcnfsd
Source2: sysconfig.pcnfsd
Patch: linux_pcnfsd2.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
RPC server that supports ONC clients on PC (DOS, OS/2, Macintosh, and
other) systems.
Authors:
--------
Alexander Bezprozvanny <bez@parsy.spb.su>
%prep
%setup -n %{name}
%patch
%build
make -f Makefile.linux
%install
install -d -m 755 $RPM_BUILD_ROOT{/usr/sbin,%{_mandir}/man8}
install linux/clnt.pcnfsd linux/rpc.pcnfsd $RPM_BUILD_ROOT/usr/sbin
install -m 644 pcnfsd.8c $RPM_BUILD_ROOT/%{_mandir}/man8
ln -sf pcnfsd.8c.gz $RPM_BUILD_ROOT/%{_mandir}/man8/rpc.pcnfsd.8c.gz
install -d $RPM_BUILD_ROOT/var/adm/fillup-templates
install -m 644 %{S:2} $RPM_BUILD_ROOT/var/adm/fillup-templates/
install -d $RPM_BUILD_ROOT/etc/init.d
install -m 744 %{S:1} $RPM_BUILD_ROOT/etc/init.d/
ln -sf ../../etc/init.d/pcnfsd $RPM_BUILD_ROOT/usr/sbin/rcpcnfsd
%post
%{fillup_and_insserv -n pcnfsd pcnfsd}
%preun
%stop_on_removal -n pcnfsd pcnfsd}
%postun
%restart_on_update -n pcnfsd pcnfsd
%{insserv_cleanup}
%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc README
%doc %{_mandir}/man8/*
/usr/sbin/*
%config /etc/init.d/*
/var/adm/fillup-templates/sysconfig.pcnfsd
%changelog
* Thu Aug 28 2008 ro@suse.de
- fix init script
* Thu May 25 2006 schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sun Jan 11 2004 adrian@suse.de
- build as user
* Fri Aug 22 2003 postadal@suse.cz
- modified init script
- added sysconfig metadata [#28917]
- use new stop_on_removal/restart_on_upate macros
* Fri Jan 03 2003 postadal@suse.cz
- added metadata in sysconfig template
* Fri Aug 16 2002 postadal@suse.cz
- added %%insserv_prereq and %%fillup_prereq to PreReq [#17883]
* Sat Jul 27 2002 adrian@suse.de
- do not use rc.config anymore
* Thu Dec 13 2001 ro@suse.de
- moved rc.config.d -> sysconfig
* Mon Dec 10 2001 cihlar@suse.cz
- removed START_PCNFSD
* Tue Apr 24 2001 cihlar@suse.cz
- added init script
* Thu Feb 22 2001 cihlar@suse.cz
- package separated from nkita