|
@@ -3,30 +3,32 @@
|
|
Summary: The NIS (Network Information Service) server.
|
|
Summary: The NIS (Network Information Service) server.
|
|
Summary(ja): NIS (Network Information Service) サーバ
|
|
Summary(ja): NIS (Network Information Service) サーバ
|
|
Name: ypserv
|
|
Name: ypserv
|
|
-Version: 2.19
|
|
+Version: 4.1
|
|
-Release: 5%{_dist_release}
|
|
+Release: 1%{_dist_release}
|
|
License: GPLv2
|
|
License: GPLv2
|
|
Group: System Environment/Daemons
|
|
Group: System Environment/Daemons
|
|
-URL: http://www.linux-nis.org/
|
|
+URL: https://github.com/thkukuk/ypserv
|
|
-Source0: ftp://ftp.kernel.org/pub/linux/utils/net/NIS/ypserv-%{version}.tar.bz2
|
|
+Source0: https://github.com/thkukuk/ypserv/releases/download/v%{version}/ypserv-%{version}.tar.xz
|
|
Source1: ypserv-ypserv.init
|
|
Source1: ypserv-ypserv.init
|
|
Source2: ypserv-yppasswdd.init
|
|
Source2: ypserv-yppasswdd.init
|
|
Source3: ypserv-ypxfrd.init
|
|
Source3: ypserv-ypxfrd.init
|
|
|
|
+
|
|
Patch0: ypserv-2.5-redhat.patch
|
|
Patch0: ypserv-2.5-redhat.patch
|
|
-Patch1: ypserv-2.11-path.patch
|
|
|
|
Patch2: ypserv-2.5-nfsnobody2.patch
|
|
Patch2: ypserv-2.5-nfsnobody2.patch
|
|
-Patch3: ypserv-2.11-nomap.patch
|
|
+Patch3: ypserv-2.13-ypxfr-zeroresp.patch
|
|
-Patch4: ypserv-2.11-iface-binding3.patch
|
|
+Patch4: ypserv-2.13-nonedomain.patch
|
|
-Patch6: ypserv-2.13-yplib-memleak.patch
|
|
+Patch5: ypserv-2.19-slp-warning.patch
|
|
-Patch7: ypserv-2.13-ypxfr-zeroresp.patch
|
|
+Patch6: ypserv-4.0-manfix.patch
|
|
-Patch8: ypserv-2.19-inval-ports.patch
|
|
+Patch7: ypserv-2.24-aliases.patch
|
|
-Patch9: ypserv-2.13-nonedomain.patch
|
|
+Patch8: ypserv-2.27-confpost.patch
|
|
-Patch10: ypserv-2.19-quieter.patch
|
|
+Patch10: ypserv-2.31-netgrprecur.patch
|
|
-Patch11: ypserv-2.19-debuginfo.patch
|
|
+Patch12: ypserv-4.0-headers.patch
|
|
-Patch12: ypserv-2.19-slp-warning.patch
|
|
|
|
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: gdbm-devel
|
|
BuildRequires: gdbm-devel
|
|
|
|
+BuildRequires: libxcrypt-devel
|
|
|
|
+BuildRequires: libnsl2-devel
|
|
|
|
+BuildRequires: libtirpc-devel
|
|
Requires: gawk portmap tcp_wrappers bash gdbm
|
|
Requires: gawk portmap tcp_wrappers bash gdbm
|
|
Requires(post): /sbin/chkconfig
|
|
Requires(post): /sbin/chkconfig
|
|
Requires(preun): /sbin/chkconfig /sbin/service
|
|
Requires(preun): /sbin/chkconfig /sbin/service
|
|
@@ -73,28 +75,35 @@ ypbind パッケージをインストールする必要があります.
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
%patch0 -p1 -b .redhat
|
|
%patch0 -p1 -b .redhat
|
|
-%patch1 -p1 -b .path
|
|
|
|
%patch2 -p1 -b .nfsnobody
|
|
%patch2 -p1 -b .nfsnobody
|
|
-%patch3 -p1 -b .nomap
|
|
+%patch3 -p1 -b .respzero
|
|
-%patch4 -p1 -b .iface
|
|
+%patch4 -p1 -b .nonedomain
|
|
-%patch6 -p1 -b .memleak
|
|
+%patch5 -p1 -b .slp-warning
|
|
-%patch7 -p1 -b .respzero
|
|
+%patch6 -p1 -b .manfix
|
|
-%patch8 -p1 -b .ports
|
|
+%patch7 -p1 -b .aliases
|
|
-%patch9 -p1 -b .nonedomain
|
|
+%patch8 -p1 -b .confpost
|
|
-%patch10 -p1 -b .quieter
|
|
+%patch10 -p1 -b .netgrprecur
|
|
-%patch11 -p1 -b .debuginfo
|
|
+%patch12 -b .headers
|
|
-%patch12 -p1 -b .slp-warning
|
|
+
|
|
|
|
+autoreconf -vif
|
|
|
|
|
|
%build
|
|
%build
|
|
cp etc/README etc/README.etc
|
|
cp etc/README etc/README.etc
|
|
-%configure --enable-checkroot --enable-fqdn --enable-yppasswd --libexecdir=%{_libdir}/yp
|
|
+export CFLAGS="$RPM_OPT_FLAGS -fpic"
|
|
|
|
+%configure \
|
|
|
|
+ --enable-checkroot \
|
|
|
|
+ --enable-fqdn \
|
|
|
|
+ --enable-yppasswd \
|
|
|
|
+ --libexecdir=%{_libdir}/yp \
|
|
|
|
+ --localstatedir=%{_localstatedir}
|
|
|
|
+
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-#make install ROOT=$RPM_BUILD_ROOT
|
|
+make install DESTDIR=%{buildroot}
|
|
-%makeinstall libexecdir=$RPM_BUILD_ROOT%{_libdir}/yp INSTALL_PROGRAM=install
|
|
+
|
|
mkdir -p $RPM_BUILD_ROOT%{_initdir}
|
|
mkdir -p $RPM_BUILD_ROOT%{_initdir}
|
|
install -m644 etc/ypserv.conf $RPM_BUILD_ROOT%{_sysconfdir}
|
|
install -m644 etc/ypserv.conf $RPM_BUILD_ROOT%{_sysconfdir}
|
|
install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/ypserv
|
|
install -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_initdir}/ypserv
|
|
@@ -154,6 +163,7 @@ exit 0
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
|
|
+%license COPYING
|
|
%doc AUTHORS README INSTALL ChangeLog TODO NEWS
|
|
%doc AUTHORS README INSTALL ChangeLog TODO NEWS
|
|
%doc etc/ypserv.conf etc/securenets etc/README.etc
|
|
%doc etc/ypserv.conf etc/securenets etc/README.etc
|
|
%doc etc/netgroup etc/locale etc/netmasks etc/timezone
|
|
%doc etc/netgroup etc/locale etc/netmasks etc/timezone
|
|
@@ -168,6 +178,11 @@ exit 0
|
|
%{_includedir}/*/*
|
|
%{_includedir}/*/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon May 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 4.1-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped all patches.
|
|
|
|
+- imported patches from rawhide.
|
|
|
|
+
|
|
* Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.19-5
|
|
* Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.19-5
|
|
- rebuild with VineSeed environment
|
|
- rebuild with VineSeed environment
|
|
|
|
|