2007-01-15 23:45:39 +00:00
|
|
|
#
|
2011-06-06 14:52:41 +00:00
|
|
|
# spec file for package ypbind
|
2007-01-15 23:45:39 +00:00
|
|
|
#
|
2020-08-29 10:08:47 +00:00
|
|
|
# Copyright (c) 2018, 2020 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:45:39 +00:00
|
|
|
#
|
2008-08-16 01:25:05 +00:00
|
|
|
# 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.
|
|
|
|
|
|
2007-01-15 23:45:39 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
Name: ypbind
|
2020-01-31 09:52:15 +00:00
|
|
|
Version: 2.7.2
|
2012-02-27 17:38:47 +00:00
|
|
|
Release: 0
|
2007-01-15 23:45:39 +00:00
|
|
|
Summary: NIS client daemon
|
2018-02-23 11:33:09 +00:00
|
|
|
License: GPL-2.0-only
|
2012-02-27 17:38:47 +00:00
|
|
|
Group: Productivity/Networking/NIS
|
2018-06-04 13:46:02 +00:00
|
|
|
URL: https://github.com/thkukuk/ypbind-mt/
|
|
|
|
|
Source: %{name}-mt-%{version}.tar.xz
|
2017-02-21 08:50:20 +00:00
|
|
|
Source2: ypbind.service
|
|
|
|
|
Source3: ypbind-systemd-pre
|
2020-01-29 14:46:54 +00:00
|
|
|
Source4: ypbind.conf
|
2020-08-29 10:08:47 +00:00
|
|
|
Source5: ypbind.default
|
2018-02-23 11:33:09 +00:00
|
|
|
BuildRequires: pkgconfig
|
2017-02-21 08:50:20 +00:00
|
|
|
BuildRequires: pkgconfig(libnsl) >= 1.0.1
|
2016-07-15 11:01:51 +00:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2016-03-30 12:08:24 +00:00
|
|
|
BuildRequires: pkgconfig(libtirpc) >= 1.0.1
|
2017-11-08 09:57:15 +00:00
|
|
|
Requires: libnss_nis2
|
|
|
|
|
Requires: rpcbind
|
|
|
|
|
Requires: yp-tools
|
2020-08-29 10:08:47 +00:00
|
|
|
Requires(post): /usr/bin/grep
|
2007-01-15 23:45:39 +00:00
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
%prep
|
2008-04-20 14:03:10 +00:00
|
|
|
%setup -q -n ypbind-mt-%{version}
|
2007-01-15 23:45:39 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-02-21 08:50:20 +00:00
|
|
|
%configure --disable-dbus-nm
|
|
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:45:39 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-02-21 08:50:20 +00:00
|
|
|
%make_install
|
2020-08-29 10:08:47 +00:00
|
|
|
# Install default/ypbind
|
|
|
|
|
install -D -m 644 %{SOURCE5} %{buildroot}%{_prefix}/etc/default/ypbind
|
2007-01-15 23:45:39 +00:00
|
|
|
# Create dummy yp.conf
|
2019-07-26 13:34:09 +00:00
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}
|
2017-02-21 08:50:20 +00:00
|
|
|
touch %{buildroot}%{_sysconfdir}/yp.conf
|
2007-01-15 23:45:39 +00:00
|
|
|
# Create filelist with translatins
|
2017-02-21 08:50:20 +00:00
|
|
|
%find_lang ypbind-mt
|
2012-07-14 11:18:59 +00:00
|
|
|
# Install systemd stuff
|
2017-02-21 08:50:20 +00:00
|
|
|
install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/ypbind.service
|
|
|
|
|
mkdir -p %{buildroot}%{_libexecdir}/ypbind
|
|
|
|
|
install -m 755 %{SOURCE3} %{buildroot}%{_libexecdir}/ypbind/ypbind-systemd-pre
|
2013-07-29 07:27:56 +00:00
|
|
|
# create symlink for rcypbind
|
2017-02-21 08:50:20 +00:00
|
|
|
ln -s /sbin/service %{buildroot}%{_sbindir}/rcypbind
|
2017-11-07 16:16:34 +00:00
|
|
|
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
|
2020-01-29 14:46:54 +00:00
|
|
|
install -m 644 %{SOURCE4} %{buildroot}%{_prefix}/lib/tmpfiles.d/
|
2012-07-14 11:18:59 +00:00
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
%service_add_pre ypbind.service
|
2007-01-15 23:45:39 +00:00
|
|
|
|
|
|
|
|
%post
|
2012-07-14 11:18:59 +00:00
|
|
|
%service_add_post ypbind.service
|
2017-11-22 10:13:09 +00:00
|
|
|
%tmpfiles_create ypbind.conf
|
2020-08-29 10:08:47 +00:00
|
|
|
if [ -f /etc/sysconfig/ypbind ]; then
|
|
|
|
|
# migrate variables from sysconfig to default
|
2020-08-29 10:28:05 +00:00
|
|
|
grep ^YPBIND_OPTIONS= /etc/sysconfig/ypbind > /etc/default/ypbind
|
2020-08-29 10:08:47 +00:00
|
|
|
mv /etc/sysconfig/ypbind /etc/sysconfig/ypbind.rpmsave
|
|
|
|
|
fi
|
2007-01-15 23:45:39 +00:00
|
|
|
|
|
|
|
|
%preun
|
2012-07-14 11:18:59 +00:00
|
|
|
%service_del_preun ypbind.service
|
2007-01-15 23:45:39 +00:00
|
|
|
|
|
|
|
|
%postun
|
2012-07-14 11:18:59 +00:00
|
|
|
%service_del_postun ypbind.service
|
2017-11-08 12:49:56 +00:00
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
|
test -d %{_localstatedir}/yp/binding && rm -rf %{_localstatedir}/yp/binding ||:
|
|
|
|
|
fi
|
2014-11-29 07:39:37 +00:00
|
|
|
|
2007-01-15 23:45:39 +00:00
|
|
|
%files -f ypbind-mt.lang
|
2018-02-23 11:33:09 +00:00
|
|
|
%license COPYING
|
|
|
|
|
%doc NEWS README
|
2017-02-21 08:50:20 +00:00
|
|
|
%ghost %config(noreplace) %{_sysconfdir}/yp.conf
|
2020-08-29 10:08:47 +00:00
|
|
|
%{_prefix}/etc/default/
|
2017-02-21 08:50:20 +00:00
|
|
|
%{_mandir}/man5/yp.conf.5%{ext_man}
|
|
|
|
|
%{_mandir}/man8/ypbind.8%{ext_man}
|
|
|
|
|
%{_sbindir}/ypbind
|
|
|
|
|
%{_sbindir}/rcypbind
|
2012-07-14 11:18:59 +00:00
|
|
|
%{_unitdir}/ypbind.service
|
2013-07-29 07:27:56 +00:00
|
|
|
%dir %{_libexecdir}/ypbind
|
|
|
|
|
%{_libexecdir}/ypbind/*
|
2017-11-07 16:16:34 +00:00
|
|
|
%{_prefix}/lib/tmpfiles.d/ypbind.conf
|
2007-01-15 23:45:39 +00:00
|
|
|
|
2007-02-19 22:12:47 +00:00
|
|
|
%changelog
|