forked from pool/ypserv
- Update to version 4.1
- minor bugfix release - ypserv-4.1.diff: replaced ypserv-2.32.diff - 0001-use-_PATH_VARRUN-from-paths.h.patch: integrated upstream - drop SuSEfirewall2 support OBS-URL: https://build.opensuse.org/package/show/network:NIS/ypserv?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 12 16:15:59 CET 2019 - kukuk@suse.de
|
||||
|
||||
- Update to version 4.1
|
||||
- minor bugfix release
|
||||
- ypserv-4.1.diff: replaced ypserv-2.32.diff
|
||||
- 0001-use-_PATH_VARRUN-from-paths.h.patch: integrated upstream
|
||||
- drop SuSEfirewall2 support
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 23 11:41:31 UTC 2018 - kukuk@suse.com
|
||||
|
||||
|
||||
+5
-13
@@ -20,26 +20,23 @@
|
||||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||
%endif
|
||||
Name: ypserv
|
||||
Version: 4.0
|
||||
Version: 4.1
|
||||
Release: 0
|
||||
Summary: YP - (NIS)-Server
|
||||
License: GPL-2.0-only
|
||||
Group: Productivity/Networking/NIS
|
||||
URL: http://www.linux-nis.org/nis/ypserv/
|
||||
Source: ypserv-%{version}.tar.bz2
|
||||
URL: https://github.com/thkukuk/ypserv
|
||||
Source: ypserv-%{version}.tar.xz
|
||||
Source1: ypserv.init
|
||||
Source2: yppasswdd.init
|
||||
Source3: ypxfrd.init
|
||||
Source4: sysconfig.ypserv
|
||||
Source5: SuSEfirewall2.ypserv
|
||||
Source6: ypserv.service
|
||||
Source7: yppasswdd.service
|
||||
Source8: ypxfrd.service
|
||||
Source9: yppasswdd-systemd-exec
|
||||
Source10: ypserv.tmpfiles
|
||||
Patch1: ypserv-2.32.diff
|
||||
# PATCH-FIX-UPSTREAM, bnc#011483
|
||||
Patch2: 0001-use-_PATH_VARRUN-from-paths.h.patch
|
||||
Patch1: ypserv-4.1.diff
|
||||
BuildRequires: gdbm-devel
|
||||
BuildRequires: openslp-devel
|
||||
BuildRequires: pkgconfig
|
||||
@@ -72,7 +69,6 @@ have the NIS client programs running.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%configure --enable-fqdn --libexecdir="%{_libexecdir}/yp"
|
||||
@@ -80,7 +76,6 @@ make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services
|
||||
mkdir -p %{buildroot}%{_fillupdir}
|
||||
mkdir -p %{buildroot}%{_libexecdir}/yp
|
||||
mkdir -p %{buildroot}%{_unitdir}
|
||||
@@ -88,14 +83,12 @@ mkdir -p %{buildroot}%{_initddir}
|
||||
DOCDIR=%{_defaultdocdir}/yp
|
||||
install -d -m 755 $RPM_BUILD_ROOT${DOCDIR}
|
||||
install -d -m 755 $RPM_BUILD_ROOT${DOCDIR}/ypserv
|
||||
#install contrib/ypslave $RPM_BUILD_ROOT%{_sbindir}
|
||||
#install contrib/ypslave $RPM_BUILD_ROOT/usr/sbin
|
||||
install -m 644 etc/ypserv.conf %{buildroot}%{_sysconfdir}/
|
||||
install -m 644 etc/securenets %{buildroot}%{_libexecdir}/yp/securenets.example
|
||||
mv %{buildroot}%{_localstatedir}/yp/Makefile %{buildroot}%{_libexecdir}/yp/ypMakefile
|
||||
# install sysconfig.ypserv
|
||||
install -m 644 %{SOURCE4} %{buildroot}%{_fillupdir}
|
||||
# install SuSEfirewall2 service script
|
||||
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ypserv
|
||||
# install ypserv.conf in tmpfiles.d
|
||||
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
|
||||
install -m 644 %{SOURCE10} %{buildroot}%{_prefix}/lib/tmpfiles.d/ypserv.conf
|
||||
@@ -149,7 +142,6 @@ fi
|
||||
%doc NEWS README
|
||||
%{_fillupdir}/sysconfig.ypserv
|
||||
%config(noreplace) %{_sysconfdir}/ypserv.conf
|
||||
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ypserv
|
||||
%dir %{_libexecdir}/yp
|
||||
%{_libexecdir}/yp/yppasswdd-systemd-exec
|
||||
%{_libexecdir}/yp/securenets.example
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
From 77bde21fe32194cfe38d1b1437cfa188e2d390d4 Mon Sep 17 00:00:00 2001
|
||||
From: Ruediger Meier <ruediger.meier@ga-group.nl>
|
||||
Date: Mon, 21 Nov 2016 20:02:12 +0100
|
||||
Subject: [PATCH 1/2] use _PATH_VARRUN from paths.h
|
||||
|
||||
Since 1e5d6333 configure we doesn't check for paths.h anymore. That's
|
||||
why all pidfiles went to /etc instead of /var/run.
|
||||
|
||||
Normally I would simply add AC_CHECK_HEADERS(paths.h) again but
|
||||
since this project does not check for any other header I simply
|
||||
remove "#if HAVE_PATHS_H".
|
||||
|
||||
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
|
||||
---
|
||||
lib/pidfile.h | 3 +--
|
||||
1 file changed, 1 insertion(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/pidfile.h b/lib/pidfile.h
|
||||
index 47c2f67..d524963 100644
|
||||
--- a/lib/pidfile.h
|
||||
+++ b/lib/pidfile.h
|
||||
@@ -23,9 +23,8 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
-#ifdef HAVE_PATHS_H
|
||||
#include <paths.h>
|
||||
-#endif
|
||||
+
|
||||
#ifndef _PATH_VARRUN
|
||||
#define _PATH_VARRUN "/etc/"
|
||||
#endif
|
||||
--
|
||||
1.8.5.6
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
## Name: NIS Server
|
||||
## Description: Configuration for a NIS master/slave server
|
||||
|
||||
# space separated list of allowed RPC services
|
||||
RPC="rpcbind portmap ypserv fypxfrd yppasswdd"
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3e64d75d7925174acc8d074befb38617f10f15a9d5d1e8f029dd8ca00c4d0536
|
||||
size 213135
|
||||
@@ -1,6 +1,6 @@
|
||||
--- scripts/ypMakefile.in
|
||||
+++ scripts/ypMakefile.in
|
||||
@@ -37,8 +37,9 @@
|
||||
+++ scripts/ypMakefile.in 2019/03/12 15:10:13
|
||||
@@ -45,8 +45,9 @@
|
||||
MERGE_PASSWD=true
|
||||
|
||||
# Should we merge the group file with the gshadow file ?
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
# These are commands which this Makefile needs to properly rebuild the
|
||||
# NIS databases. Don't change these unless you have a good reason.
|
||||
@@ -54,7 +55,7 @@
|
||||
@@ -62,7 +63,7 @@
|
||||
# taken from YPSRCDIR.
|
||||
#
|
||||
YPSRCDIR = /etc
|
||||
@@ -20,22 +20,20 @@
|
||||
YPBINDIR = @YPBINDIR@
|
||||
YPSBINDIR = @SBINDIR@
|
||||
YPDIR = @YPMAPDIR@
|
||||
@@ -101,10 +102,11 @@
|
||||
@@ -107,8 +108,9 @@
|
||||
# If you don't want some of these maps built, feel free to comment
|
||||
# them out from this list.
|
||||
|
||||
-all: passwd group hosts rpc services netid protocols netgrp mail \
|
||||
- shadow publickey # networks ethers bootparams printcap \
|
||||
+all: passwd group rpc services netid
|
||||
+#all: passwd group hosts rpc services netid protocols netgrp mail \
|
||||
+# shadow publickey # networks ethers bootparams printcap \
|
||||
# amd.home auto.master auto.home auto.local passwd.adjunct \
|
||||
# amd.home autofs passwd.adjunct \
|
||||
# timezone locale netmasks
|
||||
+all: passwd group rpc services netid
|
||||
|
||||
|
||||
########################################################################
|
||||
--- scripts/ypxfr_1perday.in
|
||||
+++ scripts/ypxfr_1perday.in
|
||||
+++ scripts/ypxfr_1perday.in 2019/03/12 15:07:32
|
||||
@@ -6,7 +6,9 @@
|
||||
|
||||
YPBINDIR=@YPBINDIR@
|
||||
@@ -48,7 +46,7 @@
|
||||
for map in $MAPS_TO_GET
|
||||
do
|
||||
--- scripts/ypxfr_1perhour.in
|
||||
+++ scripts/ypxfr_1perhour.in
|
||||
+++ scripts/ypxfr_1perhour.in 2019/03/12 15:07:32
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
YPBINDIR=@YPBINDIR@
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:940cd82f6ad8be43ed9e2f9de125d19e6de9c452efe76cecdea872f0c04fc4e7
|
||||
size 178560
|
||||
Reference in New Issue
Block a user