File ypbind.spec of Package ypbind

#
# spec file for package ypbind (Version 1.29.91)
#
# Copyright (c) 2009 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:           ypbind
BuildRequires:  dbus-1-devel openslp-devel pkgconfig
%if %{suse_version} > 1010
BuildRequires:  dbus-1-glib-devel
%endif
License:        GPL v2 only
Group:          Productivity/Networking/NIS
Requires:       portmap yp-tools
AutoReqProv:    on
PreReq:         %insserv_prereq %fillup_prereq
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Version:        1.29.91
Release:        1
Url:            http://www.linux-nis.org/nis/ypbind-mt
Summary:        NIS client daemon
Source:         ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
Source1:        SuSEfirewall.ypbind
#Patch:          ypbind-mt-%{version}.diff

%description
This package provides the ypbind daemon. The ypbind daemon binds NIS
clients to an NIS domain and searches a new NIS server if the old one
goes down.

Ypbind must be running on any machines which are running NIS client
programs.



Authors:
--------
    Thorsten Kukuk <kukuk@suse.de>

%prep
%setup -q -n ypbind-mt-%{version}
#%patch

%build
export CFLAGS=$RPM_OPT_FLAGS
./configure --mandir=%{_mandir}
make

%install
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
mkdir -p $RPM_BUILD_ROOT/var/yp/binding
make install DESTDIR=$RPM_BUILD_ROOT
# Install init script
install -m 755 etc/ypbind.init $RPM_BUILD_ROOT/etc/init.d/ypbind
# Install SuSEfirewall2 service file
install -m 644 %SOURCE1 $RPM_BUILD_ROOT/etc/sysconfig/SuSEfirewall2.d/services/ypbind
# Install rc.config add-on
install -m 644 etc/sysconfig.ypbind $RPM_BUILD_ROOT/var/adm/fillup-templates/
# Install SuSEconfig.ypclient
ln -sf /etc/init.d/ypbind $RPM_BUILD_ROOT/usr/sbin/rcypbind
# Create dummy yp.conf
touch $RPM_BUILD_ROOT/etc/yp.conf
# Create filelist with translatins
%{find_lang} ypbind-mt

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%post
%{fillup_and_insserv ypbind}

%preun
%stop_on_removal ypbind
if [ "$1" = "0" ]; then
   rm -f var/yp/binding/*
fi
exit 0

%postun
%restart_on_update ypbind
%insserv_cleanup
exit 0

%files -f ypbind-mt.lang
%defattr(-,root,root)
%doc AUTHORS NEWS README THANKS
%ghost %config(noreplace) /etc/yp.conf
%config /etc/init.d/ypbind
%config /etc/sysconfig/SuSEfirewall2.d/services/ypbind
/var/adm/fillup-templates/sysconfig.ypbind
%doc %{_mandir}/man5/yp.conf.5.gz
%doc %{_mandir}/man8/ypbind.8.gz
/usr/sbin/rcypbind
/usr/sbin/ypbind
#%dir /usr/share/locale/de
#%dir /usr/share/locale/de/LC_MESSAGES
#/usr/share/locale/de/LC_MESSAGES/ypbind-mt.mo
%dir /var/yp
%dir /var/yp/binding

%changelog
* Fri Jun 19 2009 kukuk@suse.de
- Update to 1.29.91: Minor bug fixes
* Wed May 20 2009 kukuk@suse.de
- Update to 1.29.90: Rewrite of server search logic.
* Mon May 18 2009 kukuk@suse.de
- Update to 1.23.1: Fix last patch if NM support is disabled
* Mon Mar 30 2009 kukuk@suse.de
- Update to 1.23: Improvements in NetworkManager support
* Thu Aug 28 2008 kukuk@suse.de
- Update to 1.22:
  - Merge Patches
  - Only write binding file if it has really changed
* Thu Aug 14 2008 kukuk@suse.de
- Adjust init script to new policy
* Thu Apr 17 2008 schwab@suse.de
- Fix start script.
* Tue Apr 15 2008 kukuk@suse.de
- Update to 1.21:
  - Add -verbose option
  - Fix typo in option handling
* Wed Mar 26 2008 mkoenig@suse.de
- add support for rpcbind [fate#300607]
* Wed May 02 2007 kukuk@suse.de
- Add SuSEfirewall2 service data [Fate #300687/bnc #251659]
* Thu Mar 08 2007 kukuk@suse.de
- Update to 1.20.5:
  - Fix array access above array bounds [bnc #247312].
* Mon Feb 19 2007 kukuk@suse.de
- Update to 1.20.4:
  - merge dbus shared connection fix
  - add swedish translation
  - get ride of NetworkManager dependency
* Fri Oct 20 2006 thoenig@suse.de
- Add patch ypbind-do-not-close-shared-connection-thoenig-01.patch:
  Do not close shared connection to the D-Bus system bus.
* Wed Oct 04 2006 kukuk@suse.de
- Update to 1.20.2 (Assume we are online if no DBUS is running)
* Fri Sep 15 2006 kukuk@suse.de
- Update to 1.20.1 (fix SIGPIPE ignore)
- Remove obsolete obsoletes.
* Wed Sep 13 2006 kukuk@suse.de
- Update to official 1.20 release (includes -no-dbus option)
* Tue Aug 29 2006 kukuk@suse.de
- Fix synchronisation issue with threads [#202388]
* Thu Aug 17 2006 kukuk@suse.de
- Add DBUS/NetworkManager support to ypbind
- Remove obsolete documentation
* Fri May 26 2006 schwab@suse.de
- Don't strip binaries.
* Wed May 17 2006 seife@suse.de
- Add README.NetworkManager [#175935]
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Jul 05 2005 kukuk@suse.de
- Update to 1.19.1 (fix crash in debug code)
* Fri Jul 01 2005 kukuk@suse.de
- Update to 1.19 (Make error handling more robust)
* Fri Oct 15 2004 kukuk@suse.de
- Update to 1.18 (Add -ping-interval option) [Bug #47278]
* Thu Apr 29 2004 kukuk@suse.de
- Update to 1.17.3 (fix SLP URL parsing)
* Sat Feb 14 2004 kukuk@suse.de
- Update to 1.17.2 (SLP URL changed)
* Fri Feb 13 2004 kukuk@suse.de
- Update to 1.17 (SLP support added)
* Mon Jan 12 2004 adrian@suse.de
- build as user
* Fri Jan 09 2004 kukuk@suse.de
- Update to 1.15 (-local-only/-p bug fixes)
* Tue Aug 26 2003 kukuk@suse.de
- Update to 1.14 (ypset bug fixes)
* Fri Aug 15 2003 kukuk@suse.de
- Add ServiceRestart tag to sysconfig [Bug #28964]
* Tue Jul 29 2003 kukuk@suse.de
- Use new stop_on_removal/restart_on_upate macros
* Tue Jul 29 2003 kukuk@suse.de
- Fix postun/preun scripts
* Mon Jul 28 2003 kukuk@suse.de
- Don't remove binding files on update
- Stop daemon on uninstall
- Restart daemon on update
* Tue Jun 10 2003 kukuk@suse.de
- Update to ypbind-mt 1.13
- Use %%find_lang
* Tue May 13 2003 kukuk@suse.de
- Add defattr
* Fri Jan 17 2003 kukuk@suse.de
- Add sysconfig meta data [Bug #22706]
- Check every second if NIS server is online (make booting faster)
* Thu Aug 01 2002 kukuk@suse.de
- Add PreRequires for fillup and insserv
* Thu Jul 18 2002 kukuk@suse.de
- init script: ypserv is should-start, not required.
* Mon May 27 2002 kukuk@suse.de
- Update to ypbind 1.12 (Add broadcast option to yp.conf)
* Fri Apr 05 2002 kukuk@suse.de
- Update to ypbind 1.11 (fixes deadlock if one host is not
  resolveable), add more sysconfig options (local-only, broadcast)
* Sat Feb 16 2002 kukuk@suse.de
- Add /etc/yp.conf as ghost config file
* Fri Jan 25 2002 kukuk@suse.de
- init script:
  * redirect error messages of ypdomainname to /dev/null
  * Check, if /etc/defaultdomain contains a domainname
* Wed Jan 23 2002 kukuk@suse.de
- Source correct sysconfig file in init script
* Fri Jan 11 2002 kukuk@suse.de
- Remove all YP variables except the options for ypbind from
  rc.config
- Remove SuSEconfig.ypclients
* Tue Dec 04 2001 kukuk@suse.de
- If no YP_SERVER is set, print warning and use broadcast
* Tue Dec 04 2001 kukuk@suse.de
- Remove START variable
- Check, if portmapper is already running
- Add variable for additional ypbind parameters
* Tue Oct 30 2001 kukuk@suse.de
- Update to ypbind-mt 1.10 (locale fixes)
* Mon Oct 29 2001 kukuk@suse.de
- Update to ypbind-mt 1.9 (major bug fixes in thread and signal
  handling)
* Tue Sep 25 2001 ro@suse.de
- preserve permissions in SuSEconfig.ypclient
* Tue Aug 14 2001 kukuk@suse.de
- Fix some race conditions in ypbind-mt
- Fix setlocale() call
* Tue Jul 31 2001 kukuk@suse.de
- Also add a "+" to /etc/shadow if somebody really uses shadow over NIS
* Thu Apr 12 2001 kukuk@suse.de
- Remove configure patch to work with new gettext
* Thu Mar 22 2001 ro@suse.de
- added split-aliases as provides
* Wed Mar 21 2001 kukuk@suse.de
- Update to ypbind-mt-1.8
* Wed Jan 24 2001 kukuk@suse.de
- Provide ypclient
* Thu Nov 30 2000 kukuk@suse.de
- skip start of ypbind if not configured, don't die silently
* Thu Nov 30 2000 ro@suse.de
- startscript from sbin to etc
* Fri Nov 24 2000 kukuk@suse.de
- New, reworked init script
- Some more bug fixes
* Wed Nov 22 2000 kukuk@suse.de
- ypbind must be stopped before portmap
* Tue Nov 21 2000 kukuk@suse.de
- Use new init script
* Thu Nov 02 2000 kukuk@suse.de
- New version, split from ypclient
openSUSE Build Service is sponsored by