2019-09-30 11:20:38 -04:00
|
|
|
Name: ypserv
|
2022-11-15 03:36:49 +00:00
|
|
|
Version: 4.2
|
2023-06-30 12:39:09 +00:00
|
|
|
Release: 3
|
2019-09-30 11:20:38 -04:00
|
|
|
Summary: The NIS server
|
|
|
|
|
License: GPLv2
|
2020-12-15 18:21:50 +08:00
|
|
|
URL: https://github.com/thkukuk/ypserv
|
2019-09-30 11:20:38 -04:00
|
|
|
Source0: https://github.com/thkukuk/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
Source1: ypserv.service
|
|
|
|
|
Source2: yppasswdd.service
|
|
|
|
|
Source3: ypxfrd.service
|
|
|
|
|
Source4: rpc.yppasswdd.env
|
|
|
|
|
Source5: yppasswdd-pre-setdomain
|
|
|
|
|
Source6: yppasswdd
|
|
|
|
|
Patch1: ypserv-2.5-nfsnobody2.patch
|
|
|
|
|
Patch2: ypserv-2.13-ypxfr-zeroresp.patch
|
|
|
|
|
Patch3: ypserv-2.13-nonedomain.patch
|
|
|
|
|
Patch4: ypserv-2.19-slp-warning.patch
|
|
|
|
|
Patch5: ypserv-4.0-manfix.patch
|
|
|
|
|
Patch6: ypserv-2.24-aliases.patch
|
|
|
|
|
Patch7: ypserv-2.27-confpost.patch
|
|
|
|
|
Patch8: ypserv-2.31-netgrprecur.patch
|
|
|
|
|
Patch9: ypserv-4.0-headers.patch
|
|
|
|
|
Patch10: ypserv-4.0-selinux-context.patch
|
|
|
|
|
|
2021-08-12 15:48:08 +08:00
|
|
|
BuildRequires: gcc systemd libxslt autoconf automake
|
2019-09-30 11:20:38 -04:00
|
|
|
BuildRequires: docbook-style-xsl tokyocabinet-devel libnsl2-devel
|
|
|
|
|
BuildRequires: libtirpc-devel systemd-devel libselinux-devel
|
|
|
|
|
Requires: tokyocabinet gawk make portmap bash >= 2.0
|
|
|
|
|
Requires(pre): hostname
|
|
|
|
|
Requires(post): systemd
|
|
|
|
|
Requires(preun): systemd
|
|
|
|
|
Requires(postun): systemd
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The ypserv distributes NIS databases to client systems.The client
|
|
|
|
|
must run ypbind.The databases are stored in /var/yp/[domainname].
|
|
|
|
|
The domainname is the name of the domain being served.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: Doc files for ypserv
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
The help package contains doc files for ypserv.
|
|
|
|
|
|
|
|
|
|
%prep
|
2021-08-12 15:48:08 +08:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 11:20:38 -04:00
|
|
|
rm -f etc/netgroup.5 etc/ypserv.conf.5 makedbm/makedbm.8 mknetid/mknetid.8
|
|
|
|
|
autoreconf -i
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
cp etc/README etc/README.etc
|
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -fpic"
|
|
|
|
|
|
2023-04-20 17:48:56 +08:00
|
|
|
%if "%toolchain" == "clang"
|
|
|
|
|
export CFLAGS="$CFLAGS -Wno-error=strict-prototypes"
|
|
|
|
|
%endif
|
|
|
|
|
|
2023-06-30 12:39:09 +00:00
|
|
|
export CFLAGS="$CFLAGS -Wno-format-overflow"
|
|
|
|
|
|
2019-09-30 11:20:38 -04:00
|
|
|
%configure --enable-checkroot --enable-fqdn --libexecdir=%{_libdir}/yp \
|
|
|
|
|
--with-dbmliborder=tokyocabinet --localstatedir=%{_localstatedir} --with-selinux
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install
|
|
|
|
|
mkdir -p %{buildroot}/%{_libexecdir}
|
|
|
|
|
mkdir -p %{buildroot}/%{_sysconfdir}
|
|
|
|
|
mkdir -p %{buildroot}/%{_unitdir}
|
|
|
|
|
mkdir -p %{buildroot}/etc/sysconfig
|
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}/%{_unitdir}/ypserv.service
|
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}/%{_unitdir}/yppasswdd.service
|
|
|
|
|
install -m 644 %{SOURCE3} %{buildroot}/%{_unitdir}/ypxfrd.service
|
|
|
|
|
install -m 755 %{SOURCE4} %{buildroot}/%{_libexecdir}/rpc.yppasswdd.env
|
|
|
|
|
install -m 755 %{SOURCE5} %{buildroot}/%{_libexecdir}/yppasswdd-pre-setdomain
|
|
|
|
|
install -m 644 %{SOURCE6} %{buildroot}/etc/sysconfig/yppasswdd
|
|
|
|
|
install -m 644 etc/ypserv.conf %{buildroot}/%{_sysconfdir}
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun ypserv.service
|
|
|
|
|
%systemd_preun ypxfrd.service
|
|
|
|
|
%systemd_preun yppasswdd.service
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post ypserv.service
|
|
|
|
|
%systemd_post ypxfrd.service
|
|
|
|
|
%systemd_post yppasswdd.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart ypserv.service
|
|
|
|
|
%systemd_postun_with_restart ypxfrd.service
|
|
|
|
|
%systemd_postun_with_restart yppasswdd.service
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc COPYING AUTHORS
|
|
|
|
|
%doc etc/ypserv.conf etc/README.etc etc/securenets
|
|
|
|
|
%doc etc/netgroup etc/timezone etc/locale etc/netmasks
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ypserv.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/yppasswdd
|
|
|
|
|
%{_unitdir}/*.service
|
|
|
|
|
%{_includedir}/rpcsvc/ypxfrd.x
|
|
|
|
|
%{_libdir}/yp/*
|
|
|
|
|
%{_sbindir}/*
|
|
|
|
|
%{_libexecdir}/*
|
|
|
|
|
%config(noreplace) /var/yp/*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%doc README INSTALL TODO NEWS ChangeLog
|
|
|
|
|
%{_mandir}/*/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-06-30 12:39:09 +00:00
|
|
|
* Fri Jun 30 2023 xingwei <xingwei14@h-partners.com> - 4.2-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix gcc12 compilation issues
|
|
|
|
|
|
2023-04-20 17:48:56 +08:00
|
|
|
* Thu Apr 20 2023 jammyjellyfish <jammyjellyfish255@outlook.com> - 4.2-2
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:Fix clang build error
|
|
|
|
|
|
2022-11-15 03:36:49 +00:00
|
|
|
* Tue Nov 15 2022 xingwei <xingwei14@h-partners.com> - 4.2-1
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:upgrade ypserv to 4.2
|
|
|
|
|
|
2021-08-12 15:48:08 +08:00
|
|
|
* Thu Aug 12 2021 yanglu <yanglu72@huawei.com> - 4.1-6
|
|
|
|
|
- DESC:delete -S git from %autosetup,and delete BuildRequires git
|
|
|
|
|
|
2020-12-15 18:21:50 +08:00
|
|
|
* Tue Dec 15 2020 xihaochen <xihaochen@huawei.com> - 4.1-5
|
|
|
|
|
- Type:requirement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:update url
|
|
|
|
|
|
2020-01-12 16:35:14 +08:00
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.1-4
|
|
|
|
|
- optimization the spec
|
|
|
|
|
|
|
|
|
|
* Sat Jan 11 2020 openEuler Buildteam <buildteam@openeuler.org> - 4.1-3
|
2020-01-11 20:54:21 +08:00
|
|
|
- delete unused patch
|
|
|
|
|
|
2019-12-13 16:16:51 +08:00
|
|
|
* Thu Nov 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 4.1-2
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:modify the release
|
|
|
|
|
|
2019-09-30 11:20:38 -04:00
|
|
|
* Mon Sep 9 2019 luhuaxin <luhuaxin@huawei.com> - 4.1-1
|
|
|
|
|
- Package init
|