Build against qdbm and rebuild maps after updating
This commit is contained in:
parent
a71b90837c
commit
99f52366e9
22
ypserv.spec
22
ypserv.spec
|
@ -1,8 +1,10 @@
|
||||||
|
%global first_qdbm_version 2.27-4
|
||||||
|
|
||||||
Summary: The NIS (Network Information Service) server
|
Summary: The NIS (Network Information Service) server
|
||||||
Url: http://www.linux-nis.org/nis/ypserv/index.html
|
Url: http://www.linux-nis.org/nis/ypserv/index.html
|
||||||
Name: ypserv
|
Name: ypserv
|
||||||
Version: 2.27
|
Version: 2.27
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2
|
Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2
|
||||||
|
@ -13,6 +15,7 @@ Source4: rpc.yppasswdd.env
|
||||||
Source5: ypserv-pre-setdomain
|
Source5: ypserv-pre-setdomain
|
||||||
|
|
||||||
Requires: gawk, make, portmap, bash >= 2.0
|
Requires: gawk, make, portmap, bash >= 2.0
|
||||||
|
Requires: qdbm
|
||||||
Requires(post): systemd-units
|
Requires(post): systemd-units
|
||||||
Requires(preun): systemd-units
|
Requires(preun): systemd-units
|
||||||
Requires(postun): systemd-units
|
Requires(postun): systemd-units
|
||||||
|
@ -35,7 +38,7 @@ Patch16: ypserv-2.27-confpost.patch
|
||||||
Patch17: ypserv-2.27-cloexec.patch
|
Patch17: ypserv-2.27-cloexec.patch
|
||||||
Patch18: ypserv-2.27-crypt.patch
|
Patch18: ypserv-2.27-crypt.patch
|
||||||
|
|
||||||
BuildRequires: compat-gdbm-devel
|
BuildRequires: qdbm-devel
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
BuildRequires: autoconf, automake
|
BuildRequires: autoconf, automake
|
||||||
|
|
||||||
|
@ -86,7 +89,11 @@ export CFLAGS="$RPM_OPT_FLAGS -fPIC"
|
||||||
%else
|
%else
|
||||||
export CFLAGS="$RPM_OPT_FLAGS -fpic"
|
export CFLAGS="$RPM_OPT_FLAGS -fpic"
|
||||||
%endif
|
%endif
|
||||||
%configure --enable-checkroot --enable-fqdn --libexecdir=%{_libdir}/yp
|
%configure \
|
||||||
|
--enable-checkroot \
|
||||||
|
--enable-fqdn \
|
||||||
|
--libexecdir=%{_libdir}/yp \
|
||||||
|
--with-dbmliborder=qdbm
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
@ -162,7 +169,11 @@ if [ "$1" -ge "1" ] ; then
|
||||||
# Package upgrade, not uninstall
|
# Package upgrade, not uninstall
|
||||||
/bin/systemctl try-restart ypserv.service ypxfrd.service yppasswdd.service >/dev/null 2>&1 || :
|
/bin/systemctl try-restart ypserv.service ypxfrd.service yppasswdd.service >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
exit 0
|
|
||||||
|
# after switching from gdbm to qdbm we need to rebuild maps
|
||||||
|
%triggerpostun -- ypserv < %{first_qdbm_version}
|
||||||
|
touch /var/yp/Makefile
|
||||||
|
make -C /var/yp >&2 || :
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
@ -180,6 +191,9 @@ exit 0
|
||||||
%{_includedir}/*/*
|
%{_includedir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 26 2012 Honza Horak <hhorak@redhat.com> - 2.27-4
|
||||||
|
- Build against qdbm and rebuild maps after updating
|
||||||
|
|
||||||
* Thu Apr 26 2012 Honza Horak <hhorak@redhat.com> - 2.27-3
|
* Thu Apr 26 2012 Honza Horak <hhorak@redhat.com> - 2.27-3
|
||||||
- Added patch to handle crypt() returning NULL
|
- Added patch to handle crypt() returning NULL
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue